xref: /aosp_15_r20/external/google-cloud-java/java-grafeas/src/main/java/io/grafeas/v1/ComplianceNote.java (revision 55e87721aa1bc457b326496a7ca40f3ea1a63287)
1 /*
2  * Copyright 2019 The Grafeas Authors. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 // Generated by the protocol buffer compiler.  DO NOT EDIT!
18 // source: grafeas/v1/compliance.proto
19 
20 package io.grafeas.v1;
21 
22 /** Protobuf type {@code grafeas.v1.ComplianceNote} */
23 public final class ComplianceNote extends com.google.protobuf.GeneratedMessageV3
24     implements
25     // @@protoc_insertion_point(message_implements:grafeas.v1.ComplianceNote)
26     ComplianceNoteOrBuilder {
27   private static final long serialVersionUID = 0L;
28   // Use ComplianceNote.newBuilder() to construct.
ComplianceNote(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)29   private ComplianceNote(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
30     super(builder);
31   }
32 
ComplianceNote()33   private ComplianceNote() {
34     title_ = "";
35     description_ = "";
36     version_ = java.util.Collections.emptyList();
37     rationale_ = "";
38     remediation_ = "";
39     scanInstructions_ = com.google.protobuf.ByteString.EMPTY;
40   }
41 
42   @java.lang.Override
43   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)44   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
45     return new ComplianceNote();
46   }
47 
48   @java.lang.Override
getUnknownFields()49   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50     return this.unknownFields;
51   }
52 
getDescriptor()53   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
54     return io.grafeas.v1.Compliance.internal_static_grafeas_v1_ComplianceNote_descriptor;
55   }
56 
57   @java.lang.Override
58   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()59       internalGetFieldAccessorTable() {
60     return io.grafeas.v1.Compliance.internal_static_grafeas_v1_ComplianceNote_fieldAccessorTable
61         .ensureFieldAccessorsInitialized(
62             io.grafeas.v1.ComplianceNote.class, io.grafeas.v1.ComplianceNote.Builder.class);
63   }
64 
65   public interface CisBenchmarkOrBuilder
66       extends
67       // @@protoc_insertion_point(interface_extends:grafeas.v1.ComplianceNote.CisBenchmark)
68       com.google.protobuf.MessageOrBuilder {
69 
70     /**
71      * <code>int32 profile_level = 1;</code>
72      *
73      * @return The profileLevel.
74      */
getProfileLevel()75     int getProfileLevel();
76 
77     /**
78      * <code>.grafeas.v1.Severity severity = 2;</code>
79      *
80      * @return The enum numeric value on the wire for severity.
81      */
getSeverityValue()82     int getSeverityValue();
83     /**
84      * <code>.grafeas.v1.Severity severity = 2;</code>
85      *
86      * @return The severity.
87      */
getSeverity()88     io.grafeas.v1.Severity getSeverity();
89   }
90   /**
91    *
92    *
93    * <pre>
94    * A compliance check that is a CIS benchmark.
95    * </pre>
96    *
97    * Protobuf type {@code grafeas.v1.ComplianceNote.CisBenchmark}
98    */
99   public static final class CisBenchmark extends com.google.protobuf.GeneratedMessageV3
100       implements
101       // @@protoc_insertion_point(message_implements:grafeas.v1.ComplianceNote.CisBenchmark)
102       CisBenchmarkOrBuilder {
103     private static final long serialVersionUID = 0L;
104     // Use CisBenchmark.newBuilder() to construct.
CisBenchmark(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)105     private CisBenchmark(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
106       super(builder);
107     }
108 
CisBenchmark()109     private CisBenchmark() {
110       severity_ = 0;
111     }
112 
113     @java.lang.Override
114     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)115     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
116       return new CisBenchmark();
117     }
118 
119     @java.lang.Override
getUnknownFields()120     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
121       return this.unknownFields;
122     }
123 
getDescriptor()124     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
125       return io.grafeas.v1.Compliance
126           .internal_static_grafeas_v1_ComplianceNote_CisBenchmark_descriptor;
127     }
128 
129     @java.lang.Override
130     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()131         internalGetFieldAccessorTable() {
132       return io.grafeas.v1.Compliance
133           .internal_static_grafeas_v1_ComplianceNote_CisBenchmark_fieldAccessorTable
134           .ensureFieldAccessorsInitialized(
135               io.grafeas.v1.ComplianceNote.CisBenchmark.class,
136               io.grafeas.v1.ComplianceNote.CisBenchmark.Builder.class);
137     }
138 
139     public static final int PROFILE_LEVEL_FIELD_NUMBER = 1;
140     private int profileLevel_ = 0;
141     /**
142      * <code>int32 profile_level = 1;</code>
143      *
144      * @return The profileLevel.
145      */
146     @java.lang.Override
getProfileLevel()147     public int getProfileLevel() {
148       return profileLevel_;
149     }
150 
151     public static final int SEVERITY_FIELD_NUMBER = 2;
152     private int severity_ = 0;
153     /**
154      * <code>.grafeas.v1.Severity severity = 2;</code>
155      *
156      * @return The enum numeric value on the wire for severity.
157      */
158     @java.lang.Override
getSeverityValue()159     public int getSeverityValue() {
160       return severity_;
161     }
162     /**
163      * <code>.grafeas.v1.Severity severity = 2;</code>
164      *
165      * @return The severity.
166      */
167     @java.lang.Override
getSeverity()168     public io.grafeas.v1.Severity getSeverity() {
169       io.grafeas.v1.Severity result = io.grafeas.v1.Severity.forNumber(severity_);
170       return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
171     }
172 
173     private byte memoizedIsInitialized = -1;
174 
175     @java.lang.Override
isInitialized()176     public final boolean isInitialized() {
177       byte isInitialized = memoizedIsInitialized;
178       if (isInitialized == 1) return true;
179       if (isInitialized == 0) return false;
180 
181       memoizedIsInitialized = 1;
182       return true;
183     }
184 
185     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)186     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
187       if (profileLevel_ != 0) {
188         output.writeInt32(1, profileLevel_);
189       }
190       if (severity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
191         output.writeEnum(2, severity_);
192       }
193       getUnknownFields().writeTo(output);
194     }
195 
196     @java.lang.Override
getSerializedSize()197     public int getSerializedSize() {
198       int size = memoizedSize;
199       if (size != -1) return size;
200 
201       size = 0;
202       if (profileLevel_ != 0) {
203         size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, profileLevel_);
204       }
205       if (severity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
206         size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_);
207       }
208       size += getUnknownFields().getSerializedSize();
209       memoizedSize = size;
210       return size;
211     }
212 
213     @java.lang.Override
equals(final java.lang.Object obj)214     public boolean equals(final java.lang.Object obj) {
215       if (obj == this) {
216         return true;
217       }
218       if (!(obj instanceof io.grafeas.v1.ComplianceNote.CisBenchmark)) {
219         return super.equals(obj);
220       }
221       io.grafeas.v1.ComplianceNote.CisBenchmark other =
222           (io.grafeas.v1.ComplianceNote.CisBenchmark) obj;
223 
224       if (getProfileLevel() != other.getProfileLevel()) return false;
225       if (severity_ != other.severity_) return false;
226       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
227       return true;
228     }
229 
230     @java.lang.Override
hashCode()231     public int hashCode() {
232       if (memoizedHashCode != 0) {
233         return memoizedHashCode;
234       }
235       int hash = 41;
236       hash = (19 * hash) + getDescriptor().hashCode();
237       hash = (37 * hash) + PROFILE_LEVEL_FIELD_NUMBER;
238       hash = (53 * hash) + getProfileLevel();
239       hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
240       hash = (53 * hash) + severity_;
241       hash = (29 * hash) + getUnknownFields().hashCode();
242       memoizedHashCode = hash;
243       return hash;
244     }
245 
parseFrom(java.nio.ByteBuffer data)246     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(java.nio.ByteBuffer data)
247         throws com.google.protobuf.InvalidProtocolBufferException {
248       return PARSER.parseFrom(data);
249     }
250 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)251     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(
252         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
253         throws com.google.protobuf.InvalidProtocolBufferException {
254       return PARSER.parseFrom(data, extensionRegistry);
255     }
256 
parseFrom( com.google.protobuf.ByteString data)257     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(
258         com.google.protobuf.ByteString data)
259         throws com.google.protobuf.InvalidProtocolBufferException {
260       return PARSER.parseFrom(data);
261     }
262 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)263     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(
264         com.google.protobuf.ByteString data,
265         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
266         throws com.google.protobuf.InvalidProtocolBufferException {
267       return PARSER.parseFrom(data, extensionRegistry);
268     }
269 
parseFrom(byte[] data)270     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(byte[] data)
271         throws com.google.protobuf.InvalidProtocolBufferException {
272       return PARSER.parseFrom(data);
273     }
274 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)275     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(
276         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
277         throws com.google.protobuf.InvalidProtocolBufferException {
278       return PARSER.parseFrom(data, extensionRegistry);
279     }
280 
parseFrom(java.io.InputStream input)281     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(java.io.InputStream input)
282         throws java.io.IOException {
283       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
284     }
285 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)286     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(
287         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
288         throws java.io.IOException {
289       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
290           PARSER, input, extensionRegistry);
291     }
292 
parseDelimitedFrom( java.io.InputStream input)293     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseDelimitedFrom(
294         java.io.InputStream input) throws java.io.IOException {
295       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
296     }
297 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)298     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseDelimitedFrom(
299         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
300         throws java.io.IOException {
301       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
302           PARSER, input, extensionRegistry);
303     }
304 
parseFrom( com.google.protobuf.CodedInputStream input)305     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(
306         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
307       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
308     }
309 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)310     public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(
311         com.google.protobuf.CodedInputStream input,
312         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
313         throws java.io.IOException {
314       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
315           PARSER, input, extensionRegistry);
316     }
317 
318     @java.lang.Override
newBuilderForType()319     public Builder newBuilderForType() {
320       return newBuilder();
321     }
322 
newBuilder()323     public static Builder newBuilder() {
324       return DEFAULT_INSTANCE.toBuilder();
325     }
326 
newBuilder(io.grafeas.v1.ComplianceNote.CisBenchmark prototype)327     public static Builder newBuilder(io.grafeas.v1.ComplianceNote.CisBenchmark prototype) {
328       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
329     }
330 
331     @java.lang.Override
toBuilder()332     public Builder toBuilder() {
333       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
334     }
335 
336     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)337     protected Builder newBuilderForType(
338         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
339       Builder builder = new Builder(parent);
340       return builder;
341     }
342     /**
343      *
344      *
345      * <pre>
346      * A compliance check that is a CIS benchmark.
347      * </pre>
348      *
349      * Protobuf type {@code grafeas.v1.ComplianceNote.CisBenchmark}
350      */
351     public static final class Builder
352         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
353         implements
354         // @@protoc_insertion_point(builder_implements:grafeas.v1.ComplianceNote.CisBenchmark)
355         io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder {
getDescriptor()356       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
357         return io.grafeas.v1.Compliance
358             .internal_static_grafeas_v1_ComplianceNote_CisBenchmark_descriptor;
359       }
360 
361       @java.lang.Override
362       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()363           internalGetFieldAccessorTable() {
364         return io.grafeas.v1.Compliance
365             .internal_static_grafeas_v1_ComplianceNote_CisBenchmark_fieldAccessorTable
366             .ensureFieldAccessorsInitialized(
367                 io.grafeas.v1.ComplianceNote.CisBenchmark.class,
368                 io.grafeas.v1.ComplianceNote.CisBenchmark.Builder.class);
369       }
370 
371       // Construct using io.grafeas.v1.ComplianceNote.CisBenchmark.newBuilder()
Builder()372       private Builder() {}
373 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)374       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
375         super(parent);
376       }
377 
378       @java.lang.Override
clear()379       public Builder clear() {
380         super.clear();
381         bitField0_ = 0;
382         profileLevel_ = 0;
383         severity_ = 0;
384         return this;
385       }
386 
387       @java.lang.Override
getDescriptorForType()388       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
389         return io.grafeas.v1.Compliance
390             .internal_static_grafeas_v1_ComplianceNote_CisBenchmark_descriptor;
391       }
392 
393       @java.lang.Override
getDefaultInstanceForType()394       public io.grafeas.v1.ComplianceNote.CisBenchmark getDefaultInstanceForType() {
395         return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
396       }
397 
398       @java.lang.Override
build()399       public io.grafeas.v1.ComplianceNote.CisBenchmark build() {
400         io.grafeas.v1.ComplianceNote.CisBenchmark result = buildPartial();
401         if (!result.isInitialized()) {
402           throw newUninitializedMessageException(result);
403         }
404         return result;
405       }
406 
407       @java.lang.Override
buildPartial()408       public io.grafeas.v1.ComplianceNote.CisBenchmark buildPartial() {
409         io.grafeas.v1.ComplianceNote.CisBenchmark result =
410             new io.grafeas.v1.ComplianceNote.CisBenchmark(this);
411         if (bitField0_ != 0) {
412           buildPartial0(result);
413         }
414         onBuilt();
415         return result;
416       }
417 
buildPartial0(io.grafeas.v1.ComplianceNote.CisBenchmark result)418       private void buildPartial0(io.grafeas.v1.ComplianceNote.CisBenchmark result) {
419         int from_bitField0_ = bitField0_;
420         if (((from_bitField0_ & 0x00000001) != 0)) {
421           result.profileLevel_ = profileLevel_;
422         }
423         if (((from_bitField0_ & 0x00000002) != 0)) {
424           result.severity_ = severity_;
425         }
426       }
427 
428       @java.lang.Override
clone()429       public Builder clone() {
430         return super.clone();
431       }
432 
433       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)434       public Builder setField(
435           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
436         return super.setField(field, value);
437       }
438 
439       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)440       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
441         return super.clearField(field);
442       }
443 
444       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)445       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
446         return super.clearOneof(oneof);
447       }
448 
449       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)450       public Builder setRepeatedField(
451           com.google.protobuf.Descriptors.FieldDescriptor field,
452           int index,
453           java.lang.Object value) {
454         return super.setRepeatedField(field, index, value);
455       }
456 
457       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)458       public Builder addRepeatedField(
459           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
460         return super.addRepeatedField(field, value);
461       }
462 
463       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)464       public Builder mergeFrom(com.google.protobuf.Message other) {
465         if (other instanceof io.grafeas.v1.ComplianceNote.CisBenchmark) {
466           return mergeFrom((io.grafeas.v1.ComplianceNote.CisBenchmark) other);
467         } else {
468           super.mergeFrom(other);
469           return this;
470         }
471       }
472 
mergeFrom(io.grafeas.v1.ComplianceNote.CisBenchmark other)473       public Builder mergeFrom(io.grafeas.v1.ComplianceNote.CisBenchmark other) {
474         if (other == io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance()) return this;
475         if (other.getProfileLevel() != 0) {
476           setProfileLevel(other.getProfileLevel());
477         }
478         if (other.severity_ != 0) {
479           setSeverityValue(other.getSeverityValue());
480         }
481         this.mergeUnknownFields(other.getUnknownFields());
482         onChanged();
483         return this;
484       }
485 
486       @java.lang.Override
isInitialized()487       public final boolean isInitialized() {
488         return true;
489       }
490 
491       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)492       public Builder mergeFrom(
493           com.google.protobuf.CodedInputStream input,
494           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
495           throws java.io.IOException {
496         if (extensionRegistry == null) {
497           throw new java.lang.NullPointerException();
498         }
499         try {
500           boolean done = false;
501           while (!done) {
502             int tag = input.readTag();
503             switch (tag) {
504               case 0:
505                 done = true;
506                 break;
507               case 8:
508                 {
509                   profileLevel_ = input.readInt32();
510                   bitField0_ |= 0x00000001;
511                   break;
512                 } // case 8
513               case 16:
514                 {
515                   severity_ = input.readEnum();
516                   bitField0_ |= 0x00000002;
517                   break;
518                 } // case 16
519               default:
520                 {
521                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
522                     done = true; // was an endgroup tag
523                   }
524                   break;
525                 } // default:
526             } // switch (tag)
527           } // while (!done)
528         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
529           throw e.unwrapIOException();
530         } finally {
531           onChanged();
532         } // finally
533         return this;
534       }
535 
536       private int bitField0_;
537 
538       private int profileLevel_;
539       /**
540        * <code>int32 profile_level = 1;</code>
541        *
542        * @return The profileLevel.
543        */
544       @java.lang.Override
getProfileLevel()545       public int getProfileLevel() {
546         return profileLevel_;
547       }
548       /**
549        * <code>int32 profile_level = 1;</code>
550        *
551        * @param value The profileLevel to set.
552        * @return This builder for chaining.
553        */
setProfileLevel(int value)554       public Builder setProfileLevel(int value) {
555 
556         profileLevel_ = value;
557         bitField0_ |= 0x00000001;
558         onChanged();
559         return this;
560       }
561       /**
562        * <code>int32 profile_level = 1;</code>
563        *
564        * @return This builder for chaining.
565        */
clearProfileLevel()566       public Builder clearProfileLevel() {
567         bitField0_ = (bitField0_ & ~0x00000001);
568         profileLevel_ = 0;
569         onChanged();
570         return this;
571       }
572 
573       private int severity_ = 0;
574       /**
575        * <code>.grafeas.v1.Severity severity = 2;</code>
576        *
577        * @return The enum numeric value on the wire for severity.
578        */
579       @java.lang.Override
getSeverityValue()580       public int getSeverityValue() {
581         return severity_;
582       }
583       /**
584        * <code>.grafeas.v1.Severity severity = 2;</code>
585        *
586        * @param value The enum numeric value on the wire for severity to set.
587        * @return This builder for chaining.
588        */
setSeverityValue(int value)589       public Builder setSeverityValue(int value) {
590         severity_ = value;
591         bitField0_ |= 0x00000002;
592         onChanged();
593         return this;
594       }
595       /**
596        * <code>.grafeas.v1.Severity severity = 2;</code>
597        *
598        * @return The severity.
599        */
600       @java.lang.Override
getSeverity()601       public io.grafeas.v1.Severity getSeverity() {
602         io.grafeas.v1.Severity result = io.grafeas.v1.Severity.forNumber(severity_);
603         return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
604       }
605       /**
606        * <code>.grafeas.v1.Severity severity = 2;</code>
607        *
608        * @param value The severity to set.
609        * @return This builder for chaining.
610        */
setSeverity(io.grafeas.v1.Severity value)611       public Builder setSeverity(io.grafeas.v1.Severity value) {
612         if (value == null) {
613           throw new NullPointerException();
614         }
615         bitField0_ |= 0x00000002;
616         severity_ = value.getNumber();
617         onChanged();
618         return this;
619       }
620       /**
621        * <code>.grafeas.v1.Severity severity = 2;</code>
622        *
623        * @return This builder for chaining.
624        */
clearSeverity()625       public Builder clearSeverity() {
626         bitField0_ = (bitField0_ & ~0x00000002);
627         severity_ = 0;
628         onChanged();
629         return this;
630       }
631 
632       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)633       public final Builder setUnknownFields(
634           final com.google.protobuf.UnknownFieldSet unknownFields) {
635         return super.setUnknownFields(unknownFields);
636       }
637 
638       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)639       public final Builder mergeUnknownFields(
640           final com.google.protobuf.UnknownFieldSet unknownFields) {
641         return super.mergeUnknownFields(unknownFields);
642       }
643 
644       // @@protoc_insertion_point(builder_scope:grafeas.v1.ComplianceNote.CisBenchmark)
645     }
646 
647     // @@protoc_insertion_point(class_scope:grafeas.v1.ComplianceNote.CisBenchmark)
648     private static final io.grafeas.v1.ComplianceNote.CisBenchmark DEFAULT_INSTANCE;
649 
650     static {
651       DEFAULT_INSTANCE = new io.grafeas.v1.ComplianceNote.CisBenchmark();
652     }
653 
getDefaultInstance()654     public static io.grafeas.v1.ComplianceNote.CisBenchmark getDefaultInstance() {
655       return DEFAULT_INSTANCE;
656     }
657 
658     private static final com.google.protobuf.Parser<CisBenchmark> PARSER =
659         new com.google.protobuf.AbstractParser<CisBenchmark>() {
660           @java.lang.Override
661           public CisBenchmark parsePartialFrom(
662               com.google.protobuf.CodedInputStream input,
663               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
664               throws com.google.protobuf.InvalidProtocolBufferException {
665             Builder builder = newBuilder();
666             try {
667               builder.mergeFrom(input, extensionRegistry);
668             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
669               throw e.setUnfinishedMessage(builder.buildPartial());
670             } catch (com.google.protobuf.UninitializedMessageException e) {
671               throw e.asInvalidProtocolBufferException()
672                   .setUnfinishedMessage(builder.buildPartial());
673             } catch (java.io.IOException e) {
674               throw new com.google.protobuf.InvalidProtocolBufferException(e)
675                   .setUnfinishedMessage(builder.buildPartial());
676             }
677             return builder.buildPartial();
678           }
679         };
680 
parser()681     public static com.google.protobuf.Parser<CisBenchmark> parser() {
682       return PARSER;
683     }
684 
685     @java.lang.Override
getParserForType()686     public com.google.protobuf.Parser<CisBenchmark> getParserForType() {
687       return PARSER;
688     }
689 
690     @java.lang.Override
getDefaultInstanceForType()691     public io.grafeas.v1.ComplianceNote.CisBenchmark getDefaultInstanceForType() {
692       return DEFAULT_INSTANCE;
693     }
694   }
695 
696   private int complianceTypeCase_ = 0;
697   private java.lang.Object complianceType_;
698 
699   public enum ComplianceTypeCase
700       implements
701           com.google.protobuf.Internal.EnumLite,
702           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
703     CIS_BENCHMARK(6),
704     COMPLIANCETYPE_NOT_SET(0);
705     private final int value;
706 
ComplianceTypeCase(int value)707     private ComplianceTypeCase(int value) {
708       this.value = value;
709     }
710     /**
711      * @param value The number of the enum to look for.
712      * @return The enum associated with the given number.
713      * @deprecated Use {@link #forNumber(int)} instead.
714      */
715     @java.lang.Deprecated
valueOf(int value)716     public static ComplianceTypeCase valueOf(int value) {
717       return forNumber(value);
718     }
719 
forNumber(int value)720     public static ComplianceTypeCase forNumber(int value) {
721       switch (value) {
722         case 6:
723           return CIS_BENCHMARK;
724         case 0:
725           return COMPLIANCETYPE_NOT_SET;
726         default:
727           return null;
728       }
729     }
730 
getNumber()731     public int getNumber() {
732       return this.value;
733     }
734   };
735 
getComplianceTypeCase()736   public ComplianceTypeCase getComplianceTypeCase() {
737     return ComplianceTypeCase.forNumber(complianceTypeCase_);
738   }
739 
740   public static final int TITLE_FIELD_NUMBER = 1;
741 
742   @SuppressWarnings("serial")
743   private volatile java.lang.Object title_ = "";
744   /**
745    *
746    *
747    * <pre>
748    * The title that identifies this compliance check.
749    * </pre>
750    *
751    * <code>string title = 1;</code>
752    *
753    * @return The title.
754    */
755   @java.lang.Override
getTitle()756   public java.lang.String getTitle() {
757     java.lang.Object ref = title_;
758     if (ref instanceof java.lang.String) {
759       return (java.lang.String) ref;
760     } else {
761       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
762       java.lang.String s = bs.toStringUtf8();
763       title_ = s;
764       return s;
765     }
766   }
767   /**
768    *
769    *
770    * <pre>
771    * The title that identifies this compliance check.
772    * </pre>
773    *
774    * <code>string title = 1;</code>
775    *
776    * @return The bytes for title.
777    */
778   @java.lang.Override
getTitleBytes()779   public com.google.protobuf.ByteString getTitleBytes() {
780     java.lang.Object ref = title_;
781     if (ref instanceof java.lang.String) {
782       com.google.protobuf.ByteString b =
783           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
784       title_ = b;
785       return b;
786     } else {
787       return (com.google.protobuf.ByteString) ref;
788     }
789   }
790 
791   public static final int DESCRIPTION_FIELD_NUMBER = 2;
792 
793   @SuppressWarnings("serial")
794   private volatile java.lang.Object description_ = "";
795   /**
796    *
797    *
798    * <pre>
799    * A description about this compliance check.
800    * </pre>
801    *
802    * <code>string description = 2;</code>
803    *
804    * @return The description.
805    */
806   @java.lang.Override
getDescription()807   public java.lang.String getDescription() {
808     java.lang.Object ref = description_;
809     if (ref instanceof java.lang.String) {
810       return (java.lang.String) ref;
811     } else {
812       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
813       java.lang.String s = bs.toStringUtf8();
814       description_ = s;
815       return s;
816     }
817   }
818   /**
819    *
820    *
821    * <pre>
822    * A description about this compliance check.
823    * </pre>
824    *
825    * <code>string description = 2;</code>
826    *
827    * @return The bytes for description.
828    */
829   @java.lang.Override
getDescriptionBytes()830   public com.google.protobuf.ByteString getDescriptionBytes() {
831     java.lang.Object ref = description_;
832     if (ref instanceof java.lang.String) {
833       com.google.protobuf.ByteString b =
834           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
835       description_ = b;
836       return b;
837     } else {
838       return (com.google.protobuf.ByteString) ref;
839     }
840   }
841 
842   public static final int VERSION_FIELD_NUMBER = 3;
843 
844   @SuppressWarnings("serial")
845   private java.util.List<io.grafeas.v1.ComplianceVersion> version_;
846   /**
847    *
848    *
849    * <pre>
850    * The OS and config versions the benchmark applies to.
851    * </pre>
852    *
853    * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
854    */
855   @java.lang.Override
getVersionList()856   public java.util.List<io.grafeas.v1.ComplianceVersion> getVersionList() {
857     return version_;
858   }
859   /**
860    *
861    *
862    * <pre>
863    * The OS and config versions the benchmark applies to.
864    * </pre>
865    *
866    * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
867    */
868   @java.lang.Override
869   public java.util.List<? extends io.grafeas.v1.ComplianceVersionOrBuilder>
getVersionOrBuilderList()870       getVersionOrBuilderList() {
871     return version_;
872   }
873   /**
874    *
875    *
876    * <pre>
877    * The OS and config versions the benchmark applies to.
878    * </pre>
879    *
880    * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
881    */
882   @java.lang.Override
getVersionCount()883   public int getVersionCount() {
884     return version_.size();
885   }
886   /**
887    *
888    *
889    * <pre>
890    * The OS and config versions the benchmark applies to.
891    * </pre>
892    *
893    * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
894    */
895   @java.lang.Override
getVersion(int index)896   public io.grafeas.v1.ComplianceVersion getVersion(int index) {
897     return version_.get(index);
898   }
899   /**
900    *
901    *
902    * <pre>
903    * The OS and config versions the benchmark applies to.
904    * </pre>
905    *
906    * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
907    */
908   @java.lang.Override
getVersionOrBuilder(int index)909   public io.grafeas.v1.ComplianceVersionOrBuilder getVersionOrBuilder(int index) {
910     return version_.get(index);
911   }
912 
913   public static final int RATIONALE_FIELD_NUMBER = 4;
914 
915   @SuppressWarnings("serial")
916   private volatile java.lang.Object rationale_ = "";
917   /**
918    *
919    *
920    * <pre>
921    * A rationale for the existence of this compliance check.
922    * </pre>
923    *
924    * <code>string rationale = 4;</code>
925    *
926    * @return The rationale.
927    */
928   @java.lang.Override
getRationale()929   public java.lang.String getRationale() {
930     java.lang.Object ref = rationale_;
931     if (ref instanceof java.lang.String) {
932       return (java.lang.String) ref;
933     } else {
934       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
935       java.lang.String s = bs.toStringUtf8();
936       rationale_ = s;
937       return s;
938     }
939   }
940   /**
941    *
942    *
943    * <pre>
944    * A rationale for the existence of this compliance check.
945    * </pre>
946    *
947    * <code>string rationale = 4;</code>
948    *
949    * @return The bytes for rationale.
950    */
951   @java.lang.Override
getRationaleBytes()952   public com.google.protobuf.ByteString getRationaleBytes() {
953     java.lang.Object ref = rationale_;
954     if (ref instanceof java.lang.String) {
955       com.google.protobuf.ByteString b =
956           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
957       rationale_ = b;
958       return b;
959     } else {
960       return (com.google.protobuf.ByteString) ref;
961     }
962   }
963 
964   public static final int REMEDIATION_FIELD_NUMBER = 5;
965 
966   @SuppressWarnings("serial")
967   private volatile java.lang.Object remediation_ = "";
968   /**
969    *
970    *
971    * <pre>
972    * A description of remediation steps if the compliance check fails.
973    * </pre>
974    *
975    * <code>string remediation = 5;</code>
976    *
977    * @return The remediation.
978    */
979   @java.lang.Override
getRemediation()980   public java.lang.String getRemediation() {
981     java.lang.Object ref = remediation_;
982     if (ref instanceof java.lang.String) {
983       return (java.lang.String) ref;
984     } else {
985       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
986       java.lang.String s = bs.toStringUtf8();
987       remediation_ = s;
988       return s;
989     }
990   }
991   /**
992    *
993    *
994    * <pre>
995    * A description of remediation steps if the compliance check fails.
996    * </pre>
997    *
998    * <code>string remediation = 5;</code>
999    *
1000    * @return The bytes for remediation.
1001    */
1002   @java.lang.Override
getRemediationBytes()1003   public com.google.protobuf.ByteString getRemediationBytes() {
1004     java.lang.Object ref = remediation_;
1005     if (ref instanceof java.lang.String) {
1006       com.google.protobuf.ByteString b =
1007           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1008       remediation_ = b;
1009       return b;
1010     } else {
1011       return (com.google.protobuf.ByteString) ref;
1012     }
1013   }
1014 
1015   public static final int CIS_BENCHMARK_FIELD_NUMBER = 6;
1016   /**
1017    * <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code>
1018    *
1019    * @return Whether the cisBenchmark field is set.
1020    */
1021   @java.lang.Override
hasCisBenchmark()1022   public boolean hasCisBenchmark() {
1023     return complianceTypeCase_ == 6;
1024   }
1025   /**
1026    * <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code>
1027    *
1028    * @return The cisBenchmark.
1029    */
1030   @java.lang.Override
getCisBenchmark()1031   public io.grafeas.v1.ComplianceNote.CisBenchmark getCisBenchmark() {
1032     if (complianceTypeCase_ == 6) {
1033       return (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_;
1034     }
1035     return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
1036   }
1037   /** <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code> */
1038   @java.lang.Override
getCisBenchmarkOrBuilder()1039   public io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder getCisBenchmarkOrBuilder() {
1040     if (complianceTypeCase_ == 6) {
1041       return (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_;
1042     }
1043     return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
1044   }
1045 
1046   public static final int SCAN_INSTRUCTIONS_FIELD_NUMBER = 7;
1047   private com.google.protobuf.ByteString scanInstructions_ = com.google.protobuf.ByteString.EMPTY;
1048   /**
1049    *
1050    *
1051    * <pre>
1052    * Serialized scan instructions with a predefined format.
1053    * </pre>
1054    *
1055    * <code>bytes scan_instructions = 7;</code>
1056    *
1057    * @return The scanInstructions.
1058    */
1059   @java.lang.Override
getScanInstructions()1060   public com.google.protobuf.ByteString getScanInstructions() {
1061     return scanInstructions_;
1062   }
1063 
1064   private byte memoizedIsInitialized = -1;
1065 
1066   @java.lang.Override
isInitialized()1067   public final boolean isInitialized() {
1068     byte isInitialized = memoizedIsInitialized;
1069     if (isInitialized == 1) return true;
1070     if (isInitialized == 0) return false;
1071 
1072     memoizedIsInitialized = 1;
1073     return true;
1074   }
1075 
1076   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1077   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1078     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
1079       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
1080     }
1081     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1082       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
1083     }
1084     for (int i = 0; i < version_.size(); i++) {
1085       output.writeMessage(3, version_.get(i));
1086     }
1087     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rationale_)) {
1088       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rationale_);
1089     }
1090     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remediation_)) {
1091       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, remediation_);
1092     }
1093     if (complianceTypeCase_ == 6) {
1094       output.writeMessage(6, (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_);
1095     }
1096     if (!scanInstructions_.isEmpty()) {
1097       output.writeBytes(7, scanInstructions_);
1098     }
1099     getUnknownFields().writeTo(output);
1100   }
1101 
1102   @java.lang.Override
getSerializedSize()1103   public int getSerializedSize() {
1104     int size = memoizedSize;
1105     if (size != -1) return size;
1106 
1107     size = 0;
1108     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
1109       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
1110     }
1111     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1112       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
1113     }
1114     for (int i = 0; i < version_.size(); i++) {
1115       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, version_.get(i));
1116     }
1117     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rationale_)) {
1118       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rationale_);
1119     }
1120     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remediation_)) {
1121       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, remediation_);
1122     }
1123     if (complianceTypeCase_ == 6) {
1124       size +=
1125           com.google.protobuf.CodedOutputStream.computeMessageSize(
1126               6, (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_);
1127     }
1128     if (!scanInstructions_.isEmpty()) {
1129       size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, scanInstructions_);
1130     }
1131     size += getUnknownFields().getSerializedSize();
1132     memoizedSize = size;
1133     return size;
1134   }
1135 
1136   @java.lang.Override
equals(final java.lang.Object obj)1137   public boolean equals(final java.lang.Object obj) {
1138     if (obj == this) {
1139       return true;
1140     }
1141     if (!(obj instanceof io.grafeas.v1.ComplianceNote)) {
1142       return super.equals(obj);
1143     }
1144     io.grafeas.v1.ComplianceNote other = (io.grafeas.v1.ComplianceNote) obj;
1145 
1146     if (!getTitle().equals(other.getTitle())) return false;
1147     if (!getDescription().equals(other.getDescription())) return false;
1148     if (!getVersionList().equals(other.getVersionList())) return false;
1149     if (!getRationale().equals(other.getRationale())) return false;
1150     if (!getRemediation().equals(other.getRemediation())) return false;
1151     if (!getScanInstructions().equals(other.getScanInstructions())) return false;
1152     if (!getComplianceTypeCase().equals(other.getComplianceTypeCase())) return false;
1153     switch (complianceTypeCase_) {
1154       case 6:
1155         if (!getCisBenchmark().equals(other.getCisBenchmark())) return false;
1156         break;
1157       case 0:
1158       default:
1159     }
1160     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1161     return true;
1162   }
1163 
1164   @java.lang.Override
hashCode()1165   public int hashCode() {
1166     if (memoizedHashCode != 0) {
1167       return memoizedHashCode;
1168     }
1169     int hash = 41;
1170     hash = (19 * hash) + getDescriptor().hashCode();
1171     hash = (37 * hash) + TITLE_FIELD_NUMBER;
1172     hash = (53 * hash) + getTitle().hashCode();
1173     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1174     hash = (53 * hash) + getDescription().hashCode();
1175     if (getVersionCount() > 0) {
1176       hash = (37 * hash) + VERSION_FIELD_NUMBER;
1177       hash = (53 * hash) + getVersionList().hashCode();
1178     }
1179     hash = (37 * hash) + RATIONALE_FIELD_NUMBER;
1180     hash = (53 * hash) + getRationale().hashCode();
1181     hash = (37 * hash) + REMEDIATION_FIELD_NUMBER;
1182     hash = (53 * hash) + getRemediation().hashCode();
1183     hash = (37 * hash) + SCAN_INSTRUCTIONS_FIELD_NUMBER;
1184     hash = (53 * hash) + getScanInstructions().hashCode();
1185     switch (complianceTypeCase_) {
1186       case 6:
1187         hash = (37 * hash) + CIS_BENCHMARK_FIELD_NUMBER;
1188         hash = (53 * hash) + getCisBenchmark().hashCode();
1189         break;
1190       case 0:
1191       default:
1192     }
1193     hash = (29 * hash) + getUnknownFields().hashCode();
1194     memoizedHashCode = hash;
1195     return hash;
1196   }
1197 
parseFrom(java.nio.ByteBuffer data)1198   public static io.grafeas.v1.ComplianceNote parseFrom(java.nio.ByteBuffer data)
1199       throws com.google.protobuf.InvalidProtocolBufferException {
1200     return PARSER.parseFrom(data);
1201   }
1202 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1203   public static io.grafeas.v1.ComplianceNote parseFrom(
1204       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1205       throws com.google.protobuf.InvalidProtocolBufferException {
1206     return PARSER.parseFrom(data, extensionRegistry);
1207   }
1208 
parseFrom(com.google.protobuf.ByteString data)1209   public static io.grafeas.v1.ComplianceNote parseFrom(com.google.protobuf.ByteString data)
1210       throws com.google.protobuf.InvalidProtocolBufferException {
1211     return PARSER.parseFrom(data);
1212   }
1213 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1214   public static io.grafeas.v1.ComplianceNote parseFrom(
1215       com.google.protobuf.ByteString data,
1216       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1217       throws com.google.protobuf.InvalidProtocolBufferException {
1218     return PARSER.parseFrom(data, extensionRegistry);
1219   }
1220 
parseFrom(byte[] data)1221   public static io.grafeas.v1.ComplianceNote parseFrom(byte[] data)
1222       throws com.google.protobuf.InvalidProtocolBufferException {
1223     return PARSER.parseFrom(data);
1224   }
1225 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1226   public static io.grafeas.v1.ComplianceNote parseFrom(
1227       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1228       throws com.google.protobuf.InvalidProtocolBufferException {
1229     return PARSER.parseFrom(data, extensionRegistry);
1230   }
1231 
parseFrom(java.io.InputStream input)1232   public static io.grafeas.v1.ComplianceNote parseFrom(java.io.InputStream input)
1233       throws java.io.IOException {
1234     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1235   }
1236 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1237   public static io.grafeas.v1.ComplianceNote parseFrom(
1238       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1239       throws java.io.IOException {
1240     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1241         PARSER, input, extensionRegistry);
1242   }
1243 
parseDelimitedFrom(java.io.InputStream input)1244   public static io.grafeas.v1.ComplianceNote parseDelimitedFrom(java.io.InputStream input)
1245       throws java.io.IOException {
1246     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1247   }
1248 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1249   public static io.grafeas.v1.ComplianceNote parseDelimitedFrom(
1250       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1251       throws java.io.IOException {
1252     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1253         PARSER, input, extensionRegistry);
1254   }
1255 
parseFrom(com.google.protobuf.CodedInputStream input)1256   public static io.grafeas.v1.ComplianceNote parseFrom(com.google.protobuf.CodedInputStream input)
1257       throws java.io.IOException {
1258     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1259   }
1260 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1261   public static io.grafeas.v1.ComplianceNote parseFrom(
1262       com.google.protobuf.CodedInputStream input,
1263       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1264       throws java.io.IOException {
1265     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1266         PARSER, input, extensionRegistry);
1267   }
1268 
1269   @java.lang.Override
newBuilderForType()1270   public Builder newBuilderForType() {
1271     return newBuilder();
1272   }
1273 
newBuilder()1274   public static Builder newBuilder() {
1275     return DEFAULT_INSTANCE.toBuilder();
1276   }
1277 
newBuilder(io.grafeas.v1.ComplianceNote prototype)1278   public static Builder newBuilder(io.grafeas.v1.ComplianceNote prototype) {
1279     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1280   }
1281 
1282   @java.lang.Override
toBuilder()1283   public Builder toBuilder() {
1284     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1285   }
1286 
1287   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1288   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1289     Builder builder = new Builder(parent);
1290     return builder;
1291   }
1292   /** Protobuf type {@code grafeas.v1.ComplianceNote} */
1293   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1294       implements
1295       // @@protoc_insertion_point(builder_implements:grafeas.v1.ComplianceNote)
1296       io.grafeas.v1.ComplianceNoteOrBuilder {
getDescriptor()1297     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1298       return io.grafeas.v1.Compliance.internal_static_grafeas_v1_ComplianceNote_descriptor;
1299     }
1300 
1301     @java.lang.Override
1302     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1303         internalGetFieldAccessorTable() {
1304       return io.grafeas.v1.Compliance.internal_static_grafeas_v1_ComplianceNote_fieldAccessorTable
1305           .ensureFieldAccessorsInitialized(
1306               io.grafeas.v1.ComplianceNote.class, io.grafeas.v1.ComplianceNote.Builder.class);
1307     }
1308 
1309     // Construct using io.grafeas.v1.ComplianceNote.newBuilder()
Builder()1310     private Builder() {}
1311 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1312     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1313       super(parent);
1314     }
1315 
1316     @java.lang.Override
clear()1317     public Builder clear() {
1318       super.clear();
1319       bitField0_ = 0;
1320       title_ = "";
1321       description_ = "";
1322       if (versionBuilder_ == null) {
1323         version_ = java.util.Collections.emptyList();
1324       } else {
1325         version_ = null;
1326         versionBuilder_.clear();
1327       }
1328       bitField0_ = (bitField0_ & ~0x00000004);
1329       rationale_ = "";
1330       remediation_ = "";
1331       if (cisBenchmarkBuilder_ != null) {
1332         cisBenchmarkBuilder_.clear();
1333       }
1334       scanInstructions_ = com.google.protobuf.ByteString.EMPTY;
1335       complianceTypeCase_ = 0;
1336       complianceType_ = null;
1337       return this;
1338     }
1339 
1340     @java.lang.Override
getDescriptorForType()1341     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1342       return io.grafeas.v1.Compliance.internal_static_grafeas_v1_ComplianceNote_descriptor;
1343     }
1344 
1345     @java.lang.Override
getDefaultInstanceForType()1346     public io.grafeas.v1.ComplianceNote getDefaultInstanceForType() {
1347       return io.grafeas.v1.ComplianceNote.getDefaultInstance();
1348     }
1349 
1350     @java.lang.Override
build()1351     public io.grafeas.v1.ComplianceNote build() {
1352       io.grafeas.v1.ComplianceNote result = buildPartial();
1353       if (!result.isInitialized()) {
1354         throw newUninitializedMessageException(result);
1355       }
1356       return result;
1357     }
1358 
1359     @java.lang.Override
buildPartial()1360     public io.grafeas.v1.ComplianceNote buildPartial() {
1361       io.grafeas.v1.ComplianceNote result = new io.grafeas.v1.ComplianceNote(this);
1362       buildPartialRepeatedFields(result);
1363       if (bitField0_ != 0) {
1364         buildPartial0(result);
1365       }
1366       buildPartialOneofs(result);
1367       onBuilt();
1368       return result;
1369     }
1370 
buildPartialRepeatedFields(io.grafeas.v1.ComplianceNote result)1371     private void buildPartialRepeatedFields(io.grafeas.v1.ComplianceNote result) {
1372       if (versionBuilder_ == null) {
1373         if (((bitField0_ & 0x00000004) != 0)) {
1374           version_ = java.util.Collections.unmodifiableList(version_);
1375           bitField0_ = (bitField0_ & ~0x00000004);
1376         }
1377         result.version_ = version_;
1378       } else {
1379         result.version_ = versionBuilder_.build();
1380       }
1381     }
1382 
buildPartial0(io.grafeas.v1.ComplianceNote result)1383     private void buildPartial0(io.grafeas.v1.ComplianceNote result) {
1384       int from_bitField0_ = bitField0_;
1385       if (((from_bitField0_ & 0x00000001) != 0)) {
1386         result.title_ = title_;
1387       }
1388       if (((from_bitField0_ & 0x00000002) != 0)) {
1389         result.description_ = description_;
1390       }
1391       if (((from_bitField0_ & 0x00000008) != 0)) {
1392         result.rationale_ = rationale_;
1393       }
1394       if (((from_bitField0_ & 0x00000010) != 0)) {
1395         result.remediation_ = remediation_;
1396       }
1397       if (((from_bitField0_ & 0x00000040) != 0)) {
1398         result.scanInstructions_ = scanInstructions_;
1399       }
1400     }
1401 
buildPartialOneofs(io.grafeas.v1.ComplianceNote result)1402     private void buildPartialOneofs(io.grafeas.v1.ComplianceNote result) {
1403       result.complianceTypeCase_ = complianceTypeCase_;
1404       result.complianceType_ = this.complianceType_;
1405       if (complianceTypeCase_ == 6 && cisBenchmarkBuilder_ != null) {
1406         result.complianceType_ = cisBenchmarkBuilder_.build();
1407       }
1408     }
1409 
1410     @java.lang.Override
clone()1411     public Builder clone() {
1412       return super.clone();
1413     }
1414 
1415     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1416     public Builder setField(
1417         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1418       return super.setField(field, value);
1419     }
1420 
1421     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1422     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1423       return super.clearField(field);
1424     }
1425 
1426     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1427     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1428       return super.clearOneof(oneof);
1429     }
1430 
1431     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1432     public Builder setRepeatedField(
1433         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1434       return super.setRepeatedField(field, index, value);
1435     }
1436 
1437     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1438     public Builder addRepeatedField(
1439         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1440       return super.addRepeatedField(field, value);
1441     }
1442 
1443     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1444     public Builder mergeFrom(com.google.protobuf.Message other) {
1445       if (other instanceof io.grafeas.v1.ComplianceNote) {
1446         return mergeFrom((io.grafeas.v1.ComplianceNote) other);
1447       } else {
1448         super.mergeFrom(other);
1449         return this;
1450       }
1451     }
1452 
mergeFrom(io.grafeas.v1.ComplianceNote other)1453     public Builder mergeFrom(io.grafeas.v1.ComplianceNote other) {
1454       if (other == io.grafeas.v1.ComplianceNote.getDefaultInstance()) return this;
1455       if (!other.getTitle().isEmpty()) {
1456         title_ = other.title_;
1457         bitField0_ |= 0x00000001;
1458         onChanged();
1459       }
1460       if (!other.getDescription().isEmpty()) {
1461         description_ = other.description_;
1462         bitField0_ |= 0x00000002;
1463         onChanged();
1464       }
1465       if (versionBuilder_ == null) {
1466         if (!other.version_.isEmpty()) {
1467           if (version_.isEmpty()) {
1468             version_ = other.version_;
1469             bitField0_ = (bitField0_ & ~0x00000004);
1470           } else {
1471             ensureVersionIsMutable();
1472             version_.addAll(other.version_);
1473           }
1474           onChanged();
1475         }
1476       } else {
1477         if (!other.version_.isEmpty()) {
1478           if (versionBuilder_.isEmpty()) {
1479             versionBuilder_.dispose();
1480             versionBuilder_ = null;
1481             version_ = other.version_;
1482             bitField0_ = (bitField0_ & ~0x00000004);
1483             versionBuilder_ =
1484                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1485                     ? getVersionFieldBuilder()
1486                     : null;
1487           } else {
1488             versionBuilder_.addAllMessages(other.version_);
1489           }
1490         }
1491       }
1492       if (!other.getRationale().isEmpty()) {
1493         rationale_ = other.rationale_;
1494         bitField0_ |= 0x00000008;
1495         onChanged();
1496       }
1497       if (!other.getRemediation().isEmpty()) {
1498         remediation_ = other.remediation_;
1499         bitField0_ |= 0x00000010;
1500         onChanged();
1501       }
1502       if (other.getScanInstructions() != com.google.protobuf.ByteString.EMPTY) {
1503         setScanInstructions(other.getScanInstructions());
1504       }
1505       switch (other.getComplianceTypeCase()) {
1506         case CIS_BENCHMARK:
1507           {
1508             mergeCisBenchmark(other.getCisBenchmark());
1509             break;
1510           }
1511         case COMPLIANCETYPE_NOT_SET:
1512           {
1513             break;
1514           }
1515       }
1516       this.mergeUnknownFields(other.getUnknownFields());
1517       onChanged();
1518       return this;
1519     }
1520 
1521     @java.lang.Override
isInitialized()1522     public final boolean isInitialized() {
1523       return true;
1524     }
1525 
1526     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1527     public Builder mergeFrom(
1528         com.google.protobuf.CodedInputStream input,
1529         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1530         throws java.io.IOException {
1531       if (extensionRegistry == null) {
1532         throw new java.lang.NullPointerException();
1533       }
1534       try {
1535         boolean done = false;
1536         while (!done) {
1537           int tag = input.readTag();
1538           switch (tag) {
1539             case 0:
1540               done = true;
1541               break;
1542             case 10:
1543               {
1544                 title_ = input.readStringRequireUtf8();
1545                 bitField0_ |= 0x00000001;
1546                 break;
1547               } // case 10
1548             case 18:
1549               {
1550                 description_ = input.readStringRequireUtf8();
1551                 bitField0_ |= 0x00000002;
1552                 break;
1553               } // case 18
1554             case 26:
1555               {
1556                 io.grafeas.v1.ComplianceVersion m =
1557                     input.readMessage(io.grafeas.v1.ComplianceVersion.parser(), extensionRegistry);
1558                 if (versionBuilder_ == null) {
1559                   ensureVersionIsMutable();
1560                   version_.add(m);
1561                 } else {
1562                   versionBuilder_.addMessage(m);
1563                 }
1564                 break;
1565               } // case 26
1566             case 34:
1567               {
1568                 rationale_ = input.readStringRequireUtf8();
1569                 bitField0_ |= 0x00000008;
1570                 break;
1571               } // case 34
1572             case 42:
1573               {
1574                 remediation_ = input.readStringRequireUtf8();
1575                 bitField0_ |= 0x00000010;
1576                 break;
1577               } // case 42
1578             case 50:
1579               {
1580                 input.readMessage(getCisBenchmarkFieldBuilder().getBuilder(), extensionRegistry);
1581                 complianceTypeCase_ = 6;
1582                 break;
1583               } // case 50
1584             case 58:
1585               {
1586                 scanInstructions_ = input.readBytes();
1587                 bitField0_ |= 0x00000040;
1588                 break;
1589               } // case 58
1590             default:
1591               {
1592                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1593                   done = true; // was an endgroup tag
1594                 }
1595                 break;
1596               } // default:
1597           } // switch (tag)
1598         } // while (!done)
1599       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1600         throw e.unwrapIOException();
1601       } finally {
1602         onChanged();
1603       } // finally
1604       return this;
1605     }
1606 
1607     private int complianceTypeCase_ = 0;
1608     private java.lang.Object complianceType_;
1609 
getComplianceTypeCase()1610     public ComplianceTypeCase getComplianceTypeCase() {
1611       return ComplianceTypeCase.forNumber(complianceTypeCase_);
1612     }
1613 
clearComplianceType()1614     public Builder clearComplianceType() {
1615       complianceTypeCase_ = 0;
1616       complianceType_ = null;
1617       onChanged();
1618       return this;
1619     }
1620 
1621     private int bitField0_;
1622 
1623     private java.lang.Object title_ = "";
1624     /**
1625      *
1626      *
1627      * <pre>
1628      * The title that identifies this compliance check.
1629      * </pre>
1630      *
1631      * <code>string title = 1;</code>
1632      *
1633      * @return The title.
1634      */
getTitle()1635     public java.lang.String getTitle() {
1636       java.lang.Object ref = title_;
1637       if (!(ref instanceof java.lang.String)) {
1638         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1639         java.lang.String s = bs.toStringUtf8();
1640         title_ = s;
1641         return s;
1642       } else {
1643         return (java.lang.String) ref;
1644       }
1645     }
1646     /**
1647      *
1648      *
1649      * <pre>
1650      * The title that identifies this compliance check.
1651      * </pre>
1652      *
1653      * <code>string title = 1;</code>
1654      *
1655      * @return The bytes for title.
1656      */
getTitleBytes()1657     public com.google.protobuf.ByteString getTitleBytes() {
1658       java.lang.Object ref = title_;
1659       if (ref instanceof String) {
1660         com.google.protobuf.ByteString b =
1661             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1662         title_ = b;
1663         return b;
1664       } else {
1665         return (com.google.protobuf.ByteString) ref;
1666       }
1667     }
1668     /**
1669      *
1670      *
1671      * <pre>
1672      * The title that identifies this compliance check.
1673      * </pre>
1674      *
1675      * <code>string title = 1;</code>
1676      *
1677      * @param value The title to set.
1678      * @return This builder for chaining.
1679      */
setTitle(java.lang.String value)1680     public Builder setTitle(java.lang.String value) {
1681       if (value == null) {
1682         throw new NullPointerException();
1683       }
1684       title_ = value;
1685       bitField0_ |= 0x00000001;
1686       onChanged();
1687       return this;
1688     }
1689     /**
1690      *
1691      *
1692      * <pre>
1693      * The title that identifies this compliance check.
1694      * </pre>
1695      *
1696      * <code>string title = 1;</code>
1697      *
1698      * @return This builder for chaining.
1699      */
clearTitle()1700     public Builder clearTitle() {
1701       title_ = getDefaultInstance().getTitle();
1702       bitField0_ = (bitField0_ & ~0x00000001);
1703       onChanged();
1704       return this;
1705     }
1706     /**
1707      *
1708      *
1709      * <pre>
1710      * The title that identifies this compliance check.
1711      * </pre>
1712      *
1713      * <code>string title = 1;</code>
1714      *
1715      * @param value The bytes for title to set.
1716      * @return This builder for chaining.
1717      */
setTitleBytes(com.google.protobuf.ByteString value)1718     public Builder setTitleBytes(com.google.protobuf.ByteString value) {
1719       if (value == null) {
1720         throw new NullPointerException();
1721       }
1722       checkByteStringIsUtf8(value);
1723       title_ = value;
1724       bitField0_ |= 0x00000001;
1725       onChanged();
1726       return this;
1727     }
1728 
1729     private java.lang.Object description_ = "";
1730     /**
1731      *
1732      *
1733      * <pre>
1734      * A description about this compliance check.
1735      * </pre>
1736      *
1737      * <code>string description = 2;</code>
1738      *
1739      * @return The description.
1740      */
getDescription()1741     public java.lang.String getDescription() {
1742       java.lang.Object ref = description_;
1743       if (!(ref instanceof java.lang.String)) {
1744         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1745         java.lang.String s = bs.toStringUtf8();
1746         description_ = s;
1747         return s;
1748       } else {
1749         return (java.lang.String) ref;
1750       }
1751     }
1752     /**
1753      *
1754      *
1755      * <pre>
1756      * A description about this compliance check.
1757      * </pre>
1758      *
1759      * <code>string description = 2;</code>
1760      *
1761      * @return The bytes for description.
1762      */
getDescriptionBytes()1763     public com.google.protobuf.ByteString getDescriptionBytes() {
1764       java.lang.Object ref = description_;
1765       if (ref instanceof String) {
1766         com.google.protobuf.ByteString b =
1767             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1768         description_ = b;
1769         return b;
1770       } else {
1771         return (com.google.protobuf.ByteString) ref;
1772       }
1773     }
1774     /**
1775      *
1776      *
1777      * <pre>
1778      * A description about this compliance check.
1779      * </pre>
1780      *
1781      * <code>string description = 2;</code>
1782      *
1783      * @param value The description to set.
1784      * @return This builder for chaining.
1785      */
setDescription(java.lang.String value)1786     public Builder setDescription(java.lang.String value) {
1787       if (value == null) {
1788         throw new NullPointerException();
1789       }
1790       description_ = value;
1791       bitField0_ |= 0x00000002;
1792       onChanged();
1793       return this;
1794     }
1795     /**
1796      *
1797      *
1798      * <pre>
1799      * A description about this compliance check.
1800      * </pre>
1801      *
1802      * <code>string description = 2;</code>
1803      *
1804      * @return This builder for chaining.
1805      */
clearDescription()1806     public Builder clearDescription() {
1807       description_ = getDefaultInstance().getDescription();
1808       bitField0_ = (bitField0_ & ~0x00000002);
1809       onChanged();
1810       return this;
1811     }
1812     /**
1813      *
1814      *
1815      * <pre>
1816      * A description about this compliance check.
1817      * </pre>
1818      *
1819      * <code>string description = 2;</code>
1820      *
1821      * @param value The bytes for description to set.
1822      * @return This builder for chaining.
1823      */
setDescriptionBytes(com.google.protobuf.ByteString value)1824     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
1825       if (value == null) {
1826         throw new NullPointerException();
1827       }
1828       checkByteStringIsUtf8(value);
1829       description_ = value;
1830       bitField0_ |= 0x00000002;
1831       onChanged();
1832       return this;
1833     }
1834 
1835     private java.util.List<io.grafeas.v1.ComplianceVersion> version_ =
1836         java.util.Collections.emptyList();
1837 
ensureVersionIsMutable()1838     private void ensureVersionIsMutable() {
1839       if (!((bitField0_ & 0x00000004) != 0)) {
1840         version_ = new java.util.ArrayList<io.grafeas.v1.ComplianceVersion>(version_);
1841         bitField0_ |= 0x00000004;
1842       }
1843     }
1844 
1845     private com.google.protobuf.RepeatedFieldBuilderV3<
1846             io.grafeas.v1.ComplianceVersion,
1847             io.grafeas.v1.ComplianceVersion.Builder,
1848             io.grafeas.v1.ComplianceVersionOrBuilder>
1849         versionBuilder_;
1850 
1851     /**
1852      *
1853      *
1854      * <pre>
1855      * The OS and config versions the benchmark applies to.
1856      * </pre>
1857      *
1858      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
1859      */
getVersionList()1860     public java.util.List<io.grafeas.v1.ComplianceVersion> getVersionList() {
1861       if (versionBuilder_ == null) {
1862         return java.util.Collections.unmodifiableList(version_);
1863       } else {
1864         return versionBuilder_.getMessageList();
1865       }
1866     }
1867     /**
1868      *
1869      *
1870      * <pre>
1871      * The OS and config versions the benchmark applies to.
1872      * </pre>
1873      *
1874      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
1875      */
getVersionCount()1876     public int getVersionCount() {
1877       if (versionBuilder_ == null) {
1878         return version_.size();
1879       } else {
1880         return versionBuilder_.getCount();
1881       }
1882     }
1883     /**
1884      *
1885      *
1886      * <pre>
1887      * The OS and config versions the benchmark applies to.
1888      * </pre>
1889      *
1890      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
1891      */
getVersion(int index)1892     public io.grafeas.v1.ComplianceVersion getVersion(int index) {
1893       if (versionBuilder_ == null) {
1894         return version_.get(index);
1895       } else {
1896         return versionBuilder_.getMessage(index);
1897       }
1898     }
1899     /**
1900      *
1901      *
1902      * <pre>
1903      * The OS and config versions the benchmark applies to.
1904      * </pre>
1905      *
1906      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
1907      */
setVersion(int index, io.grafeas.v1.ComplianceVersion value)1908     public Builder setVersion(int index, io.grafeas.v1.ComplianceVersion value) {
1909       if (versionBuilder_ == null) {
1910         if (value == null) {
1911           throw new NullPointerException();
1912         }
1913         ensureVersionIsMutable();
1914         version_.set(index, value);
1915         onChanged();
1916       } else {
1917         versionBuilder_.setMessage(index, value);
1918       }
1919       return this;
1920     }
1921     /**
1922      *
1923      *
1924      * <pre>
1925      * The OS and config versions the benchmark applies to.
1926      * </pre>
1927      *
1928      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
1929      */
setVersion(int index, io.grafeas.v1.ComplianceVersion.Builder builderForValue)1930     public Builder setVersion(int index, io.grafeas.v1.ComplianceVersion.Builder builderForValue) {
1931       if (versionBuilder_ == null) {
1932         ensureVersionIsMutable();
1933         version_.set(index, builderForValue.build());
1934         onChanged();
1935       } else {
1936         versionBuilder_.setMessage(index, builderForValue.build());
1937       }
1938       return this;
1939     }
1940     /**
1941      *
1942      *
1943      * <pre>
1944      * The OS and config versions the benchmark applies to.
1945      * </pre>
1946      *
1947      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
1948      */
addVersion(io.grafeas.v1.ComplianceVersion value)1949     public Builder addVersion(io.grafeas.v1.ComplianceVersion value) {
1950       if (versionBuilder_ == null) {
1951         if (value == null) {
1952           throw new NullPointerException();
1953         }
1954         ensureVersionIsMutable();
1955         version_.add(value);
1956         onChanged();
1957       } else {
1958         versionBuilder_.addMessage(value);
1959       }
1960       return this;
1961     }
1962     /**
1963      *
1964      *
1965      * <pre>
1966      * The OS and config versions the benchmark applies to.
1967      * </pre>
1968      *
1969      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
1970      */
addVersion(int index, io.grafeas.v1.ComplianceVersion value)1971     public Builder addVersion(int index, io.grafeas.v1.ComplianceVersion value) {
1972       if (versionBuilder_ == null) {
1973         if (value == null) {
1974           throw new NullPointerException();
1975         }
1976         ensureVersionIsMutable();
1977         version_.add(index, value);
1978         onChanged();
1979       } else {
1980         versionBuilder_.addMessage(index, value);
1981       }
1982       return this;
1983     }
1984     /**
1985      *
1986      *
1987      * <pre>
1988      * The OS and config versions the benchmark applies to.
1989      * </pre>
1990      *
1991      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
1992      */
addVersion(io.grafeas.v1.ComplianceVersion.Builder builderForValue)1993     public Builder addVersion(io.grafeas.v1.ComplianceVersion.Builder builderForValue) {
1994       if (versionBuilder_ == null) {
1995         ensureVersionIsMutable();
1996         version_.add(builderForValue.build());
1997         onChanged();
1998       } else {
1999         versionBuilder_.addMessage(builderForValue.build());
2000       }
2001       return this;
2002     }
2003     /**
2004      *
2005      *
2006      * <pre>
2007      * The OS and config versions the benchmark applies to.
2008      * </pre>
2009      *
2010      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2011      */
addVersion(int index, io.grafeas.v1.ComplianceVersion.Builder builderForValue)2012     public Builder addVersion(int index, io.grafeas.v1.ComplianceVersion.Builder builderForValue) {
2013       if (versionBuilder_ == null) {
2014         ensureVersionIsMutable();
2015         version_.add(index, builderForValue.build());
2016         onChanged();
2017       } else {
2018         versionBuilder_.addMessage(index, builderForValue.build());
2019       }
2020       return this;
2021     }
2022     /**
2023      *
2024      *
2025      * <pre>
2026      * The OS and config versions the benchmark applies to.
2027      * </pre>
2028      *
2029      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2030      */
addAllVersion( java.lang.Iterable<? extends io.grafeas.v1.ComplianceVersion> values)2031     public Builder addAllVersion(
2032         java.lang.Iterable<? extends io.grafeas.v1.ComplianceVersion> values) {
2033       if (versionBuilder_ == null) {
2034         ensureVersionIsMutable();
2035         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, version_);
2036         onChanged();
2037       } else {
2038         versionBuilder_.addAllMessages(values);
2039       }
2040       return this;
2041     }
2042     /**
2043      *
2044      *
2045      * <pre>
2046      * The OS and config versions the benchmark applies to.
2047      * </pre>
2048      *
2049      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2050      */
clearVersion()2051     public Builder clearVersion() {
2052       if (versionBuilder_ == null) {
2053         version_ = java.util.Collections.emptyList();
2054         bitField0_ = (bitField0_ & ~0x00000004);
2055         onChanged();
2056       } else {
2057         versionBuilder_.clear();
2058       }
2059       return this;
2060     }
2061     /**
2062      *
2063      *
2064      * <pre>
2065      * The OS and config versions the benchmark applies to.
2066      * </pre>
2067      *
2068      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2069      */
removeVersion(int index)2070     public Builder removeVersion(int index) {
2071       if (versionBuilder_ == null) {
2072         ensureVersionIsMutable();
2073         version_.remove(index);
2074         onChanged();
2075       } else {
2076         versionBuilder_.remove(index);
2077       }
2078       return this;
2079     }
2080     /**
2081      *
2082      *
2083      * <pre>
2084      * The OS and config versions the benchmark applies to.
2085      * </pre>
2086      *
2087      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2088      */
getVersionBuilder(int index)2089     public io.grafeas.v1.ComplianceVersion.Builder getVersionBuilder(int index) {
2090       return getVersionFieldBuilder().getBuilder(index);
2091     }
2092     /**
2093      *
2094      *
2095      * <pre>
2096      * The OS and config versions the benchmark applies to.
2097      * </pre>
2098      *
2099      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2100      */
getVersionOrBuilder(int index)2101     public io.grafeas.v1.ComplianceVersionOrBuilder getVersionOrBuilder(int index) {
2102       if (versionBuilder_ == null) {
2103         return version_.get(index);
2104       } else {
2105         return versionBuilder_.getMessageOrBuilder(index);
2106       }
2107     }
2108     /**
2109      *
2110      *
2111      * <pre>
2112      * The OS and config versions the benchmark applies to.
2113      * </pre>
2114      *
2115      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2116      */
2117     public java.util.List<? extends io.grafeas.v1.ComplianceVersionOrBuilder>
getVersionOrBuilderList()2118         getVersionOrBuilderList() {
2119       if (versionBuilder_ != null) {
2120         return versionBuilder_.getMessageOrBuilderList();
2121       } else {
2122         return java.util.Collections.unmodifiableList(version_);
2123       }
2124     }
2125     /**
2126      *
2127      *
2128      * <pre>
2129      * The OS and config versions the benchmark applies to.
2130      * </pre>
2131      *
2132      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2133      */
addVersionBuilder()2134     public io.grafeas.v1.ComplianceVersion.Builder addVersionBuilder() {
2135       return getVersionFieldBuilder()
2136           .addBuilder(io.grafeas.v1.ComplianceVersion.getDefaultInstance());
2137     }
2138     /**
2139      *
2140      *
2141      * <pre>
2142      * The OS and config versions the benchmark applies to.
2143      * </pre>
2144      *
2145      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2146      */
addVersionBuilder(int index)2147     public io.grafeas.v1.ComplianceVersion.Builder addVersionBuilder(int index) {
2148       return getVersionFieldBuilder()
2149           .addBuilder(index, io.grafeas.v1.ComplianceVersion.getDefaultInstance());
2150     }
2151     /**
2152      *
2153      *
2154      * <pre>
2155      * The OS and config versions the benchmark applies to.
2156      * </pre>
2157      *
2158      * <code>repeated .grafeas.v1.ComplianceVersion version = 3;</code>
2159      */
getVersionBuilderList()2160     public java.util.List<io.grafeas.v1.ComplianceVersion.Builder> getVersionBuilderList() {
2161       return getVersionFieldBuilder().getBuilderList();
2162     }
2163 
2164     private com.google.protobuf.RepeatedFieldBuilderV3<
2165             io.grafeas.v1.ComplianceVersion,
2166             io.grafeas.v1.ComplianceVersion.Builder,
2167             io.grafeas.v1.ComplianceVersionOrBuilder>
getVersionFieldBuilder()2168         getVersionFieldBuilder() {
2169       if (versionBuilder_ == null) {
2170         versionBuilder_ =
2171             new com.google.protobuf.RepeatedFieldBuilderV3<
2172                 io.grafeas.v1.ComplianceVersion,
2173                 io.grafeas.v1.ComplianceVersion.Builder,
2174                 io.grafeas.v1.ComplianceVersionOrBuilder>(
2175                 version_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
2176         version_ = null;
2177       }
2178       return versionBuilder_;
2179     }
2180 
2181     private java.lang.Object rationale_ = "";
2182     /**
2183      *
2184      *
2185      * <pre>
2186      * A rationale for the existence of this compliance check.
2187      * </pre>
2188      *
2189      * <code>string rationale = 4;</code>
2190      *
2191      * @return The rationale.
2192      */
getRationale()2193     public java.lang.String getRationale() {
2194       java.lang.Object ref = rationale_;
2195       if (!(ref instanceof java.lang.String)) {
2196         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2197         java.lang.String s = bs.toStringUtf8();
2198         rationale_ = s;
2199         return s;
2200       } else {
2201         return (java.lang.String) ref;
2202       }
2203     }
2204     /**
2205      *
2206      *
2207      * <pre>
2208      * A rationale for the existence of this compliance check.
2209      * </pre>
2210      *
2211      * <code>string rationale = 4;</code>
2212      *
2213      * @return The bytes for rationale.
2214      */
getRationaleBytes()2215     public com.google.protobuf.ByteString getRationaleBytes() {
2216       java.lang.Object ref = rationale_;
2217       if (ref instanceof String) {
2218         com.google.protobuf.ByteString b =
2219             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2220         rationale_ = b;
2221         return b;
2222       } else {
2223         return (com.google.protobuf.ByteString) ref;
2224       }
2225     }
2226     /**
2227      *
2228      *
2229      * <pre>
2230      * A rationale for the existence of this compliance check.
2231      * </pre>
2232      *
2233      * <code>string rationale = 4;</code>
2234      *
2235      * @param value The rationale to set.
2236      * @return This builder for chaining.
2237      */
setRationale(java.lang.String value)2238     public Builder setRationale(java.lang.String value) {
2239       if (value == null) {
2240         throw new NullPointerException();
2241       }
2242       rationale_ = value;
2243       bitField0_ |= 0x00000008;
2244       onChanged();
2245       return this;
2246     }
2247     /**
2248      *
2249      *
2250      * <pre>
2251      * A rationale for the existence of this compliance check.
2252      * </pre>
2253      *
2254      * <code>string rationale = 4;</code>
2255      *
2256      * @return This builder for chaining.
2257      */
clearRationale()2258     public Builder clearRationale() {
2259       rationale_ = getDefaultInstance().getRationale();
2260       bitField0_ = (bitField0_ & ~0x00000008);
2261       onChanged();
2262       return this;
2263     }
2264     /**
2265      *
2266      *
2267      * <pre>
2268      * A rationale for the existence of this compliance check.
2269      * </pre>
2270      *
2271      * <code>string rationale = 4;</code>
2272      *
2273      * @param value The bytes for rationale to set.
2274      * @return This builder for chaining.
2275      */
setRationaleBytes(com.google.protobuf.ByteString value)2276     public Builder setRationaleBytes(com.google.protobuf.ByteString value) {
2277       if (value == null) {
2278         throw new NullPointerException();
2279       }
2280       checkByteStringIsUtf8(value);
2281       rationale_ = value;
2282       bitField0_ |= 0x00000008;
2283       onChanged();
2284       return this;
2285     }
2286 
2287     private java.lang.Object remediation_ = "";
2288     /**
2289      *
2290      *
2291      * <pre>
2292      * A description of remediation steps if the compliance check fails.
2293      * </pre>
2294      *
2295      * <code>string remediation = 5;</code>
2296      *
2297      * @return The remediation.
2298      */
getRemediation()2299     public java.lang.String getRemediation() {
2300       java.lang.Object ref = remediation_;
2301       if (!(ref instanceof java.lang.String)) {
2302         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2303         java.lang.String s = bs.toStringUtf8();
2304         remediation_ = s;
2305         return s;
2306       } else {
2307         return (java.lang.String) ref;
2308       }
2309     }
2310     /**
2311      *
2312      *
2313      * <pre>
2314      * A description of remediation steps if the compliance check fails.
2315      * </pre>
2316      *
2317      * <code>string remediation = 5;</code>
2318      *
2319      * @return The bytes for remediation.
2320      */
getRemediationBytes()2321     public com.google.protobuf.ByteString getRemediationBytes() {
2322       java.lang.Object ref = remediation_;
2323       if (ref instanceof String) {
2324         com.google.protobuf.ByteString b =
2325             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2326         remediation_ = b;
2327         return b;
2328       } else {
2329         return (com.google.protobuf.ByteString) ref;
2330       }
2331     }
2332     /**
2333      *
2334      *
2335      * <pre>
2336      * A description of remediation steps if the compliance check fails.
2337      * </pre>
2338      *
2339      * <code>string remediation = 5;</code>
2340      *
2341      * @param value The remediation to set.
2342      * @return This builder for chaining.
2343      */
setRemediation(java.lang.String value)2344     public Builder setRemediation(java.lang.String value) {
2345       if (value == null) {
2346         throw new NullPointerException();
2347       }
2348       remediation_ = value;
2349       bitField0_ |= 0x00000010;
2350       onChanged();
2351       return this;
2352     }
2353     /**
2354      *
2355      *
2356      * <pre>
2357      * A description of remediation steps if the compliance check fails.
2358      * </pre>
2359      *
2360      * <code>string remediation = 5;</code>
2361      *
2362      * @return This builder for chaining.
2363      */
clearRemediation()2364     public Builder clearRemediation() {
2365       remediation_ = getDefaultInstance().getRemediation();
2366       bitField0_ = (bitField0_ & ~0x00000010);
2367       onChanged();
2368       return this;
2369     }
2370     /**
2371      *
2372      *
2373      * <pre>
2374      * A description of remediation steps if the compliance check fails.
2375      * </pre>
2376      *
2377      * <code>string remediation = 5;</code>
2378      *
2379      * @param value The bytes for remediation to set.
2380      * @return This builder for chaining.
2381      */
setRemediationBytes(com.google.protobuf.ByteString value)2382     public Builder setRemediationBytes(com.google.protobuf.ByteString value) {
2383       if (value == null) {
2384         throw new NullPointerException();
2385       }
2386       checkByteStringIsUtf8(value);
2387       remediation_ = value;
2388       bitField0_ |= 0x00000010;
2389       onChanged();
2390       return this;
2391     }
2392 
2393     private com.google.protobuf.SingleFieldBuilderV3<
2394             io.grafeas.v1.ComplianceNote.CisBenchmark,
2395             io.grafeas.v1.ComplianceNote.CisBenchmark.Builder,
2396             io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder>
2397         cisBenchmarkBuilder_;
2398     /**
2399      * <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code>
2400      *
2401      * @return Whether the cisBenchmark field is set.
2402      */
2403     @java.lang.Override
hasCisBenchmark()2404     public boolean hasCisBenchmark() {
2405       return complianceTypeCase_ == 6;
2406     }
2407     /**
2408      * <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code>
2409      *
2410      * @return The cisBenchmark.
2411      */
2412     @java.lang.Override
getCisBenchmark()2413     public io.grafeas.v1.ComplianceNote.CisBenchmark getCisBenchmark() {
2414       if (cisBenchmarkBuilder_ == null) {
2415         if (complianceTypeCase_ == 6) {
2416           return (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_;
2417         }
2418         return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
2419       } else {
2420         if (complianceTypeCase_ == 6) {
2421           return cisBenchmarkBuilder_.getMessage();
2422         }
2423         return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
2424       }
2425     }
2426     /** <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code> */
setCisBenchmark(io.grafeas.v1.ComplianceNote.CisBenchmark value)2427     public Builder setCisBenchmark(io.grafeas.v1.ComplianceNote.CisBenchmark value) {
2428       if (cisBenchmarkBuilder_ == null) {
2429         if (value == null) {
2430           throw new NullPointerException();
2431         }
2432         complianceType_ = value;
2433         onChanged();
2434       } else {
2435         cisBenchmarkBuilder_.setMessage(value);
2436       }
2437       complianceTypeCase_ = 6;
2438       return this;
2439     }
2440     /** <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code> */
setCisBenchmark( io.grafeas.v1.ComplianceNote.CisBenchmark.Builder builderForValue)2441     public Builder setCisBenchmark(
2442         io.grafeas.v1.ComplianceNote.CisBenchmark.Builder builderForValue) {
2443       if (cisBenchmarkBuilder_ == null) {
2444         complianceType_ = builderForValue.build();
2445         onChanged();
2446       } else {
2447         cisBenchmarkBuilder_.setMessage(builderForValue.build());
2448       }
2449       complianceTypeCase_ = 6;
2450       return this;
2451     }
2452     /** <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code> */
mergeCisBenchmark(io.grafeas.v1.ComplianceNote.CisBenchmark value)2453     public Builder mergeCisBenchmark(io.grafeas.v1.ComplianceNote.CisBenchmark value) {
2454       if (cisBenchmarkBuilder_ == null) {
2455         if (complianceTypeCase_ == 6
2456             && complianceType_ != io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance()) {
2457           complianceType_ =
2458               io.grafeas.v1.ComplianceNote.CisBenchmark.newBuilder(
2459                       (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_)
2460                   .mergeFrom(value)
2461                   .buildPartial();
2462         } else {
2463           complianceType_ = value;
2464         }
2465         onChanged();
2466       } else {
2467         if (complianceTypeCase_ == 6) {
2468           cisBenchmarkBuilder_.mergeFrom(value);
2469         } else {
2470           cisBenchmarkBuilder_.setMessage(value);
2471         }
2472       }
2473       complianceTypeCase_ = 6;
2474       return this;
2475     }
2476     /** <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code> */
clearCisBenchmark()2477     public Builder clearCisBenchmark() {
2478       if (cisBenchmarkBuilder_ == null) {
2479         if (complianceTypeCase_ == 6) {
2480           complianceTypeCase_ = 0;
2481           complianceType_ = null;
2482           onChanged();
2483         }
2484       } else {
2485         if (complianceTypeCase_ == 6) {
2486           complianceTypeCase_ = 0;
2487           complianceType_ = null;
2488         }
2489         cisBenchmarkBuilder_.clear();
2490       }
2491       return this;
2492     }
2493     /** <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code> */
getCisBenchmarkBuilder()2494     public io.grafeas.v1.ComplianceNote.CisBenchmark.Builder getCisBenchmarkBuilder() {
2495       return getCisBenchmarkFieldBuilder().getBuilder();
2496     }
2497     /** <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code> */
2498     @java.lang.Override
getCisBenchmarkOrBuilder()2499     public io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder getCisBenchmarkOrBuilder() {
2500       if ((complianceTypeCase_ == 6) && (cisBenchmarkBuilder_ != null)) {
2501         return cisBenchmarkBuilder_.getMessageOrBuilder();
2502       } else {
2503         if (complianceTypeCase_ == 6) {
2504           return (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_;
2505         }
2506         return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
2507       }
2508     }
2509     /** <code>.grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;</code> */
2510     private com.google.protobuf.SingleFieldBuilderV3<
2511             io.grafeas.v1.ComplianceNote.CisBenchmark,
2512             io.grafeas.v1.ComplianceNote.CisBenchmark.Builder,
2513             io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder>
getCisBenchmarkFieldBuilder()2514         getCisBenchmarkFieldBuilder() {
2515       if (cisBenchmarkBuilder_ == null) {
2516         if (!(complianceTypeCase_ == 6)) {
2517           complianceType_ = io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
2518         }
2519         cisBenchmarkBuilder_ =
2520             new com.google.protobuf.SingleFieldBuilderV3<
2521                 io.grafeas.v1.ComplianceNote.CisBenchmark,
2522                 io.grafeas.v1.ComplianceNote.CisBenchmark.Builder,
2523                 io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder>(
2524                 (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_,
2525                 getParentForChildren(),
2526                 isClean());
2527         complianceType_ = null;
2528       }
2529       complianceTypeCase_ = 6;
2530       onChanged();
2531       return cisBenchmarkBuilder_;
2532     }
2533 
2534     private com.google.protobuf.ByteString scanInstructions_ = com.google.protobuf.ByteString.EMPTY;
2535     /**
2536      *
2537      *
2538      * <pre>
2539      * Serialized scan instructions with a predefined format.
2540      * </pre>
2541      *
2542      * <code>bytes scan_instructions = 7;</code>
2543      *
2544      * @return The scanInstructions.
2545      */
2546     @java.lang.Override
getScanInstructions()2547     public com.google.protobuf.ByteString getScanInstructions() {
2548       return scanInstructions_;
2549     }
2550     /**
2551      *
2552      *
2553      * <pre>
2554      * Serialized scan instructions with a predefined format.
2555      * </pre>
2556      *
2557      * <code>bytes scan_instructions = 7;</code>
2558      *
2559      * @param value The scanInstructions to set.
2560      * @return This builder for chaining.
2561      */
setScanInstructions(com.google.protobuf.ByteString value)2562     public Builder setScanInstructions(com.google.protobuf.ByteString value) {
2563       if (value == null) {
2564         throw new NullPointerException();
2565       }
2566       scanInstructions_ = value;
2567       bitField0_ |= 0x00000040;
2568       onChanged();
2569       return this;
2570     }
2571     /**
2572      *
2573      *
2574      * <pre>
2575      * Serialized scan instructions with a predefined format.
2576      * </pre>
2577      *
2578      * <code>bytes scan_instructions = 7;</code>
2579      *
2580      * @return This builder for chaining.
2581      */
clearScanInstructions()2582     public Builder clearScanInstructions() {
2583       bitField0_ = (bitField0_ & ~0x00000040);
2584       scanInstructions_ = getDefaultInstance().getScanInstructions();
2585       onChanged();
2586       return this;
2587     }
2588 
2589     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2590     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2591       return super.setUnknownFields(unknownFields);
2592     }
2593 
2594     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2595     public final Builder mergeUnknownFields(
2596         final com.google.protobuf.UnknownFieldSet unknownFields) {
2597       return super.mergeUnknownFields(unknownFields);
2598     }
2599 
2600     // @@protoc_insertion_point(builder_scope:grafeas.v1.ComplianceNote)
2601   }
2602 
2603   // @@protoc_insertion_point(class_scope:grafeas.v1.ComplianceNote)
2604   private static final io.grafeas.v1.ComplianceNote DEFAULT_INSTANCE;
2605 
2606   static {
2607     DEFAULT_INSTANCE = new io.grafeas.v1.ComplianceNote();
2608   }
2609 
getDefaultInstance()2610   public static io.grafeas.v1.ComplianceNote getDefaultInstance() {
2611     return DEFAULT_INSTANCE;
2612   }
2613 
2614   private static final com.google.protobuf.Parser<ComplianceNote> PARSER =
2615       new com.google.protobuf.AbstractParser<ComplianceNote>() {
2616         @java.lang.Override
2617         public ComplianceNote parsePartialFrom(
2618             com.google.protobuf.CodedInputStream input,
2619             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2620             throws com.google.protobuf.InvalidProtocolBufferException {
2621           Builder builder = newBuilder();
2622           try {
2623             builder.mergeFrom(input, extensionRegistry);
2624           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2625             throw e.setUnfinishedMessage(builder.buildPartial());
2626           } catch (com.google.protobuf.UninitializedMessageException e) {
2627             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2628           } catch (java.io.IOException e) {
2629             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2630                 .setUnfinishedMessage(builder.buildPartial());
2631           }
2632           return builder.buildPartial();
2633         }
2634       };
2635 
parser()2636   public static com.google.protobuf.Parser<ComplianceNote> parser() {
2637     return PARSER;
2638   }
2639 
2640   @java.lang.Override
getParserForType()2641   public com.google.protobuf.Parser<ComplianceNote> getParserForType() {
2642     return PARSER;
2643   }
2644 
2645   @java.lang.Override
getDefaultInstanceForType()2646   public io.grafeas.v1.ComplianceNote getDefaultInstanceForType() {
2647     return DEFAULT_INSTANCE;
2648   }
2649 }
2650