• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/vex.proto
19 
20 package io.grafeas.v1;
21 
22 /**
23  *
24  *
25  * <pre>
26  * A single VulnerabilityAssessmentNote represents
27  * one particular product's vulnerability assessment for one CVE.
28  * </pre>
29  *
30  * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote}
31  */
32 public final class VulnerabilityAssessmentNote extends com.google.protobuf.GeneratedMessageV3
33     implements
34     // @@protoc_insertion_point(message_implements:grafeas.v1.VulnerabilityAssessmentNote)
35     VulnerabilityAssessmentNoteOrBuilder {
36   private static final long serialVersionUID = 0L;
37   // Use VulnerabilityAssessmentNote.newBuilder() to construct.
VulnerabilityAssessmentNote(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38   private VulnerabilityAssessmentNote(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
39     super(builder);
40   }
41 
VulnerabilityAssessmentNote()42   private VulnerabilityAssessmentNote() {
43     title_ = "";
44     shortDescription_ = "";
45     longDescription_ = "";
46     languageCode_ = "";
47   }
48 
49   @java.lang.Override
50   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)51   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
52     return new VulnerabilityAssessmentNote();
53   }
54 
55   @java.lang.Override
getUnknownFields()56   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
57     return this.unknownFields;
58   }
59 
getDescriptor()60   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
61     return io.grafeas.v1.Vex.internal_static_grafeas_v1_VulnerabilityAssessmentNote_descriptor;
62   }
63 
64   @java.lang.Override
65   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()66       internalGetFieldAccessorTable() {
67     return io.grafeas.v1.Vex
68         .internal_static_grafeas_v1_VulnerabilityAssessmentNote_fieldAccessorTable
69         .ensureFieldAccessorsInitialized(
70             io.grafeas.v1.VulnerabilityAssessmentNote.class,
71             io.grafeas.v1.VulnerabilityAssessmentNote.Builder.class);
72   }
73 
74   public interface PublisherOrBuilder
75       extends
76       // @@protoc_insertion_point(interface_extends:grafeas.v1.VulnerabilityAssessmentNote.Publisher)
77       com.google.protobuf.MessageOrBuilder {
78 
79     /**
80      *
81      *
82      * <pre>
83      * Name of the publisher.
84      * Examples: 'Google', 'Google Cloud Platform'.
85      * </pre>
86      *
87      * <code>string name = 1;</code>
88      *
89      * @return The name.
90      */
getName()91     java.lang.String getName();
92     /**
93      *
94      *
95      * <pre>
96      * Name of the publisher.
97      * Examples: 'Google', 'Google Cloud Platform'.
98      * </pre>
99      *
100      * <code>string name = 1;</code>
101      *
102      * @return The bytes for name.
103      */
getNameBytes()104     com.google.protobuf.ByteString getNameBytes();
105 
106     /**
107      *
108      *
109      * <pre>
110      * Provides information about the authority of the issuing party to
111      * release the document, in particular, the party's constituency and
112      * responsibilities or other obligations.
113      * </pre>
114      *
115      * <code>string issuing_authority = 2;</code>
116      *
117      * @return The issuingAuthority.
118      */
getIssuingAuthority()119     java.lang.String getIssuingAuthority();
120     /**
121      *
122      *
123      * <pre>
124      * Provides information about the authority of the issuing party to
125      * release the document, in particular, the party's constituency and
126      * responsibilities or other obligations.
127      * </pre>
128      *
129      * <code>string issuing_authority = 2;</code>
130      *
131      * @return The bytes for issuingAuthority.
132      */
getIssuingAuthorityBytes()133     com.google.protobuf.ByteString getIssuingAuthorityBytes();
134 
135     /**
136      *
137      *
138      * <pre>
139      * The context or namespace.
140      * Contains a URL which is under control of the issuing party and can
141      * be used as a globally unique identifier for that issuing party.
142      * Example: https://csaf.io
143      * </pre>
144      *
145      * <code>string publisher_namespace = 3;</code>
146      *
147      * @return The publisherNamespace.
148      */
getPublisherNamespace()149     java.lang.String getPublisherNamespace();
150     /**
151      *
152      *
153      * <pre>
154      * The context or namespace.
155      * Contains a URL which is under control of the issuing party and can
156      * be used as a globally unique identifier for that issuing party.
157      * Example: https://csaf.io
158      * </pre>
159      *
160      * <code>string publisher_namespace = 3;</code>
161      *
162      * @return The bytes for publisherNamespace.
163      */
getPublisherNamespaceBytes()164     com.google.protobuf.ByteString getPublisherNamespaceBytes();
165   }
166   /**
167    *
168    *
169    * <pre>
170    * Publisher contains information about the publisher of
171    * this Note.
172    * (-- api-linter: core::0123::resource-annotation=disabled
173    *     aip.dev/not-precedent: Publisher is not a separate resource. --)
174    * </pre>
175    *
176    * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Publisher}
177    */
178   public static final class Publisher extends com.google.protobuf.GeneratedMessageV3
179       implements
180       // @@protoc_insertion_point(message_implements:grafeas.v1.VulnerabilityAssessmentNote.Publisher)
181       PublisherOrBuilder {
182     private static final long serialVersionUID = 0L;
183     // Use Publisher.newBuilder() to construct.
Publisher(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)184     private Publisher(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
185       super(builder);
186     }
187 
Publisher()188     private Publisher() {
189       name_ = "";
190       issuingAuthority_ = "";
191       publisherNamespace_ = "";
192     }
193 
194     @java.lang.Override
195     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)196     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
197       return new Publisher();
198     }
199 
200     @java.lang.Override
getUnknownFields()201     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
202       return this.unknownFields;
203     }
204 
getDescriptor()205     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
206       return io.grafeas.v1.Vex
207           .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Publisher_descriptor;
208     }
209 
210     @java.lang.Override
211     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()212         internalGetFieldAccessorTable() {
213       return io.grafeas.v1.Vex
214           .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Publisher_fieldAccessorTable
215           .ensureFieldAccessorsInitialized(
216               io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.class,
217               io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.Builder.class);
218     }
219 
220     public static final int NAME_FIELD_NUMBER = 1;
221 
222     @SuppressWarnings("serial")
223     private volatile java.lang.Object name_ = "";
224     /**
225      *
226      *
227      * <pre>
228      * Name of the publisher.
229      * Examples: 'Google', 'Google Cloud Platform'.
230      * </pre>
231      *
232      * <code>string name = 1;</code>
233      *
234      * @return The name.
235      */
236     @java.lang.Override
getName()237     public java.lang.String getName() {
238       java.lang.Object ref = name_;
239       if (ref instanceof java.lang.String) {
240         return (java.lang.String) ref;
241       } else {
242         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
243         java.lang.String s = bs.toStringUtf8();
244         name_ = s;
245         return s;
246       }
247     }
248     /**
249      *
250      *
251      * <pre>
252      * Name of the publisher.
253      * Examples: 'Google', 'Google Cloud Platform'.
254      * </pre>
255      *
256      * <code>string name = 1;</code>
257      *
258      * @return The bytes for name.
259      */
260     @java.lang.Override
getNameBytes()261     public com.google.protobuf.ByteString getNameBytes() {
262       java.lang.Object ref = name_;
263       if (ref instanceof java.lang.String) {
264         com.google.protobuf.ByteString b =
265             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
266         name_ = b;
267         return b;
268       } else {
269         return (com.google.protobuf.ByteString) ref;
270       }
271     }
272 
273     public static final int ISSUING_AUTHORITY_FIELD_NUMBER = 2;
274 
275     @SuppressWarnings("serial")
276     private volatile java.lang.Object issuingAuthority_ = "";
277     /**
278      *
279      *
280      * <pre>
281      * Provides information about the authority of the issuing party to
282      * release the document, in particular, the party's constituency and
283      * responsibilities or other obligations.
284      * </pre>
285      *
286      * <code>string issuing_authority = 2;</code>
287      *
288      * @return The issuingAuthority.
289      */
290     @java.lang.Override
getIssuingAuthority()291     public java.lang.String getIssuingAuthority() {
292       java.lang.Object ref = issuingAuthority_;
293       if (ref instanceof java.lang.String) {
294         return (java.lang.String) ref;
295       } else {
296         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
297         java.lang.String s = bs.toStringUtf8();
298         issuingAuthority_ = s;
299         return s;
300       }
301     }
302     /**
303      *
304      *
305      * <pre>
306      * Provides information about the authority of the issuing party to
307      * release the document, in particular, the party's constituency and
308      * responsibilities or other obligations.
309      * </pre>
310      *
311      * <code>string issuing_authority = 2;</code>
312      *
313      * @return The bytes for issuingAuthority.
314      */
315     @java.lang.Override
getIssuingAuthorityBytes()316     public com.google.protobuf.ByteString getIssuingAuthorityBytes() {
317       java.lang.Object ref = issuingAuthority_;
318       if (ref instanceof java.lang.String) {
319         com.google.protobuf.ByteString b =
320             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
321         issuingAuthority_ = b;
322         return b;
323       } else {
324         return (com.google.protobuf.ByteString) ref;
325       }
326     }
327 
328     public static final int PUBLISHER_NAMESPACE_FIELD_NUMBER = 3;
329 
330     @SuppressWarnings("serial")
331     private volatile java.lang.Object publisherNamespace_ = "";
332     /**
333      *
334      *
335      * <pre>
336      * The context or namespace.
337      * Contains a URL which is under control of the issuing party and can
338      * be used as a globally unique identifier for that issuing party.
339      * Example: https://csaf.io
340      * </pre>
341      *
342      * <code>string publisher_namespace = 3;</code>
343      *
344      * @return The publisherNamespace.
345      */
346     @java.lang.Override
getPublisherNamespace()347     public java.lang.String getPublisherNamespace() {
348       java.lang.Object ref = publisherNamespace_;
349       if (ref instanceof java.lang.String) {
350         return (java.lang.String) ref;
351       } else {
352         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
353         java.lang.String s = bs.toStringUtf8();
354         publisherNamespace_ = s;
355         return s;
356       }
357     }
358     /**
359      *
360      *
361      * <pre>
362      * The context or namespace.
363      * Contains a URL which is under control of the issuing party and can
364      * be used as a globally unique identifier for that issuing party.
365      * Example: https://csaf.io
366      * </pre>
367      *
368      * <code>string publisher_namespace = 3;</code>
369      *
370      * @return The bytes for publisherNamespace.
371      */
372     @java.lang.Override
getPublisherNamespaceBytes()373     public com.google.protobuf.ByteString getPublisherNamespaceBytes() {
374       java.lang.Object ref = publisherNamespace_;
375       if (ref instanceof java.lang.String) {
376         com.google.protobuf.ByteString b =
377             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
378         publisherNamespace_ = b;
379         return b;
380       } else {
381         return (com.google.protobuf.ByteString) ref;
382       }
383     }
384 
385     private byte memoizedIsInitialized = -1;
386 
387     @java.lang.Override
isInitialized()388     public final boolean isInitialized() {
389       byte isInitialized = memoizedIsInitialized;
390       if (isInitialized == 1) return true;
391       if (isInitialized == 0) return false;
392 
393       memoizedIsInitialized = 1;
394       return true;
395     }
396 
397     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)398     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
399       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
400         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
401       }
402       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuingAuthority_)) {
403         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, issuingAuthority_);
404       }
405       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisherNamespace_)) {
406         com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publisherNamespace_);
407       }
408       getUnknownFields().writeTo(output);
409     }
410 
411     @java.lang.Override
getSerializedSize()412     public int getSerializedSize() {
413       int size = memoizedSize;
414       if (size != -1) return size;
415 
416       size = 0;
417       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
418         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
419       }
420       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuingAuthority_)) {
421         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, issuingAuthority_);
422       }
423       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisherNamespace_)) {
424         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publisherNamespace_);
425       }
426       size += getUnknownFields().getSerializedSize();
427       memoizedSize = size;
428       return size;
429     }
430 
431     @java.lang.Override
equals(final java.lang.Object obj)432     public boolean equals(final java.lang.Object obj) {
433       if (obj == this) {
434         return true;
435       }
436       if (!(obj instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Publisher)) {
437         return super.equals(obj);
438       }
439       io.grafeas.v1.VulnerabilityAssessmentNote.Publisher other =
440           (io.grafeas.v1.VulnerabilityAssessmentNote.Publisher) obj;
441 
442       if (!getName().equals(other.getName())) return false;
443       if (!getIssuingAuthority().equals(other.getIssuingAuthority())) return false;
444       if (!getPublisherNamespace().equals(other.getPublisherNamespace())) return false;
445       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
446       return true;
447     }
448 
449     @java.lang.Override
hashCode()450     public int hashCode() {
451       if (memoizedHashCode != 0) {
452         return memoizedHashCode;
453       }
454       int hash = 41;
455       hash = (19 * hash) + getDescriptor().hashCode();
456       hash = (37 * hash) + NAME_FIELD_NUMBER;
457       hash = (53 * hash) + getName().hashCode();
458       hash = (37 * hash) + ISSUING_AUTHORITY_FIELD_NUMBER;
459       hash = (53 * hash) + getIssuingAuthority().hashCode();
460       hash = (37 * hash) + PUBLISHER_NAMESPACE_FIELD_NUMBER;
461       hash = (53 * hash) + getPublisherNamespace().hashCode();
462       hash = (29 * hash) + getUnknownFields().hashCode();
463       memoizedHashCode = hash;
464       return hash;
465     }
466 
parseFrom( java.nio.ByteBuffer data)467     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(
468         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
469       return PARSER.parseFrom(data);
470     }
471 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)472     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(
473         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
474         throws com.google.protobuf.InvalidProtocolBufferException {
475       return PARSER.parseFrom(data, extensionRegistry);
476     }
477 
parseFrom( com.google.protobuf.ByteString data)478     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(
479         com.google.protobuf.ByteString data)
480         throws com.google.protobuf.InvalidProtocolBufferException {
481       return PARSER.parseFrom(data);
482     }
483 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)484     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(
485         com.google.protobuf.ByteString data,
486         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
487         throws com.google.protobuf.InvalidProtocolBufferException {
488       return PARSER.parseFrom(data, extensionRegistry);
489     }
490 
parseFrom(byte[] data)491     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(byte[] data)
492         throws com.google.protobuf.InvalidProtocolBufferException {
493       return PARSER.parseFrom(data);
494     }
495 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)496     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(
497         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
498         throws com.google.protobuf.InvalidProtocolBufferException {
499       return PARSER.parseFrom(data, extensionRegistry);
500     }
501 
parseFrom( java.io.InputStream input)502     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(
503         java.io.InputStream input) throws java.io.IOException {
504       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
505     }
506 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)507     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(
508         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
509         throws java.io.IOException {
510       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
511           PARSER, input, extensionRegistry);
512     }
513 
parseDelimitedFrom( java.io.InputStream input)514     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseDelimitedFrom(
515         java.io.InputStream input) throws java.io.IOException {
516       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
517     }
518 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)519     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseDelimitedFrom(
520         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
521         throws java.io.IOException {
522       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
523           PARSER, input, extensionRegistry);
524     }
525 
parseFrom( com.google.protobuf.CodedInputStream input)526     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(
527         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
528       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
529     }
530 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)531     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher parseFrom(
532         com.google.protobuf.CodedInputStream input,
533         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
534         throws java.io.IOException {
535       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
536           PARSER, input, extensionRegistry);
537     }
538 
539     @java.lang.Override
newBuilderForType()540     public Builder newBuilderForType() {
541       return newBuilder();
542     }
543 
newBuilder()544     public static Builder newBuilder() {
545       return DEFAULT_INSTANCE.toBuilder();
546     }
547 
newBuilder( io.grafeas.v1.VulnerabilityAssessmentNote.Publisher prototype)548     public static Builder newBuilder(
549         io.grafeas.v1.VulnerabilityAssessmentNote.Publisher prototype) {
550       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
551     }
552 
553     @java.lang.Override
toBuilder()554     public Builder toBuilder() {
555       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
556     }
557 
558     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)559     protected Builder newBuilderForType(
560         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
561       Builder builder = new Builder(parent);
562       return builder;
563     }
564     /**
565      *
566      *
567      * <pre>
568      * Publisher contains information about the publisher of
569      * this Note.
570      * (-- api-linter: core::0123::resource-annotation=disabled
571      *     aip.dev/not-precedent: Publisher is not a separate resource. --)
572      * </pre>
573      *
574      * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Publisher}
575      */
576     public static final class Builder
577         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
578         implements
579         // @@protoc_insertion_point(builder_implements:grafeas.v1.VulnerabilityAssessmentNote.Publisher)
580         io.grafeas.v1.VulnerabilityAssessmentNote.PublisherOrBuilder {
getDescriptor()581       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
582         return io.grafeas.v1.Vex
583             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Publisher_descriptor;
584       }
585 
586       @java.lang.Override
587       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()588           internalGetFieldAccessorTable() {
589         return io.grafeas.v1.Vex
590             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Publisher_fieldAccessorTable
591             .ensureFieldAccessorsInitialized(
592                 io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.class,
593                 io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.Builder.class);
594       }
595 
596       // Construct using io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.newBuilder()
Builder()597       private Builder() {}
598 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)599       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
600         super(parent);
601       }
602 
603       @java.lang.Override
clear()604       public Builder clear() {
605         super.clear();
606         bitField0_ = 0;
607         name_ = "";
608         issuingAuthority_ = "";
609         publisherNamespace_ = "";
610         return this;
611       }
612 
613       @java.lang.Override
getDescriptorForType()614       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
615         return io.grafeas.v1.Vex
616             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Publisher_descriptor;
617       }
618 
619       @java.lang.Override
getDefaultInstanceForType()620       public io.grafeas.v1.VulnerabilityAssessmentNote.Publisher getDefaultInstanceForType() {
621         return io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.getDefaultInstance();
622       }
623 
624       @java.lang.Override
build()625       public io.grafeas.v1.VulnerabilityAssessmentNote.Publisher build() {
626         io.grafeas.v1.VulnerabilityAssessmentNote.Publisher result = buildPartial();
627         if (!result.isInitialized()) {
628           throw newUninitializedMessageException(result);
629         }
630         return result;
631       }
632 
633       @java.lang.Override
buildPartial()634       public io.grafeas.v1.VulnerabilityAssessmentNote.Publisher buildPartial() {
635         io.grafeas.v1.VulnerabilityAssessmentNote.Publisher result =
636             new io.grafeas.v1.VulnerabilityAssessmentNote.Publisher(this);
637         if (bitField0_ != 0) {
638           buildPartial0(result);
639         }
640         onBuilt();
641         return result;
642       }
643 
buildPartial0(io.grafeas.v1.VulnerabilityAssessmentNote.Publisher result)644       private void buildPartial0(io.grafeas.v1.VulnerabilityAssessmentNote.Publisher result) {
645         int from_bitField0_ = bitField0_;
646         if (((from_bitField0_ & 0x00000001) != 0)) {
647           result.name_ = name_;
648         }
649         if (((from_bitField0_ & 0x00000002) != 0)) {
650           result.issuingAuthority_ = issuingAuthority_;
651         }
652         if (((from_bitField0_ & 0x00000004) != 0)) {
653           result.publisherNamespace_ = publisherNamespace_;
654         }
655       }
656 
657       @java.lang.Override
clone()658       public Builder clone() {
659         return super.clone();
660       }
661 
662       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)663       public Builder setField(
664           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
665         return super.setField(field, value);
666       }
667 
668       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)669       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
670         return super.clearField(field);
671       }
672 
673       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)674       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
675         return super.clearOneof(oneof);
676       }
677 
678       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)679       public Builder setRepeatedField(
680           com.google.protobuf.Descriptors.FieldDescriptor field,
681           int index,
682           java.lang.Object value) {
683         return super.setRepeatedField(field, index, value);
684       }
685 
686       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)687       public Builder addRepeatedField(
688           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
689         return super.addRepeatedField(field, value);
690       }
691 
692       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)693       public Builder mergeFrom(com.google.protobuf.Message other) {
694         if (other instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Publisher) {
695           return mergeFrom((io.grafeas.v1.VulnerabilityAssessmentNote.Publisher) other);
696         } else {
697           super.mergeFrom(other);
698           return this;
699         }
700       }
701 
mergeFrom(io.grafeas.v1.VulnerabilityAssessmentNote.Publisher other)702       public Builder mergeFrom(io.grafeas.v1.VulnerabilityAssessmentNote.Publisher other) {
703         if (other == io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.getDefaultInstance())
704           return this;
705         if (!other.getName().isEmpty()) {
706           name_ = other.name_;
707           bitField0_ |= 0x00000001;
708           onChanged();
709         }
710         if (!other.getIssuingAuthority().isEmpty()) {
711           issuingAuthority_ = other.issuingAuthority_;
712           bitField0_ |= 0x00000002;
713           onChanged();
714         }
715         if (!other.getPublisherNamespace().isEmpty()) {
716           publisherNamespace_ = other.publisherNamespace_;
717           bitField0_ |= 0x00000004;
718           onChanged();
719         }
720         this.mergeUnknownFields(other.getUnknownFields());
721         onChanged();
722         return this;
723       }
724 
725       @java.lang.Override
isInitialized()726       public final boolean isInitialized() {
727         return true;
728       }
729 
730       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)731       public Builder mergeFrom(
732           com.google.protobuf.CodedInputStream input,
733           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
734           throws java.io.IOException {
735         if (extensionRegistry == null) {
736           throw new java.lang.NullPointerException();
737         }
738         try {
739           boolean done = false;
740           while (!done) {
741             int tag = input.readTag();
742             switch (tag) {
743               case 0:
744                 done = true;
745                 break;
746               case 10:
747                 {
748                   name_ = input.readStringRequireUtf8();
749                   bitField0_ |= 0x00000001;
750                   break;
751                 } // case 10
752               case 18:
753                 {
754                   issuingAuthority_ = input.readStringRequireUtf8();
755                   bitField0_ |= 0x00000002;
756                   break;
757                 } // case 18
758               case 26:
759                 {
760                   publisherNamespace_ = input.readStringRequireUtf8();
761                   bitField0_ |= 0x00000004;
762                   break;
763                 } // case 26
764               default:
765                 {
766                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
767                     done = true; // was an endgroup tag
768                   }
769                   break;
770                 } // default:
771             } // switch (tag)
772           } // while (!done)
773         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
774           throw e.unwrapIOException();
775         } finally {
776           onChanged();
777         } // finally
778         return this;
779       }
780 
781       private int bitField0_;
782 
783       private java.lang.Object name_ = "";
784       /**
785        *
786        *
787        * <pre>
788        * Name of the publisher.
789        * Examples: 'Google', 'Google Cloud Platform'.
790        * </pre>
791        *
792        * <code>string name = 1;</code>
793        *
794        * @return The name.
795        */
getName()796       public java.lang.String getName() {
797         java.lang.Object ref = name_;
798         if (!(ref instanceof java.lang.String)) {
799           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
800           java.lang.String s = bs.toStringUtf8();
801           name_ = s;
802           return s;
803         } else {
804           return (java.lang.String) ref;
805         }
806       }
807       /**
808        *
809        *
810        * <pre>
811        * Name of the publisher.
812        * Examples: 'Google', 'Google Cloud Platform'.
813        * </pre>
814        *
815        * <code>string name = 1;</code>
816        *
817        * @return The bytes for name.
818        */
getNameBytes()819       public com.google.protobuf.ByteString getNameBytes() {
820         java.lang.Object ref = name_;
821         if (ref instanceof String) {
822           com.google.protobuf.ByteString b =
823               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
824           name_ = b;
825           return b;
826         } else {
827           return (com.google.protobuf.ByteString) ref;
828         }
829       }
830       /**
831        *
832        *
833        * <pre>
834        * Name of the publisher.
835        * Examples: 'Google', 'Google Cloud Platform'.
836        * </pre>
837        *
838        * <code>string name = 1;</code>
839        *
840        * @param value The name to set.
841        * @return This builder for chaining.
842        */
setName(java.lang.String value)843       public Builder setName(java.lang.String value) {
844         if (value == null) {
845           throw new NullPointerException();
846         }
847         name_ = value;
848         bitField0_ |= 0x00000001;
849         onChanged();
850         return this;
851       }
852       /**
853        *
854        *
855        * <pre>
856        * Name of the publisher.
857        * Examples: 'Google', 'Google Cloud Platform'.
858        * </pre>
859        *
860        * <code>string name = 1;</code>
861        *
862        * @return This builder for chaining.
863        */
clearName()864       public Builder clearName() {
865         name_ = getDefaultInstance().getName();
866         bitField0_ = (bitField0_ & ~0x00000001);
867         onChanged();
868         return this;
869       }
870       /**
871        *
872        *
873        * <pre>
874        * Name of the publisher.
875        * Examples: 'Google', 'Google Cloud Platform'.
876        * </pre>
877        *
878        * <code>string name = 1;</code>
879        *
880        * @param value The bytes for name to set.
881        * @return This builder for chaining.
882        */
setNameBytes(com.google.protobuf.ByteString value)883       public Builder setNameBytes(com.google.protobuf.ByteString value) {
884         if (value == null) {
885           throw new NullPointerException();
886         }
887         checkByteStringIsUtf8(value);
888         name_ = value;
889         bitField0_ |= 0x00000001;
890         onChanged();
891         return this;
892       }
893 
894       private java.lang.Object issuingAuthority_ = "";
895       /**
896        *
897        *
898        * <pre>
899        * Provides information about the authority of the issuing party to
900        * release the document, in particular, the party's constituency and
901        * responsibilities or other obligations.
902        * </pre>
903        *
904        * <code>string issuing_authority = 2;</code>
905        *
906        * @return The issuingAuthority.
907        */
getIssuingAuthority()908       public java.lang.String getIssuingAuthority() {
909         java.lang.Object ref = issuingAuthority_;
910         if (!(ref instanceof java.lang.String)) {
911           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
912           java.lang.String s = bs.toStringUtf8();
913           issuingAuthority_ = s;
914           return s;
915         } else {
916           return (java.lang.String) ref;
917         }
918       }
919       /**
920        *
921        *
922        * <pre>
923        * Provides information about the authority of the issuing party to
924        * release the document, in particular, the party's constituency and
925        * responsibilities or other obligations.
926        * </pre>
927        *
928        * <code>string issuing_authority = 2;</code>
929        *
930        * @return The bytes for issuingAuthority.
931        */
getIssuingAuthorityBytes()932       public com.google.protobuf.ByteString getIssuingAuthorityBytes() {
933         java.lang.Object ref = issuingAuthority_;
934         if (ref instanceof String) {
935           com.google.protobuf.ByteString b =
936               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
937           issuingAuthority_ = b;
938           return b;
939         } else {
940           return (com.google.protobuf.ByteString) ref;
941         }
942       }
943       /**
944        *
945        *
946        * <pre>
947        * Provides information about the authority of the issuing party to
948        * release the document, in particular, the party's constituency and
949        * responsibilities or other obligations.
950        * </pre>
951        *
952        * <code>string issuing_authority = 2;</code>
953        *
954        * @param value The issuingAuthority to set.
955        * @return This builder for chaining.
956        */
setIssuingAuthority(java.lang.String value)957       public Builder setIssuingAuthority(java.lang.String value) {
958         if (value == null) {
959           throw new NullPointerException();
960         }
961         issuingAuthority_ = value;
962         bitField0_ |= 0x00000002;
963         onChanged();
964         return this;
965       }
966       /**
967        *
968        *
969        * <pre>
970        * Provides information about the authority of the issuing party to
971        * release the document, in particular, the party's constituency and
972        * responsibilities or other obligations.
973        * </pre>
974        *
975        * <code>string issuing_authority = 2;</code>
976        *
977        * @return This builder for chaining.
978        */
clearIssuingAuthority()979       public Builder clearIssuingAuthority() {
980         issuingAuthority_ = getDefaultInstance().getIssuingAuthority();
981         bitField0_ = (bitField0_ & ~0x00000002);
982         onChanged();
983         return this;
984       }
985       /**
986        *
987        *
988        * <pre>
989        * Provides information about the authority of the issuing party to
990        * release the document, in particular, the party's constituency and
991        * responsibilities or other obligations.
992        * </pre>
993        *
994        * <code>string issuing_authority = 2;</code>
995        *
996        * @param value The bytes for issuingAuthority to set.
997        * @return This builder for chaining.
998        */
setIssuingAuthorityBytes(com.google.protobuf.ByteString value)999       public Builder setIssuingAuthorityBytes(com.google.protobuf.ByteString value) {
1000         if (value == null) {
1001           throw new NullPointerException();
1002         }
1003         checkByteStringIsUtf8(value);
1004         issuingAuthority_ = value;
1005         bitField0_ |= 0x00000002;
1006         onChanged();
1007         return this;
1008       }
1009 
1010       private java.lang.Object publisherNamespace_ = "";
1011       /**
1012        *
1013        *
1014        * <pre>
1015        * The context or namespace.
1016        * Contains a URL which is under control of the issuing party and can
1017        * be used as a globally unique identifier for that issuing party.
1018        * Example: https://csaf.io
1019        * </pre>
1020        *
1021        * <code>string publisher_namespace = 3;</code>
1022        *
1023        * @return The publisherNamespace.
1024        */
getPublisherNamespace()1025       public java.lang.String getPublisherNamespace() {
1026         java.lang.Object ref = publisherNamespace_;
1027         if (!(ref instanceof java.lang.String)) {
1028           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1029           java.lang.String s = bs.toStringUtf8();
1030           publisherNamespace_ = s;
1031           return s;
1032         } else {
1033           return (java.lang.String) ref;
1034         }
1035       }
1036       /**
1037        *
1038        *
1039        * <pre>
1040        * The context or namespace.
1041        * Contains a URL which is under control of the issuing party and can
1042        * be used as a globally unique identifier for that issuing party.
1043        * Example: https://csaf.io
1044        * </pre>
1045        *
1046        * <code>string publisher_namespace = 3;</code>
1047        *
1048        * @return The bytes for publisherNamespace.
1049        */
getPublisherNamespaceBytes()1050       public com.google.protobuf.ByteString getPublisherNamespaceBytes() {
1051         java.lang.Object ref = publisherNamespace_;
1052         if (ref instanceof String) {
1053           com.google.protobuf.ByteString b =
1054               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1055           publisherNamespace_ = b;
1056           return b;
1057         } else {
1058           return (com.google.protobuf.ByteString) ref;
1059         }
1060       }
1061       /**
1062        *
1063        *
1064        * <pre>
1065        * The context or namespace.
1066        * Contains a URL which is under control of the issuing party and can
1067        * be used as a globally unique identifier for that issuing party.
1068        * Example: https://csaf.io
1069        * </pre>
1070        *
1071        * <code>string publisher_namespace = 3;</code>
1072        *
1073        * @param value The publisherNamespace to set.
1074        * @return This builder for chaining.
1075        */
setPublisherNamespace(java.lang.String value)1076       public Builder setPublisherNamespace(java.lang.String value) {
1077         if (value == null) {
1078           throw new NullPointerException();
1079         }
1080         publisherNamespace_ = value;
1081         bitField0_ |= 0x00000004;
1082         onChanged();
1083         return this;
1084       }
1085       /**
1086        *
1087        *
1088        * <pre>
1089        * The context or namespace.
1090        * Contains a URL which is under control of the issuing party and can
1091        * be used as a globally unique identifier for that issuing party.
1092        * Example: https://csaf.io
1093        * </pre>
1094        *
1095        * <code>string publisher_namespace = 3;</code>
1096        *
1097        * @return This builder for chaining.
1098        */
clearPublisherNamespace()1099       public Builder clearPublisherNamespace() {
1100         publisherNamespace_ = getDefaultInstance().getPublisherNamespace();
1101         bitField0_ = (bitField0_ & ~0x00000004);
1102         onChanged();
1103         return this;
1104       }
1105       /**
1106        *
1107        *
1108        * <pre>
1109        * The context or namespace.
1110        * Contains a URL which is under control of the issuing party and can
1111        * be used as a globally unique identifier for that issuing party.
1112        * Example: https://csaf.io
1113        * </pre>
1114        *
1115        * <code>string publisher_namespace = 3;</code>
1116        *
1117        * @param value The bytes for publisherNamespace to set.
1118        * @return This builder for chaining.
1119        */
setPublisherNamespaceBytes(com.google.protobuf.ByteString value)1120       public Builder setPublisherNamespaceBytes(com.google.protobuf.ByteString value) {
1121         if (value == null) {
1122           throw new NullPointerException();
1123         }
1124         checkByteStringIsUtf8(value);
1125         publisherNamespace_ = value;
1126         bitField0_ |= 0x00000004;
1127         onChanged();
1128         return this;
1129       }
1130 
1131       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1132       public final Builder setUnknownFields(
1133           final com.google.protobuf.UnknownFieldSet unknownFields) {
1134         return super.setUnknownFields(unknownFields);
1135       }
1136 
1137       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1138       public final Builder mergeUnknownFields(
1139           final com.google.protobuf.UnknownFieldSet unknownFields) {
1140         return super.mergeUnknownFields(unknownFields);
1141       }
1142 
1143       // @@protoc_insertion_point(builder_scope:grafeas.v1.VulnerabilityAssessmentNote.Publisher)
1144     }
1145 
1146     // @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityAssessmentNote.Publisher)
1147     private static final io.grafeas.v1.VulnerabilityAssessmentNote.Publisher DEFAULT_INSTANCE;
1148 
1149     static {
1150       DEFAULT_INSTANCE = new io.grafeas.v1.VulnerabilityAssessmentNote.Publisher();
1151     }
1152 
getDefaultInstance()1153     public static io.grafeas.v1.VulnerabilityAssessmentNote.Publisher getDefaultInstance() {
1154       return DEFAULT_INSTANCE;
1155     }
1156 
1157     private static final com.google.protobuf.Parser<Publisher> PARSER =
1158         new com.google.protobuf.AbstractParser<Publisher>() {
1159           @java.lang.Override
1160           public Publisher parsePartialFrom(
1161               com.google.protobuf.CodedInputStream input,
1162               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1163               throws com.google.protobuf.InvalidProtocolBufferException {
1164             Builder builder = newBuilder();
1165             try {
1166               builder.mergeFrom(input, extensionRegistry);
1167             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1168               throw e.setUnfinishedMessage(builder.buildPartial());
1169             } catch (com.google.protobuf.UninitializedMessageException e) {
1170               throw e.asInvalidProtocolBufferException()
1171                   .setUnfinishedMessage(builder.buildPartial());
1172             } catch (java.io.IOException e) {
1173               throw new com.google.protobuf.InvalidProtocolBufferException(e)
1174                   .setUnfinishedMessage(builder.buildPartial());
1175             }
1176             return builder.buildPartial();
1177           }
1178         };
1179 
parser()1180     public static com.google.protobuf.Parser<Publisher> parser() {
1181       return PARSER;
1182     }
1183 
1184     @java.lang.Override
getParserForType()1185     public com.google.protobuf.Parser<Publisher> getParserForType() {
1186       return PARSER;
1187     }
1188 
1189     @java.lang.Override
getDefaultInstanceForType()1190     public io.grafeas.v1.VulnerabilityAssessmentNote.Publisher getDefaultInstanceForType() {
1191       return DEFAULT_INSTANCE;
1192     }
1193   }
1194 
1195   public interface ProductOrBuilder
1196       extends
1197       // @@protoc_insertion_point(interface_extends:grafeas.v1.VulnerabilityAssessmentNote.Product)
1198       com.google.protobuf.MessageOrBuilder {
1199 
1200     /**
1201      *
1202      *
1203      * <pre>
1204      * Name of the product.
1205      * </pre>
1206      *
1207      * <code>string name = 1;</code>
1208      *
1209      * @return The name.
1210      */
getName()1211     java.lang.String getName();
1212     /**
1213      *
1214      *
1215      * <pre>
1216      * Name of the product.
1217      * </pre>
1218      *
1219      * <code>string name = 1;</code>
1220      *
1221      * @return The bytes for name.
1222      */
getNameBytes()1223     com.google.protobuf.ByteString getNameBytes();
1224 
1225     /**
1226      *
1227      *
1228      * <pre>
1229      * Token that identifies a product so that it can be referred to from other
1230      * parts in the document. There is no predefined format as long as it
1231      * uniquely identifies a group in the context of the current document.
1232      * </pre>
1233      *
1234      * <code>string id = 2;</code>
1235      *
1236      * @return The id.
1237      */
getId()1238     java.lang.String getId();
1239     /**
1240      *
1241      *
1242      * <pre>
1243      * Token that identifies a product so that it can be referred to from other
1244      * parts in the document. There is no predefined format as long as it
1245      * uniquely identifies a group in the context of the current document.
1246      * </pre>
1247      *
1248      * <code>string id = 2;</code>
1249      *
1250      * @return The bytes for id.
1251      */
getIdBytes()1252     com.google.protobuf.ByteString getIdBytes();
1253 
1254     /**
1255      *
1256      *
1257      * <pre>
1258      * Contains a URI which is vendor-specific.
1259      * Example: The artifact repository URL of an image.
1260      * </pre>
1261      *
1262      * <code>string generic_uri = 3;</code>
1263      *
1264      * @return Whether the genericUri field is set.
1265      */
hasGenericUri()1266     boolean hasGenericUri();
1267     /**
1268      *
1269      *
1270      * <pre>
1271      * Contains a URI which is vendor-specific.
1272      * Example: The artifact repository URL of an image.
1273      * </pre>
1274      *
1275      * <code>string generic_uri = 3;</code>
1276      *
1277      * @return The genericUri.
1278      */
getGenericUri()1279     java.lang.String getGenericUri();
1280     /**
1281      *
1282      *
1283      * <pre>
1284      * Contains a URI which is vendor-specific.
1285      * Example: The artifact repository URL of an image.
1286      * </pre>
1287      *
1288      * <code>string generic_uri = 3;</code>
1289      *
1290      * @return The bytes for genericUri.
1291      */
getGenericUriBytes()1292     com.google.protobuf.ByteString getGenericUriBytes();
1293 
getIdentifierCase()1294     public io.grafeas.v1.VulnerabilityAssessmentNote.Product.IdentifierCase getIdentifierCase();
1295   }
1296   /**
1297    *
1298    *
1299    * <pre>
1300    * Product contains information about a product and how to uniquely identify
1301    * it.
1302    * (-- api-linter: core::0123::resource-annotation=disabled
1303    *     aip.dev/not-precedent: Product is not a separate resource. --)
1304    * </pre>
1305    *
1306    * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Product}
1307    */
1308   public static final class Product extends com.google.protobuf.GeneratedMessageV3
1309       implements
1310       // @@protoc_insertion_point(message_implements:grafeas.v1.VulnerabilityAssessmentNote.Product)
1311       ProductOrBuilder {
1312     private static final long serialVersionUID = 0L;
1313     // Use Product.newBuilder() to construct.
Product(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1314     private Product(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
1315       super(builder);
1316     }
1317 
Product()1318     private Product() {
1319       name_ = "";
1320       id_ = "";
1321     }
1322 
1323     @java.lang.Override
1324     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)1325     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
1326       return new Product();
1327     }
1328 
1329     @java.lang.Override
getUnknownFields()1330     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
1331       return this.unknownFields;
1332     }
1333 
getDescriptor()1334     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1335       return io.grafeas.v1.Vex
1336           .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Product_descriptor;
1337     }
1338 
1339     @java.lang.Override
1340     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1341         internalGetFieldAccessorTable() {
1342       return io.grafeas.v1.Vex
1343           .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Product_fieldAccessorTable
1344           .ensureFieldAccessorsInitialized(
1345               io.grafeas.v1.VulnerabilityAssessmentNote.Product.class,
1346               io.grafeas.v1.VulnerabilityAssessmentNote.Product.Builder.class);
1347     }
1348 
1349     private int identifierCase_ = 0;
1350     private java.lang.Object identifier_;
1351 
1352     public enum IdentifierCase
1353         implements
1354             com.google.protobuf.Internal.EnumLite,
1355             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
1356       GENERIC_URI(3),
1357       IDENTIFIER_NOT_SET(0);
1358       private final int value;
1359 
IdentifierCase(int value)1360       private IdentifierCase(int value) {
1361         this.value = value;
1362       }
1363       /**
1364        * @param value The number of the enum to look for.
1365        * @return The enum associated with the given number.
1366        * @deprecated Use {@link #forNumber(int)} instead.
1367        */
1368       @java.lang.Deprecated
valueOf(int value)1369       public static IdentifierCase valueOf(int value) {
1370         return forNumber(value);
1371       }
1372 
forNumber(int value)1373       public static IdentifierCase forNumber(int value) {
1374         switch (value) {
1375           case 3:
1376             return GENERIC_URI;
1377           case 0:
1378             return IDENTIFIER_NOT_SET;
1379           default:
1380             return null;
1381         }
1382       }
1383 
getNumber()1384       public int getNumber() {
1385         return this.value;
1386       }
1387     };
1388 
getIdentifierCase()1389     public IdentifierCase getIdentifierCase() {
1390       return IdentifierCase.forNumber(identifierCase_);
1391     }
1392 
1393     public static final int NAME_FIELD_NUMBER = 1;
1394 
1395     @SuppressWarnings("serial")
1396     private volatile java.lang.Object name_ = "";
1397     /**
1398      *
1399      *
1400      * <pre>
1401      * Name of the product.
1402      * </pre>
1403      *
1404      * <code>string name = 1;</code>
1405      *
1406      * @return The name.
1407      */
1408     @java.lang.Override
getName()1409     public java.lang.String getName() {
1410       java.lang.Object ref = name_;
1411       if (ref instanceof java.lang.String) {
1412         return (java.lang.String) ref;
1413       } else {
1414         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1415         java.lang.String s = bs.toStringUtf8();
1416         name_ = s;
1417         return s;
1418       }
1419     }
1420     /**
1421      *
1422      *
1423      * <pre>
1424      * Name of the product.
1425      * </pre>
1426      *
1427      * <code>string name = 1;</code>
1428      *
1429      * @return The bytes for name.
1430      */
1431     @java.lang.Override
getNameBytes()1432     public com.google.protobuf.ByteString getNameBytes() {
1433       java.lang.Object ref = name_;
1434       if (ref instanceof java.lang.String) {
1435         com.google.protobuf.ByteString b =
1436             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1437         name_ = b;
1438         return b;
1439       } else {
1440         return (com.google.protobuf.ByteString) ref;
1441       }
1442     }
1443 
1444     public static final int ID_FIELD_NUMBER = 2;
1445 
1446     @SuppressWarnings("serial")
1447     private volatile java.lang.Object id_ = "";
1448     /**
1449      *
1450      *
1451      * <pre>
1452      * Token that identifies a product so that it can be referred to from other
1453      * parts in the document. There is no predefined format as long as it
1454      * uniquely identifies a group in the context of the current document.
1455      * </pre>
1456      *
1457      * <code>string id = 2;</code>
1458      *
1459      * @return The id.
1460      */
1461     @java.lang.Override
getId()1462     public java.lang.String getId() {
1463       java.lang.Object ref = id_;
1464       if (ref instanceof java.lang.String) {
1465         return (java.lang.String) ref;
1466       } else {
1467         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1468         java.lang.String s = bs.toStringUtf8();
1469         id_ = s;
1470         return s;
1471       }
1472     }
1473     /**
1474      *
1475      *
1476      * <pre>
1477      * Token that identifies a product so that it can be referred to from other
1478      * parts in the document. There is no predefined format as long as it
1479      * uniquely identifies a group in the context of the current document.
1480      * </pre>
1481      *
1482      * <code>string id = 2;</code>
1483      *
1484      * @return The bytes for id.
1485      */
1486     @java.lang.Override
getIdBytes()1487     public com.google.protobuf.ByteString getIdBytes() {
1488       java.lang.Object ref = id_;
1489       if (ref instanceof java.lang.String) {
1490         com.google.protobuf.ByteString b =
1491             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1492         id_ = b;
1493         return b;
1494       } else {
1495         return (com.google.protobuf.ByteString) ref;
1496       }
1497     }
1498 
1499     public static final int GENERIC_URI_FIELD_NUMBER = 3;
1500     /**
1501      *
1502      *
1503      * <pre>
1504      * Contains a URI which is vendor-specific.
1505      * Example: The artifact repository URL of an image.
1506      * </pre>
1507      *
1508      * <code>string generic_uri = 3;</code>
1509      *
1510      * @return Whether the genericUri field is set.
1511      */
hasGenericUri()1512     public boolean hasGenericUri() {
1513       return identifierCase_ == 3;
1514     }
1515     /**
1516      *
1517      *
1518      * <pre>
1519      * Contains a URI which is vendor-specific.
1520      * Example: The artifact repository URL of an image.
1521      * </pre>
1522      *
1523      * <code>string generic_uri = 3;</code>
1524      *
1525      * @return The genericUri.
1526      */
getGenericUri()1527     public java.lang.String getGenericUri() {
1528       java.lang.Object ref = "";
1529       if (identifierCase_ == 3) {
1530         ref = identifier_;
1531       }
1532       if (ref instanceof java.lang.String) {
1533         return (java.lang.String) ref;
1534       } else {
1535         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1536         java.lang.String s = bs.toStringUtf8();
1537         if (identifierCase_ == 3) {
1538           identifier_ = s;
1539         }
1540         return s;
1541       }
1542     }
1543     /**
1544      *
1545      *
1546      * <pre>
1547      * Contains a URI which is vendor-specific.
1548      * Example: The artifact repository URL of an image.
1549      * </pre>
1550      *
1551      * <code>string generic_uri = 3;</code>
1552      *
1553      * @return The bytes for genericUri.
1554      */
getGenericUriBytes()1555     public com.google.protobuf.ByteString getGenericUriBytes() {
1556       java.lang.Object ref = "";
1557       if (identifierCase_ == 3) {
1558         ref = identifier_;
1559       }
1560       if (ref instanceof java.lang.String) {
1561         com.google.protobuf.ByteString b =
1562             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1563         if (identifierCase_ == 3) {
1564           identifier_ = b;
1565         }
1566         return b;
1567       } else {
1568         return (com.google.protobuf.ByteString) ref;
1569       }
1570     }
1571 
1572     private byte memoizedIsInitialized = -1;
1573 
1574     @java.lang.Override
isInitialized()1575     public final boolean isInitialized() {
1576       byte isInitialized = memoizedIsInitialized;
1577       if (isInitialized == 1) return true;
1578       if (isInitialized == 0) return false;
1579 
1580       memoizedIsInitialized = 1;
1581       return true;
1582     }
1583 
1584     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1585     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1586       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1587         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1588       }
1589       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
1590         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
1591       }
1592       if (identifierCase_ == 3) {
1593         com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identifier_);
1594       }
1595       getUnknownFields().writeTo(output);
1596     }
1597 
1598     @java.lang.Override
getSerializedSize()1599     public int getSerializedSize() {
1600       int size = memoizedSize;
1601       if (size != -1) return size;
1602 
1603       size = 0;
1604       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1605         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1606       }
1607       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
1608         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
1609       }
1610       if (identifierCase_ == 3) {
1611         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identifier_);
1612       }
1613       size += getUnknownFields().getSerializedSize();
1614       memoizedSize = size;
1615       return size;
1616     }
1617 
1618     @java.lang.Override
equals(final java.lang.Object obj)1619     public boolean equals(final java.lang.Object obj) {
1620       if (obj == this) {
1621         return true;
1622       }
1623       if (!(obj instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Product)) {
1624         return super.equals(obj);
1625       }
1626       io.grafeas.v1.VulnerabilityAssessmentNote.Product other =
1627           (io.grafeas.v1.VulnerabilityAssessmentNote.Product) obj;
1628 
1629       if (!getName().equals(other.getName())) return false;
1630       if (!getId().equals(other.getId())) return false;
1631       if (!getIdentifierCase().equals(other.getIdentifierCase())) return false;
1632       switch (identifierCase_) {
1633         case 3:
1634           if (!getGenericUri().equals(other.getGenericUri())) return false;
1635           break;
1636         case 0:
1637         default:
1638       }
1639       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1640       return true;
1641     }
1642 
1643     @java.lang.Override
hashCode()1644     public int hashCode() {
1645       if (memoizedHashCode != 0) {
1646         return memoizedHashCode;
1647       }
1648       int hash = 41;
1649       hash = (19 * hash) + getDescriptor().hashCode();
1650       hash = (37 * hash) + NAME_FIELD_NUMBER;
1651       hash = (53 * hash) + getName().hashCode();
1652       hash = (37 * hash) + ID_FIELD_NUMBER;
1653       hash = (53 * hash) + getId().hashCode();
1654       switch (identifierCase_) {
1655         case 3:
1656           hash = (37 * hash) + GENERIC_URI_FIELD_NUMBER;
1657           hash = (53 * hash) + getGenericUri().hashCode();
1658           break;
1659         case 0:
1660         default:
1661       }
1662       hash = (29 * hash) + getUnknownFields().hashCode();
1663       memoizedHashCode = hash;
1664       return hash;
1665     }
1666 
parseFrom( java.nio.ByteBuffer data)1667     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(
1668         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
1669       return PARSER.parseFrom(data);
1670     }
1671 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1672     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(
1673         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1674         throws com.google.protobuf.InvalidProtocolBufferException {
1675       return PARSER.parseFrom(data, extensionRegistry);
1676     }
1677 
parseFrom( com.google.protobuf.ByteString data)1678     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(
1679         com.google.protobuf.ByteString data)
1680         throws com.google.protobuf.InvalidProtocolBufferException {
1681       return PARSER.parseFrom(data);
1682     }
1683 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1684     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(
1685         com.google.protobuf.ByteString data,
1686         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1687         throws com.google.protobuf.InvalidProtocolBufferException {
1688       return PARSER.parseFrom(data, extensionRegistry);
1689     }
1690 
parseFrom(byte[] data)1691     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(byte[] data)
1692         throws com.google.protobuf.InvalidProtocolBufferException {
1693       return PARSER.parseFrom(data);
1694     }
1695 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1696     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(
1697         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1698         throws com.google.protobuf.InvalidProtocolBufferException {
1699       return PARSER.parseFrom(data, extensionRegistry);
1700     }
1701 
parseFrom( java.io.InputStream input)1702     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(
1703         java.io.InputStream input) throws java.io.IOException {
1704       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1705     }
1706 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1707     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(
1708         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1709         throws java.io.IOException {
1710       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1711           PARSER, input, extensionRegistry);
1712     }
1713 
parseDelimitedFrom( java.io.InputStream input)1714     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseDelimitedFrom(
1715         java.io.InputStream input) throws java.io.IOException {
1716       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1717     }
1718 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1719     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseDelimitedFrom(
1720         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1721         throws java.io.IOException {
1722       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1723           PARSER, input, extensionRegistry);
1724     }
1725 
parseFrom( com.google.protobuf.CodedInputStream input)1726     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(
1727         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1728       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1729     }
1730 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1731     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product parseFrom(
1732         com.google.protobuf.CodedInputStream input,
1733         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1734         throws java.io.IOException {
1735       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1736           PARSER, input, extensionRegistry);
1737     }
1738 
1739     @java.lang.Override
newBuilderForType()1740     public Builder newBuilderForType() {
1741       return newBuilder();
1742     }
1743 
newBuilder()1744     public static Builder newBuilder() {
1745       return DEFAULT_INSTANCE.toBuilder();
1746     }
1747 
newBuilder(io.grafeas.v1.VulnerabilityAssessmentNote.Product prototype)1748     public static Builder newBuilder(io.grafeas.v1.VulnerabilityAssessmentNote.Product prototype) {
1749       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1750     }
1751 
1752     @java.lang.Override
toBuilder()1753     public Builder toBuilder() {
1754       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1755     }
1756 
1757     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1758     protected Builder newBuilderForType(
1759         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1760       Builder builder = new Builder(parent);
1761       return builder;
1762     }
1763     /**
1764      *
1765      *
1766      * <pre>
1767      * Product contains information about a product and how to uniquely identify
1768      * it.
1769      * (-- api-linter: core::0123::resource-annotation=disabled
1770      *     aip.dev/not-precedent: Product is not a separate resource. --)
1771      * </pre>
1772      *
1773      * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Product}
1774      */
1775     public static final class Builder
1776         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1777         implements
1778         // @@protoc_insertion_point(builder_implements:grafeas.v1.VulnerabilityAssessmentNote.Product)
1779         io.grafeas.v1.VulnerabilityAssessmentNote.ProductOrBuilder {
getDescriptor()1780       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1781         return io.grafeas.v1.Vex
1782             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Product_descriptor;
1783       }
1784 
1785       @java.lang.Override
1786       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1787           internalGetFieldAccessorTable() {
1788         return io.grafeas.v1.Vex
1789             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Product_fieldAccessorTable
1790             .ensureFieldAccessorsInitialized(
1791                 io.grafeas.v1.VulnerabilityAssessmentNote.Product.class,
1792                 io.grafeas.v1.VulnerabilityAssessmentNote.Product.Builder.class);
1793       }
1794 
1795       // Construct using io.grafeas.v1.VulnerabilityAssessmentNote.Product.newBuilder()
Builder()1796       private Builder() {}
1797 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1798       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1799         super(parent);
1800       }
1801 
1802       @java.lang.Override
clear()1803       public Builder clear() {
1804         super.clear();
1805         bitField0_ = 0;
1806         name_ = "";
1807         id_ = "";
1808         identifierCase_ = 0;
1809         identifier_ = null;
1810         return this;
1811       }
1812 
1813       @java.lang.Override
getDescriptorForType()1814       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1815         return io.grafeas.v1.Vex
1816             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Product_descriptor;
1817       }
1818 
1819       @java.lang.Override
getDefaultInstanceForType()1820       public io.grafeas.v1.VulnerabilityAssessmentNote.Product getDefaultInstanceForType() {
1821         return io.grafeas.v1.VulnerabilityAssessmentNote.Product.getDefaultInstance();
1822       }
1823 
1824       @java.lang.Override
build()1825       public io.grafeas.v1.VulnerabilityAssessmentNote.Product build() {
1826         io.grafeas.v1.VulnerabilityAssessmentNote.Product result = buildPartial();
1827         if (!result.isInitialized()) {
1828           throw newUninitializedMessageException(result);
1829         }
1830         return result;
1831       }
1832 
1833       @java.lang.Override
buildPartial()1834       public io.grafeas.v1.VulnerabilityAssessmentNote.Product buildPartial() {
1835         io.grafeas.v1.VulnerabilityAssessmentNote.Product result =
1836             new io.grafeas.v1.VulnerabilityAssessmentNote.Product(this);
1837         if (bitField0_ != 0) {
1838           buildPartial0(result);
1839         }
1840         buildPartialOneofs(result);
1841         onBuilt();
1842         return result;
1843       }
1844 
buildPartial0(io.grafeas.v1.VulnerabilityAssessmentNote.Product result)1845       private void buildPartial0(io.grafeas.v1.VulnerabilityAssessmentNote.Product result) {
1846         int from_bitField0_ = bitField0_;
1847         if (((from_bitField0_ & 0x00000001) != 0)) {
1848           result.name_ = name_;
1849         }
1850         if (((from_bitField0_ & 0x00000002) != 0)) {
1851           result.id_ = id_;
1852         }
1853       }
1854 
buildPartialOneofs(io.grafeas.v1.VulnerabilityAssessmentNote.Product result)1855       private void buildPartialOneofs(io.grafeas.v1.VulnerabilityAssessmentNote.Product result) {
1856         result.identifierCase_ = identifierCase_;
1857         result.identifier_ = this.identifier_;
1858       }
1859 
1860       @java.lang.Override
clone()1861       public Builder clone() {
1862         return super.clone();
1863       }
1864 
1865       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1866       public Builder setField(
1867           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1868         return super.setField(field, value);
1869       }
1870 
1871       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1872       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1873         return super.clearField(field);
1874       }
1875 
1876       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1877       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1878         return super.clearOneof(oneof);
1879       }
1880 
1881       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1882       public Builder setRepeatedField(
1883           com.google.protobuf.Descriptors.FieldDescriptor field,
1884           int index,
1885           java.lang.Object value) {
1886         return super.setRepeatedField(field, index, value);
1887       }
1888 
1889       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1890       public Builder addRepeatedField(
1891           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1892         return super.addRepeatedField(field, value);
1893       }
1894 
1895       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1896       public Builder mergeFrom(com.google.protobuf.Message other) {
1897         if (other instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Product) {
1898           return mergeFrom((io.grafeas.v1.VulnerabilityAssessmentNote.Product) other);
1899         } else {
1900           super.mergeFrom(other);
1901           return this;
1902         }
1903       }
1904 
mergeFrom(io.grafeas.v1.VulnerabilityAssessmentNote.Product other)1905       public Builder mergeFrom(io.grafeas.v1.VulnerabilityAssessmentNote.Product other) {
1906         if (other == io.grafeas.v1.VulnerabilityAssessmentNote.Product.getDefaultInstance())
1907           return this;
1908         if (!other.getName().isEmpty()) {
1909           name_ = other.name_;
1910           bitField0_ |= 0x00000001;
1911           onChanged();
1912         }
1913         if (!other.getId().isEmpty()) {
1914           id_ = other.id_;
1915           bitField0_ |= 0x00000002;
1916           onChanged();
1917         }
1918         switch (other.getIdentifierCase()) {
1919           case GENERIC_URI:
1920             {
1921               identifierCase_ = 3;
1922               identifier_ = other.identifier_;
1923               onChanged();
1924               break;
1925             }
1926           case IDENTIFIER_NOT_SET:
1927             {
1928               break;
1929             }
1930         }
1931         this.mergeUnknownFields(other.getUnknownFields());
1932         onChanged();
1933         return this;
1934       }
1935 
1936       @java.lang.Override
isInitialized()1937       public final boolean isInitialized() {
1938         return true;
1939       }
1940 
1941       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1942       public Builder mergeFrom(
1943           com.google.protobuf.CodedInputStream input,
1944           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1945           throws java.io.IOException {
1946         if (extensionRegistry == null) {
1947           throw new java.lang.NullPointerException();
1948         }
1949         try {
1950           boolean done = false;
1951           while (!done) {
1952             int tag = input.readTag();
1953             switch (tag) {
1954               case 0:
1955                 done = true;
1956                 break;
1957               case 10:
1958                 {
1959                   name_ = input.readStringRequireUtf8();
1960                   bitField0_ |= 0x00000001;
1961                   break;
1962                 } // case 10
1963               case 18:
1964                 {
1965                   id_ = input.readStringRequireUtf8();
1966                   bitField0_ |= 0x00000002;
1967                   break;
1968                 } // case 18
1969               case 26:
1970                 {
1971                   java.lang.String s = input.readStringRequireUtf8();
1972                   identifierCase_ = 3;
1973                   identifier_ = s;
1974                   break;
1975                 } // case 26
1976               default:
1977                 {
1978                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1979                     done = true; // was an endgroup tag
1980                   }
1981                   break;
1982                 } // default:
1983             } // switch (tag)
1984           } // while (!done)
1985         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1986           throw e.unwrapIOException();
1987         } finally {
1988           onChanged();
1989         } // finally
1990         return this;
1991       }
1992 
1993       private int identifierCase_ = 0;
1994       private java.lang.Object identifier_;
1995 
getIdentifierCase()1996       public IdentifierCase getIdentifierCase() {
1997         return IdentifierCase.forNumber(identifierCase_);
1998       }
1999 
clearIdentifier()2000       public Builder clearIdentifier() {
2001         identifierCase_ = 0;
2002         identifier_ = null;
2003         onChanged();
2004         return this;
2005       }
2006 
2007       private int bitField0_;
2008 
2009       private java.lang.Object name_ = "";
2010       /**
2011        *
2012        *
2013        * <pre>
2014        * Name of the product.
2015        * </pre>
2016        *
2017        * <code>string name = 1;</code>
2018        *
2019        * @return The name.
2020        */
getName()2021       public java.lang.String getName() {
2022         java.lang.Object ref = name_;
2023         if (!(ref instanceof java.lang.String)) {
2024           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2025           java.lang.String s = bs.toStringUtf8();
2026           name_ = s;
2027           return s;
2028         } else {
2029           return (java.lang.String) ref;
2030         }
2031       }
2032       /**
2033        *
2034        *
2035        * <pre>
2036        * Name of the product.
2037        * </pre>
2038        *
2039        * <code>string name = 1;</code>
2040        *
2041        * @return The bytes for name.
2042        */
getNameBytes()2043       public com.google.protobuf.ByteString getNameBytes() {
2044         java.lang.Object ref = name_;
2045         if (ref instanceof String) {
2046           com.google.protobuf.ByteString b =
2047               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2048           name_ = b;
2049           return b;
2050         } else {
2051           return (com.google.protobuf.ByteString) ref;
2052         }
2053       }
2054       /**
2055        *
2056        *
2057        * <pre>
2058        * Name of the product.
2059        * </pre>
2060        *
2061        * <code>string name = 1;</code>
2062        *
2063        * @param value The name to set.
2064        * @return This builder for chaining.
2065        */
setName(java.lang.String value)2066       public Builder setName(java.lang.String value) {
2067         if (value == null) {
2068           throw new NullPointerException();
2069         }
2070         name_ = value;
2071         bitField0_ |= 0x00000001;
2072         onChanged();
2073         return this;
2074       }
2075       /**
2076        *
2077        *
2078        * <pre>
2079        * Name of the product.
2080        * </pre>
2081        *
2082        * <code>string name = 1;</code>
2083        *
2084        * @return This builder for chaining.
2085        */
clearName()2086       public Builder clearName() {
2087         name_ = getDefaultInstance().getName();
2088         bitField0_ = (bitField0_ & ~0x00000001);
2089         onChanged();
2090         return this;
2091       }
2092       /**
2093        *
2094        *
2095        * <pre>
2096        * Name of the product.
2097        * </pre>
2098        *
2099        * <code>string name = 1;</code>
2100        *
2101        * @param value The bytes for name to set.
2102        * @return This builder for chaining.
2103        */
setNameBytes(com.google.protobuf.ByteString value)2104       public Builder setNameBytes(com.google.protobuf.ByteString value) {
2105         if (value == null) {
2106           throw new NullPointerException();
2107         }
2108         checkByteStringIsUtf8(value);
2109         name_ = value;
2110         bitField0_ |= 0x00000001;
2111         onChanged();
2112         return this;
2113       }
2114 
2115       private java.lang.Object id_ = "";
2116       /**
2117        *
2118        *
2119        * <pre>
2120        * Token that identifies a product so that it can be referred to from other
2121        * parts in the document. There is no predefined format as long as it
2122        * uniquely identifies a group in the context of the current document.
2123        * </pre>
2124        *
2125        * <code>string id = 2;</code>
2126        *
2127        * @return The id.
2128        */
getId()2129       public java.lang.String getId() {
2130         java.lang.Object ref = id_;
2131         if (!(ref instanceof java.lang.String)) {
2132           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2133           java.lang.String s = bs.toStringUtf8();
2134           id_ = s;
2135           return s;
2136         } else {
2137           return (java.lang.String) ref;
2138         }
2139       }
2140       /**
2141        *
2142        *
2143        * <pre>
2144        * Token that identifies a product so that it can be referred to from other
2145        * parts in the document. There is no predefined format as long as it
2146        * uniquely identifies a group in the context of the current document.
2147        * </pre>
2148        *
2149        * <code>string id = 2;</code>
2150        *
2151        * @return The bytes for id.
2152        */
getIdBytes()2153       public com.google.protobuf.ByteString getIdBytes() {
2154         java.lang.Object ref = id_;
2155         if (ref instanceof String) {
2156           com.google.protobuf.ByteString b =
2157               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2158           id_ = b;
2159           return b;
2160         } else {
2161           return (com.google.protobuf.ByteString) ref;
2162         }
2163       }
2164       /**
2165        *
2166        *
2167        * <pre>
2168        * Token that identifies a product so that it can be referred to from other
2169        * parts in the document. There is no predefined format as long as it
2170        * uniquely identifies a group in the context of the current document.
2171        * </pre>
2172        *
2173        * <code>string id = 2;</code>
2174        *
2175        * @param value The id to set.
2176        * @return This builder for chaining.
2177        */
setId(java.lang.String value)2178       public Builder setId(java.lang.String value) {
2179         if (value == null) {
2180           throw new NullPointerException();
2181         }
2182         id_ = value;
2183         bitField0_ |= 0x00000002;
2184         onChanged();
2185         return this;
2186       }
2187       /**
2188        *
2189        *
2190        * <pre>
2191        * Token that identifies a product so that it can be referred to from other
2192        * parts in the document. There is no predefined format as long as it
2193        * uniquely identifies a group in the context of the current document.
2194        * </pre>
2195        *
2196        * <code>string id = 2;</code>
2197        *
2198        * @return This builder for chaining.
2199        */
clearId()2200       public Builder clearId() {
2201         id_ = getDefaultInstance().getId();
2202         bitField0_ = (bitField0_ & ~0x00000002);
2203         onChanged();
2204         return this;
2205       }
2206       /**
2207        *
2208        *
2209        * <pre>
2210        * Token that identifies a product so that it can be referred to from other
2211        * parts in the document. There is no predefined format as long as it
2212        * uniquely identifies a group in the context of the current document.
2213        * </pre>
2214        *
2215        * <code>string id = 2;</code>
2216        *
2217        * @param value The bytes for id to set.
2218        * @return This builder for chaining.
2219        */
setIdBytes(com.google.protobuf.ByteString value)2220       public Builder setIdBytes(com.google.protobuf.ByteString value) {
2221         if (value == null) {
2222           throw new NullPointerException();
2223         }
2224         checkByteStringIsUtf8(value);
2225         id_ = value;
2226         bitField0_ |= 0x00000002;
2227         onChanged();
2228         return this;
2229       }
2230 
2231       /**
2232        *
2233        *
2234        * <pre>
2235        * Contains a URI which is vendor-specific.
2236        * Example: The artifact repository URL of an image.
2237        * </pre>
2238        *
2239        * <code>string generic_uri = 3;</code>
2240        *
2241        * @return Whether the genericUri field is set.
2242        */
2243       @java.lang.Override
hasGenericUri()2244       public boolean hasGenericUri() {
2245         return identifierCase_ == 3;
2246       }
2247       /**
2248        *
2249        *
2250        * <pre>
2251        * Contains a URI which is vendor-specific.
2252        * Example: The artifact repository URL of an image.
2253        * </pre>
2254        *
2255        * <code>string generic_uri = 3;</code>
2256        *
2257        * @return The genericUri.
2258        */
2259       @java.lang.Override
getGenericUri()2260       public java.lang.String getGenericUri() {
2261         java.lang.Object ref = "";
2262         if (identifierCase_ == 3) {
2263           ref = identifier_;
2264         }
2265         if (!(ref instanceof java.lang.String)) {
2266           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2267           java.lang.String s = bs.toStringUtf8();
2268           if (identifierCase_ == 3) {
2269             identifier_ = s;
2270           }
2271           return s;
2272         } else {
2273           return (java.lang.String) ref;
2274         }
2275       }
2276       /**
2277        *
2278        *
2279        * <pre>
2280        * Contains a URI which is vendor-specific.
2281        * Example: The artifact repository URL of an image.
2282        * </pre>
2283        *
2284        * <code>string generic_uri = 3;</code>
2285        *
2286        * @return The bytes for genericUri.
2287        */
2288       @java.lang.Override
getGenericUriBytes()2289       public com.google.protobuf.ByteString getGenericUriBytes() {
2290         java.lang.Object ref = "";
2291         if (identifierCase_ == 3) {
2292           ref = identifier_;
2293         }
2294         if (ref instanceof String) {
2295           com.google.protobuf.ByteString b =
2296               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2297           if (identifierCase_ == 3) {
2298             identifier_ = b;
2299           }
2300           return b;
2301         } else {
2302           return (com.google.protobuf.ByteString) ref;
2303         }
2304       }
2305       /**
2306        *
2307        *
2308        * <pre>
2309        * Contains a URI which is vendor-specific.
2310        * Example: The artifact repository URL of an image.
2311        * </pre>
2312        *
2313        * <code>string generic_uri = 3;</code>
2314        *
2315        * @param value The genericUri to set.
2316        * @return This builder for chaining.
2317        */
setGenericUri(java.lang.String value)2318       public Builder setGenericUri(java.lang.String value) {
2319         if (value == null) {
2320           throw new NullPointerException();
2321         }
2322         identifierCase_ = 3;
2323         identifier_ = value;
2324         onChanged();
2325         return this;
2326       }
2327       /**
2328        *
2329        *
2330        * <pre>
2331        * Contains a URI which is vendor-specific.
2332        * Example: The artifact repository URL of an image.
2333        * </pre>
2334        *
2335        * <code>string generic_uri = 3;</code>
2336        *
2337        * @return This builder for chaining.
2338        */
clearGenericUri()2339       public Builder clearGenericUri() {
2340         if (identifierCase_ == 3) {
2341           identifierCase_ = 0;
2342           identifier_ = null;
2343           onChanged();
2344         }
2345         return this;
2346       }
2347       /**
2348        *
2349        *
2350        * <pre>
2351        * Contains a URI which is vendor-specific.
2352        * Example: The artifact repository URL of an image.
2353        * </pre>
2354        *
2355        * <code>string generic_uri = 3;</code>
2356        *
2357        * @param value The bytes for genericUri to set.
2358        * @return This builder for chaining.
2359        */
setGenericUriBytes(com.google.protobuf.ByteString value)2360       public Builder setGenericUriBytes(com.google.protobuf.ByteString value) {
2361         if (value == null) {
2362           throw new NullPointerException();
2363         }
2364         checkByteStringIsUtf8(value);
2365         identifierCase_ = 3;
2366         identifier_ = value;
2367         onChanged();
2368         return this;
2369       }
2370 
2371       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2372       public final Builder setUnknownFields(
2373           final com.google.protobuf.UnknownFieldSet unknownFields) {
2374         return super.setUnknownFields(unknownFields);
2375       }
2376 
2377       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2378       public final Builder mergeUnknownFields(
2379           final com.google.protobuf.UnknownFieldSet unknownFields) {
2380         return super.mergeUnknownFields(unknownFields);
2381       }
2382 
2383       // @@protoc_insertion_point(builder_scope:grafeas.v1.VulnerabilityAssessmentNote.Product)
2384     }
2385 
2386     // @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityAssessmentNote.Product)
2387     private static final io.grafeas.v1.VulnerabilityAssessmentNote.Product DEFAULT_INSTANCE;
2388 
2389     static {
2390       DEFAULT_INSTANCE = new io.grafeas.v1.VulnerabilityAssessmentNote.Product();
2391     }
2392 
getDefaultInstance()2393     public static io.grafeas.v1.VulnerabilityAssessmentNote.Product getDefaultInstance() {
2394       return DEFAULT_INSTANCE;
2395     }
2396 
2397     private static final com.google.protobuf.Parser<Product> PARSER =
2398         new com.google.protobuf.AbstractParser<Product>() {
2399           @java.lang.Override
2400           public Product parsePartialFrom(
2401               com.google.protobuf.CodedInputStream input,
2402               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2403               throws com.google.protobuf.InvalidProtocolBufferException {
2404             Builder builder = newBuilder();
2405             try {
2406               builder.mergeFrom(input, extensionRegistry);
2407             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2408               throw e.setUnfinishedMessage(builder.buildPartial());
2409             } catch (com.google.protobuf.UninitializedMessageException e) {
2410               throw e.asInvalidProtocolBufferException()
2411                   .setUnfinishedMessage(builder.buildPartial());
2412             } catch (java.io.IOException e) {
2413               throw new com.google.protobuf.InvalidProtocolBufferException(e)
2414                   .setUnfinishedMessage(builder.buildPartial());
2415             }
2416             return builder.buildPartial();
2417           }
2418         };
2419 
parser()2420     public static com.google.protobuf.Parser<Product> parser() {
2421       return PARSER;
2422     }
2423 
2424     @java.lang.Override
getParserForType()2425     public com.google.protobuf.Parser<Product> getParserForType() {
2426       return PARSER;
2427     }
2428 
2429     @java.lang.Override
getDefaultInstanceForType()2430     public io.grafeas.v1.VulnerabilityAssessmentNote.Product getDefaultInstanceForType() {
2431       return DEFAULT_INSTANCE;
2432     }
2433   }
2434 
2435   public interface AssessmentOrBuilder
2436       extends
2437       // @@protoc_insertion_point(interface_extends:grafeas.v1.VulnerabilityAssessmentNote.Assessment)
2438       com.google.protobuf.MessageOrBuilder {
2439 
2440     /**
2441      *
2442      *
2443      * <pre>
2444      * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
2445      * tracking number for the vulnerability.
2446      * </pre>
2447      *
2448      * <code>string cve = 1;</code>
2449      *
2450      * @return The cve.
2451      */
getCve()2452     java.lang.String getCve();
2453     /**
2454      *
2455      *
2456      * <pre>
2457      * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
2458      * tracking number for the vulnerability.
2459      * </pre>
2460      *
2461      * <code>string cve = 1;</code>
2462      *
2463      * @return The bytes for cve.
2464      */
getCveBytes()2465     com.google.protobuf.ByteString getCveBytes();
2466 
2467     /**
2468      *
2469      *
2470      * <pre>
2471      * A one sentence description of this Vex.
2472      * </pre>
2473      *
2474      * <code>string short_description = 2;</code>
2475      *
2476      * @return The shortDescription.
2477      */
getShortDescription()2478     java.lang.String getShortDescription();
2479     /**
2480      *
2481      *
2482      * <pre>
2483      * A one sentence description of this Vex.
2484      * </pre>
2485      *
2486      * <code>string short_description = 2;</code>
2487      *
2488      * @return The bytes for shortDescription.
2489      */
getShortDescriptionBytes()2490     com.google.protobuf.ByteString getShortDescriptionBytes();
2491 
2492     /**
2493      *
2494      *
2495      * <pre>
2496      * A detailed description of this Vex.
2497      * </pre>
2498      *
2499      * <code>string long_description = 3;</code>
2500      *
2501      * @return The longDescription.
2502      */
getLongDescription()2503     java.lang.String getLongDescription();
2504     /**
2505      *
2506      *
2507      * <pre>
2508      * A detailed description of this Vex.
2509      * </pre>
2510      *
2511      * <code>string long_description = 3;</code>
2512      *
2513      * @return The bytes for longDescription.
2514      */
getLongDescriptionBytes()2515     com.google.protobuf.ByteString getLongDescriptionBytes();
2516 
2517     /**
2518      *
2519      *
2520      * <pre>
2521      * Holds a list of references associated with this vulnerability item and
2522      * assessment. These uris have additional information about the
2523      * vulnerability and the assessment itself. E.g. Link to a document which
2524      * details how this assessment concluded the state of this vulnerability.
2525      * </pre>
2526      *
2527      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
2528      */
getRelatedUrisList()2529     java.util.List<io.grafeas.v1.RelatedUrl> getRelatedUrisList();
2530     /**
2531      *
2532      *
2533      * <pre>
2534      * Holds a list of references associated with this vulnerability item and
2535      * assessment. These uris have additional information about the
2536      * vulnerability and the assessment itself. E.g. Link to a document which
2537      * details how this assessment concluded the state of this vulnerability.
2538      * </pre>
2539      *
2540      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
2541      */
getRelatedUris(int index)2542     io.grafeas.v1.RelatedUrl getRelatedUris(int index);
2543     /**
2544      *
2545      *
2546      * <pre>
2547      * Holds a list of references associated with this vulnerability item and
2548      * assessment. These uris have additional information about the
2549      * vulnerability and the assessment itself. E.g. Link to a document which
2550      * details how this assessment concluded the state of this vulnerability.
2551      * </pre>
2552      *
2553      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
2554      */
getRelatedUrisCount()2555     int getRelatedUrisCount();
2556     /**
2557      *
2558      *
2559      * <pre>
2560      * Holds a list of references associated with this vulnerability item and
2561      * assessment. These uris have additional information about the
2562      * vulnerability and the assessment itself. E.g. Link to a document which
2563      * details how this assessment concluded the state of this vulnerability.
2564      * </pre>
2565      *
2566      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
2567      */
getRelatedUrisOrBuilderList()2568     java.util.List<? extends io.grafeas.v1.RelatedUrlOrBuilder> getRelatedUrisOrBuilderList();
2569     /**
2570      *
2571      *
2572      * <pre>
2573      * Holds a list of references associated with this vulnerability item and
2574      * assessment. These uris have additional information about the
2575      * vulnerability and the assessment itself. E.g. Link to a document which
2576      * details how this assessment concluded the state of this vulnerability.
2577      * </pre>
2578      *
2579      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
2580      */
getRelatedUrisOrBuilder(int index)2581     io.grafeas.v1.RelatedUrlOrBuilder getRelatedUrisOrBuilder(int index);
2582 
2583     /**
2584      *
2585      *
2586      * <pre>
2587      * Provides the state of this Vulnerability assessment.
2588      * </pre>
2589      *
2590      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5;</code>
2591      *
2592      * @return The enum numeric value on the wire for state.
2593      */
getStateValue()2594     int getStateValue();
2595     /**
2596      *
2597      *
2598      * <pre>
2599      * Provides the state of this Vulnerability assessment.
2600      * </pre>
2601      *
2602      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5;</code>
2603      *
2604      * @return The state.
2605      */
getState()2606     io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State getState();
2607 
2608     /**
2609      *
2610      *
2611      * <pre>
2612      * Contains information about the impact of this vulnerability,
2613      * this will change with time.
2614      * </pre>
2615      *
2616      * <code>repeated string impacts = 6;</code>
2617      *
2618      * @return A list containing the impacts.
2619      */
getImpactsList()2620     java.util.List<java.lang.String> getImpactsList();
2621     /**
2622      *
2623      *
2624      * <pre>
2625      * Contains information about the impact of this vulnerability,
2626      * this will change with time.
2627      * </pre>
2628      *
2629      * <code>repeated string impacts = 6;</code>
2630      *
2631      * @return The count of impacts.
2632      */
getImpactsCount()2633     int getImpactsCount();
2634     /**
2635      *
2636      *
2637      * <pre>
2638      * Contains information about the impact of this vulnerability,
2639      * this will change with time.
2640      * </pre>
2641      *
2642      * <code>repeated string impacts = 6;</code>
2643      *
2644      * @param index The index of the element to return.
2645      * @return The impacts at the given index.
2646      */
getImpacts(int index)2647     java.lang.String getImpacts(int index);
2648     /**
2649      *
2650      *
2651      * <pre>
2652      * Contains information about the impact of this vulnerability,
2653      * this will change with time.
2654      * </pre>
2655      *
2656      * <code>repeated string impacts = 6;</code>
2657      *
2658      * @param index The index of the value to return.
2659      * @return The bytes of the impacts at the given index.
2660      */
getImpactsBytes(int index)2661     com.google.protobuf.ByteString getImpactsBytes(int index);
2662 
2663     /**
2664      *
2665      *
2666      * <pre>
2667      * Justification provides the justification when the state of the
2668      * assessment if NOT_AFFECTED.
2669      * </pre>
2670      *
2671      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
2672      * </code>
2673      *
2674      * @return Whether the justification field is set.
2675      */
hasJustification()2676     boolean hasJustification();
2677     /**
2678      *
2679      *
2680      * <pre>
2681      * Justification provides the justification when the state of the
2682      * assessment if NOT_AFFECTED.
2683      * </pre>
2684      *
2685      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
2686      * </code>
2687      *
2688      * @return The justification.
2689      */
getJustification()2690     io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification getJustification();
2691     /**
2692      *
2693      *
2694      * <pre>
2695      * Justification provides the justification when the state of the
2696      * assessment if NOT_AFFECTED.
2697      * </pre>
2698      *
2699      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
2700      * </code>
2701      */
2702     io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationOrBuilder
getJustificationOrBuilder()2703         getJustificationOrBuilder();
2704 
2705     /**
2706      *
2707      *
2708      * <pre>
2709      * Specifies details on how to handle (and presumably, fix) a vulnerability.
2710      * </pre>
2711      *
2712      * <code>
2713      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
2714      * </code>
2715      */
2716     java.util.List<io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation>
getRemediationsList()2717         getRemediationsList();
2718     /**
2719      *
2720      *
2721      * <pre>
2722      * Specifies details on how to handle (and presumably, fix) a vulnerability.
2723      * </pre>
2724      *
2725      * <code>
2726      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
2727      * </code>
2728      */
getRemediations(int index)2729     io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation getRemediations(int index);
2730     /**
2731      *
2732      *
2733      * <pre>
2734      * Specifies details on how to handle (and presumably, fix) a vulnerability.
2735      * </pre>
2736      *
2737      * <code>
2738      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
2739      * </code>
2740      */
getRemediationsCount()2741     int getRemediationsCount();
2742     /**
2743      *
2744      *
2745      * <pre>
2746      * Specifies details on how to handle (and presumably, fix) a vulnerability.
2747      * </pre>
2748      *
2749      * <code>
2750      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
2751      * </code>
2752      */
2753     java.util.List<
2754             ? extends io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder>
getRemediationsOrBuilderList()2755         getRemediationsOrBuilderList();
2756     /**
2757      *
2758      *
2759      * <pre>
2760      * Specifies details on how to handle (and presumably, fix) a vulnerability.
2761      * </pre>
2762      *
2763      * <code>
2764      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
2765      * </code>
2766      */
2767     io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder
getRemediationsOrBuilder(int index)2768         getRemediationsOrBuilder(int index);
2769   }
2770   /**
2771    *
2772    *
2773    * <pre>
2774    * Assessment provides all information that is related to a single
2775    * vulnerability for this product.
2776    * </pre>
2777    *
2778    * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Assessment}
2779    */
2780   public static final class Assessment extends com.google.protobuf.GeneratedMessageV3
2781       implements
2782       // @@protoc_insertion_point(message_implements:grafeas.v1.VulnerabilityAssessmentNote.Assessment)
2783       AssessmentOrBuilder {
2784     private static final long serialVersionUID = 0L;
2785     // Use Assessment.newBuilder() to construct.
Assessment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)2786     private Assessment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
2787       super(builder);
2788     }
2789 
Assessment()2790     private Assessment() {
2791       cve_ = "";
2792       shortDescription_ = "";
2793       longDescription_ = "";
2794       relatedUris_ = java.util.Collections.emptyList();
2795       state_ = 0;
2796       impacts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
2797       remediations_ = java.util.Collections.emptyList();
2798     }
2799 
2800     @java.lang.Override
2801     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)2802     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
2803       return new Assessment();
2804     }
2805 
2806     @java.lang.Override
getUnknownFields()2807     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
2808       return this.unknownFields;
2809     }
2810 
getDescriptor()2811     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2812       return io.grafeas.v1.Vex
2813           .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_descriptor;
2814     }
2815 
2816     @java.lang.Override
2817     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2818         internalGetFieldAccessorTable() {
2819       return io.grafeas.v1.Vex
2820           .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_fieldAccessorTable
2821           .ensureFieldAccessorsInitialized(
2822               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.class,
2823               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Builder.class);
2824     }
2825 
2826     /**
2827      *
2828      *
2829      * <pre>
2830      * Provides the state of this Vulnerability assessment.
2831      * </pre>
2832      *
2833      * Protobuf enum {@code grafeas.v1.VulnerabilityAssessmentNote.Assessment.State}
2834      */
2835     public enum State implements com.google.protobuf.ProtocolMessageEnum {
2836       /**
2837        *
2838        *
2839        * <pre>
2840        * No state is specified.
2841        * </pre>
2842        *
2843        * <code>STATE_UNSPECIFIED = 0;</code>
2844        */
2845       STATE_UNSPECIFIED(0),
2846       /**
2847        *
2848        *
2849        * <pre>
2850        * This product is known to be affected by this vulnerability.
2851        * </pre>
2852        *
2853        * <code>AFFECTED = 1;</code>
2854        */
2855       AFFECTED(1),
2856       /**
2857        *
2858        *
2859        * <pre>
2860        * This product is known to be not affected by this vulnerability.
2861        * </pre>
2862        *
2863        * <code>NOT_AFFECTED = 2;</code>
2864        */
2865       NOT_AFFECTED(2),
2866       /**
2867        *
2868        *
2869        * <pre>
2870        * This product contains a fix for this vulnerability.
2871        * </pre>
2872        *
2873        * <code>FIXED = 3;</code>
2874        */
2875       FIXED(3),
2876       /**
2877        *
2878        *
2879        * <pre>
2880        * It is not known yet whether these versions are or are not affected
2881        * by the vulnerability. However, it is still under investigation.
2882        * </pre>
2883        *
2884        * <code>UNDER_INVESTIGATION = 4;</code>
2885        */
2886       UNDER_INVESTIGATION(4),
2887       UNRECOGNIZED(-1),
2888       ;
2889 
2890       /**
2891        *
2892        *
2893        * <pre>
2894        * No state is specified.
2895        * </pre>
2896        *
2897        * <code>STATE_UNSPECIFIED = 0;</code>
2898        */
2899       public static final int STATE_UNSPECIFIED_VALUE = 0;
2900       /**
2901        *
2902        *
2903        * <pre>
2904        * This product is known to be affected by this vulnerability.
2905        * </pre>
2906        *
2907        * <code>AFFECTED = 1;</code>
2908        */
2909       public static final int AFFECTED_VALUE = 1;
2910       /**
2911        *
2912        *
2913        * <pre>
2914        * This product is known to be not affected by this vulnerability.
2915        * </pre>
2916        *
2917        * <code>NOT_AFFECTED = 2;</code>
2918        */
2919       public static final int NOT_AFFECTED_VALUE = 2;
2920       /**
2921        *
2922        *
2923        * <pre>
2924        * This product contains a fix for this vulnerability.
2925        * </pre>
2926        *
2927        * <code>FIXED = 3;</code>
2928        */
2929       public static final int FIXED_VALUE = 3;
2930       /**
2931        *
2932        *
2933        * <pre>
2934        * It is not known yet whether these versions are or are not affected
2935        * by the vulnerability. However, it is still under investigation.
2936        * </pre>
2937        *
2938        * <code>UNDER_INVESTIGATION = 4;</code>
2939        */
2940       public static final int UNDER_INVESTIGATION_VALUE = 4;
2941 
getNumber()2942       public final int getNumber() {
2943         if (this == UNRECOGNIZED) {
2944           throw new java.lang.IllegalArgumentException(
2945               "Can't get the number of an unknown enum value.");
2946         }
2947         return value;
2948       }
2949 
2950       /**
2951        * @param value The numeric wire value of the corresponding enum entry.
2952        * @return The enum associated with the given numeric wire value.
2953        * @deprecated Use {@link #forNumber(int)} instead.
2954        */
2955       @java.lang.Deprecated
valueOf(int value)2956       public static State valueOf(int value) {
2957         return forNumber(value);
2958       }
2959 
2960       /**
2961        * @param value The numeric wire value of the corresponding enum entry.
2962        * @return The enum associated with the given numeric wire value.
2963        */
forNumber(int value)2964       public static State forNumber(int value) {
2965         switch (value) {
2966           case 0:
2967             return STATE_UNSPECIFIED;
2968           case 1:
2969             return AFFECTED;
2970           case 2:
2971             return NOT_AFFECTED;
2972           case 3:
2973             return FIXED;
2974           case 4:
2975             return UNDER_INVESTIGATION;
2976           default:
2977             return null;
2978         }
2979       }
2980 
internalGetValueMap()2981       public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
2982         return internalValueMap;
2983       }
2984 
2985       private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
2986           new com.google.protobuf.Internal.EnumLiteMap<State>() {
2987             public State findValueByNumber(int number) {
2988               return State.forNumber(number);
2989             }
2990           };
2991 
getValueDescriptor()2992       public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
2993         if (this == UNRECOGNIZED) {
2994           throw new java.lang.IllegalStateException(
2995               "Can't get the descriptor of an unrecognized enum value.");
2996         }
2997         return getDescriptor().getValues().get(ordinal());
2998       }
2999 
getDescriptorForType()3000       public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
3001         return getDescriptor();
3002       }
3003 
getDescriptor()3004       public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
3005         return io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.getDescriptor()
3006             .getEnumTypes()
3007             .get(0);
3008       }
3009 
3010       private static final State[] VALUES = values();
3011 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)3012       public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3013         if (desc.getType() != getDescriptor()) {
3014           throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
3015         }
3016         if (desc.getIndex() == -1) {
3017           return UNRECOGNIZED;
3018         }
3019         return VALUES[desc.getIndex()];
3020       }
3021 
3022       private final int value;
3023 
State(int value)3024       private State(int value) {
3025         this.value = value;
3026       }
3027 
3028       // @@protoc_insertion_point(enum_scope:grafeas.v1.VulnerabilityAssessmentNote.Assessment.State)
3029     }
3030 
3031     public interface JustificationOrBuilder
3032         extends
3033         // @@protoc_insertion_point(interface_extends:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification)
3034         com.google.protobuf.MessageOrBuilder {
3035 
3036       /**
3037        *
3038        *
3039        * <pre>
3040        * The justification type for this vulnerability.
3041        * </pre>
3042        *
3043        * <code>
3044        * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1;
3045        * </code>
3046        *
3047        * @return The enum numeric value on the wire for justificationType.
3048        */
getJustificationTypeValue()3049       int getJustificationTypeValue();
3050       /**
3051        *
3052        *
3053        * <pre>
3054        * The justification type for this vulnerability.
3055        * </pre>
3056        *
3057        * <code>
3058        * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1;
3059        * </code>
3060        *
3061        * @return The justificationType.
3062        */
3063       io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
getJustificationType()3064           getJustificationType();
3065 
3066       /**
3067        *
3068        *
3069        * <pre>
3070        * Additional details on why this justification was chosen.
3071        * </pre>
3072        *
3073        * <code>string details = 2;</code>
3074        *
3075        * @return The details.
3076        */
getDetails()3077       java.lang.String getDetails();
3078       /**
3079        *
3080        *
3081        * <pre>
3082        * Additional details on why this justification was chosen.
3083        * </pre>
3084        *
3085        * <code>string details = 2;</code>
3086        *
3087        * @return The bytes for details.
3088        */
getDetailsBytes()3089       com.google.protobuf.ByteString getDetailsBytes();
3090     }
3091     /**
3092      *
3093      *
3094      * <pre>
3095      * Justification provides the justification when the state of the
3096      * assessment if NOT_AFFECTED.
3097      * </pre>
3098      *
3099      * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification}
3100      */
3101     public static final class Justification extends com.google.protobuf.GeneratedMessageV3
3102         implements
3103         // @@protoc_insertion_point(message_implements:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification)
3104         JustificationOrBuilder {
3105       private static final long serialVersionUID = 0L;
3106       // Use Justification.newBuilder() to construct.
Justification(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)3107       private Justification(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
3108         super(builder);
3109       }
3110 
Justification()3111       private Justification() {
3112         justificationType_ = 0;
3113         details_ = "";
3114       }
3115 
3116       @java.lang.Override
3117       @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)3118       protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
3119         return new Justification();
3120       }
3121 
3122       @java.lang.Override
getUnknownFields()3123       public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
3124         return this.unknownFields;
3125       }
3126 
getDescriptor()3127       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
3128         return io.grafeas.v1.Vex
3129             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Justification_descriptor;
3130       }
3131 
3132       @java.lang.Override
3133       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()3134           internalGetFieldAccessorTable() {
3135         return io.grafeas.v1.Vex
3136             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Justification_fieldAccessorTable
3137             .ensureFieldAccessorsInitialized(
3138                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.class,
3139                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.Builder.class);
3140       }
3141 
3142       /**
3143        *
3144        *
3145        * <pre>
3146        * Provides the type of justification.
3147        * </pre>
3148        *
3149        * Protobuf enum {@code
3150        * grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType}
3151        */
3152       public enum JustificationType implements com.google.protobuf.ProtocolMessageEnum {
3153         /**
3154          *
3155          *
3156          * <pre>
3157          * JUSTIFICATION_TYPE_UNSPECIFIED.
3158          * </pre>
3159          *
3160          * <code>JUSTIFICATION_TYPE_UNSPECIFIED = 0;</code>
3161          */
3162         JUSTIFICATION_TYPE_UNSPECIFIED(0),
3163         /**
3164          *
3165          *
3166          * <pre>
3167          * The vulnerable component is not present in the product.
3168          * </pre>
3169          *
3170          * <code>COMPONENT_NOT_PRESENT = 1;</code>
3171          */
3172         COMPONENT_NOT_PRESENT(1),
3173         /**
3174          *
3175          *
3176          * <pre>
3177          * The vulnerable code is not present. Typically this case
3178          * occurs when source code is configured or built in a way that excludes
3179          * the vulnerable code.
3180          * </pre>
3181          *
3182          * <code>VULNERABLE_CODE_NOT_PRESENT = 2;</code>
3183          */
3184         VULNERABLE_CODE_NOT_PRESENT(2),
3185         /**
3186          *
3187          *
3188          * <pre>
3189          * The vulnerable code can not be executed.
3190          * Typically this case occurs when the product includes the vulnerable
3191          * code but does not call or use the vulnerable code.
3192          * </pre>
3193          *
3194          * <code>VULNERABLE_CODE_NOT_IN_EXECUTE_PATH = 3;</code>
3195          */
3196         VULNERABLE_CODE_NOT_IN_EXECUTE_PATH(3),
3197         /**
3198          *
3199          *
3200          * <pre>
3201          * The vulnerable code cannot be controlled by an attacker to exploit
3202          * the vulnerability.
3203          * </pre>
3204          *
3205          * <code>VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY = 4;</code>
3206          */
3207         VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY(4),
3208         /**
3209          *
3210          *
3211          * <pre>
3212          * The product includes built-in protections or features that prevent
3213          * exploitation of the vulnerability. These built-in protections cannot
3214          * be subverted by the attacker and cannot be configured or disabled by
3215          * the user. These mitigations completely prevent exploitation based on
3216          * known attack vectors.
3217          * </pre>
3218          *
3219          * <code>INLINE_MITIGATIONS_ALREADY_EXIST = 5;</code>
3220          */
3221         INLINE_MITIGATIONS_ALREADY_EXIST(5),
3222         UNRECOGNIZED(-1),
3223         ;
3224 
3225         /**
3226          *
3227          *
3228          * <pre>
3229          * JUSTIFICATION_TYPE_UNSPECIFIED.
3230          * </pre>
3231          *
3232          * <code>JUSTIFICATION_TYPE_UNSPECIFIED = 0;</code>
3233          */
3234         public static final int JUSTIFICATION_TYPE_UNSPECIFIED_VALUE = 0;
3235         /**
3236          *
3237          *
3238          * <pre>
3239          * The vulnerable component is not present in the product.
3240          * </pre>
3241          *
3242          * <code>COMPONENT_NOT_PRESENT = 1;</code>
3243          */
3244         public static final int COMPONENT_NOT_PRESENT_VALUE = 1;
3245         /**
3246          *
3247          *
3248          * <pre>
3249          * The vulnerable code is not present. Typically this case
3250          * occurs when source code is configured or built in a way that excludes
3251          * the vulnerable code.
3252          * </pre>
3253          *
3254          * <code>VULNERABLE_CODE_NOT_PRESENT = 2;</code>
3255          */
3256         public static final int VULNERABLE_CODE_NOT_PRESENT_VALUE = 2;
3257         /**
3258          *
3259          *
3260          * <pre>
3261          * The vulnerable code can not be executed.
3262          * Typically this case occurs when the product includes the vulnerable
3263          * code but does not call or use the vulnerable code.
3264          * </pre>
3265          *
3266          * <code>VULNERABLE_CODE_NOT_IN_EXECUTE_PATH = 3;</code>
3267          */
3268         public static final int VULNERABLE_CODE_NOT_IN_EXECUTE_PATH_VALUE = 3;
3269         /**
3270          *
3271          *
3272          * <pre>
3273          * The vulnerable code cannot be controlled by an attacker to exploit
3274          * the vulnerability.
3275          * </pre>
3276          *
3277          * <code>VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY = 4;</code>
3278          */
3279         public static final int VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY_VALUE = 4;
3280         /**
3281          *
3282          *
3283          * <pre>
3284          * The product includes built-in protections or features that prevent
3285          * exploitation of the vulnerability. These built-in protections cannot
3286          * be subverted by the attacker and cannot be configured or disabled by
3287          * the user. These mitigations completely prevent exploitation based on
3288          * known attack vectors.
3289          * </pre>
3290          *
3291          * <code>INLINE_MITIGATIONS_ALREADY_EXIST = 5;</code>
3292          */
3293         public static final int INLINE_MITIGATIONS_ALREADY_EXIST_VALUE = 5;
3294 
getNumber()3295         public final int getNumber() {
3296           if (this == UNRECOGNIZED) {
3297             throw new java.lang.IllegalArgumentException(
3298                 "Can't get the number of an unknown enum value.");
3299           }
3300           return value;
3301         }
3302 
3303         /**
3304          * @param value The numeric wire value of the corresponding enum entry.
3305          * @return The enum associated with the given numeric wire value.
3306          * @deprecated Use {@link #forNumber(int)} instead.
3307          */
3308         @java.lang.Deprecated
valueOf(int value)3309         public static JustificationType valueOf(int value) {
3310           return forNumber(value);
3311         }
3312 
3313         /**
3314          * @param value The numeric wire value of the corresponding enum entry.
3315          * @return The enum associated with the given numeric wire value.
3316          */
forNumber(int value)3317         public static JustificationType forNumber(int value) {
3318           switch (value) {
3319             case 0:
3320               return JUSTIFICATION_TYPE_UNSPECIFIED;
3321             case 1:
3322               return COMPONENT_NOT_PRESENT;
3323             case 2:
3324               return VULNERABLE_CODE_NOT_PRESENT;
3325             case 3:
3326               return VULNERABLE_CODE_NOT_IN_EXECUTE_PATH;
3327             case 4:
3328               return VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY;
3329             case 5:
3330               return INLINE_MITIGATIONS_ALREADY_EXIST;
3331             default:
3332               return null;
3333           }
3334         }
3335 
3336         public static com.google.protobuf.Internal.EnumLiteMap<JustificationType>
internalGetValueMap()3337             internalGetValueMap() {
3338           return internalValueMap;
3339         }
3340 
3341         private static final com.google.protobuf.Internal.EnumLiteMap<JustificationType>
3342             internalValueMap =
3343                 new com.google.protobuf.Internal.EnumLiteMap<JustificationType>() {
3344                   public JustificationType findValueByNumber(int number) {
3345                     return JustificationType.forNumber(number);
3346                   }
3347                 };
3348 
getValueDescriptor()3349         public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
3350           if (this == UNRECOGNIZED) {
3351             throw new java.lang.IllegalStateException(
3352                 "Can't get the descriptor of an unrecognized enum value.");
3353           }
3354           return getDescriptor().getValues().get(ordinal());
3355         }
3356 
getDescriptorForType()3357         public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
3358           return getDescriptor();
3359         }
3360 
getDescriptor()3361         public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
3362           return io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.getDescriptor()
3363               .getEnumTypes()
3364               .get(0);
3365         }
3366 
3367         private static final JustificationType[] VALUES = values();
3368 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)3369         public static JustificationType valueOf(
3370             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3371           if (desc.getType() != getDescriptor()) {
3372             throw new java.lang.IllegalArgumentException(
3373                 "EnumValueDescriptor is not for this type.");
3374           }
3375           if (desc.getIndex() == -1) {
3376             return UNRECOGNIZED;
3377           }
3378           return VALUES[desc.getIndex()];
3379         }
3380 
3381         private final int value;
3382 
JustificationType(int value)3383         private JustificationType(int value) {
3384           this.value = value;
3385         }
3386 
3387         // @@protoc_insertion_point(enum_scope:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType)
3388       }
3389 
3390       public static final int JUSTIFICATION_TYPE_FIELD_NUMBER = 1;
3391       private int justificationType_ = 0;
3392       /**
3393        *
3394        *
3395        * <pre>
3396        * The justification type for this vulnerability.
3397        * </pre>
3398        *
3399        * <code>
3400        * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1;
3401        * </code>
3402        *
3403        * @return The enum numeric value on the wire for justificationType.
3404        */
3405       @java.lang.Override
getJustificationTypeValue()3406       public int getJustificationTypeValue() {
3407         return justificationType_;
3408       }
3409       /**
3410        *
3411        *
3412        * <pre>
3413        * The justification type for this vulnerability.
3414        * </pre>
3415        *
3416        * <code>
3417        * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1;
3418        * </code>
3419        *
3420        * @return The justificationType.
3421        */
3422       @java.lang.Override
3423       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
getJustificationType()3424           getJustificationType() {
3425         io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
3426             result =
3427                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
3428                     .forNumber(justificationType_);
3429         return result == null
3430             ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
3431                 .UNRECOGNIZED
3432             : result;
3433       }
3434 
3435       public static final int DETAILS_FIELD_NUMBER = 2;
3436 
3437       @SuppressWarnings("serial")
3438       private volatile java.lang.Object details_ = "";
3439       /**
3440        *
3441        *
3442        * <pre>
3443        * Additional details on why this justification was chosen.
3444        * </pre>
3445        *
3446        * <code>string details = 2;</code>
3447        *
3448        * @return The details.
3449        */
3450       @java.lang.Override
getDetails()3451       public java.lang.String getDetails() {
3452         java.lang.Object ref = details_;
3453         if (ref instanceof java.lang.String) {
3454           return (java.lang.String) ref;
3455         } else {
3456           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3457           java.lang.String s = bs.toStringUtf8();
3458           details_ = s;
3459           return s;
3460         }
3461       }
3462       /**
3463        *
3464        *
3465        * <pre>
3466        * Additional details on why this justification was chosen.
3467        * </pre>
3468        *
3469        * <code>string details = 2;</code>
3470        *
3471        * @return The bytes for details.
3472        */
3473       @java.lang.Override
getDetailsBytes()3474       public com.google.protobuf.ByteString getDetailsBytes() {
3475         java.lang.Object ref = details_;
3476         if (ref instanceof java.lang.String) {
3477           com.google.protobuf.ByteString b =
3478               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3479           details_ = b;
3480           return b;
3481         } else {
3482           return (com.google.protobuf.ByteString) ref;
3483         }
3484       }
3485 
3486       private byte memoizedIsInitialized = -1;
3487 
3488       @java.lang.Override
isInitialized()3489       public final boolean isInitialized() {
3490         byte isInitialized = memoizedIsInitialized;
3491         if (isInitialized == 1) return true;
3492         if (isInitialized == 0) return false;
3493 
3494         memoizedIsInitialized = 1;
3495         return true;
3496       }
3497 
3498       @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)3499       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
3500         if (justificationType_
3501             != io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
3502                 .JUSTIFICATION_TYPE_UNSPECIFIED
3503                 .getNumber()) {
3504           output.writeEnum(1, justificationType_);
3505         }
3506         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) {
3507           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_);
3508         }
3509         getUnknownFields().writeTo(output);
3510       }
3511 
3512       @java.lang.Override
getSerializedSize()3513       public int getSerializedSize() {
3514         int size = memoizedSize;
3515         if (size != -1) return size;
3516 
3517         size = 0;
3518         if (justificationType_
3519             != io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
3520                 .JUSTIFICATION_TYPE_UNSPECIFIED
3521                 .getNumber()) {
3522           size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, justificationType_);
3523         }
3524         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) {
3525           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_);
3526         }
3527         size += getUnknownFields().getSerializedSize();
3528         memoizedSize = size;
3529         return size;
3530       }
3531 
3532       @java.lang.Override
equals(final java.lang.Object obj)3533       public boolean equals(final java.lang.Object obj) {
3534         if (obj == this) {
3535           return true;
3536         }
3537         if (!(obj instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification)) {
3538           return super.equals(obj);
3539         }
3540         io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification other =
3541             (io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification) obj;
3542 
3543         if (justificationType_ != other.justificationType_) return false;
3544         if (!getDetails().equals(other.getDetails())) return false;
3545         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
3546         return true;
3547       }
3548 
3549       @java.lang.Override
hashCode()3550       public int hashCode() {
3551         if (memoizedHashCode != 0) {
3552           return memoizedHashCode;
3553         }
3554         int hash = 41;
3555         hash = (19 * hash) + getDescriptor().hashCode();
3556         hash = (37 * hash) + JUSTIFICATION_TYPE_FIELD_NUMBER;
3557         hash = (53 * hash) + justificationType_;
3558         hash = (37 * hash) + DETAILS_FIELD_NUMBER;
3559         hash = (53 * hash) + getDetails().hashCode();
3560         hash = (29 * hash) + getUnknownFields().hashCode();
3561         memoizedHashCode = hash;
3562         return hash;
3563       }
3564 
parseFrom( java.nio.ByteBuffer data)3565       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3566           java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
3567         return PARSER.parseFrom(data);
3568       }
3569 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3570       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3571           java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3572           throws com.google.protobuf.InvalidProtocolBufferException {
3573         return PARSER.parseFrom(data, extensionRegistry);
3574       }
3575 
parseFrom( com.google.protobuf.ByteString data)3576       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3577           com.google.protobuf.ByteString data)
3578           throws com.google.protobuf.InvalidProtocolBufferException {
3579         return PARSER.parseFrom(data);
3580       }
3581 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3582       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3583           com.google.protobuf.ByteString data,
3584           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3585           throws com.google.protobuf.InvalidProtocolBufferException {
3586         return PARSER.parseFrom(data, extensionRegistry);
3587       }
3588 
parseFrom( byte[] data)3589       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3590           byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
3591         return PARSER.parseFrom(data);
3592       }
3593 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3594       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3595           byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3596           throws com.google.protobuf.InvalidProtocolBufferException {
3597         return PARSER.parseFrom(data, extensionRegistry);
3598       }
3599 
parseFrom( java.io.InputStream input)3600       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3601           java.io.InputStream input) throws java.io.IOException {
3602         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3603       }
3604 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3605       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3606           java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3607           throws java.io.IOException {
3608         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3609             PARSER, input, extensionRegistry);
3610       }
3611 
3612       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
parseDelimitedFrom(java.io.InputStream input)3613           parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
3614         return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
3615       }
3616 
3617       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3618           parseDelimitedFrom(
3619               java.io.InputStream input,
3620               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3621               throws java.io.IOException {
3622         return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
3623             PARSER, input, extensionRegistry);
3624       }
3625 
parseFrom( com.google.protobuf.CodedInputStream input)3626       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3627           com.google.protobuf.CodedInputStream input) throws java.io.IOException {
3628         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3629       }
3630 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3631       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification parseFrom(
3632           com.google.protobuf.CodedInputStream input,
3633           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3634           throws java.io.IOException {
3635         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3636             PARSER, input, extensionRegistry);
3637       }
3638 
3639       @java.lang.Override
newBuilderForType()3640       public Builder newBuilderForType() {
3641         return newBuilder();
3642       }
3643 
newBuilder()3644       public static Builder newBuilder() {
3645         return DEFAULT_INSTANCE.toBuilder();
3646       }
3647 
newBuilder( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification prototype)3648       public static Builder newBuilder(
3649           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification prototype) {
3650         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
3651       }
3652 
3653       @java.lang.Override
toBuilder()3654       public Builder toBuilder() {
3655         return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
3656       }
3657 
3658       @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3659       protected Builder newBuilderForType(
3660           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3661         Builder builder = new Builder(parent);
3662         return builder;
3663       }
3664       /**
3665        *
3666        *
3667        * <pre>
3668        * Justification provides the justification when the state of the
3669        * assessment if NOT_AFFECTED.
3670        * </pre>
3671        *
3672        * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification}
3673        */
3674       public static final class Builder
3675           extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
3676           implements
3677           // @@protoc_insertion_point(builder_implements:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification)
3678           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationOrBuilder {
getDescriptor()3679         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
3680           return io.grafeas.v1.Vex
3681               .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Justification_descriptor;
3682         }
3683 
3684         @java.lang.Override
3685         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()3686             internalGetFieldAccessorTable() {
3687           return io.grafeas.v1.Vex
3688               .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Justification_fieldAccessorTable
3689               .ensureFieldAccessorsInitialized(
3690                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.class,
3691                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.Builder.class);
3692         }
3693 
3694         // Construct using
3695         // io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.newBuilder()
Builder()3696         private Builder() {}
3697 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3698         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3699           super(parent);
3700         }
3701 
3702         @java.lang.Override
clear()3703         public Builder clear() {
3704           super.clear();
3705           bitField0_ = 0;
3706           justificationType_ = 0;
3707           details_ = "";
3708           return this;
3709         }
3710 
3711         @java.lang.Override
getDescriptorForType()3712         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
3713           return io.grafeas.v1.Vex
3714               .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Justification_descriptor;
3715         }
3716 
3717         @java.lang.Override
3718         public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
getDefaultInstanceForType()3719             getDefaultInstanceForType() {
3720           return io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
3721               .getDefaultInstance();
3722         }
3723 
3724         @java.lang.Override
build()3725         public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification build() {
3726           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification result =
3727               buildPartial();
3728           if (!result.isInitialized()) {
3729             throw newUninitializedMessageException(result);
3730           }
3731           return result;
3732         }
3733 
3734         @java.lang.Override
buildPartial()3735         public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification buildPartial() {
3736           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification result =
3737               new io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification(this);
3738           if (bitField0_ != 0) {
3739             buildPartial0(result);
3740           }
3741           onBuilt();
3742           return result;
3743         }
3744 
buildPartial0( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification result)3745         private void buildPartial0(
3746             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification result) {
3747           int from_bitField0_ = bitField0_;
3748           if (((from_bitField0_ & 0x00000001) != 0)) {
3749             result.justificationType_ = justificationType_;
3750           }
3751           if (((from_bitField0_ & 0x00000002) != 0)) {
3752             result.details_ = details_;
3753           }
3754         }
3755 
3756         @java.lang.Override
clone()3757         public Builder clone() {
3758           return super.clone();
3759         }
3760 
3761         @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3762         public Builder setField(
3763             com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3764           return super.setField(field, value);
3765         }
3766 
3767         @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3768         public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
3769           return super.clearField(field);
3770         }
3771 
3772         @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3773         public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
3774           return super.clearOneof(oneof);
3775         }
3776 
3777         @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3778         public Builder setRepeatedField(
3779             com.google.protobuf.Descriptors.FieldDescriptor field,
3780             int index,
3781             java.lang.Object value) {
3782           return super.setRepeatedField(field, index, value);
3783         }
3784 
3785         @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3786         public Builder addRepeatedField(
3787             com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3788           return super.addRepeatedField(field, value);
3789         }
3790 
3791         @java.lang.Override
mergeFrom(com.google.protobuf.Message other)3792         public Builder mergeFrom(com.google.protobuf.Message other) {
3793           if (other instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification) {
3794             return mergeFrom(
3795                 (io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification) other);
3796           } else {
3797             super.mergeFrom(other);
3798             return this;
3799           }
3800         }
3801 
mergeFrom( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification other)3802         public Builder mergeFrom(
3803             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification other) {
3804           if (other
3805               == io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
3806                   .getDefaultInstance()) return this;
3807           if (other.justificationType_ != 0) {
3808             setJustificationTypeValue(other.getJustificationTypeValue());
3809           }
3810           if (!other.getDetails().isEmpty()) {
3811             details_ = other.details_;
3812             bitField0_ |= 0x00000002;
3813             onChanged();
3814           }
3815           this.mergeUnknownFields(other.getUnknownFields());
3816           onChanged();
3817           return this;
3818         }
3819 
3820         @java.lang.Override
isInitialized()3821         public final boolean isInitialized() {
3822           return true;
3823         }
3824 
3825         @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3826         public Builder mergeFrom(
3827             com.google.protobuf.CodedInputStream input,
3828             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3829             throws java.io.IOException {
3830           if (extensionRegistry == null) {
3831             throw new java.lang.NullPointerException();
3832           }
3833           try {
3834             boolean done = false;
3835             while (!done) {
3836               int tag = input.readTag();
3837               switch (tag) {
3838                 case 0:
3839                   done = true;
3840                   break;
3841                 case 8:
3842                   {
3843                     justificationType_ = input.readEnum();
3844                     bitField0_ |= 0x00000001;
3845                     break;
3846                   } // case 8
3847                 case 18:
3848                   {
3849                     details_ = input.readStringRequireUtf8();
3850                     bitField0_ |= 0x00000002;
3851                     break;
3852                   } // case 18
3853                 default:
3854                   {
3855                     if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3856                       done = true; // was an endgroup tag
3857                     }
3858                     break;
3859                   } // default:
3860               } // switch (tag)
3861             } // while (!done)
3862           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3863             throw e.unwrapIOException();
3864           } finally {
3865             onChanged();
3866           } // finally
3867           return this;
3868         }
3869 
3870         private int bitField0_;
3871 
3872         private int justificationType_ = 0;
3873         /**
3874          *
3875          *
3876          * <pre>
3877          * The justification type for this vulnerability.
3878          * </pre>
3879          *
3880          * <code>
3881          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1;
3882          * </code>
3883          *
3884          * @return The enum numeric value on the wire for justificationType.
3885          */
3886         @java.lang.Override
getJustificationTypeValue()3887         public int getJustificationTypeValue() {
3888           return justificationType_;
3889         }
3890         /**
3891          *
3892          *
3893          * <pre>
3894          * The justification type for this vulnerability.
3895          * </pre>
3896          *
3897          * <code>
3898          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1;
3899          * </code>
3900          *
3901          * @param value The enum numeric value on the wire for justificationType to set.
3902          * @return This builder for chaining.
3903          */
setJustificationTypeValue(int value)3904         public Builder setJustificationTypeValue(int value) {
3905           justificationType_ = value;
3906           bitField0_ |= 0x00000001;
3907           onChanged();
3908           return this;
3909         }
3910         /**
3911          *
3912          *
3913          * <pre>
3914          * The justification type for this vulnerability.
3915          * </pre>
3916          *
3917          * <code>
3918          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1;
3919          * </code>
3920          *
3921          * @return The justificationType.
3922          */
3923         @java.lang.Override
3924         public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
getJustificationType()3925             getJustificationType() {
3926           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
3927               result =
3928                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
3929                       .JustificationType.forNumber(justificationType_);
3930           return result == null
3931               ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
3932                   .UNRECOGNIZED
3933               : result;
3934         }
3935         /**
3936          *
3937          *
3938          * <pre>
3939          * The justification type for this vulnerability.
3940          * </pre>
3941          *
3942          * <code>
3943          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1;
3944          * </code>
3945          *
3946          * @param value The justificationType to set.
3947          * @return This builder for chaining.
3948          */
setJustificationType( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType value)3949         public Builder setJustificationType(
3950             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType
3951                 value) {
3952           if (value == null) {
3953             throw new NullPointerException();
3954           }
3955           bitField0_ |= 0x00000001;
3956           justificationType_ = value.getNumber();
3957           onChanged();
3958           return this;
3959         }
3960         /**
3961          *
3962          *
3963          * <pre>
3964          * The justification type for this vulnerability.
3965          * </pre>
3966          *
3967          * <code>
3968          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1;
3969          * </code>
3970          *
3971          * @return This builder for chaining.
3972          */
clearJustificationType()3973         public Builder clearJustificationType() {
3974           bitField0_ = (bitField0_ & ~0x00000001);
3975           justificationType_ = 0;
3976           onChanged();
3977           return this;
3978         }
3979 
3980         private java.lang.Object details_ = "";
3981         /**
3982          *
3983          *
3984          * <pre>
3985          * Additional details on why this justification was chosen.
3986          * </pre>
3987          *
3988          * <code>string details = 2;</code>
3989          *
3990          * @return The details.
3991          */
getDetails()3992         public java.lang.String getDetails() {
3993           java.lang.Object ref = details_;
3994           if (!(ref instanceof java.lang.String)) {
3995             com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3996             java.lang.String s = bs.toStringUtf8();
3997             details_ = s;
3998             return s;
3999           } else {
4000             return (java.lang.String) ref;
4001           }
4002         }
4003         /**
4004          *
4005          *
4006          * <pre>
4007          * Additional details on why this justification was chosen.
4008          * </pre>
4009          *
4010          * <code>string details = 2;</code>
4011          *
4012          * @return The bytes for details.
4013          */
getDetailsBytes()4014         public com.google.protobuf.ByteString getDetailsBytes() {
4015           java.lang.Object ref = details_;
4016           if (ref instanceof String) {
4017             com.google.protobuf.ByteString b =
4018                 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4019             details_ = b;
4020             return b;
4021           } else {
4022             return (com.google.protobuf.ByteString) ref;
4023           }
4024         }
4025         /**
4026          *
4027          *
4028          * <pre>
4029          * Additional details on why this justification was chosen.
4030          * </pre>
4031          *
4032          * <code>string details = 2;</code>
4033          *
4034          * @param value The details to set.
4035          * @return This builder for chaining.
4036          */
setDetails(java.lang.String value)4037         public Builder setDetails(java.lang.String value) {
4038           if (value == null) {
4039             throw new NullPointerException();
4040           }
4041           details_ = value;
4042           bitField0_ |= 0x00000002;
4043           onChanged();
4044           return this;
4045         }
4046         /**
4047          *
4048          *
4049          * <pre>
4050          * Additional details on why this justification was chosen.
4051          * </pre>
4052          *
4053          * <code>string details = 2;</code>
4054          *
4055          * @return This builder for chaining.
4056          */
clearDetails()4057         public Builder clearDetails() {
4058           details_ = getDefaultInstance().getDetails();
4059           bitField0_ = (bitField0_ & ~0x00000002);
4060           onChanged();
4061           return this;
4062         }
4063         /**
4064          *
4065          *
4066          * <pre>
4067          * Additional details on why this justification was chosen.
4068          * </pre>
4069          *
4070          * <code>string details = 2;</code>
4071          *
4072          * @param value The bytes for details to set.
4073          * @return This builder for chaining.
4074          */
setDetailsBytes(com.google.protobuf.ByteString value)4075         public Builder setDetailsBytes(com.google.protobuf.ByteString value) {
4076           if (value == null) {
4077             throw new NullPointerException();
4078           }
4079           checkByteStringIsUtf8(value);
4080           details_ = value;
4081           bitField0_ |= 0x00000002;
4082           onChanged();
4083           return this;
4084         }
4085 
4086         @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4087         public final Builder setUnknownFields(
4088             final com.google.protobuf.UnknownFieldSet unknownFields) {
4089           return super.setUnknownFields(unknownFields);
4090         }
4091 
4092         @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4093         public final Builder mergeUnknownFields(
4094             final com.google.protobuf.UnknownFieldSet unknownFields) {
4095           return super.mergeUnknownFields(unknownFields);
4096         }
4097 
4098         // @@protoc_insertion_point(builder_scope:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification)
4099       }
4100 
4101       // @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification)
4102       private static final io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
4103           DEFAULT_INSTANCE;
4104 
4105       static {
4106         DEFAULT_INSTANCE = new io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification();
4107       }
4108 
4109       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
getDefaultInstance()4110           getDefaultInstance() {
4111         return DEFAULT_INSTANCE;
4112       }
4113 
4114       private static final com.google.protobuf.Parser<Justification> PARSER =
4115           new com.google.protobuf.AbstractParser<Justification>() {
4116             @java.lang.Override
4117             public Justification parsePartialFrom(
4118                 com.google.protobuf.CodedInputStream input,
4119                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4120                 throws com.google.protobuf.InvalidProtocolBufferException {
4121               Builder builder = newBuilder();
4122               try {
4123                 builder.mergeFrom(input, extensionRegistry);
4124               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4125                 throw e.setUnfinishedMessage(builder.buildPartial());
4126               } catch (com.google.protobuf.UninitializedMessageException e) {
4127                 throw e.asInvalidProtocolBufferException()
4128                     .setUnfinishedMessage(builder.buildPartial());
4129               } catch (java.io.IOException e) {
4130                 throw new com.google.protobuf.InvalidProtocolBufferException(e)
4131                     .setUnfinishedMessage(builder.buildPartial());
4132               }
4133               return builder.buildPartial();
4134             }
4135           };
4136 
parser()4137       public static com.google.protobuf.Parser<Justification> parser() {
4138         return PARSER;
4139       }
4140 
4141       @java.lang.Override
getParserForType()4142       public com.google.protobuf.Parser<Justification> getParserForType() {
4143         return PARSER;
4144       }
4145 
4146       @java.lang.Override
4147       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
getDefaultInstanceForType()4148           getDefaultInstanceForType() {
4149         return DEFAULT_INSTANCE;
4150       }
4151     }
4152 
4153     public interface RemediationOrBuilder
4154         extends
4155         // @@protoc_insertion_point(interface_extends:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation)
4156         com.google.protobuf.MessageOrBuilder {
4157 
4158       /**
4159        *
4160        *
4161        * <pre>
4162        * The type of remediation that can be applied.
4163        * </pre>
4164        *
4165        * <code>
4166        * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1;
4167        * </code>
4168        *
4169        * @return The enum numeric value on the wire for remediationType.
4170        */
getRemediationTypeValue()4171       int getRemediationTypeValue();
4172       /**
4173        *
4174        *
4175        * <pre>
4176        * The type of remediation that can be applied.
4177        * </pre>
4178        *
4179        * <code>
4180        * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1;
4181        * </code>
4182        *
4183        * @return The remediationType.
4184        */
4185       io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
getRemediationType()4186           getRemediationType();
4187 
4188       /**
4189        *
4190        *
4191        * <pre>
4192        * Contains a comprehensive human-readable discussion of the remediation.
4193        * </pre>
4194        *
4195        * <code>string details = 2;</code>
4196        *
4197        * @return The details.
4198        */
getDetails()4199       java.lang.String getDetails();
4200       /**
4201        *
4202        *
4203        * <pre>
4204        * Contains a comprehensive human-readable discussion of the remediation.
4205        * </pre>
4206        *
4207        * <code>string details = 2;</code>
4208        *
4209        * @return The bytes for details.
4210        */
getDetailsBytes()4211       com.google.protobuf.ByteString getDetailsBytes();
4212 
4213       /**
4214        *
4215        *
4216        * <pre>
4217        * Contains the URL where to obtain the remediation.
4218        * </pre>
4219        *
4220        * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
4221        *
4222        * @return Whether the remediationUri field is set.
4223        */
hasRemediationUri()4224       boolean hasRemediationUri();
4225       /**
4226        *
4227        *
4228        * <pre>
4229        * Contains the URL where to obtain the remediation.
4230        * </pre>
4231        *
4232        * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
4233        *
4234        * @return The remediationUri.
4235        */
getRemediationUri()4236       io.grafeas.v1.RelatedUrl getRemediationUri();
4237       /**
4238        *
4239        *
4240        * <pre>
4241        * Contains the URL where to obtain the remediation.
4242        * </pre>
4243        *
4244        * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
4245        */
getRemediationUriOrBuilder()4246       io.grafeas.v1.RelatedUrlOrBuilder getRemediationUriOrBuilder();
4247     }
4248     /**
4249      *
4250      *
4251      * <pre>
4252      * Specifies details on how to handle (and presumably, fix) a vulnerability.
4253      * </pre>
4254      *
4255      * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation}
4256      */
4257     public static final class Remediation extends com.google.protobuf.GeneratedMessageV3
4258         implements
4259         // @@protoc_insertion_point(message_implements:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation)
4260         RemediationOrBuilder {
4261       private static final long serialVersionUID = 0L;
4262       // Use Remediation.newBuilder() to construct.
Remediation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)4263       private Remediation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
4264         super(builder);
4265       }
4266 
Remediation()4267       private Remediation() {
4268         remediationType_ = 0;
4269         details_ = "";
4270       }
4271 
4272       @java.lang.Override
4273       @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)4274       protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
4275         return new Remediation();
4276       }
4277 
4278       @java.lang.Override
getUnknownFields()4279       public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
4280         return this.unknownFields;
4281       }
4282 
getDescriptor()4283       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
4284         return io.grafeas.v1.Vex
4285             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Remediation_descriptor;
4286       }
4287 
4288       @java.lang.Override
4289       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()4290           internalGetFieldAccessorTable() {
4291         return io.grafeas.v1.Vex
4292             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Remediation_fieldAccessorTable
4293             .ensureFieldAccessorsInitialized(
4294                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.class,
4295                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder.class);
4296       }
4297 
4298       /**
4299        *
4300        *
4301        * <pre>
4302        * The type of remediation that can be applied.
4303        * </pre>
4304        *
4305        * Protobuf enum {@code
4306        * grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType}
4307        */
4308       public enum RemediationType implements com.google.protobuf.ProtocolMessageEnum {
4309         /**
4310          *
4311          *
4312          * <pre>
4313          * No remediation type specified.
4314          * </pre>
4315          *
4316          * <code>REMEDIATION_TYPE_UNSPECIFIED = 0;</code>
4317          */
4318         REMEDIATION_TYPE_UNSPECIFIED(0),
4319         /**
4320          *
4321          *
4322          * <pre>
4323          * A MITIGATION is available.
4324          * </pre>
4325          *
4326          * <code>MITIGATION = 1;</code>
4327          */
4328         MITIGATION(1),
4329         /**
4330          *
4331          *
4332          * <pre>
4333          * No fix is planned.
4334          * </pre>
4335          *
4336          * <code>NO_FIX_PLANNED = 2;</code>
4337          */
4338         NO_FIX_PLANNED(2),
4339         /**
4340          *
4341          *
4342          * <pre>
4343          * Not available.
4344          * </pre>
4345          *
4346          * <code>NONE_AVAILABLE = 3;</code>
4347          */
4348         NONE_AVAILABLE(3),
4349         /**
4350          *
4351          *
4352          * <pre>
4353          * A vendor fix is available.
4354          * </pre>
4355          *
4356          * <code>VENDOR_FIX = 4;</code>
4357          */
4358         VENDOR_FIX(4),
4359         /**
4360          *
4361          *
4362          * <pre>
4363          * A workaround is available.
4364          * </pre>
4365          *
4366          * <code>WORKAROUND = 5;</code>
4367          */
4368         WORKAROUND(5),
4369         UNRECOGNIZED(-1),
4370         ;
4371 
4372         /**
4373          *
4374          *
4375          * <pre>
4376          * No remediation type specified.
4377          * </pre>
4378          *
4379          * <code>REMEDIATION_TYPE_UNSPECIFIED = 0;</code>
4380          */
4381         public static final int REMEDIATION_TYPE_UNSPECIFIED_VALUE = 0;
4382         /**
4383          *
4384          *
4385          * <pre>
4386          * A MITIGATION is available.
4387          * </pre>
4388          *
4389          * <code>MITIGATION = 1;</code>
4390          */
4391         public static final int MITIGATION_VALUE = 1;
4392         /**
4393          *
4394          *
4395          * <pre>
4396          * No fix is planned.
4397          * </pre>
4398          *
4399          * <code>NO_FIX_PLANNED = 2;</code>
4400          */
4401         public static final int NO_FIX_PLANNED_VALUE = 2;
4402         /**
4403          *
4404          *
4405          * <pre>
4406          * Not available.
4407          * </pre>
4408          *
4409          * <code>NONE_AVAILABLE = 3;</code>
4410          */
4411         public static final int NONE_AVAILABLE_VALUE = 3;
4412         /**
4413          *
4414          *
4415          * <pre>
4416          * A vendor fix is available.
4417          * </pre>
4418          *
4419          * <code>VENDOR_FIX = 4;</code>
4420          */
4421         public static final int VENDOR_FIX_VALUE = 4;
4422         /**
4423          *
4424          *
4425          * <pre>
4426          * A workaround is available.
4427          * </pre>
4428          *
4429          * <code>WORKAROUND = 5;</code>
4430          */
4431         public static final int WORKAROUND_VALUE = 5;
4432 
getNumber()4433         public final int getNumber() {
4434           if (this == UNRECOGNIZED) {
4435             throw new java.lang.IllegalArgumentException(
4436                 "Can't get the number of an unknown enum value.");
4437           }
4438           return value;
4439         }
4440 
4441         /**
4442          * @param value The numeric wire value of the corresponding enum entry.
4443          * @return The enum associated with the given numeric wire value.
4444          * @deprecated Use {@link #forNumber(int)} instead.
4445          */
4446         @java.lang.Deprecated
valueOf(int value)4447         public static RemediationType valueOf(int value) {
4448           return forNumber(value);
4449         }
4450 
4451         /**
4452          * @param value The numeric wire value of the corresponding enum entry.
4453          * @return The enum associated with the given numeric wire value.
4454          */
forNumber(int value)4455         public static RemediationType forNumber(int value) {
4456           switch (value) {
4457             case 0:
4458               return REMEDIATION_TYPE_UNSPECIFIED;
4459             case 1:
4460               return MITIGATION;
4461             case 2:
4462               return NO_FIX_PLANNED;
4463             case 3:
4464               return NONE_AVAILABLE;
4465             case 4:
4466               return VENDOR_FIX;
4467             case 5:
4468               return WORKAROUND;
4469             default:
4470               return null;
4471           }
4472         }
4473 
4474         public static com.google.protobuf.Internal.EnumLiteMap<RemediationType>
internalGetValueMap()4475             internalGetValueMap() {
4476           return internalValueMap;
4477         }
4478 
4479         private static final com.google.protobuf.Internal.EnumLiteMap<RemediationType>
4480             internalValueMap =
4481                 new com.google.protobuf.Internal.EnumLiteMap<RemediationType>() {
4482                   public RemediationType findValueByNumber(int number) {
4483                     return RemediationType.forNumber(number);
4484                   }
4485                 };
4486 
getValueDescriptor()4487         public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
4488           if (this == UNRECOGNIZED) {
4489             throw new java.lang.IllegalStateException(
4490                 "Can't get the descriptor of an unrecognized enum value.");
4491           }
4492           return getDescriptor().getValues().get(ordinal());
4493         }
4494 
getDescriptorForType()4495         public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
4496           return getDescriptor();
4497         }
4498 
getDescriptor()4499         public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
4500           return io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.getDescriptor()
4501               .getEnumTypes()
4502               .get(0);
4503         }
4504 
4505         private static final RemediationType[] VALUES = values();
4506 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)4507         public static RemediationType valueOf(
4508             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
4509           if (desc.getType() != getDescriptor()) {
4510             throw new java.lang.IllegalArgumentException(
4511                 "EnumValueDescriptor is not for this type.");
4512           }
4513           if (desc.getIndex() == -1) {
4514             return UNRECOGNIZED;
4515           }
4516           return VALUES[desc.getIndex()];
4517         }
4518 
4519         private final int value;
4520 
RemediationType(int value)4521         private RemediationType(int value) {
4522           this.value = value;
4523         }
4524 
4525         // @@protoc_insertion_point(enum_scope:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType)
4526       }
4527 
4528       public static final int REMEDIATION_TYPE_FIELD_NUMBER = 1;
4529       private int remediationType_ = 0;
4530       /**
4531        *
4532        *
4533        * <pre>
4534        * The type of remediation that can be applied.
4535        * </pre>
4536        *
4537        * <code>
4538        * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1;
4539        * </code>
4540        *
4541        * @return The enum numeric value on the wire for remediationType.
4542        */
4543       @java.lang.Override
getRemediationTypeValue()4544       public int getRemediationTypeValue() {
4545         return remediationType_;
4546       }
4547       /**
4548        *
4549        *
4550        * <pre>
4551        * The type of remediation that can be applied.
4552        * </pre>
4553        *
4554        * <code>
4555        * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1;
4556        * </code>
4557        *
4558        * @return The remediationType.
4559        */
4560       @java.lang.Override
4561       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
getRemediationType()4562           getRemediationType() {
4563         io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType result =
4564             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
4565                 .forNumber(remediationType_);
4566         return result == null
4567             ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
4568                 .UNRECOGNIZED
4569             : result;
4570       }
4571 
4572       public static final int DETAILS_FIELD_NUMBER = 2;
4573 
4574       @SuppressWarnings("serial")
4575       private volatile java.lang.Object details_ = "";
4576       /**
4577        *
4578        *
4579        * <pre>
4580        * Contains a comprehensive human-readable discussion of the remediation.
4581        * </pre>
4582        *
4583        * <code>string details = 2;</code>
4584        *
4585        * @return The details.
4586        */
4587       @java.lang.Override
getDetails()4588       public java.lang.String getDetails() {
4589         java.lang.Object ref = details_;
4590         if (ref instanceof java.lang.String) {
4591           return (java.lang.String) ref;
4592         } else {
4593           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4594           java.lang.String s = bs.toStringUtf8();
4595           details_ = s;
4596           return s;
4597         }
4598       }
4599       /**
4600        *
4601        *
4602        * <pre>
4603        * Contains a comprehensive human-readable discussion of the remediation.
4604        * </pre>
4605        *
4606        * <code>string details = 2;</code>
4607        *
4608        * @return The bytes for details.
4609        */
4610       @java.lang.Override
getDetailsBytes()4611       public com.google.protobuf.ByteString getDetailsBytes() {
4612         java.lang.Object ref = details_;
4613         if (ref instanceof java.lang.String) {
4614           com.google.protobuf.ByteString b =
4615               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4616           details_ = b;
4617           return b;
4618         } else {
4619           return (com.google.protobuf.ByteString) ref;
4620         }
4621       }
4622 
4623       public static final int REMEDIATION_URI_FIELD_NUMBER = 3;
4624       private io.grafeas.v1.RelatedUrl remediationUri_;
4625       /**
4626        *
4627        *
4628        * <pre>
4629        * Contains the URL where to obtain the remediation.
4630        * </pre>
4631        *
4632        * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
4633        *
4634        * @return Whether the remediationUri field is set.
4635        */
4636       @java.lang.Override
hasRemediationUri()4637       public boolean hasRemediationUri() {
4638         return remediationUri_ != null;
4639       }
4640       /**
4641        *
4642        *
4643        * <pre>
4644        * Contains the URL where to obtain the remediation.
4645        * </pre>
4646        *
4647        * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
4648        *
4649        * @return The remediationUri.
4650        */
4651       @java.lang.Override
getRemediationUri()4652       public io.grafeas.v1.RelatedUrl getRemediationUri() {
4653         return remediationUri_ == null
4654             ? io.grafeas.v1.RelatedUrl.getDefaultInstance()
4655             : remediationUri_;
4656       }
4657       /**
4658        *
4659        *
4660        * <pre>
4661        * Contains the URL where to obtain the remediation.
4662        * </pre>
4663        *
4664        * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
4665        */
4666       @java.lang.Override
getRemediationUriOrBuilder()4667       public io.grafeas.v1.RelatedUrlOrBuilder getRemediationUriOrBuilder() {
4668         return remediationUri_ == null
4669             ? io.grafeas.v1.RelatedUrl.getDefaultInstance()
4670             : remediationUri_;
4671       }
4672 
4673       private byte memoizedIsInitialized = -1;
4674 
4675       @java.lang.Override
isInitialized()4676       public final boolean isInitialized() {
4677         byte isInitialized = memoizedIsInitialized;
4678         if (isInitialized == 1) return true;
4679         if (isInitialized == 0) return false;
4680 
4681         memoizedIsInitialized = 1;
4682         return true;
4683       }
4684 
4685       @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)4686       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
4687         if (remediationType_
4688             != io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
4689                 .REMEDIATION_TYPE_UNSPECIFIED
4690                 .getNumber()) {
4691           output.writeEnum(1, remediationType_);
4692         }
4693         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) {
4694           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_);
4695         }
4696         if (remediationUri_ != null) {
4697           output.writeMessage(3, getRemediationUri());
4698         }
4699         getUnknownFields().writeTo(output);
4700       }
4701 
4702       @java.lang.Override
getSerializedSize()4703       public int getSerializedSize() {
4704         int size = memoizedSize;
4705         if (size != -1) return size;
4706 
4707         size = 0;
4708         if (remediationType_
4709             != io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
4710                 .REMEDIATION_TYPE_UNSPECIFIED
4711                 .getNumber()) {
4712           size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, remediationType_);
4713         }
4714         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) {
4715           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_);
4716         }
4717         if (remediationUri_ != null) {
4718           size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRemediationUri());
4719         }
4720         size += getUnknownFields().getSerializedSize();
4721         memoizedSize = size;
4722         return size;
4723       }
4724 
4725       @java.lang.Override
equals(final java.lang.Object obj)4726       public boolean equals(final java.lang.Object obj) {
4727         if (obj == this) {
4728           return true;
4729         }
4730         if (!(obj instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation)) {
4731           return super.equals(obj);
4732         }
4733         io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation other =
4734             (io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation) obj;
4735 
4736         if (remediationType_ != other.remediationType_) return false;
4737         if (!getDetails().equals(other.getDetails())) return false;
4738         if (hasRemediationUri() != other.hasRemediationUri()) return false;
4739         if (hasRemediationUri()) {
4740           if (!getRemediationUri().equals(other.getRemediationUri())) return false;
4741         }
4742         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
4743         return true;
4744       }
4745 
4746       @java.lang.Override
hashCode()4747       public int hashCode() {
4748         if (memoizedHashCode != 0) {
4749           return memoizedHashCode;
4750         }
4751         int hash = 41;
4752         hash = (19 * hash) + getDescriptor().hashCode();
4753         hash = (37 * hash) + REMEDIATION_TYPE_FIELD_NUMBER;
4754         hash = (53 * hash) + remediationType_;
4755         hash = (37 * hash) + DETAILS_FIELD_NUMBER;
4756         hash = (53 * hash) + getDetails().hashCode();
4757         if (hasRemediationUri()) {
4758           hash = (37 * hash) + REMEDIATION_URI_FIELD_NUMBER;
4759           hash = (53 * hash) + getRemediationUri().hashCode();
4760         }
4761         hash = (29 * hash) + getUnknownFields().hashCode();
4762         memoizedHashCode = hash;
4763         return hash;
4764       }
4765 
parseFrom( java.nio.ByteBuffer data)4766       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4767           java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
4768         return PARSER.parseFrom(data);
4769       }
4770 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4771       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4772           java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4773           throws com.google.protobuf.InvalidProtocolBufferException {
4774         return PARSER.parseFrom(data, extensionRegistry);
4775       }
4776 
parseFrom( com.google.protobuf.ByteString data)4777       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4778           com.google.protobuf.ByteString data)
4779           throws com.google.protobuf.InvalidProtocolBufferException {
4780         return PARSER.parseFrom(data);
4781       }
4782 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4783       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4784           com.google.protobuf.ByteString data,
4785           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4786           throws com.google.protobuf.InvalidProtocolBufferException {
4787         return PARSER.parseFrom(data, extensionRegistry);
4788       }
4789 
parseFrom( byte[] data)4790       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4791           byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
4792         return PARSER.parseFrom(data);
4793       }
4794 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4795       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4796           byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4797           throws com.google.protobuf.InvalidProtocolBufferException {
4798         return PARSER.parseFrom(data, extensionRegistry);
4799       }
4800 
parseFrom( java.io.InputStream input)4801       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4802           java.io.InputStream input) throws java.io.IOException {
4803         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4804       }
4805 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4806       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4807           java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4808           throws java.io.IOException {
4809         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
4810             PARSER, input, extensionRegistry);
4811       }
4812 
4813       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
parseDelimitedFrom(java.io.InputStream input)4814           parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
4815         return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
4816       }
4817 
4818       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4819           parseDelimitedFrom(
4820               java.io.InputStream input,
4821               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4822               throws java.io.IOException {
4823         return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
4824             PARSER, input, extensionRegistry);
4825       }
4826 
parseFrom( com.google.protobuf.CodedInputStream input)4827       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4828           com.google.protobuf.CodedInputStream input) throws java.io.IOException {
4829         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4830       }
4831 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4832       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation parseFrom(
4833           com.google.protobuf.CodedInputStream input,
4834           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4835           throws java.io.IOException {
4836         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
4837             PARSER, input, extensionRegistry);
4838       }
4839 
4840       @java.lang.Override
newBuilderForType()4841       public Builder newBuilderForType() {
4842         return newBuilder();
4843       }
4844 
newBuilder()4845       public static Builder newBuilder() {
4846         return DEFAULT_INSTANCE.toBuilder();
4847       }
4848 
newBuilder( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation prototype)4849       public static Builder newBuilder(
4850           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation prototype) {
4851         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
4852       }
4853 
4854       @java.lang.Override
toBuilder()4855       public Builder toBuilder() {
4856         return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
4857       }
4858 
4859       @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4860       protected Builder newBuilderForType(
4861           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
4862         Builder builder = new Builder(parent);
4863         return builder;
4864       }
4865       /**
4866        *
4867        *
4868        * <pre>
4869        * Specifies details on how to handle (and presumably, fix) a vulnerability.
4870        * </pre>
4871        *
4872        * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation}
4873        */
4874       public static final class Builder
4875           extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
4876           implements
4877           // @@protoc_insertion_point(builder_implements:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation)
4878           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder {
getDescriptor()4879         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
4880           return io.grafeas.v1.Vex
4881               .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Remediation_descriptor;
4882         }
4883 
4884         @java.lang.Override
4885         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()4886             internalGetFieldAccessorTable() {
4887           return io.grafeas.v1.Vex
4888               .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Remediation_fieldAccessorTable
4889               .ensureFieldAccessorsInitialized(
4890                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.class,
4891                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder.class);
4892         }
4893 
4894         // Construct using
4895         // io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.newBuilder()
Builder()4896         private Builder() {}
4897 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4898         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
4899           super(parent);
4900         }
4901 
4902         @java.lang.Override
clear()4903         public Builder clear() {
4904           super.clear();
4905           bitField0_ = 0;
4906           remediationType_ = 0;
4907           details_ = "";
4908           remediationUri_ = null;
4909           if (remediationUriBuilder_ != null) {
4910             remediationUriBuilder_.dispose();
4911             remediationUriBuilder_ = null;
4912           }
4913           return this;
4914         }
4915 
4916         @java.lang.Override
getDescriptorForType()4917         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
4918           return io.grafeas.v1.Vex
4919               .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_Remediation_descriptor;
4920         }
4921 
4922         @java.lang.Override
4923         public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
getDefaultInstanceForType()4924             getDefaultInstanceForType() {
4925           return io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
4926               .getDefaultInstance();
4927         }
4928 
4929         @java.lang.Override
build()4930         public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation build() {
4931           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation result = buildPartial();
4932           if (!result.isInitialized()) {
4933             throw newUninitializedMessageException(result);
4934           }
4935           return result;
4936         }
4937 
4938         @java.lang.Override
buildPartial()4939         public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation buildPartial() {
4940           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation result =
4941               new io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation(this);
4942           if (bitField0_ != 0) {
4943             buildPartial0(result);
4944           }
4945           onBuilt();
4946           return result;
4947         }
4948 
buildPartial0( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation result)4949         private void buildPartial0(
4950             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation result) {
4951           int from_bitField0_ = bitField0_;
4952           if (((from_bitField0_ & 0x00000001) != 0)) {
4953             result.remediationType_ = remediationType_;
4954           }
4955           if (((from_bitField0_ & 0x00000002) != 0)) {
4956             result.details_ = details_;
4957           }
4958           if (((from_bitField0_ & 0x00000004) != 0)) {
4959             result.remediationUri_ =
4960                 remediationUriBuilder_ == null ? remediationUri_ : remediationUriBuilder_.build();
4961           }
4962         }
4963 
4964         @java.lang.Override
clone()4965         public Builder clone() {
4966           return super.clone();
4967         }
4968 
4969         @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4970         public Builder setField(
4971             com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
4972           return super.setField(field, value);
4973         }
4974 
4975         @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)4976         public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
4977           return super.clearField(field);
4978         }
4979 
4980         @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)4981         public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
4982           return super.clearOneof(oneof);
4983         }
4984 
4985         @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)4986         public Builder setRepeatedField(
4987             com.google.protobuf.Descriptors.FieldDescriptor field,
4988             int index,
4989             java.lang.Object value) {
4990           return super.setRepeatedField(field, index, value);
4991         }
4992 
4993         @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4994         public Builder addRepeatedField(
4995             com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
4996           return super.addRepeatedField(field, value);
4997         }
4998 
4999         @java.lang.Override
mergeFrom(com.google.protobuf.Message other)5000         public Builder mergeFrom(com.google.protobuf.Message other) {
5001           if (other instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation) {
5002             return mergeFrom(
5003                 (io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation) other);
5004           } else {
5005             super.mergeFrom(other);
5006             return this;
5007           }
5008         }
5009 
mergeFrom( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation other)5010         public Builder mergeFrom(
5011             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation other) {
5012           if (other
5013               == io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
5014                   .getDefaultInstance()) return this;
5015           if (other.remediationType_ != 0) {
5016             setRemediationTypeValue(other.getRemediationTypeValue());
5017           }
5018           if (!other.getDetails().isEmpty()) {
5019             details_ = other.details_;
5020             bitField0_ |= 0x00000002;
5021             onChanged();
5022           }
5023           if (other.hasRemediationUri()) {
5024             mergeRemediationUri(other.getRemediationUri());
5025           }
5026           this.mergeUnknownFields(other.getUnknownFields());
5027           onChanged();
5028           return this;
5029         }
5030 
5031         @java.lang.Override
isInitialized()5032         public final boolean isInitialized() {
5033           return true;
5034         }
5035 
5036         @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5037         public Builder mergeFrom(
5038             com.google.protobuf.CodedInputStream input,
5039             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5040             throws java.io.IOException {
5041           if (extensionRegistry == null) {
5042             throw new java.lang.NullPointerException();
5043           }
5044           try {
5045             boolean done = false;
5046             while (!done) {
5047               int tag = input.readTag();
5048               switch (tag) {
5049                 case 0:
5050                   done = true;
5051                   break;
5052                 case 8:
5053                   {
5054                     remediationType_ = input.readEnum();
5055                     bitField0_ |= 0x00000001;
5056                     break;
5057                   } // case 8
5058                 case 18:
5059                   {
5060                     details_ = input.readStringRequireUtf8();
5061                     bitField0_ |= 0x00000002;
5062                     break;
5063                   } // case 18
5064                 case 26:
5065                   {
5066                     input.readMessage(
5067                         getRemediationUriFieldBuilder().getBuilder(), extensionRegistry);
5068                     bitField0_ |= 0x00000004;
5069                     break;
5070                   } // case 26
5071                 default:
5072                   {
5073                     if (!super.parseUnknownField(input, extensionRegistry, tag)) {
5074                       done = true; // was an endgroup tag
5075                     }
5076                     break;
5077                   } // default:
5078               } // switch (tag)
5079             } // while (!done)
5080           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5081             throw e.unwrapIOException();
5082           } finally {
5083             onChanged();
5084           } // finally
5085           return this;
5086         }
5087 
5088         private int bitField0_;
5089 
5090         private int remediationType_ = 0;
5091         /**
5092          *
5093          *
5094          * <pre>
5095          * The type of remediation that can be applied.
5096          * </pre>
5097          *
5098          * <code>
5099          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1;
5100          * </code>
5101          *
5102          * @return The enum numeric value on the wire for remediationType.
5103          */
5104         @java.lang.Override
getRemediationTypeValue()5105         public int getRemediationTypeValue() {
5106           return remediationType_;
5107         }
5108         /**
5109          *
5110          *
5111          * <pre>
5112          * The type of remediation that can be applied.
5113          * </pre>
5114          *
5115          * <code>
5116          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1;
5117          * </code>
5118          *
5119          * @param value The enum numeric value on the wire for remediationType to set.
5120          * @return This builder for chaining.
5121          */
setRemediationTypeValue(int value)5122         public Builder setRemediationTypeValue(int value) {
5123           remediationType_ = value;
5124           bitField0_ |= 0x00000001;
5125           onChanged();
5126           return this;
5127         }
5128         /**
5129          *
5130          *
5131          * <pre>
5132          * The type of remediation that can be applied.
5133          * </pre>
5134          *
5135          * <code>
5136          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1;
5137          * </code>
5138          *
5139          * @return The remediationType.
5140          */
5141         @java.lang.Override
5142         public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
getRemediationType()5143             getRemediationType() {
5144           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType result =
5145               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
5146                   .forNumber(remediationType_);
5147           return result == null
5148               ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
5149                   .UNRECOGNIZED
5150               : result;
5151         }
5152         /**
5153          *
5154          *
5155          * <pre>
5156          * The type of remediation that can be applied.
5157          * </pre>
5158          *
5159          * <code>
5160          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1;
5161          * </code>
5162          *
5163          * @param value The remediationType to set.
5164          * @return This builder for chaining.
5165          */
setRemediationType( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType value)5166         public Builder setRemediationType(
5167             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType
5168                 value) {
5169           if (value == null) {
5170             throw new NullPointerException();
5171           }
5172           bitField0_ |= 0x00000001;
5173           remediationType_ = value.getNumber();
5174           onChanged();
5175           return this;
5176         }
5177         /**
5178          *
5179          *
5180          * <pre>
5181          * The type of remediation that can be applied.
5182          * </pre>
5183          *
5184          * <code>
5185          * .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1;
5186          * </code>
5187          *
5188          * @return This builder for chaining.
5189          */
clearRemediationType()5190         public Builder clearRemediationType() {
5191           bitField0_ = (bitField0_ & ~0x00000001);
5192           remediationType_ = 0;
5193           onChanged();
5194           return this;
5195         }
5196 
5197         private java.lang.Object details_ = "";
5198         /**
5199          *
5200          *
5201          * <pre>
5202          * Contains a comprehensive human-readable discussion of the remediation.
5203          * </pre>
5204          *
5205          * <code>string details = 2;</code>
5206          *
5207          * @return The details.
5208          */
getDetails()5209         public java.lang.String getDetails() {
5210           java.lang.Object ref = details_;
5211           if (!(ref instanceof java.lang.String)) {
5212             com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5213             java.lang.String s = bs.toStringUtf8();
5214             details_ = s;
5215             return s;
5216           } else {
5217             return (java.lang.String) ref;
5218           }
5219         }
5220         /**
5221          *
5222          *
5223          * <pre>
5224          * Contains a comprehensive human-readable discussion of the remediation.
5225          * </pre>
5226          *
5227          * <code>string details = 2;</code>
5228          *
5229          * @return The bytes for details.
5230          */
getDetailsBytes()5231         public com.google.protobuf.ByteString getDetailsBytes() {
5232           java.lang.Object ref = details_;
5233           if (ref instanceof String) {
5234             com.google.protobuf.ByteString b =
5235                 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5236             details_ = b;
5237             return b;
5238           } else {
5239             return (com.google.protobuf.ByteString) ref;
5240           }
5241         }
5242         /**
5243          *
5244          *
5245          * <pre>
5246          * Contains a comprehensive human-readable discussion of the remediation.
5247          * </pre>
5248          *
5249          * <code>string details = 2;</code>
5250          *
5251          * @param value The details to set.
5252          * @return This builder for chaining.
5253          */
setDetails(java.lang.String value)5254         public Builder setDetails(java.lang.String value) {
5255           if (value == null) {
5256             throw new NullPointerException();
5257           }
5258           details_ = value;
5259           bitField0_ |= 0x00000002;
5260           onChanged();
5261           return this;
5262         }
5263         /**
5264          *
5265          *
5266          * <pre>
5267          * Contains a comprehensive human-readable discussion of the remediation.
5268          * </pre>
5269          *
5270          * <code>string details = 2;</code>
5271          *
5272          * @return This builder for chaining.
5273          */
clearDetails()5274         public Builder clearDetails() {
5275           details_ = getDefaultInstance().getDetails();
5276           bitField0_ = (bitField0_ & ~0x00000002);
5277           onChanged();
5278           return this;
5279         }
5280         /**
5281          *
5282          *
5283          * <pre>
5284          * Contains a comprehensive human-readable discussion of the remediation.
5285          * </pre>
5286          *
5287          * <code>string details = 2;</code>
5288          *
5289          * @param value The bytes for details to set.
5290          * @return This builder for chaining.
5291          */
setDetailsBytes(com.google.protobuf.ByteString value)5292         public Builder setDetailsBytes(com.google.protobuf.ByteString value) {
5293           if (value == null) {
5294             throw new NullPointerException();
5295           }
5296           checkByteStringIsUtf8(value);
5297           details_ = value;
5298           bitField0_ |= 0x00000002;
5299           onChanged();
5300           return this;
5301         }
5302 
5303         private io.grafeas.v1.RelatedUrl remediationUri_;
5304         private com.google.protobuf.SingleFieldBuilderV3<
5305                 io.grafeas.v1.RelatedUrl,
5306                 io.grafeas.v1.RelatedUrl.Builder,
5307                 io.grafeas.v1.RelatedUrlOrBuilder>
5308             remediationUriBuilder_;
5309         /**
5310          *
5311          *
5312          * <pre>
5313          * Contains the URL where to obtain the remediation.
5314          * </pre>
5315          *
5316          * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
5317          *
5318          * @return Whether the remediationUri field is set.
5319          */
hasRemediationUri()5320         public boolean hasRemediationUri() {
5321           return ((bitField0_ & 0x00000004) != 0);
5322         }
5323         /**
5324          *
5325          *
5326          * <pre>
5327          * Contains the URL where to obtain the remediation.
5328          * </pre>
5329          *
5330          * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
5331          *
5332          * @return The remediationUri.
5333          */
getRemediationUri()5334         public io.grafeas.v1.RelatedUrl getRemediationUri() {
5335           if (remediationUriBuilder_ == null) {
5336             return remediationUri_ == null
5337                 ? io.grafeas.v1.RelatedUrl.getDefaultInstance()
5338                 : remediationUri_;
5339           } else {
5340             return remediationUriBuilder_.getMessage();
5341           }
5342         }
5343         /**
5344          *
5345          *
5346          * <pre>
5347          * Contains the URL where to obtain the remediation.
5348          * </pre>
5349          *
5350          * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
5351          */
setRemediationUri(io.grafeas.v1.RelatedUrl value)5352         public Builder setRemediationUri(io.grafeas.v1.RelatedUrl value) {
5353           if (remediationUriBuilder_ == null) {
5354             if (value == null) {
5355               throw new NullPointerException();
5356             }
5357             remediationUri_ = value;
5358           } else {
5359             remediationUriBuilder_.setMessage(value);
5360           }
5361           bitField0_ |= 0x00000004;
5362           onChanged();
5363           return this;
5364         }
5365         /**
5366          *
5367          *
5368          * <pre>
5369          * Contains the URL where to obtain the remediation.
5370          * </pre>
5371          *
5372          * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
5373          */
setRemediationUri(io.grafeas.v1.RelatedUrl.Builder builderForValue)5374         public Builder setRemediationUri(io.grafeas.v1.RelatedUrl.Builder builderForValue) {
5375           if (remediationUriBuilder_ == null) {
5376             remediationUri_ = builderForValue.build();
5377           } else {
5378             remediationUriBuilder_.setMessage(builderForValue.build());
5379           }
5380           bitField0_ |= 0x00000004;
5381           onChanged();
5382           return this;
5383         }
5384         /**
5385          *
5386          *
5387          * <pre>
5388          * Contains the URL where to obtain the remediation.
5389          * </pre>
5390          *
5391          * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
5392          */
mergeRemediationUri(io.grafeas.v1.RelatedUrl value)5393         public Builder mergeRemediationUri(io.grafeas.v1.RelatedUrl value) {
5394           if (remediationUriBuilder_ == null) {
5395             if (((bitField0_ & 0x00000004) != 0)
5396                 && remediationUri_ != null
5397                 && remediationUri_ != io.grafeas.v1.RelatedUrl.getDefaultInstance()) {
5398               getRemediationUriBuilder().mergeFrom(value);
5399             } else {
5400               remediationUri_ = value;
5401             }
5402           } else {
5403             remediationUriBuilder_.mergeFrom(value);
5404           }
5405           bitField0_ |= 0x00000004;
5406           onChanged();
5407           return this;
5408         }
5409         /**
5410          *
5411          *
5412          * <pre>
5413          * Contains the URL where to obtain the remediation.
5414          * </pre>
5415          *
5416          * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
5417          */
clearRemediationUri()5418         public Builder clearRemediationUri() {
5419           bitField0_ = (bitField0_ & ~0x00000004);
5420           remediationUri_ = null;
5421           if (remediationUriBuilder_ != null) {
5422             remediationUriBuilder_.dispose();
5423             remediationUriBuilder_ = null;
5424           }
5425           onChanged();
5426           return this;
5427         }
5428         /**
5429          *
5430          *
5431          * <pre>
5432          * Contains the URL where to obtain the remediation.
5433          * </pre>
5434          *
5435          * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
5436          */
getRemediationUriBuilder()5437         public io.grafeas.v1.RelatedUrl.Builder getRemediationUriBuilder() {
5438           bitField0_ |= 0x00000004;
5439           onChanged();
5440           return getRemediationUriFieldBuilder().getBuilder();
5441         }
5442         /**
5443          *
5444          *
5445          * <pre>
5446          * Contains the URL where to obtain the remediation.
5447          * </pre>
5448          *
5449          * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
5450          */
getRemediationUriOrBuilder()5451         public io.grafeas.v1.RelatedUrlOrBuilder getRemediationUriOrBuilder() {
5452           if (remediationUriBuilder_ != null) {
5453             return remediationUriBuilder_.getMessageOrBuilder();
5454           } else {
5455             return remediationUri_ == null
5456                 ? io.grafeas.v1.RelatedUrl.getDefaultInstance()
5457                 : remediationUri_;
5458           }
5459         }
5460         /**
5461          *
5462          *
5463          * <pre>
5464          * Contains the URL where to obtain the remediation.
5465          * </pre>
5466          *
5467          * <code>.grafeas.v1.RelatedUrl remediation_uri = 3;</code>
5468          */
5469         private com.google.protobuf.SingleFieldBuilderV3<
5470                 io.grafeas.v1.RelatedUrl,
5471                 io.grafeas.v1.RelatedUrl.Builder,
5472                 io.grafeas.v1.RelatedUrlOrBuilder>
getRemediationUriFieldBuilder()5473             getRemediationUriFieldBuilder() {
5474           if (remediationUriBuilder_ == null) {
5475             remediationUriBuilder_ =
5476                 new com.google.protobuf.SingleFieldBuilderV3<
5477                     io.grafeas.v1.RelatedUrl,
5478                     io.grafeas.v1.RelatedUrl.Builder,
5479                     io.grafeas.v1.RelatedUrlOrBuilder>(
5480                     getRemediationUri(), getParentForChildren(), isClean());
5481             remediationUri_ = null;
5482           }
5483           return remediationUriBuilder_;
5484         }
5485 
5486         @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5487         public final Builder setUnknownFields(
5488             final com.google.protobuf.UnknownFieldSet unknownFields) {
5489           return super.setUnknownFields(unknownFields);
5490         }
5491 
5492         @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5493         public final Builder mergeUnknownFields(
5494             final com.google.protobuf.UnknownFieldSet unknownFields) {
5495           return super.mergeUnknownFields(unknownFields);
5496         }
5497 
5498         // @@protoc_insertion_point(builder_scope:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation)
5499       }
5500 
5501       // @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation)
5502       private static final io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
5503           DEFAULT_INSTANCE;
5504 
5505       static {
5506         DEFAULT_INSTANCE = new io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation();
5507       }
5508 
5509       public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
getDefaultInstance()5510           getDefaultInstance() {
5511         return DEFAULT_INSTANCE;
5512       }
5513 
5514       private static final com.google.protobuf.Parser<Remediation> PARSER =
5515           new com.google.protobuf.AbstractParser<Remediation>() {
5516             @java.lang.Override
5517             public Remediation parsePartialFrom(
5518                 com.google.protobuf.CodedInputStream input,
5519                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5520                 throws com.google.protobuf.InvalidProtocolBufferException {
5521               Builder builder = newBuilder();
5522               try {
5523                 builder.mergeFrom(input, extensionRegistry);
5524               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5525                 throw e.setUnfinishedMessage(builder.buildPartial());
5526               } catch (com.google.protobuf.UninitializedMessageException e) {
5527                 throw e.asInvalidProtocolBufferException()
5528                     .setUnfinishedMessage(builder.buildPartial());
5529               } catch (java.io.IOException e) {
5530                 throw new com.google.protobuf.InvalidProtocolBufferException(e)
5531                     .setUnfinishedMessage(builder.buildPartial());
5532               }
5533               return builder.buildPartial();
5534             }
5535           };
5536 
parser()5537       public static com.google.protobuf.Parser<Remediation> parser() {
5538         return PARSER;
5539       }
5540 
5541       @java.lang.Override
getParserForType()5542       public com.google.protobuf.Parser<Remediation> getParserForType() {
5543         return PARSER;
5544       }
5545 
5546       @java.lang.Override
5547       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
getDefaultInstanceForType()5548           getDefaultInstanceForType() {
5549         return DEFAULT_INSTANCE;
5550       }
5551     }
5552 
5553     public static final int CVE_FIELD_NUMBER = 1;
5554 
5555     @SuppressWarnings("serial")
5556     private volatile java.lang.Object cve_ = "";
5557     /**
5558      *
5559      *
5560      * <pre>
5561      * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
5562      * tracking number for the vulnerability.
5563      * </pre>
5564      *
5565      * <code>string cve = 1;</code>
5566      *
5567      * @return The cve.
5568      */
5569     @java.lang.Override
getCve()5570     public java.lang.String getCve() {
5571       java.lang.Object ref = cve_;
5572       if (ref instanceof java.lang.String) {
5573         return (java.lang.String) ref;
5574       } else {
5575         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5576         java.lang.String s = bs.toStringUtf8();
5577         cve_ = s;
5578         return s;
5579       }
5580     }
5581     /**
5582      *
5583      *
5584      * <pre>
5585      * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
5586      * tracking number for the vulnerability.
5587      * </pre>
5588      *
5589      * <code>string cve = 1;</code>
5590      *
5591      * @return The bytes for cve.
5592      */
5593     @java.lang.Override
getCveBytes()5594     public com.google.protobuf.ByteString getCveBytes() {
5595       java.lang.Object ref = cve_;
5596       if (ref instanceof java.lang.String) {
5597         com.google.protobuf.ByteString b =
5598             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5599         cve_ = b;
5600         return b;
5601       } else {
5602         return (com.google.protobuf.ByteString) ref;
5603       }
5604     }
5605 
5606     public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 2;
5607 
5608     @SuppressWarnings("serial")
5609     private volatile java.lang.Object shortDescription_ = "";
5610     /**
5611      *
5612      *
5613      * <pre>
5614      * A one sentence description of this Vex.
5615      * </pre>
5616      *
5617      * <code>string short_description = 2;</code>
5618      *
5619      * @return The shortDescription.
5620      */
5621     @java.lang.Override
getShortDescription()5622     public java.lang.String getShortDescription() {
5623       java.lang.Object ref = shortDescription_;
5624       if (ref instanceof java.lang.String) {
5625         return (java.lang.String) ref;
5626       } else {
5627         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5628         java.lang.String s = bs.toStringUtf8();
5629         shortDescription_ = s;
5630         return s;
5631       }
5632     }
5633     /**
5634      *
5635      *
5636      * <pre>
5637      * A one sentence description of this Vex.
5638      * </pre>
5639      *
5640      * <code>string short_description = 2;</code>
5641      *
5642      * @return The bytes for shortDescription.
5643      */
5644     @java.lang.Override
getShortDescriptionBytes()5645     public com.google.protobuf.ByteString getShortDescriptionBytes() {
5646       java.lang.Object ref = shortDescription_;
5647       if (ref instanceof java.lang.String) {
5648         com.google.protobuf.ByteString b =
5649             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5650         shortDescription_ = b;
5651         return b;
5652       } else {
5653         return (com.google.protobuf.ByteString) ref;
5654       }
5655     }
5656 
5657     public static final int LONG_DESCRIPTION_FIELD_NUMBER = 3;
5658 
5659     @SuppressWarnings("serial")
5660     private volatile java.lang.Object longDescription_ = "";
5661     /**
5662      *
5663      *
5664      * <pre>
5665      * A detailed description of this Vex.
5666      * </pre>
5667      *
5668      * <code>string long_description = 3;</code>
5669      *
5670      * @return The longDescription.
5671      */
5672     @java.lang.Override
getLongDescription()5673     public java.lang.String getLongDescription() {
5674       java.lang.Object ref = longDescription_;
5675       if (ref instanceof java.lang.String) {
5676         return (java.lang.String) ref;
5677       } else {
5678         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5679         java.lang.String s = bs.toStringUtf8();
5680         longDescription_ = s;
5681         return s;
5682       }
5683     }
5684     /**
5685      *
5686      *
5687      * <pre>
5688      * A detailed description of this Vex.
5689      * </pre>
5690      *
5691      * <code>string long_description = 3;</code>
5692      *
5693      * @return The bytes for longDescription.
5694      */
5695     @java.lang.Override
getLongDescriptionBytes()5696     public com.google.protobuf.ByteString getLongDescriptionBytes() {
5697       java.lang.Object ref = longDescription_;
5698       if (ref instanceof java.lang.String) {
5699         com.google.protobuf.ByteString b =
5700             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5701         longDescription_ = b;
5702         return b;
5703       } else {
5704         return (com.google.protobuf.ByteString) ref;
5705       }
5706     }
5707 
5708     public static final int RELATED_URIS_FIELD_NUMBER = 4;
5709 
5710     @SuppressWarnings("serial")
5711     private java.util.List<io.grafeas.v1.RelatedUrl> relatedUris_;
5712     /**
5713      *
5714      *
5715      * <pre>
5716      * Holds a list of references associated with this vulnerability item and
5717      * assessment. These uris have additional information about the
5718      * vulnerability and the assessment itself. E.g. Link to a document which
5719      * details how this assessment concluded the state of this vulnerability.
5720      * </pre>
5721      *
5722      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
5723      */
5724     @java.lang.Override
getRelatedUrisList()5725     public java.util.List<io.grafeas.v1.RelatedUrl> getRelatedUrisList() {
5726       return relatedUris_;
5727     }
5728     /**
5729      *
5730      *
5731      * <pre>
5732      * Holds a list of references associated with this vulnerability item and
5733      * assessment. These uris have additional information about the
5734      * vulnerability and the assessment itself. E.g. Link to a document which
5735      * details how this assessment concluded the state of this vulnerability.
5736      * </pre>
5737      *
5738      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
5739      */
5740     @java.lang.Override
5741     public java.util.List<? extends io.grafeas.v1.RelatedUrlOrBuilder>
getRelatedUrisOrBuilderList()5742         getRelatedUrisOrBuilderList() {
5743       return relatedUris_;
5744     }
5745     /**
5746      *
5747      *
5748      * <pre>
5749      * Holds a list of references associated with this vulnerability item and
5750      * assessment. These uris have additional information about the
5751      * vulnerability and the assessment itself. E.g. Link to a document which
5752      * details how this assessment concluded the state of this vulnerability.
5753      * </pre>
5754      *
5755      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
5756      */
5757     @java.lang.Override
getRelatedUrisCount()5758     public int getRelatedUrisCount() {
5759       return relatedUris_.size();
5760     }
5761     /**
5762      *
5763      *
5764      * <pre>
5765      * Holds a list of references associated with this vulnerability item and
5766      * assessment. These uris have additional information about the
5767      * vulnerability and the assessment itself. E.g. Link to a document which
5768      * details how this assessment concluded the state of this vulnerability.
5769      * </pre>
5770      *
5771      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
5772      */
5773     @java.lang.Override
getRelatedUris(int index)5774     public io.grafeas.v1.RelatedUrl getRelatedUris(int index) {
5775       return relatedUris_.get(index);
5776     }
5777     /**
5778      *
5779      *
5780      * <pre>
5781      * Holds a list of references associated with this vulnerability item and
5782      * assessment. These uris have additional information about the
5783      * vulnerability and the assessment itself. E.g. Link to a document which
5784      * details how this assessment concluded the state of this vulnerability.
5785      * </pre>
5786      *
5787      * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
5788      */
5789     @java.lang.Override
getRelatedUrisOrBuilder(int index)5790     public io.grafeas.v1.RelatedUrlOrBuilder getRelatedUrisOrBuilder(int index) {
5791       return relatedUris_.get(index);
5792     }
5793 
5794     public static final int STATE_FIELD_NUMBER = 5;
5795     private int state_ = 0;
5796     /**
5797      *
5798      *
5799      * <pre>
5800      * Provides the state of this Vulnerability assessment.
5801      * </pre>
5802      *
5803      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5;</code>
5804      *
5805      * @return The enum numeric value on the wire for state.
5806      */
5807     @java.lang.Override
getStateValue()5808     public int getStateValue() {
5809       return state_;
5810     }
5811     /**
5812      *
5813      *
5814      * <pre>
5815      * Provides the state of this Vulnerability assessment.
5816      * </pre>
5817      *
5818      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5;</code>
5819      *
5820      * @return The state.
5821      */
5822     @java.lang.Override
getState()5823     public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State getState() {
5824       io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State result =
5825           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State.forNumber(state_);
5826       return result == null
5827           ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State.UNRECOGNIZED
5828           : result;
5829     }
5830 
5831     public static final int IMPACTS_FIELD_NUMBER = 6;
5832 
5833     @SuppressWarnings("serial")
5834     private com.google.protobuf.LazyStringList impacts_;
5835     /**
5836      *
5837      *
5838      * <pre>
5839      * Contains information about the impact of this vulnerability,
5840      * this will change with time.
5841      * </pre>
5842      *
5843      * <code>repeated string impacts = 6;</code>
5844      *
5845      * @return A list containing the impacts.
5846      */
getImpactsList()5847     public com.google.protobuf.ProtocolStringList getImpactsList() {
5848       return impacts_;
5849     }
5850     /**
5851      *
5852      *
5853      * <pre>
5854      * Contains information about the impact of this vulnerability,
5855      * this will change with time.
5856      * </pre>
5857      *
5858      * <code>repeated string impacts = 6;</code>
5859      *
5860      * @return The count of impacts.
5861      */
getImpactsCount()5862     public int getImpactsCount() {
5863       return impacts_.size();
5864     }
5865     /**
5866      *
5867      *
5868      * <pre>
5869      * Contains information about the impact of this vulnerability,
5870      * this will change with time.
5871      * </pre>
5872      *
5873      * <code>repeated string impacts = 6;</code>
5874      *
5875      * @param index The index of the element to return.
5876      * @return The impacts at the given index.
5877      */
getImpacts(int index)5878     public java.lang.String getImpacts(int index) {
5879       return impacts_.get(index);
5880     }
5881     /**
5882      *
5883      *
5884      * <pre>
5885      * Contains information about the impact of this vulnerability,
5886      * this will change with time.
5887      * </pre>
5888      *
5889      * <code>repeated string impacts = 6;</code>
5890      *
5891      * @param index The index of the value to return.
5892      * @return The bytes of the impacts at the given index.
5893      */
getImpactsBytes(int index)5894     public com.google.protobuf.ByteString getImpactsBytes(int index) {
5895       return impacts_.getByteString(index);
5896     }
5897 
5898     public static final int JUSTIFICATION_FIELD_NUMBER = 7;
5899     private io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification_;
5900     /**
5901      *
5902      *
5903      * <pre>
5904      * Justification provides the justification when the state of the
5905      * assessment if NOT_AFFECTED.
5906      * </pre>
5907      *
5908      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
5909      * </code>
5910      *
5911      * @return Whether the justification field is set.
5912      */
5913     @java.lang.Override
hasJustification()5914     public boolean hasJustification() {
5915       return justification_ != null;
5916     }
5917     /**
5918      *
5919      *
5920      * <pre>
5921      * Justification provides the justification when the state of the
5922      * assessment if NOT_AFFECTED.
5923      * </pre>
5924      *
5925      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
5926      * </code>
5927      *
5928      * @return The justification.
5929      */
5930     @java.lang.Override
getJustification()5931     public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification getJustification() {
5932       return justification_ == null
5933           ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.getDefaultInstance()
5934           : justification_;
5935     }
5936     /**
5937      *
5938      *
5939      * <pre>
5940      * Justification provides the justification when the state of the
5941      * assessment if NOT_AFFECTED.
5942      * </pre>
5943      *
5944      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
5945      * </code>
5946      */
5947     @java.lang.Override
5948     public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationOrBuilder
getJustificationOrBuilder()5949         getJustificationOrBuilder() {
5950       return justification_ == null
5951           ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.getDefaultInstance()
5952           : justification_;
5953     }
5954 
5955     public static final int REMEDIATIONS_FIELD_NUMBER = 8;
5956 
5957     @SuppressWarnings("serial")
5958     private java.util.List<io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation>
5959         remediations_;
5960     /**
5961      *
5962      *
5963      * <pre>
5964      * Specifies details on how to handle (and presumably, fix) a vulnerability.
5965      * </pre>
5966      *
5967      * <code>
5968      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
5969      * </code>
5970      */
5971     @java.lang.Override
5972     public java.util.List<io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation>
getRemediationsList()5973         getRemediationsList() {
5974       return remediations_;
5975     }
5976     /**
5977      *
5978      *
5979      * <pre>
5980      * Specifies details on how to handle (and presumably, fix) a vulnerability.
5981      * </pre>
5982      *
5983      * <code>
5984      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
5985      * </code>
5986      */
5987     @java.lang.Override
5988     public java.util.List<
5989             ? extends io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder>
getRemediationsOrBuilderList()5990         getRemediationsOrBuilderList() {
5991       return remediations_;
5992     }
5993     /**
5994      *
5995      *
5996      * <pre>
5997      * Specifies details on how to handle (and presumably, fix) a vulnerability.
5998      * </pre>
5999      *
6000      * <code>
6001      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
6002      * </code>
6003      */
6004     @java.lang.Override
getRemediationsCount()6005     public int getRemediationsCount() {
6006       return remediations_.size();
6007     }
6008     /**
6009      *
6010      *
6011      * <pre>
6012      * Specifies details on how to handle (and presumably, fix) a vulnerability.
6013      * </pre>
6014      *
6015      * <code>
6016      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
6017      * </code>
6018      */
6019     @java.lang.Override
getRemediations( int index)6020     public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation getRemediations(
6021         int index) {
6022       return remediations_.get(index);
6023     }
6024     /**
6025      *
6026      *
6027      * <pre>
6028      * Specifies details on how to handle (and presumably, fix) a vulnerability.
6029      * </pre>
6030      *
6031      * <code>
6032      * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
6033      * </code>
6034      */
6035     @java.lang.Override
6036     public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder
getRemediationsOrBuilder(int index)6037         getRemediationsOrBuilder(int index) {
6038       return remediations_.get(index);
6039     }
6040 
6041     private byte memoizedIsInitialized = -1;
6042 
6043     @java.lang.Override
isInitialized()6044     public final boolean isInitialized() {
6045       byte isInitialized = memoizedIsInitialized;
6046       if (isInitialized == 1) return true;
6047       if (isInitialized == 0) return false;
6048 
6049       memoizedIsInitialized = 1;
6050       return true;
6051     }
6052 
6053     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)6054     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
6055       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cve_)) {
6056         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cve_);
6057       }
6058       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortDescription_)) {
6059         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortDescription_);
6060       }
6061       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longDescription_)) {
6062         com.google.protobuf.GeneratedMessageV3.writeString(output, 3, longDescription_);
6063       }
6064       for (int i = 0; i < relatedUris_.size(); i++) {
6065         output.writeMessage(4, relatedUris_.get(i));
6066       }
6067       if (state_
6068           != io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State.STATE_UNSPECIFIED
6069               .getNumber()) {
6070         output.writeEnum(5, state_);
6071       }
6072       for (int i = 0; i < impacts_.size(); i++) {
6073         com.google.protobuf.GeneratedMessageV3.writeString(output, 6, impacts_.getRaw(i));
6074       }
6075       if (justification_ != null) {
6076         output.writeMessage(7, getJustification());
6077       }
6078       for (int i = 0; i < remediations_.size(); i++) {
6079         output.writeMessage(8, remediations_.get(i));
6080       }
6081       getUnknownFields().writeTo(output);
6082     }
6083 
6084     @java.lang.Override
getSerializedSize()6085     public int getSerializedSize() {
6086       int size = memoizedSize;
6087       if (size != -1) return size;
6088 
6089       size = 0;
6090       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cve_)) {
6091         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cve_);
6092       }
6093       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortDescription_)) {
6094         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortDescription_);
6095       }
6096       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longDescription_)) {
6097         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, longDescription_);
6098       }
6099       for (int i = 0; i < relatedUris_.size(); i++) {
6100         size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, relatedUris_.get(i));
6101       }
6102       if (state_
6103           != io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State.STATE_UNSPECIFIED
6104               .getNumber()) {
6105         size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_);
6106       }
6107       {
6108         int dataSize = 0;
6109         for (int i = 0; i < impacts_.size(); i++) {
6110           dataSize += computeStringSizeNoTag(impacts_.getRaw(i));
6111         }
6112         size += dataSize;
6113         size += 1 * getImpactsList().size();
6114       }
6115       if (justification_ != null) {
6116         size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getJustification());
6117       }
6118       for (int i = 0; i < remediations_.size(); i++) {
6119         size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, remediations_.get(i));
6120       }
6121       size += getUnknownFields().getSerializedSize();
6122       memoizedSize = size;
6123       return size;
6124     }
6125 
6126     @java.lang.Override
equals(final java.lang.Object obj)6127     public boolean equals(final java.lang.Object obj) {
6128       if (obj == this) {
6129         return true;
6130       }
6131       if (!(obj instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Assessment)) {
6132         return super.equals(obj);
6133       }
6134       io.grafeas.v1.VulnerabilityAssessmentNote.Assessment other =
6135           (io.grafeas.v1.VulnerabilityAssessmentNote.Assessment) obj;
6136 
6137       if (!getCve().equals(other.getCve())) return false;
6138       if (!getShortDescription().equals(other.getShortDescription())) return false;
6139       if (!getLongDescription().equals(other.getLongDescription())) return false;
6140       if (!getRelatedUrisList().equals(other.getRelatedUrisList())) return false;
6141       if (state_ != other.state_) return false;
6142       if (!getImpactsList().equals(other.getImpactsList())) return false;
6143       if (hasJustification() != other.hasJustification()) return false;
6144       if (hasJustification()) {
6145         if (!getJustification().equals(other.getJustification())) return false;
6146       }
6147       if (!getRemediationsList().equals(other.getRemediationsList())) return false;
6148       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
6149       return true;
6150     }
6151 
6152     @java.lang.Override
hashCode()6153     public int hashCode() {
6154       if (memoizedHashCode != 0) {
6155         return memoizedHashCode;
6156       }
6157       int hash = 41;
6158       hash = (19 * hash) + getDescriptor().hashCode();
6159       hash = (37 * hash) + CVE_FIELD_NUMBER;
6160       hash = (53 * hash) + getCve().hashCode();
6161       hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER;
6162       hash = (53 * hash) + getShortDescription().hashCode();
6163       hash = (37 * hash) + LONG_DESCRIPTION_FIELD_NUMBER;
6164       hash = (53 * hash) + getLongDescription().hashCode();
6165       if (getRelatedUrisCount() > 0) {
6166         hash = (37 * hash) + RELATED_URIS_FIELD_NUMBER;
6167         hash = (53 * hash) + getRelatedUrisList().hashCode();
6168       }
6169       hash = (37 * hash) + STATE_FIELD_NUMBER;
6170       hash = (53 * hash) + state_;
6171       if (getImpactsCount() > 0) {
6172         hash = (37 * hash) + IMPACTS_FIELD_NUMBER;
6173         hash = (53 * hash) + getImpactsList().hashCode();
6174       }
6175       if (hasJustification()) {
6176         hash = (37 * hash) + JUSTIFICATION_FIELD_NUMBER;
6177         hash = (53 * hash) + getJustification().hashCode();
6178       }
6179       if (getRemediationsCount() > 0) {
6180         hash = (37 * hash) + REMEDIATIONS_FIELD_NUMBER;
6181         hash = (53 * hash) + getRemediationsList().hashCode();
6182       }
6183       hash = (29 * hash) + getUnknownFields().hashCode();
6184       memoizedHashCode = hash;
6185       return hash;
6186     }
6187 
parseFrom( java.nio.ByteBuffer data)6188     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(
6189         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
6190       return PARSER.parseFrom(data);
6191     }
6192 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6193     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(
6194         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6195         throws com.google.protobuf.InvalidProtocolBufferException {
6196       return PARSER.parseFrom(data, extensionRegistry);
6197     }
6198 
parseFrom( com.google.protobuf.ByteString data)6199     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(
6200         com.google.protobuf.ByteString data)
6201         throws com.google.protobuf.InvalidProtocolBufferException {
6202       return PARSER.parseFrom(data);
6203     }
6204 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6205     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(
6206         com.google.protobuf.ByteString data,
6207         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6208         throws com.google.protobuf.InvalidProtocolBufferException {
6209       return PARSER.parseFrom(data, extensionRegistry);
6210     }
6211 
parseFrom(byte[] data)6212     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(byte[] data)
6213         throws com.google.protobuf.InvalidProtocolBufferException {
6214       return PARSER.parseFrom(data);
6215     }
6216 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6217     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(
6218         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6219         throws com.google.protobuf.InvalidProtocolBufferException {
6220       return PARSER.parseFrom(data, extensionRegistry);
6221     }
6222 
parseFrom( java.io.InputStream input)6223     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(
6224         java.io.InputStream input) throws java.io.IOException {
6225       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
6226     }
6227 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6228     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(
6229         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6230         throws java.io.IOException {
6231       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
6232           PARSER, input, extensionRegistry);
6233     }
6234 
parseDelimitedFrom( java.io.InputStream input)6235     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseDelimitedFrom(
6236         java.io.InputStream input) throws java.io.IOException {
6237       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
6238     }
6239 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6240     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseDelimitedFrom(
6241         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6242         throws java.io.IOException {
6243       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
6244           PARSER, input, extensionRegistry);
6245     }
6246 
parseFrom( com.google.protobuf.CodedInputStream input)6247     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(
6248         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
6249       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
6250     }
6251 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6252     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment parseFrom(
6253         com.google.protobuf.CodedInputStream input,
6254         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6255         throws java.io.IOException {
6256       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
6257           PARSER, input, extensionRegistry);
6258     }
6259 
6260     @java.lang.Override
newBuilderForType()6261     public Builder newBuilderForType() {
6262       return newBuilder();
6263     }
6264 
newBuilder()6265     public static Builder newBuilder() {
6266       return DEFAULT_INSTANCE.toBuilder();
6267     }
6268 
newBuilder( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment prototype)6269     public static Builder newBuilder(
6270         io.grafeas.v1.VulnerabilityAssessmentNote.Assessment prototype) {
6271       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
6272     }
6273 
6274     @java.lang.Override
toBuilder()6275     public Builder toBuilder() {
6276       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
6277     }
6278 
6279     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)6280     protected Builder newBuilderForType(
6281         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
6282       Builder builder = new Builder(parent);
6283       return builder;
6284     }
6285     /**
6286      *
6287      *
6288      * <pre>
6289      * Assessment provides all information that is related to a single
6290      * vulnerability for this product.
6291      * </pre>
6292      *
6293      * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote.Assessment}
6294      */
6295     public static final class Builder
6296         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
6297         implements
6298         // @@protoc_insertion_point(builder_implements:grafeas.v1.VulnerabilityAssessmentNote.Assessment)
6299         io.grafeas.v1.VulnerabilityAssessmentNote.AssessmentOrBuilder {
getDescriptor()6300       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
6301         return io.grafeas.v1.Vex
6302             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_descriptor;
6303       }
6304 
6305       @java.lang.Override
6306       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()6307           internalGetFieldAccessorTable() {
6308         return io.grafeas.v1.Vex
6309             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_fieldAccessorTable
6310             .ensureFieldAccessorsInitialized(
6311                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.class,
6312                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Builder.class);
6313       }
6314 
6315       // Construct using io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.newBuilder()
Builder()6316       private Builder() {}
6317 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)6318       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
6319         super(parent);
6320       }
6321 
6322       @java.lang.Override
clear()6323       public Builder clear() {
6324         super.clear();
6325         bitField0_ = 0;
6326         cve_ = "";
6327         shortDescription_ = "";
6328         longDescription_ = "";
6329         if (relatedUrisBuilder_ == null) {
6330           relatedUris_ = java.util.Collections.emptyList();
6331         } else {
6332           relatedUris_ = null;
6333           relatedUrisBuilder_.clear();
6334         }
6335         bitField0_ = (bitField0_ & ~0x00000008);
6336         state_ = 0;
6337         impacts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
6338         bitField0_ = (bitField0_ & ~0x00000020);
6339         justification_ = null;
6340         if (justificationBuilder_ != null) {
6341           justificationBuilder_.dispose();
6342           justificationBuilder_ = null;
6343         }
6344         if (remediationsBuilder_ == null) {
6345           remediations_ = java.util.Collections.emptyList();
6346         } else {
6347           remediations_ = null;
6348           remediationsBuilder_.clear();
6349         }
6350         bitField0_ = (bitField0_ & ~0x00000080);
6351         return this;
6352       }
6353 
6354       @java.lang.Override
getDescriptorForType()6355       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
6356         return io.grafeas.v1.Vex
6357             .internal_static_grafeas_v1_VulnerabilityAssessmentNote_Assessment_descriptor;
6358       }
6359 
6360       @java.lang.Override
getDefaultInstanceForType()6361       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment getDefaultInstanceForType() {
6362         return io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.getDefaultInstance();
6363       }
6364 
6365       @java.lang.Override
build()6366       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment build() {
6367         io.grafeas.v1.VulnerabilityAssessmentNote.Assessment result = buildPartial();
6368         if (!result.isInitialized()) {
6369           throw newUninitializedMessageException(result);
6370         }
6371         return result;
6372       }
6373 
6374       @java.lang.Override
buildPartial()6375       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment buildPartial() {
6376         io.grafeas.v1.VulnerabilityAssessmentNote.Assessment result =
6377             new io.grafeas.v1.VulnerabilityAssessmentNote.Assessment(this);
6378         buildPartialRepeatedFields(result);
6379         if (bitField0_ != 0) {
6380           buildPartial0(result);
6381         }
6382         onBuilt();
6383         return result;
6384       }
6385 
buildPartialRepeatedFields( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment result)6386       private void buildPartialRepeatedFields(
6387           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment result) {
6388         if (relatedUrisBuilder_ == null) {
6389           if (((bitField0_ & 0x00000008) != 0)) {
6390             relatedUris_ = java.util.Collections.unmodifiableList(relatedUris_);
6391             bitField0_ = (bitField0_ & ~0x00000008);
6392           }
6393           result.relatedUris_ = relatedUris_;
6394         } else {
6395           result.relatedUris_ = relatedUrisBuilder_.build();
6396         }
6397         if (((bitField0_ & 0x00000020) != 0)) {
6398           impacts_ = impacts_.getUnmodifiableView();
6399           bitField0_ = (bitField0_ & ~0x00000020);
6400         }
6401         result.impacts_ = impacts_;
6402         if (remediationsBuilder_ == null) {
6403           if (((bitField0_ & 0x00000080) != 0)) {
6404             remediations_ = java.util.Collections.unmodifiableList(remediations_);
6405             bitField0_ = (bitField0_ & ~0x00000080);
6406           }
6407           result.remediations_ = remediations_;
6408         } else {
6409           result.remediations_ = remediationsBuilder_.build();
6410         }
6411       }
6412 
buildPartial0(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment result)6413       private void buildPartial0(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment result) {
6414         int from_bitField0_ = bitField0_;
6415         if (((from_bitField0_ & 0x00000001) != 0)) {
6416           result.cve_ = cve_;
6417         }
6418         if (((from_bitField0_ & 0x00000002) != 0)) {
6419           result.shortDescription_ = shortDescription_;
6420         }
6421         if (((from_bitField0_ & 0x00000004) != 0)) {
6422           result.longDescription_ = longDescription_;
6423         }
6424         if (((from_bitField0_ & 0x00000010) != 0)) {
6425           result.state_ = state_;
6426         }
6427         if (((from_bitField0_ & 0x00000040) != 0)) {
6428           result.justification_ =
6429               justificationBuilder_ == null ? justification_ : justificationBuilder_.build();
6430         }
6431       }
6432 
6433       @java.lang.Override
clone()6434       public Builder clone() {
6435         return super.clone();
6436       }
6437 
6438       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)6439       public Builder setField(
6440           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
6441         return super.setField(field, value);
6442       }
6443 
6444       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)6445       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
6446         return super.clearField(field);
6447       }
6448 
6449       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)6450       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
6451         return super.clearOneof(oneof);
6452       }
6453 
6454       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)6455       public Builder setRepeatedField(
6456           com.google.protobuf.Descriptors.FieldDescriptor field,
6457           int index,
6458           java.lang.Object value) {
6459         return super.setRepeatedField(field, index, value);
6460       }
6461 
6462       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)6463       public Builder addRepeatedField(
6464           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
6465         return super.addRepeatedField(field, value);
6466       }
6467 
6468       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)6469       public Builder mergeFrom(com.google.protobuf.Message other) {
6470         if (other instanceof io.grafeas.v1.VulnerabilityAssessmentNote.Assessment) {
6471           return mergeFrom((io.grafeas.v1.VulnerabilityAssessmentNote.Assessment) other);
6472         } else {
6473           super.mergeFrom(other);
6474           return this;
6475         }
6476       }
6477 
mergeFrom(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment other)6478       public Builder mergeFrom(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment other) {
6479         if (other == io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.getDefaultInstance())
6480           return this;
6481         if (!other.getCve().isEmpty()) {
6482           cve_ = other.cve_;
6483           bitField0_ |= 0x00000001;
6484           onChanged();
6485         }
6486         if (!other.getShortDescription().isEmpty()) {
6487           shortDescription_ = other.shortDescription_;
6488           bitField0_ |= 0x00000002;
6489           onChanged();
6490         }
6491         if (!other.getLongDescription().isEmpty()) {
6492           longDescription_ = other.longDescription_;
6493           bitField0_ |= 0x00000004;
6494           onChanged();
6495         }
6496         if (relatedUrisBuilder_ == null) {
6497           if (!other.relatedUris_.isEmpty()) {
6498             if (relatedUris_.isEmpty()) {
6499               relatedUris_ = other.relatedUris_;
6500               bitField0_ = (bitField0_ & ~0x00000008);
6501             } else {
6502               ensureRelatedUrisIsMutable();
6503               relatedUris_.addAll(other.relatedUris_);
6504             }
6505             onChanged();
6506           }
6507         } else {
6508           if (!other.relatedUris_.isEmpty()) {
6509             if (relatedUrisBuilder_.isEmpty()) {
6510               relatedUrisBuilder_.dispose();
6511               relatedUrisBuilder_ = null;
6512               relatedUris_ = other.relatedUris_;
6513               bitField0_ = (bitField0_ & ~0x00000008);
6514               relatedUrisBuilder_ =
6515                   com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
6516                       ? getRelatedUrisFieldBuilder()
6517                       : null;
6518             } else {
6519               relatedUrisBuilder_.addAllMessages(other.relatedUris_);
6520             }
6521           }
6522         }
6523         if (other.state_ != 0) {
6524           setStateValue(other.getStateValue());
6525         }
6526         if (!other.impacts_.isEmpty()) {
6527           if (impacts_.isEmpty()) {
6528             impacts_ = other.impacts_;
6529             bitField0_ = (bitField0_ & ~0x00000020);
6530           } else {
6531             ensureImpactsIsMutable();
6532             impacts_.addAll(other.impacts_);
6533           }
6534           onChanged();
6535         }
6536         if (other.hasJustification()) {
6537           mergeJustification(other.getJustification());
6538         }
6539         if (remediationsBuilder_ == null) {
6540           if (!other.remediations_.isEmpty()) {
6541             if (remediations_.isEmpty()) {
6542               remediations_ = other.remediations_;
6543               bitField0_ = (bitField0_ & ~0x00000080);
6544             } else {
6545               ensureRemediationsIsMutable();
6546               remediations_.addAll(other.remediations_);
6547             }
6548             onChanged();
6549           }
6550         } else {
6551           if (!other.remediations_.isEmpty()) {
6552             if (remediationsBuilder_.isEmpty()) {
6553               remediationsBuilder_.dispose();
6554               remediationsBuilder_ = null;
6555               remediations_ = other.remediations_;
6556               bitField0_ = (bitField0_ & ~0x00000080);
6557               remediationsBuilder_ =
6558                   com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
6559                       ? getRemediationsFieldBuilder()
6560                       : null;
6561             } else {
6562               remediationsBuilder_.addAllMessages(other.remediations_);
6563             }
6564           }
6565         }
6566         this.mergeUnknownFields(other.getUnknownFields());
6567         onChanged();
6568         return this;
6569       }
6570 
6571       @java.lang.Override
isInitialized()6572       public final boolean isInitialized() {
6573         return true;
6574       }
6575 
6576       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6577       public Builder mergeFrom(
6578           com.google.protobuf.CodedInputStream input,
6579           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6580           throws java.io.IOException {
6581         if (extensionRegistry == null) {
6582           throw new java.lang.NullPointerException();
6583         }
6584         try {
6585           boolean done = false;
6586           while (!done) {
6587             int tag = input.readTag();
6588             switch (tag) {
6589               case 0:
6590                 done = true;
6591                 break;
6592               case 10:
6593                 {
6594                   cve_ = input.readStringRequireUtf8();
6595                   bitField0_ |= 0x00000001;
6596                   break;
6597                 } // case 10
6598               case 18:
6599                 {
6600                   shortDescription_ = input.readStringRequireUtf8();
6601                   bitField0_ |= 0x00000002;
6602                   break;
6603                 } // case 18
6604               case 26:
6605                 {
6606                   longDescription_ = input.readStringRequireUtf8();
6607                   bitField0_ |= 0x00000004;
6608                   break;
6609                 } // case 26
6610               case 34:
6611                 {
6612                   io.grafeas.v1.RelatedUrl m =
6613                       input.readMessage(io.grafeas.v1.RelatedUrl.parser(), extensionRegistry);
6614                   if (relatedUrisBuilder_ == null) {
6615                     ensureRelatedUrisIsMutable();
6616                     relatedUris_.add(m);
6617                   } else {
6618                     relatedUrisBuilder_.addMessage(m);
6619                   }
6620                   break;
6621                 } // case 34
6622               case 40:
6623                 {
6624                   state_ = input.readEnum();
6625                   bitField0_ |= 0x00000010;
6626                   break;
6627                 } // case 40
6628               case 50:
6629                 {
6630                   java.lang.String s = input.readStringRequireUtf8();
6631                   ensureImpactsIsMutable();
6632                   impacts_.add(s);
6633                   break;
6634                 } // case 50
6635               case 58:
6636                 {
6637                   input.readMessage(getJustificationFieldBuilder().getBuilder(), extensionRegistry);
6638                   bitField0_ |= 0x00000040;
6639                   break;
6640                 } // case 58
6641               case 66:
6642                 {
6643                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation m =
6644                       input.readMessage(
6645                           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.parser(),
6646                           extensionRegistry);
6647                   if (remediationsBuilder_ == null) {
6648                     ensureRemediationsIsMutable();
6649                     remediations_.add(m);
6650                   } else {
6651                     remediationsBuilder_.addMessage(m);
6652                   }
6653                   break;
6654                 } // case 66
6655               default:
6656                 {
6657                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
6658                     done = true; // was an endgroup tag
6659                   }
6660                   break;
6661                 } // default:
6662             } // switch (tag)
6663           } // while (!done)
6664         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6665           throw e.unwrapIOException();
6666         } finally {
6667           onChanged();
6668         } // finally
6669         return this;
6670       }
6671 
6672       private int bitField0_;
6673 
6674       private java.lang.Object cve_ = "";
6675       /**
6676        *
6677        *
6678        * <pre>
6679        * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
6680        * tracking number for the vulnerability.
6681        * </pre>
6682        *
6683        * <code>string cve = 1;</code>
6684        *
6685        * @return The cve.
6686        */
getCve()6687       public java.lang.String getCve() {
6688         java.lang.Object ref = cve_;
6689         if (!(ref instanceof java.lang.String)) {
6690           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
6691           java.lang.String s = bs.toStringUtf8();
6692           cve_ = s;
6693           return s;
6694         } else {
6695           return (java.lang.String) ref;
6696         }
6697       }
6698       /**
6699        *
6700        *
6701        * <pre>
6702        * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
6703        * tracking number for the vulnerability.
6704        * </pre>
6705        *
6706        * <code>string cve = 1;</code>
6707        *
6708        * @return The bytes for cve.
6709        */
getCveBytes()6710       public com.google.protobuf.ByteString getCveBytes() {
6711         java.lang.Object ref = cve_;
6712         if (ref instanceof String) {
6713           com.google.protobuf.ByteString b =
6714               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
6715           cve_ = b;
6716           return b;
6717         } else {
6718           return (com.google.protobuf.ByteString) ref;
6719         }
6720       }
6721       /**
6722        *
6723        *
6724        * <pre>
6725        * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
6726        * tracking number for the vulnerability.
6727        * </pre>
6728        *
6729        * <code>string cve = 1;</code>
6730        *
6731        * @param value The cve to set.
6732        * @return This builder for chaining.
6733        */
setCve(java.lang.String value)6734       public Builder setCve(java.lang.String value) {
6735         if (value == null) {
6736           throw new NullPointerException();
6737         }
6738         cve_ = value;
6739         bitField0_ |= 0x00000001;
6740         onChanged();
6741         return this;
6742       }
6743       /**
6744        *
6745        *
6746        * <pre>
6747        * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
6748        * tracking number for the vulnerability.
6749        * </pre>
6750        *
6751        * <code>string cve = 1;</code>
6752        *
6753        * @return This builder for chaining.
6754        */
clearCve()6755       public Builder clearCve() {
6756         cve_ = getDefaultInstance().getCve();
6757         bitField0_ = (bitField0_ & ~0x00000001);
6758         onChanged();
6759         return this;
6760       }
6761       /**
6762        *
6763        *
6764        * <pre>
6765        * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
6766        * tracking number for the vulnerability.
6767        * </pre>
6768        *
6769        * <code>string cve = 1;</code>
6770        *
6771        * @param value The bytes for cve to set.
6772        * @return This builder for chaining.
6773        */
setCveBytes(com.google.protobuf.ByteString value)6774       public Builder setCveBytes(com.google.protobuf.ByteString value) {
6775         if (value == null) {
6776           throw new NullPointerException();
6777         }
6778         checkByteStringIsUtf8(value);
6779         cve_ = value;
6780         bitField0_ |= 0x00000001;
6781         onChanged();
6782         return this;
6783       }
6784 
6785       private java.lang.Object shortDescription_ = "";
6786       /**
6787        *
6788        *
6789        * <pre>
6790        * A one sentence description of this Vex.
6791        * </pre>
6792        *
6793        * <code>string short_description = 2;</code>
6794        *
6795        * @return The shortDescription.
6796        */
getShortDescription()6797       public java.lang.String getShortDescription() {
6798         java.lang.Object ref = shortDescription_;
6799         if (!(ref instanceof java.lang.String)) {
6800           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
6801           java.lang.String s = bs.toStringUtf8();
6802           shortDescription_ = s;
6803           return s;
6804         } else {
6805           return (java.lang.String) ref;
6806         }
6807       }
6808       /**
6809        *
6810        *
6811        * <pre>
6812        * A one sentence description of this Vex.
6813        * </pre>
6814        *
6815        * <code>string short_description = 2;</code>
6816        *
6817        * @return The bytes for shortDescription.
6818        */
getShortDescriptionBytes()6819       public com.google.protobuf.ByteString getShortDescriptionBytes() {
6820         java.lang.Object ref = shortDescription_;
6821         if (ref instanceof String) {
6822           com.google.protobuf.ByteString b =
6823               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
6824           shortDescription_ = b;
6825           return b;
6826         } else {
6827           return (com.google.protobuf.ByteString) ref;
6828         }
6829       }
6830       /**
6831        *
6832        *
6833        * <pre>
6834        * A one sentence description of this Vex.
6835        * </pre>
6836        *
6837        * <code>string short_description = 2;</code>
6838        *
6839        * @param value The shortDescription to set.
6840        * @return This builder for chaining.
6841        */
setShortDescription(java.lang.String value)6842       public Builder setShortDescription(java.lang.String value) {
6843         if (value == null) {
6844           throw new NullPointerException();
6845         }
6846         shortDescription_ = value;
6847         bitField0_ |= 0x00000002;
6848         onChanged();
6849         return this;
6850       }
6851       /**
6852        *
6853        *
6854        * <pre>
6855        * A one sentence description of this Vex.
6856        * </pre>
6857        *
6858        * <code>string short_description = 2;</code>
6859        *
6860        * @return This builder for chaining.
6861        */
clearShortDescription()6862       public Builder clearShortDescription() {
6863         shortDescription_ = getDefaultInstance().getShortDescription();
6864         bitField0_ = (bitField0_ & ~0x00000002);
6865         onChanged();
6866         return this;
6867       }
6868       /**
6869        *
6870        *
6871        * <pre>
6872        * A one sentence description of this Vex.
6873        * </pre>
6874        *
6875        * <code>string short_description = 2;</code>
6876        *
6877        * @param value The bytes for shortDescription to set.
6878        * @return This builder for chaining.
6879        */
setShortDescriptionBytes(com.google.protobuf.ByteString value)6880       public Builder setShortDescriptionBytes(com.google.protobuf.ByteString value) {
6881         if (value == null) {
6882           throw new NullPointerException();
6883         }
6884         checkByteStringIsUtf8(value);
6885         shortDescription_ = value;
6886         bitField0_ |= 0x00000002;
6887         onChanged();
6888         return this;
6889       }
6890 
6891       private java.lang.Object longDescription_ = "";
6892       /**
6893        *
6894        *
6895        * <pre>
6896        * A detailed description of this Vex.
6897        * </pre>
6898        *
6899        * <code>string long_description = 3;</code>
6900        *
6901        * @return The longDescription.
6902        */
getLongDescription()6903       public java.lang.String getLongDescription() {
6904         java.lang.Object ref = longDescription_;
6905         if (!(ref instanceof java.lang.String)) {
6906           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
6907           java.lang.String s = bs.toStringUtf8();
6908           longDescription_ = s;
6909           return s;
6910         } else {
6911           return (java.lang.String) ref;
6912         }
6913       }
6914       /**
6915        *
6916        *
6917        * <pre>
6918        * A detailed description of this Vex.
6919        * </pre>
6920        *
6921        * <code>string long_description = 3;</code>
6922        *
6923        * @return The bytes for longDescription.
6924        */
getLongDescriptionBytes()6925       public com.google.protobuf.ByteString getLongDescriptionBytes() {
6926         java.lang.Object ref = longDescription_;
6927         if (ref instanceof String) {
6928           com.google.protobuf.ByteString b =
6929               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
6930           longDescription_ = b;
6931           return b;
6932         } else {
6933           return (com.google.protobuf.ByteString) ref;
6934         }
6935       }
6936       /**
6937        *
6938        *
6939        * <pre>
6940        * A detailed description of this Vex.
6941        * </pre>
6942        *
6943        * <code>string long_description = 3;</code>
6944        *
6945        * @param value The longDescription to set.
6946        * @return This builder for chaining.
6947        */
setLongDescription(java.lang.String value)6948       public Builder setLongDescription(java.lang.String value) {
6949         if (value == null) {
6950           throw new NullPointerException();
6951         }
6952         longDescription_ = value;
6953         bitField0_ |= 0x00000004;
6954         onChanged();
6955         return this;
6956       }
6957       /**
6958        *
6959        *
6960        * <pre>
6961        * A detailed description of this Vex.
6962        * </pre>
6963        *
6964        * <code>string long_description = 3;</code>
6965        *
6966        * @return This builder for chaining.
6967        */
clearLongDescription()6968       public Builder clearLongDescription() {
6969         longDescription_ = getDefaultInstance().getLongDescription();
6970         bitField0_ = (bitField0_ & ~0x00000004);
6971         onChanged();
6972         return this;
6973       }
6974       /**
6975        *
6976        *
6977        * <pre>
6978        * A detailed description of this Vex.
6979        * </pre>
6980        *
6981        * <code>string long_description = 3;</code>
6982        *
6983        * @param value The bytes for longDescription to set.
6984        * @return This builder for chaining.
6985        */
setLongDescriptionBytes(com.google.protobuf.ByteString value)6986       public Builder setLongDescriptionBytes(com.google.protobuf.ByteString value) {
6987         if (value == null) {
6988           throw new NullPointerException();
6989         }
6990         checkByteStringIsUtf8(value);
6991         longDescription_ = value;
6992         bitField0_ |= 0x00000004;
6993         onChanged();
6994         return this;
6995       }
6996 
6997       private java.util.List<io.grafeas.v1.RelatedUrl> relatedUris_ =
6998           java.util.Collections.emptyList();
6999 
ensureRelatedUrisIsMutable()7000       private void ensureRelatedUrisIsMutable() {
7001         if (!((bitField0_ & 0x00000008) != 0)) {
7002           relatedUris_ = new java.util.ArrayList<io.grafeas.v1.RelatedUrl>(relatedUris_);
7003           bitField0_ |= 0x00000008;
7004         }
7005       }
7006 
7007       private com.google.protobuf.RepeatedFieldBuilderV3<
7008               io.grafeas.v1.RelatedUrl,
7009               io.grafeas.v1.RelatedUrl.Builder,
7010               io.grafeas.v1.RelatedUrlOrBuilder>
7011           relatedUrisBuilder_;
7012 
7013       /**
7014        *
7015        *
7016        * <pre>
7017        * Holds a list of references associated with this vulnerability item and
7018        * assessment. These uris have additional information about the
7019        * vulnerability and the assessment itself. E.g. Link to a document which
7020        * details how this assessment concluded the state of this vulnerability.
7021        * </pre>
7022        *
7023        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7024        */
getRelatedUrisList()7025       public java.util.List<io.grafeas.v1.RelatedUrl> getRelatedUrisList() {
7026         if (relatedUrisBuilder_ == null) {
7027           return java.util.Collections.unmodifiableList(relatedUris_);
7028         } else {
7029           return relatedUrisBuilder_.getMessageList();
7030         }
7031       }
7032       /**
7033        *
7034        *
7035        * <pre>
7036        * Holds a list of references associated with this vulnerability item and
7037        * assessment. These uris have additional information about the
7038        * vulnerability and the assessment itself. E.g. Link to a document which
7039        * details how this assessment concluded the state of this vulnerability.
7040        * </pre>
7041        *
7042        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7043        */
getRelatedUrisCount()7044       public int getRelatedUrisCount() {
7045         if (relatedUrisBuilder_ == null) {
7046           return relatedUris_.size();
7047         } else {
7048           return relatedUrisBuilder_.getCount();
7049         }
7050       }
7051       /**
7052        *
7053        *
7054        * <pre>
7055        * Holds a list of references associated with this vulnerability item and
7056        * assessment. These uris have additional information about the
7057        * vulnerability and the assessment itself. E.g. Link to a document which
7058        * details how this assessment concluded the state of this vulnerability.
7059        * </pre>
7060        *
7061        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7062        */
getRelatedUris(int index)7063       public io.grafeas.v1.RelatedUrl getRelatedUris(int index) {
7064         if (relatedUrisBuilder_ == null) {
7065           return relatedUris_.get(index);
7066         } else {
7067           return relatedUrisBuilder_.getMessage(index);
7068         }
7069       }
7070       /**
7071        *
7072        *
7073        * <pre>
7074        * Holds a list of references associated with this vulnerability item and
7075        * assessment. These uris have additional information about the
7076        * vulnerability and the assessment itself. E.g. Link to a document which
7077        * details how this assessment concluded the state of this vulnerability.
7078        * </pre>
7079        *
7080        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7081        */
setRelatedUris(int index, io.grafeas.v1.RelatedUrl value)7082       public Builder setRelatedUris(int index, io.grafeas.v1.RelatedUrl value) {
7083         if (relatedUrisBuilder_ == null) {
7084           if (value == null) {
7085             throw new NullPointerException();
7086           }
7087           ensureRelatedUrisIsMutable();
7088           relatedUris_.set(index, value);
7089           onChanged();
7090         } else {
7091           relatedUrisBuilder_.setMessage(index, value);
7092         }
7093         return this;
7094       }
7095       /**
7096        *
7097        *
7098        * <pre>
7099        * Holds a list of references associated with this vulnerability item and
7100        * assessment. These uris have additional information about the
7101        * vulnerability and the assessment itself. E.g. Link to a document which
7102        * details how this assessment concluded the state of this vulnerability.
7103        * </pre>
7104        *
7105        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7106        */
setRelatedUris(int index, io.grafeas.v1.RelatedUrl.Builder builderForValue)7107       public Builder setRelatedUris(int index, io.grafeas.v1.RelatedUrl.Builder builderForValue) {
7108         if (relatedUrisBuilder_ == null) {
7109           ensureRelatedUrisIsMutable();
7110           relatedUris_.set(index, builderForValue.build());
7111           onChanged();
7112         } else {
7113           relatedUrisBuilder_.setMessage(index, builderForValue.build());
7114         }
7115         return this;
7116       }
7117       /**
7118        *
7119        *
7120        * <pre>
7121        * Holds a list of references associated with this vulnerability item and
7122        * assessment. These uris have additional information about the
7123        * vulnerability and the assessment itself. E.g. Link to a document which
7124        * details how this assessment concluded the state of this vulnerability.
7125        * </pre>
7126        *
7127        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7128        */
addRelatedUris(io.grafeas.v1.RelatedUrl value)7129       public Builder addRelatedUris(io.grafeas.v1.RelatedUrl value) {
7130         if (relatedUrisBuilder_ == null) {
7131           if (value == null) {
7132             throw new NullPointerException();
7133           }
7134           ensureRelatedUrisIsMutable();
7135           relatedUris_.add(value);
7136           onChanged();
7137         } else {
7138           relatedUrisBuilder_.addMessage(value);
7139         }
7140         return this;
7141       }
7142       /**
7143        *
7144        *
7145        * <pre>
7146        * Holds a list of references associated with this vulnerability item and
7147        * assessment. These uris have additional information about the
7148        * vulnerability and the assessment itself. E.g. Link to a document which
7149        * details how this assessment concluded the state of this vulnerability.
7150        * </pre>
7151        *
7152        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7153        */
addRelatedUris(int index, io.grafeas.v1.RelatedUrl value)7154       public Builder addRelatedUris(int index, io.grafeas.v1.RelatedUrl value) {
7155         if (relatedUrisBuilder_ == null) {
7156           if (value == null) {
7157             throw new NullPointerException();
7158           }
7159           ensureRelatedUrisIsMutable();
7160           relatedUris_.add(index, value);
7161           onChanged();
7162         } else {
7163           relatedUrisBuilder_.addMessage(index, value);
7164         }
7165         return this;
7166       }
7167       /**
7168        *
7169        *
7170        * <pre>
7171        * Holds a list of references associated with this vulnerability item and
7172        * assessment. These uris have additional information about the
7173        * vulnerability and the assessment itself. E.g. Link to a document which
7174        * details how this assessment concluded the state of this vulnerability.
7175        * </pre>
7176        *
7177        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7178        */
addRelatedUris(io.grafeas.v1.RelatedUrl.Builder builderForValue)7179       public Builder addRelatedUris(io.grafeas.v1.RelatedUrl.Builder builderForValue) {
7180         if (relatedUrisBuilder_ == null) {
7181           ensureRelatedUrisIsMutable();
7182           relatedUris_.add(builderForValue.build());
7183           onChanged();
7184         } else {
7185           relatedUrisBuilder_.addMessage(builderForValue.build());
7186         }
7187         return this;
7188       }
7189       /**
7190        *
7191        *
7192        * <pre>
7193        * Holds a list of references associated with this vulnerability item and
7194        * assessment. These uris have additional information about the
7195        * vulnerability and the assessment itself. E.g. Link to a document which
7196        * details how this assessment concluded the state of this vulnerability.
7197        * </pre>
7198        *
7199        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7200        */
addRelatedUris(int index, io.grafeas.v1.RelatedUrl.Builder builderForValue)7201       public Builder addRelatedUris(int index, io.grafeas.v1.RelatedUrl.Builder builderForValue) {
7202         if (relatedUrisBuilder_ == null) {
7203           ensureRelatedUrisIsMutable();
7204           relatedUris_.add(index, builderForValue.build());
7205           onChanged();
7206         } else {
7207           relatedUrisBuilder_.addMessage(index, builderForValue.build());
7208         }
7209         return this;
7210       }
7211       /**
7212        *
7213        *
7214        * <pre>
7215        * Holds a list of references associated with this vulnerability item and
7216        * assessment. These uris have additional information about the
7217        * vulnerability and the assessment itself. E.g. Link to a document which
7218        * details how this assessment concluded the state of this vulnerability.
7219        * </pre>
7220        *
7221        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7222        */
addAllRelatedUris( java.lang.Iterable<? extends io.grafeas.v1.RelatedUrl> values)7223       public Builder addAllRelatedUris(
7224           java.lang.Iterable<? extends io.grafeas.v1.RelatedUrl> values) {
7225         if (relatedUrisBuilder_ == null) {
7226           ensureRelatedUrisIsMutable();
7227           com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedUris_);
7228           onChanged();
7229         } else {
7230           relatedUrisBuilder_.addAllMessages(values);
7231         }
7232         return this;
7233       }
7234       /**
7235        *
7236        *
7237        * <pre>
7238        * Holds a list of references associated with this vulnerability item and
7239        * assessment. These uris have additional information about the
7240        * vulnerability and the assessment itself. E.g. Link to a document which
7241        * details how this assessment concluded the state of this vulnerability.
7242        * </pre>
7243        *
7244        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7245        */
clearRelatedUris()7246       public Builder clearRelatedUris() {
7247         if (relatedUrisBuilder_ == null) {
7248           relatedUris_ = java.util.Collections.emptyList();
7249           bitField0_ = (bitField0_ & ~0x00000008);
7250           onChanged();
7251         } else {
7252           relatedUrisBuilder_.clear();
7253         }
7254         return this;
7255       }
7256       /**
7257        *
7258        *
7259        * <pre>
7260        * Holds a list of references associated with this vulnerability item and
7261        * assessment. These uris have additional information about the
7262        * vulnerability and the assessment itself. E.g. Link to a document which
7263        * details how this assessment concluded the state of this vulnerability.
7264        * </pre>
7265        *
7266        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7267        */
removeRelatedUris(int index)7268       public Builder removeRelatedUris(int index) {
7269         if (relatedUrisBuilder_ == null) {
7270           ensureRelatedUrisIsMutable();
7271           relatedUris_.remove(index);
7272           onChanged();
7273         } else {
7274           relatedUrisBuilder_.remove(index);
7275         }
7276         return this;
7277       }
7278       /**
7279        *
7280        *
7281        * <pre>
7282        * Holds a list of references associated with this vulnerability item and
7283        * assessment. These uris have additional information about the
7284        * vulnerability and the assessment itself. E.g. Link to a document which
7285        * details how this assessment concluded the state of this vulnerability.
7286        * </pre>
7287        *
7288        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7289        */
getRelatedUrisBuilder(int index)7290       public io.grafeas.v1.RelatedUrl.Builder getRelatedUrisBuilder(int index) {
7291         return getRelatedUrisFieldBuilder().getBuilder(index);
7292       }
7293       /**
7294        *
7295        *
7296        * <pre>
7297        * Holds a list of references associated with this vulnerability item and
7298        * assessment. These uris have additional information about the
7299        * vulnerability and the assessment itself. E.g. Link to a document which
7300        * details how this assessment concluded the state of this vulnerability.
7301        * </pre>
7302        *
7303        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7304        */
getRelatedUrisOrBuilder(int index)7305       public io.grafeas.v1.RelatedUrlOrBuilder getRelatedUrisOrBuilder(int index) {
7306         if (relatedUrisBuilder_ == null) {
7307           return relatedUris_.get(index);
7308         } else {
7309           return relatedUrisBuilder_.getMessageOrBuilder(index);
7310         }
7311       }
7312       /**
7313        *
7314        *
7315        * <pre>
7316        * Holds a list of references associated with this vulnerability item and
7317        * assessment. These uris have additional information about the
7318        * vulnerability and the assessment itself. E.g. Link to a document which
7319        * details how this assessment concluded the state of this vulnerability.
7320        * </pre>
7321        *
7322        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7323        */
7324       public java.util.List<? extends io.grafeas.v1.RelatedUrlOrBuilder>
getRelatedUrisOrBuilderList()7325           getRelatedUrisOrBuilderList() {
7326         if (relatedUrisBuilder_ != null) {
7327           return relatedUrisBuilder_.getMessageOrBuilderList();
7328         } else {
7329           return java.util.Collections.unmodifiableList(relatedUris_);
7330         }
7331       }
7332       /**
7333        *
7334        *
7335        * <pre>
7336        * Holds a list of references associated with this vulnerability item and
7337        * assessment. These uris have additional information about the
7338        * vulnerability and the assessment itself. E.g. Link to a document which
7339        * details how this assessment concluded the state of this vulnerability.
7340        * </pre>
7341        *
7342        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7343        */
addRelatedUrisBuilder()7344       public io.grafeas.v1.RelatedUrl.Builder addRelatedUrisBuilder() {
7345         return getRelatedUrisFieldBuilder()
7346             .addBuilder(io.grafeas.v1.RelatedUrl.getDefaultInstance());
7347       }
7348       /**
7349        *
7350        *
7351        * <pre>
7352        * Holds a list of references associated with this vulnerability item and
7353        * assessment. These uris have additional information about the
7354        * vulnerability and the assessment itself. E.g. Link to a document which
7355        * details how this assessment concluded the state of this vulnerability.
7356        * </pre>
7357        *
7358        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7359        */
addRelatedUrisBuilder(int index)7360       public io.grafeas.v1.RelatedUrl.Builder addRelatedUrisBuilder(int index) {
7361         return getRelatedUrisFieldBuilder()
7362             .addBuilder(index, io.grafeas.v1.RelatedUrl.getDefaultInstance());
7363       }
7364       /**
7365        *
7366        *
7367        * <pre>
7368        * Holds a list of references associated with this vulnerability item and
7369        * assessment. These uris have additional information about the
7370        * vulnerability and the assessment itself. E.g. Link to a document which
7371        * details how this assessment concluded the state of this vulnerability.
7372        * </pre>
7373        *
7374        * <code>repeated .grafeas.v1.RelatedUrl related_uris = 4;</code>
7375        */
getRelatedUrisBuilderList()7376       public java.util.List<io.grafeas.v1.RelatedUrl.Builder> getRelatedUrisBuilderList() {
7377         return getRelatedUrisFieldBuilder().getBuilderList();
7378       }
7379 
7380       private com.google.protobuf.RepeatedFieldBuilderV3<
7381               io.grafeas.v1.RelatedUrl,
7382               io.grafeas.v1.RelatedUrl.Builder,
7383               io.grafeas.v1.RelatedUrlOrBuilder>
getRelatedUrisFieldBuilder()7384           getRelatedUrisFieldBuilder() {
7385         if (relatedUrisBuilder_ == null) {
7386           relatedUrisBuilder_ =
7387               new com.google.protobuf.RepeatedFieldBuilderV3<
7388                   io.grafeas.v1.RelatedUrl,
7389                   io.grafeas.v1.RelatedUrl.Builder,
7390                   io.grafeas.v1.RelatedUrlOrBuilder>(
7391                   relatedUris_,
7392                   ((bitField0_ & 0x00000008) != 0),
7393                   getParentForChildren(),
7394                   isClean());
7395           relatedUris_ = null;
7396         }
7397         return relatedUrisBuilder_;
7398       }
7399 
7400       private int state_ = 0;
7401       /**
7402        *
7403        *
7404        * <pre>
7405        * Provides the state of this Vulnerability assessment.
7406        * </pre>
7407        *
7408        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5;</code>
7409        *
7410        * @return The enum numeric value on the wire for state.
7411        */
7412       @java.lang.Override
getStateValue()7413       public int getStateValue() {
7414         return state_;
7415       }
7416       /**
7417        *
7418        *
7419        * <pre>
7420        * Provides the state of this Vulnerability assessment.
7421        * </pre>
7422        *
7423        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5;</code>
7424        *
7425        * @param value The enum numeric value on the wire for state to set.
7426        * @return This builder for chaining.
7427        */
setStateValue(int value)7428       public Builder setStateValue(int value) {
7429         state_ = value;
7430         bitField0_ |= 0x00000010;
7431         onChanged();
7432         return this;
7433       }
7434       /**
7435        *
7436        *
7437        * <pre>
7438        * Provides the state of this Vulnerability assessment.
7439        * </pre>
7440        *
7441        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5;</code>
7442        *
7443        * @return The state.
7444        */
7445       @java.lang.Override
getState()7446       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State getState() {
7447         io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State result =
7448             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State.forNumber(state_);
7449         return result == null
7450             ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State.UNRECOGNIZED
7451             : result;
7452       }
7453       /**
7454        *
7455        *
7456        * <pre>
7457        * Provides the state of this Vulnerability assessment.
7458        * </pre>
7459        *
7460        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5;</code>
7461        *
7462        * @param value The state to set.
7463        * @return This builder for chaining.
7464        */
setState(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State value)7465       public Builder setState(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State value) {
7466         if (value == null) {
7467           throw new NullPointerException();
7468         }
7469         bitField0_ |= 0x00000010;
7470         state_ = value.getNumber();
7471         onChanged();
7472         return this;
7473       }
7474       /**
7475        *
7476        *
7477        * <pre>
7478        * Provides the state of this Vulnerability assessment.
7479        * </pre>
7480        *
7481        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5;</code>
7482        *
7483        * @return This builder for chaining.
7484        */
clearState()7485       public Builder clearState() {
7486         bitField0_ = (bitField0_ & ~0x00000010);
7487         state_ = 0;
7488         onChanged();
7489         return this;
7490       }
7491 
7492       private com.google.protobuf.LazyStringList impacts_ =
7493           com.google.protobuf.LazyStringArrayList.EMPTY;
7494 
ensureImpactsIsMutable()7495       private void ensureImpactsIsMutable() {
7496         if (!((bitField0_ & 0x00000020) != 0)) {
7497           impacts_ = new com.google.protobuf.LazyStringArrayList(impacts_);
7498           bitField0_ |= 0x00000020;
7499         }
7500       }
7501       /**
7502        *
7503        *
7504        * <pre>
7505        * Contains information about the impact of this vulnerability,
7506        * this will change with time.
7507        * </pre>
7508        *
7509        * <code>repeated string impacts = 6;</code>
7510        *
7511        * @return A list containing the impacts.
7512        */
getImpactsList()7513       public com.google.protobuf.ProtocolStringList getImpactsList() {
7514         return impacts_.getUnmodifiableView();
7515       }
7516       /**
7517        *
7518        *
7519        * <pre>
7520        * Contains information about the impact of this vulnerability,
7521        * this will change with time.
7522        * </pre>
7523        *
7524        * <code>repeated string impacts = 6;</code>
7525        *
7526        * @return The count of impacts.
7527        */
getImpactsCount()7528       public int getImpactsCount() {
7529         return impacts_.size();
7530       }
7531       /**
7532        *
7533        *
7534        * <pre>
7535        * Contains information about the impact of this vulnerability,
7536        * this will change with time.
7537        * </pre>
7538        *
7539        * <code>repeated string impacts = 6;</code>
7540        *
7541        * @param index The index of the element to return.
7542        * @return The impacts at the given index.
7543        */
getImpacts(int index)7544       public java.lang.String getImpacts(int index) {
7545         return impacts_.get(index);
7546       }
7547       /**
7548        *
7549        *
7550        * <pre>
7551        * Contains information about the impact of this vulnerability,
7552        * this will change with time.
7553        * </pre>
7554        *
7555        * <code>repeated string impacts = 6;</code>
7556        *
7557        * @param index The index of the value to return.
7558        * @return The bytes of the impacts at the given index.
7559        */
getImpactsBytes(int index)7560       public com.google.protobuf.ByteString getImpactsBytes(int index) {
7561         return impacts_.getByteString(index);
7562       }
7563       /**
7564        *
7565        *
7566        * <pre>
7567        * Contains information about the impact of this vulnerability,
7568        * this will change with time.
7569        * </pre>
7570        *
7571        * <code>repeated string impacts = 6;</code>
7572        *
7573        * @param index The index to set the value at.
7574        * @param value The impacts to set.
7575        * @return This builder for chaining.
7576        */
setImpacts(int index, java.lang.String value)7577       public Builder setImpacts(int index, java.lang.String value) {
7578         if (value == null) {
7579           throw new NullPointerException();
7580         }
7581         ensureImpactsIsMutable();
7582         impacts_.set(index, value);
7583         onChanged();
7584         return this;
7585       }
7586       /**
7587        *
7588        *
7589        * <pre>
7590        * Contains information about the impact of this vulnerability,
7591        * this will change with time.
7592        * </pre>
7593        *
7594        * <code>repeated string impacts = 6;</code>
7595        *
7596        * @param value The impacts to add.
7597        * @return This builder for chaining.
7598        */
addImpacts(java.lang.String value)7599       public Builder addImpacts(java.lang.String value) {
7600         if (value == null) {
7601           throw new NullPointerException();
7602         }
7603         ensureImpactsIsMutable();
7604         impacts_.add(value);
7605         onChanged();
7606         return this;
7607       }
7608       /**
7609        *
7610        *
7611        * <pre>
7612        * Contains information about the impact of this vulnerability,
7613        * this will change with time.
7614        * </pre>
7615        *
7616        * <code>repeated string impacts = 6;</code>
7617        *
7618        * @param values The impacts to add.
7619        * @return This builder for chaining.
7620        */
addAllImpacts(java.lang.Iterable<java.lang.String> values)7621       public Builder addAllImpacts(java.lang.Iterable<java.lang.String> values) {
7622         ensureImpactsIsMutable();
7623         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, impacts_);
7624         onChanged();
7625         return this;
7626       }
7627       /**
7628        *
7629        *
7630        * <pre>
7631        * Contains information about the impact of this vulnerability,
7632        * this will change with time.
7633        * </pre>
7634        *
7635        * <code>repeated string impacts = 6;</code>
7636        *
7637        * @return This builder for chaining.
7638        */
clearImpacts()7639       public Builder clearImpacts() {
7640         impacts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
7641         bitField0_ = (bitField0_ & ~0x00000020);
7642         onChanged();
7643         return this;
7644       }
7645       /**
7646        *
7647        *
7648        * <pre>
7649        * Contains information about the impact of this vulnerability,
7650        * this will change with time.
7651        * </pre>
7652        *
7653        * <code>repeated string impacts = 6;</code>
7654        *
7655        * @param value The bytes of the impacts to add.
7656        * @return This builder for chaining.
7657        */
addImpactsBytes(com.google.protobuf.ByteString value)7658       public Builder addImpactsBytes(com.google.protobuf.ByteString value) {
7659         if (value == null) {
7660           throw new NullPointerException();
7661         }
7662         checkByteStringIsUtf8(value);
7663         ensureImpactsIsMutable();
7664         impacts_.add(value);
7665         onChanged();
7666         return this;
7667       }
7668 
7669       private io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification_;
7670       private com.google.protobuf.SingleFieldBuilderV3<
7671               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification,
7672               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.Builder,
7673               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationOrBuilder>
7674           justificationBuilder_;
7675       /**
7676        *
7677        *
7678        * <pre>
7679        * Justification provides the justification when the state of the
7680        * assessment if NOT_AFFECTED.
7681        * </pre>
7682        *
7683        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
7684        * </code>
7685        *
7686        * @return Whether the justification field is set.
7687        */
hasJustification()7688       public boolean hasJustification() {
7689         return ((bitField0_ & 0x00000040) != 0);
7690       }
7691       /**
7692        *
7693        *
7694        * <pre>
7695        * Justification provides the justification when the state of the
7696        * assessment if NOT_AFFECTED.
7697        * </pre>
7698        *
7699        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
7700        * </code>
7701        *
7702        * @return The justification.
7703        */
getJustification()7704       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification getJustification() {
7705         if (justificationBuilder_ == null) {
7706           return justification_ == null
7707               ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
7708                   .getDefaultInstance()
7709               : justification_;
7710         } else {
7711           return justificationBuilder_.getMessage();
7712         }
7713       }
7714       /**
7715        *
7716        *
7717        * <pre>
7718        * Justification provides the justification when the state of the
7719        * assessment if NOT_AFFECTED.
7720        * </pre>
7721        *
7722        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
7723        * </code>
7724        */
setJustification( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification value)7725       public Builder setJustification(
7726           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification value) {
7727         if (justificationBuilder_ == null) {
7728           if (value == null) {
7729             throw new NullPointerException();
7730           }
7731           justification_ = value;
7732         } else {
7733           justificationBuilder_.setMessage(value);
7734         }
7735         bitField0_ |= 0x00000040;
7736         onChanged();
7737         return this;
7738       }
7739       /**
7740        *
7741        *
7742        * <pre>
7743        * Justification provides the justification when the state of the
7744        * assessment if NOT_AFFECTED.
7745        * </pre>
7746        *
7747        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
7748        * </code>
7749        */
setJustification( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.Builder builderForValue)7750       public Builder setJustification(
7751           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.Builder
7752               builderForValue) {
7753         if (justificationBuilder_ == null) {
7754           justification_ = builderForValue.build();
7755         } else {
7756           justificationBuilder_.setMessage(builderForValue.build());
7757         }
7758         bitField0_ |= 0x00000040;
7759         onChanged();
7760         return this;
7761       }
7762       /**
7763        *
7764        *
7765        * <pre>
7766        * Justification provides the justification when the state of the
7767        * assessment if NOT_AFFECTED.
7768        * </pre>
7769        *
7770        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
7771        * </code>
7772        */
mergeJustification( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification value)7773       public Builder mergeJustification(
7774           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification value) {
7775         if (justificationBuilder_ == null) {
7776           if (((bitField0_ & 0x00000040) != 0)
7777               && justification_ != null
7778               && justification_
7779                   != io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
7780                       .getDefaultInstance()) {
7781             getJustificationBuilder().mergeFrom(value);
7782           } else {
7783             justification_ = value;
7784           }
7785         } else {
7786           justificationBuilder_.mergeFrom(value);
7787         }
7788         bitField0_ |= 0x00000040;
7789         onChanged();
7790         return this;
7791       }
7792       /**
7793        *
7794        *
7795        * <pre>
7796        * Justification provides the justification when the state of the
7797        * assessment if NOT_AFFECTED.
7798        * </pre>
7799        *
7800        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
7801        * </code>
7802        */
clearJustification()7803       public Builder clearJustification() {
7804         bitField0_ = (bitField0_ & ~0x00000040);
7805         justification_ = null;
7806         if (justificationBuilder_ != null) {
7807           justificationBuilder_.dispose();
7808           justificationBuilder_ = null;
7809         }
7810         onChanged();
7811         return this;
7812       }
7813       /**
7814        *
7815        *
7816        * <pre>
7817        * Justification provides the justification when the state of the
7818        * assessment if NOT_AFFECTED.
7819        * </pre>
7820        *
7821        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
7822        * </code>
7823        */
7824       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.Builder
getJustificationBuilder()7825           getJustificationBuilder() {
7826         bitField0_ |= 0x00000040;
7827         onChanged();
7828         return getJustificationFieldBuilder().getBuilder();
7829       }
7830       /**
7831        *
7832        *
7833        * <pre>
7834        * Justification provides the justification when the state of the
7835        * assessment if NOT_AFFECTED.
7836        * </pre>
7837        *
7838        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
7839        * </code>
7840        */
7841       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationOrBuilder
getJustificationOrBuilder()7842           getJustificationOrBuilder() {
7843         if (justificationBuilder_ != null) {
7844           return justificationBuilder_.getMessageOrBuilder();
7845         } else {
7846           return justification_ == null
7847               ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
7848                   .getDefaultInstance()
7849               : justification_;
7850         }
7851       }
7852       /**
7853        *
7854        *
7855        * <pre>
7856        * Justification provides the justification when the state of the
7857        * assessment if NOT_AFFECTED.
7858        * </pre>
7859        *
7860        * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7;
7861        * </code>
7862        */
7863       private com.google.protobuf.SingleFieldBuilderV3<
7864               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification,
7865               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.Builder,
7866               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationOrBuilder>
getJustificationFieldBuilder()7867           getJustificationFieldBuilder() {
7868         if (justificationBuilder_ == null) {
7869           justificationBuilder_ =
7870               new com.google.protobuf.SingleFieldBuilderV3<
7871                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification,
7872                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.Builder,
7873                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationOrBuilder>(
7874                   getJustification(), getParentForChildren(), isClean());
7875           justification_ = null;
7876         }
7877         return justificationBuilder_;
7878       }
7879 
7880       private java.util.List<io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation>
7881           remediations_ = java.util.Collections.emptyList();
7882 
ensureRemediationsIsMutable()7883       private void ensureRemediationsIsMutable() {
7884         if (!((bitField0_ & 0x00000080) != 0)) {
7885           remediations_ =
7886               new java.util.ArrayList<
7887                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation>(remediations_);
7888           bitField0_ |= 0x00000080;
7889         }
7890       }
7891 
7892       private com.google.protobuf.RepeatedFieldBuilderV3<
7893               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation,
7894               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder,
7895               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder>
7896           remediationsBuilder_;
7897 
7898       /**
7899        *
7900        *
7901        * <pre>
7902        * Specifies details on how to handle (and presumably, fix) a vulnerability.
7903        * </pre>
7904        *
7905        * <code>
7906        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
7907        * </code>
7908        */
7909       public java.util.List<io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation>
getRemediationsList()7910           getRemediationsList() {
7911         if (remediationsBuilder_ == null) {
7912           return java.util.Collections.unmodifiableList(remediations_);
7913         } else {
7914           return remediationsBuilder_.getMessageList();
7915         }
7916       }
7917       /**
7918        *
7919        *
7920        * <pre>
7921        * Specifies details on how to handle (and presumably, fix) a vulnerability.
7922        * </pre>
7923        *
7924        * <code>
7925        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
7926        * </code>
7927        */
getRemediationsCount()7928       public int getRemediationsCount() {
7929         if (remediationsBuilder_ == null) {
7930           return remediations_.size();
7931         } else {
7932           return remediationsBuilder_.getCount();
7933         }
7934       }
7935       /**
7936        *
7937        *
7938        * <pre>
7939        * Specifies details on how to handle (and presumably, fix) a vulnerability.
7940        * </pre>
7941        *
7942        * <code>
7943        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
7944        * </code>
7945        */
getRemediations( int index)7946       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation getRemediations(
7947           int index) {
7948         if (remediationsBuilder_ == null) {
7949           return remediations_.get(index);
7950         } else {
7951           return remediationsBuilder_.getMessage(index);
7952         }
7953       }
7954       /**
7955        *
7956        *
7957        * <pre>
7958        * Specifies details on how to handle (and presumably, fix) a vulnerability.
7959        * </pre>
7960        *
7961        * <code>
7962        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
7963        * </code>
7964        */
setRemediations( int index, io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation value)7965       public Builder setRemediations(
7966           int index, io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation value) {
7967         if (remediationsBuilder_ == null) {
7968           if (value == null) {
7969             throw new NullPointerException();
7970           }
7971           ensureRemediationsIsMutable();
7972           remediations_.set(index, value);
7973           onChanged();
7974         } else {
7975           remediationsBuilder_.setMessage(index, value);
7976         }
7977         return this;
7978       }
7979       /**
7980        *
7981        *
7982        * <pre>
7983        * Specifies details on how to handle (and presumably, fix) a vulnerability.
7984        * </pre>
7985        *
7986        * <code>
7987        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
7988        * </code>
7989        */
setRemediations( int index, io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder builderForValue)7990       public Builder setRemediations(
7991           int index,
7992           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder
7993               builderForValue) {
7994         if (remediationsBuilder_ == null) {
7995           ensureRemediationsIsMutable();
7996           remediations_.set(index, builderForValue.build());
7997           onChanged();
7998         } else {
7999           remediationsBuilder_.setMessage(index, builderForValue.build());
8000         }
8001         return this;
8002       }
8003       /**
8004        *
8005        *
8006        * <pre>
8007        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8008        * </pre>
8009        *
8010        * <code>
8011        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8012        * </code>
8013        */
addRemediations( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation value)8014       public Builder addRemediations(
8015           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation value) {
8016         if (remediationsBuilder_ == null) {
8017           if (value == null) {
8018             throw new NullPointerException();
8019           }
8020           ensureRemediationsIsMutable();
8021           remediations_.add(value);
8022           onChanged();
8023         } else {
8024           remediationsBuilder_.addMessage(value);
8025         }
8026         return this;
8027       }
8028       /**
8029        *
8030        *
8031        * <pre>
8032        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8033        * </pre>
8034        *
8035        * <code>
8036        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8037        * </code>
8038        */
addRemediations( int index, io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation value)8039       public Builder addRemediations(
8040           int index, io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation value) {
8041         if (remediationsBuilder_ == null) {
8042           if (value == null) {
8043             throw new NullPointerException();
8044           }
8045           ensureRemediationsIsMutable();
8046           remediations_.add(index, value);
8047           onChanged();
8048         } else {
8049           remediationsBuilder_.addMessage(index, value);
8050         }
8051         return this;
8052       }
8053       /**
8054        *
8055        *
8056        * <pre>
8057        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8058        * </pre>
8059        *
8060        * <code>
8061        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8062        * </code>
8063        */
addRemediations( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder builderForValue)8064       public Builder addRemediations(
8065           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder
8066               builderForValue) {
8067         if (remediationsBuilder_ == null) {
8068           ensureRemediationsIsMutable();
8069           remediations_.add(builderForValue.build());
8070           onChanged();
8071         } else {
8072           remediationsBuilder_.addMessage(builderForValue.build());
8073         }
8074         return this;
8075       }
8076       /**
8077        *
8078        *
8079        * <pre>
8080        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8081        * </pre>
8082        *
8083        * <code>
8084        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8085        * </code>
8086        */
addRemediations( int index, io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder builderForValue)8087       public Builder addRemediations(
8088           int index,
8089           io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder
8090               builderForValue) {
8091         if (remediationsBuilder_ == null) {
8092           ensureRemediationsIsMutable();
8093           remediations_.add(index, builderForValue.build());
8094           onChanged();
8095         } else {
8096           remediationsBuilder_.addMessage(index, builderForValue.build());
8097         }
8098         return this;
8099       }
8100       /**
8101        *
8102        *
8103        * <pre>
8104        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8105        * </pre>
8106        *
8107        * <code>
8108        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8109        * </code>
8110        */
addAllRemediations( java.lang.Iterable< ? extends io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation> values)8111       public Builder addAllRemediations(
8112           java.lang.Iterable<
8113                   ? extends io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation>
8114               values) {
8115         if (remediationsBuilder_ == null) {
8116           ensureRemediationsIsMutable();
8117           com.google.protobuf.AbstractMessageLite.Builder.addAll(values, remediations_);
8118           onChanged();
8119         } else {
8120           remediationsBuilder_.addAllMessages(values);
8121         }
8122         return this;
8123       }
8124       /**
8125        *
8126        *
8127        * <pre>
8128        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8129        * </pre>
8130        *
8131        * <code>
8132        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8133        * </code>
8134        */
clearRemediations()8135       public Builder clearRemediations() {
8136         if (remediationsBuilder_ == null) {
8137           remediations_ = java.util.Collections.emptyList();
8138           bitField0_ = (bitField0_ & ~0x00000080);
8139           onChanged();
8140         } else {
8141           remediationsBuilder_.clear();
8142         }
8143         return this;
8144       }
8145       /**
8146        *
8147        *
8148        * <pre>
8149        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8150        * </pre>
8151        *
8152        * <code>
8153        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8154        * </code>
8155        */
removeRemediations(int index)8156       public Builder removeRemediations(int index) {
8157         if (remediationsBuilder_ == null) {
8158           ensureRemediationsIsMutable();
8159           remediations_.remove(index);
8160           onChanged();
8161         } else {
8162           remediationsBuilder_.remove(index);
8163         }
8164         return this;
8165       }
8166       /**
8167        *
8168        *
8169        * <pre>
8170        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8171        * </pre>
8172        *
8173        * <code>
8174        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8175        * </code>
8176        */
8177       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder
getRemediationsBuilder(int index)8178           getRemediationsBuilder(int index) {
8179         return getRemediationsFieldBuilder().getBuilder(index);
8180       }
8181       /**
8182        *
8183        *
8184        * <pre>
8185        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8186        * </pre>
8187        *
8188        * <code>
8189        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8190        * </code>
8191        */
8192       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder
getRemediationsOrBuilder(int index)8193           getRemediationsOrBuilder(int index) {
8194         if (remediationsBuilder_ == null) {
8195           return remediations_.get(index);
8196         } else {
8197           return remediationsBuilder_.getMessageOrBuilder(index);
8198         }
8199       }
8200       /**
8201        *
8202        *
8203        * <pre>
8204        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8205        * </pre>
8206        *
8207        * <code>
8208        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8209        * </code>
8210        */
8211       public java.util.List<
8212               ? extends io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder>
getRemediationsOrBuilderList()8213           getRemediationsOrBuilderList() {
8214         if (remediationsBuilder_ != null) {
8215           return remediationsBuilder_.getMessageOrBuilderList();
8216         } else {
8217           return java.util.Collections.unmodifiableList(remediations_);
8218         }
8219       }
8220       /**
8221        *
8222        *
8223        * <pre>
8224        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8225        * </pre>
8226        *
8227        * <code>
8228        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8229        * </code>
8230        */
8231       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder
addRemediationsBuilder()8232           addRemediationsBuilder() {
8233         return getRemediationsFieldBuilder()
8234             .addBuilder(
8235                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
8236                     .getDefaultInstance());
8237       }
8238       /**
8239        *
8240        *
8241        * <pre>
8242        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8243        * </pre>
8244        *
8245        * <code>
8246        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8247        * </code>
8248        */
8249       public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder
addRemediationsBuilder(int index)8250           addRemediationsBuilder(int index) {
8251         return getRemediationsFieldBuilder()
8252             .addBuilder(
8253                 index,
8254                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
8255                     .getDefaultInstance());
8256       }
8257       /**
8258        *
8259        *
8260        * <pre>
8261        * Specifies details on how to handle (and presumably, fix) a vulnerability.
8262        * </pre>
8263        *
8264        * <code>
8265        * repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8;
8266        * </code>
8267        */
8268       public java.util.List<
8269               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder>
getRemediationsBuilderList()8270           getRemediationsBuilderList() {
8271         return getRemediationsFieldBuilder().getBuilderList();
8272       }
8273 
8274       private com.google.protobuf.RepeatedFieldBuilderV3<
8275               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation,
8276               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder,
8277               io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder>
getRemediationsFieldBuilder()8278           getRemediationsFieldBuilder() {
8279         if (remediationsBuilder_ == null) {
8280           remediationsBuilder_ =
8281               new com.google.protobuf.RepeatedFieldBuilderV3<
8282                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation,
8283                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.Builder,
8284                   io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationOrBuilder>(
8285                   remediations_,
8286                   ((bitField0_ & 0x00000080) != 0),
8287                   getParentForChildren(),
8288                   isClean());
8289           remediations_ = null;
8290         }
8291         return remediationsBuilder_;
8292       }
8293 
8294       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)8295       public final Builder setUnknownFields(
8296           final com.google.protobuf.UnknownFieldSet unknownFields) {
8297         return super.setUnknownFields(unknownFields);
8298       }
8299 
8300       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)8301       public final Builder mergeUnknownFields(
8302           final com.google.protobuf.UnknownFieldSet unknownFields) {
8303         return super.mergeUnknownFields(unknownFields);
8304       }
8305 
8306       // @@protoc_insertion_point(builder_scope:grafeas.v1.VulnerabilityAssessmentNote.Assessment)
8307     }
8308 
8309     // @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityAssessmentNote.Assessment)
8310     private static final io.grafeas.v1.VulnerabilityAssessmentNote.Assessment DEFAULT_INSTANCE;
8311 
8312     static {
8313       DEFAULT_INSTANCE = new io.grafeas.v1.VulnerabilityAssessmentNote.Assessment();
8314     }
8315 
getDefaultInstance()8316     public static io.grafeas.v1.VulnerabilityAssessmentNote.Assessment getDefaultInstance() {
8317       return DEFAULT_INSTANCE;
8318     }
8319 
8320     private static final com.google.protobuf.Parser<Assessment> PARSER =
8321         new com.google.protobuf.AbstractParser<Assessment>() {
8322           @java.lang.Override
8323           public Assessment parsePartialFrom(
8324               com.google.protobuf.CodedInputStream input,
8325               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8326               throws com.google.protobuf.InvalidProtocolBufferException {
8327             Builder builder = newBuilder();
8328             try {
8329               builder.mergeFrom(input, extensionRegistry);
8330             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8331               throw e.setUnfinishedMessage(builder.buildPartial());
8332             } catch (com.google.protobuf.UninitializedMessageException e) {
8333               throw e.asInvalidProtocolBufferException()
8334                   .setUnfinishedMessage(builder.buildPartial());
8335             } catch (java.io.IOException e) {
8336               throw new com.google.protobuf.InvalidProtocolBufferException(e)
8337                   .setUnfinishedMessage(builder.buildPartial());
8338             }
8339             return builder.buildPartial();
8340           }
8341         };
8342 
parser()8343     public static com.google.protobuf.Parser<Assessment> parser() {
8344       return PARSER;
8345     }
8346 
8347     @java.lang.Override
getParserForType()8348     public com.google.protobuf.Parser<Assessment> getParserForType() {
8349       return PARSER;
8350     }
8351 
8352     @java.lang.Override
getDefaultInstanceForType()8353     public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment getDefaultInstanceForType() {
8354       return DEFAULT_INSTANCE;
8355     }
8356   }
8357 
8358   public static final int TITLE_FIELD_NUMBER = 1;
8359 
8360   @SuppressWarnings("serial")
8361   private volatile java.lang.Object title_ = "";
8362   /**
8363    *
8364    *
8365    * <pre>
8366    * The title of the note. E.g. `Vex-Debian-11.4`
8367    * </pre>
8368    *
8369    * <code>string title = 1;</code>
8370    *
8371    * @return The title.
8372    */
8373   @java.lang.Override
getTitle()8374   public java.lang.String getTitle() {
8375     java.lang.Object ref = title_;
8376     if (ref instanceof java.lang.String) {
8377       return (java.lang.String) ref;
8378     } else {
8379       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
8380       java.lang.String s = bs.toStringUtf8();
8381       title_ = s;
8382       return s;
8383     }
8384   }
8385   /**
8386    *
8387    *
8388    * <pre>
8389    * The title of the note. E.g. `Vex-Debian-11.4`
8390    * </pre>
8391    *
8392    * <code>string title = 1;</code>
8393    *
8394    * @return The bytes for title.
8395    */
8396   @java.lang.Override
getTitleBytes()8397   public com.google.protobuf.ByteString getTitleBytes() {
8398     java.lang.Object ref = title_;
8399     if (ref instanceof java.lang.String) {
8400       com.google.protobuf.ByteString b =
8401           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
8402       title_ = b;
8403       return b;
8404     } else {
8405       return (com.google.protobuf.ByteString) ref;
8406     }
8407   }
8408 
8409   public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 2;
8410 
8411   @SuppressWarnings("serial")
8412   private volatile java.lang.Object shortDescription_ = "";
8413   /**
8414    *
8415    *
8416    * <pre>
8417    * A one sentence description of this Vex.
8418    * </pre>
8419    *
8420    * <code>string short_description = 2;</code>
8421    *
8422    * @return The shortDescription.
8423    */
8424   @java.lang.Override
getShortDescription()8425   public java.lang.String getShortDescription() {
8426     java.lang.Object ref = shortDescription_;
8427     if (ref instanceof java.lang.String) {
8428       return (java.lang.String) ref;
8429     } else {
8430       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
8431       java.lang.String s = bs.toStringUtf8();
8432       shortDescription_ = s;
8433       return s;
8434     }
8435   }
8436   /**
8437    *
8438    *
8439    * <pre>
8440    * A one sentence description of this Vex.
8441    * </pre>
8442    *
8443    * <code>string short_description = 2;</code>
8444    *
8445    * @return The bytes for shortDescription.
8446    */
8447   @java.lang.Override
getShortDescriptionBytes()8448   public com.google.protobuf.ByteString getShortDescriptionBytes() {
8449     java.lang.Object ref = shortDescription_;
8450     if (ref instanceof java.lang.String) {
8451       com.google.protobuf.ByteString b =
8452           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
8453       shortDescription_ = b;
8454       return b;
8455     } else {
8456       return (com.google.protobuf.ByteString) ref;
8457     }
8458   }
8459 
8460   public static final int LONG_DESCRIPTION_FIELD_NUMBER = 3;
8461 
8462   @SuppressWarnings("serial")
8463   private volatile java.lang.Object longDescription_ = "";
8464   /**
8465    *
8466    *
8467    * <pre>
8468    * A detailed description of this Vex.
8469    * </pre>
8470    *
8471    * <code>string long_description = 3;</code>
8472    *
8473    * @return The longDescription.
8474    */
8475   @java.lang.Override
getLongDescription()8476   public java.lang.String getLongDescription() {
8477     java.lang.Object ref = longDescription_;
8478     if (ref instanceof java.lang.String) {
8479       return (java.lang.String) ref;
8480     } else {
8481       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
8482       java.lang.String s = bs.toStringUtf8();
8483       longDescription_ = s;
8484       return s;
8485     }
8486   }
8487   /**
8488    *
8489    *
8490    * <pre>
8491    * A detailed description of this Vex.
8492    * </pre>
8493    *
8494    * <code>string long_description = 3;</code>
8495    *
8496    * @return The bytes for longDescription.
8497    */
8498   @java.lang.Override
getLongDescriptionBytes()8499   public com.google.protobuf.ByteString getLongDescriptionBytes() {
8500     java.lang.Object ref = longDescription_;
8501     if (ref instanceof java.lang.String) {
8502       com.google.protobuf.ByteString b =
8503           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
8504       longDescription_ = b;
8505       return b;
8506     } else {
8507       return (com.google.protobuf.ByteString) ref;
8508     }
8509   }
8510 
8511   public static final int LANGUAGE_CODE_FIELD_NUMBER = 4;
8512 
8513   @SuppressWarnings("serial")
8514   private volatile java.lang.Object languageCode_ = "";
8515   /**
8516    *
8517    *
8518    * <pre>
8519    * Identifies the language used by this document,
8520    * corresponding to IETF BCP 47 / RFC 5646.
8521    * </pre>
8522    *
8523    * <code>string language_code = 4;</code>
8524    *
8525    * @return The languageCode.
8526    */
8527   @java.lang.Override
getLanguageCode()8528   public java.lang.String getLanguageCode() {
8529     java.lang.Object ref = languageCode_;
8530     if (ref instanceof java.lang.String) {
8531       return (java.lang.String) ref;
8532     } else {
8533       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
8534       java.lang.String s = bs.toStringUtf8();
8535       languageCode_ = s;
8536       return s;
8537     }
8538   }
8539   /**
8540    *
8541    *
8542    * <pre>
8543    * Identifies the language used by this document,
8544    * corresponding to IETF BCP 47 / RFC 5646.
8545    * </pre>
8546    *
8547    * <code>string language_code = 4;</code>
8548    *
8549    * @return The bytes for languageCode.
8550    */
8551   @java.lang.Override
getLanguageCodeBytes()8552   public com.google.protobuf.ByteString getLanguageCodeBytes() {
8553     java.lang.Object ref = languageCode_;
8554     if (ref instanceof java.lang.String) {
8555       com.google.protobuf.ByteString b =
8556           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
8557       languageCode_ = b;
8558       return b;
8559     } else {
8560       return (com.google.protobuf.ByteString) ref;
8561     }
8562   }
8563 
8564   public static final int PUBLISHER_FIELD_NUMBER = 5;
8565   private io.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher_;
8566   /**
8567    *
8568    *
8569    * <pre>
8570    * Publisher details of this Note.
8571    * </pre>
8572    *
8573    * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
8574    *
8575    * @return Whether the publisher field is set.
8576    */
8577   @java.lang.Override
hasPublisher()8578   public boolean hasPublisher() {
8579     return publisher_ != null;
8580   }
8581   /**
8582    *
8583    *
8584    * <pre>
8585    * Publisher details of this Note.
8586    * </pre>
8587    *
8588    * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
8589    *
8590    * @return The publisher.
8591    */
8592   @java.lang.Override
getPublisher()8593   public io.grafeas.v1.VulnerabilityAssessmentNote.Publisher getPublisher() {
8594     return publisher_ == null
8595         ? io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.getDefaultInstance()
8596         : publisher_;
8597   }
8598   /**
8599    *
8600    *
8601    * <pre>
8602    * Publisher details of this Note.
8603    * </pre>
8604    *
8605    * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
8606    */
8607   @java.lang.Override
getPublisherOrBuilder()8608   public io.grafeas.v1.VulnerabilityAssessmentNote.PublisherOrBuilder getPublisherOrBuilder() {
8609     return publisher_ == null
8610         ? io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.getDefaultInstance()
8611         : publisher_;
8612   }
8613 
8614   public static final int PRODUCT_FIELD_NUMBER = 6;
8615   private io.grafeas.v1.VulnerabilityAssessmentNote.Product product_;
8616   /**
8617    *
8618    *
8619    * <pre>
8620    * The product affected by this vex.
8621    * </pre>
8622    *
8623    * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
8624    *
8625    * @return Whether the product field is set.
8626    */
8627   @java.lang.Override
hasProduct()8628   public boolean hasProduct() {
8629     return product_ != null;
8630   }
8631   /**
8632    *
8633    *
8634    * <pre>
8635    * The product affected by this vex.
8636    * </pre>
8637    *
8638    * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
8639    *
8640    * @return The product.
8641    */
8642   @java.lang.Override
getProduct()8643   public io.grafeas.v1.VulnerabilityAssessmentNote.Product getProduct() {
8644     return product_ == null
8645         ? io.grafeas.v1.VulnerabilityAssessmentNote.Product.getDefaultInstance()
8646         : product_;
8647   }
8648   /**
8649    *
8650    *
8651    * <pre>
8652    * The product affected by this vex.
8653    * </pre>
8654    *
8655    * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
8656    */
8657   @java.lang.Override
getProductOrBuilder()8658   public io.grafeas.v1.VulnerabilityAssessmentNote.ProductOrBuilder getProductOrBuilder() {
8659     return product_ == null
8660         ? io.grafeas.v1.VulnerabilityAssessmentNote.Product.getDefaultInstance()
8661         : product_;
8662   }
8663 
8664   public static final int ASSESSMENT_FIELD_NUMBER = 7;
8665   private io.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment_;
8666   /**
8667    *
8668    *
8669    * <pre>
8670    * Represents a vulnerability assessment for the product.
8671    * </pre>
8672    *
8673    * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
8674    *
8675    * @return Whether the assessment field is set.
8676    */
8677   @java.lang.Override
hasAssessment()8678   public boolean hasAssessment() {
8679     return assessment_ != null;
8680   }
8681   /**
8682    *
8683    *
8684    * <pre>
8685    * Represents a vulnerability assessment for the product.
8686    * </pre>
8687    *
8688    * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
8689    *
8690    * @return The assessment.
8691    */
8692   @java.lang.Override
getAssessment()8693   public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment getAssessment() {
8694     return assessment_ == null
8695         ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.getDefaultInstance()
8696         : assessment_;
8697   }
8698   /**
8699    *
8700    *
8701    * <pre>
8702    * Represents a vulnerability assessment for the product.
8703    * </pre>
8704    *
8705    * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
8706    */
8707   @java.lang.Override
getAssessmentOrBuilder()8708   public io.grafeas.v1.VulnerabilityAssessmentNote.AssessmentOrBuilder getAssessmentOrBuilder() {
8709     return assessment_ == null
8710         ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.getDefaultInstance()
8711         : assessment_;
8712   }
8713 
8714   private byte memoizedIsInitialized = -1;
8715 
8716   @java.lang.Override
isInitialized()8717   public final boolean isInitialized() {
8718     byte isInitialized = memoizedIsInitialized;
8719     if (isInitialized == 1) return true;
8720     if (isInitialized == 0) return false;
8721 
8722     memoizedIsInitialized = 1;
8723     return true;
8724   }
8725 
8726   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)8727   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
8728     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
8729       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
8730     }
8731     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortDescription_)) {
8732       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortDescription_);
8733     }
8734     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longDescription_)) {
8735       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, longDescription_);
8736     }
8737     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
8738       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_);
8739     }
8740     if (publisher_ != null) {
8741       output.writeMessage(5, getPublisher());
8742     }
8743     if (product_ != null) {
8744       output.writeMessage(6, getProduct());
8745     }
8746     if (assessment_ != null) {
8747       output.writeMessage(7, getAssessment());
8748     }
8749     getUnknownFields().writeTo(output);
8750   }
8751 
8752   @java.lang.Override
getSerializedSize()8753   public int getSerializedSize() {
8754     int size = memoizedSize;
8755     if (size != -1) return size;
8756 
8757     size = 0;
8758     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
8759       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
8760     }
8761     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortDescription_)) {
8762       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortDescription_);
8763     }
8764     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longDescription_)) {
8765       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, longDescription_);
8766     }
8767     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
8768       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_);
8769     }
8770     if (publisher_ != null) {
8771       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPublisher());
8772     }
8773     if (product_ != null) {
8774       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProduct());
8775     }
8776     if (assessment_ != null) {
8777       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAssessment());
8778     }
8779     size += getUnknownFields().getSerializedSize();
8780     memoizedSize = size;
8781     return size;
8782   }
8783 
8784   @java.lang.Override
equals(final java.lang.Object obj)8785   public boolean equals(final java.lang.Object obj) {
8786     if (obj == this) {
8787       return true;
8788     }
8789     if (!(obj instanceof io.grafeas.v1.VulnerabilityAssessmentNote)) {
8790       return super.equals(obj);
8791     }
8792     io.grafeas.v1.VulnerabilityAssessmentNote other =
8793         (io.grafeas.v1.VulnerabilityAssessmentNote) obj;
8794 
8795     if (!getTitle().equals(other.getTitle())) return false;
8796     if (!getShortDescription().equals(other.getShortDescription())) return false;
8797     if (!getLongDescription().equals(other.getLongDescription())) return false;
8798     if (!getLanguageCode().equals(other.getLanguageCode())) return false;
8799     if (hasPublisher() != other.hasPublisher()) return false;
8800     if (hasPublisher()) {
8801       if (!getPublisher().equals(other.getPublisher())) return false;
8802     }
8803     if (hasProduct() != other.hasProduct()) return false;
8804     if (hasProduct()) {
8805       if (!getProduct().equals(other.getProduct())) return false;
8806     }
8807     if (hasAssessment() != other.hasAssessment()) return false;
8808     if (hasAssessment()) {
8809       if (!getAssessment().equals(other.getAssessment())) return false;
8810     }
8811     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
8812     return true;
8813   }
8814 
8815   @java.lang.Override
hashCode()8816   public int hashCode() {
8817     if (memoizedHashCode != 0) {
8818       return memoizedHashCode;
8819     }
8820     int hash = 41;
8821     hash = (19 * hash) + getDescriptor().hashCode();
8822     hash = (37 * hash) + TITLE_FIELD_NUMBER;
8823     hash = (53 * hash) + getTitle().hashCode();
8824     hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER;
8825     hash = (53 * hash) + getShortDescription().hashCode();
8826     hash = (37 * hash) + LONG_DESCRIPTION_FIELD_NUMBER;
8827     hash = (53 * hash) + getLongDescription().hashCode();
8828     hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
8829     hash = (53 * hash) + getLanguageCode().hashCode();
8830     if (hasPublisher()) {
8831       hash = (37 * hash) + PUBLISHER_FIELD_NUMBER;
8832       hash = (53 * hash) + getPublisher().hashCode();
8833     }
8834     if (hasProduct()) {
8835       hash = (37 * hash) + PRODUCT_FIELD_NUMBER;
8836       hash = (53 * hash) + getProduct().hashCode();
8837     }
8838     if (hasAssessment()) {
8839       hash = (37 * hash) + ASSESSMENT_FIELD_NUMBER;
8840       hash = (53 * hash) + getAssessment().hashCode();
8841     }
8842     hash = (29 * hash) + getUnknownFields().hashCode();
8843     memoizedHashCode = hash;
8844     return hash;
8845   }
8846 
parseFrom(java.nio.ByteBuffer data)8847   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(java.nio.ByteBuffer data)
8848       throws com.google.protobuf.InvalidProtocolBufferException {
8849     return PARSER.parseFrom(data);
8850   }
8851 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)8852   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(
8853       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8854       throws com.google.protobuf.InvalidProtocolBufferException {
8855     return PARSER.parseFrom(data, extensionRegistry);
8856   }
8857 
parseFrom( com.google.protobuf.ByteString data)8858   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(
8859       com.google.protobuf.ByteString data)
8860       throws com.google.protobuf.InvalidProtocolBufferException {
8861     return PARSER.parseFrom(data);
8862   }
8863 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)8864   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(
8865       com.google.protobuf.ByteString data,
8866       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8867       throws com.google.protobuf.InvalidProtocolBufferException {
8868     return PARSER.parseFrom(data, extensionRegistry);
8869   }
8870 
parseFrom(byte[] data)8871   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(byte[] data)
8872       throws com.google.protobuf.InvalidProtocolBufferException {
8873     return PARSER.parseFrom(data);
8874   }
8875 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)8876   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(
8877       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8878       throws com.google.protobuf.InvalidProtocolBufferException {
8879     return PARSER.parseFrom(data, extensionRegistry);
8880   }
8881 
parseFrom(java.io.InputStream input)8882   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(java.io.InputStream input)
8883       throws java.io.IOException {
8884     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
8885   }
8886 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)8887   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(
8888       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8889       throws java.io.IOException {
8890     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
8891         PARSER, input, extensionRegistry);
8892   }
8893 
parseDelimitedFrom( java.io.InputStream input)8894   public static io.grafeas.v1.VulnerabilityAssessmentNote parseDelimitedFrom(
8895       java.io.InputStream input) throws java.io.IOException {
8896     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
8897   }
8898 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)8899   public static io.grafeas.v1.VulnerabilityAssessmentNote parseDelimitedFrom(
8900       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8901       throws java.io.IOException {
8902     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
8903         PARSER, input, extensionRegistry);
8904   }
8905 
parseFrom( com.google.protobuf.CodedInputStream input)8906   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(
8907       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
8908     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
8909   }
8910 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)8911   public static io.grafeas.v1.VulnerabilityAssessmentNote parseFrom(
8912       com.google.protobuf.CodedInputStream input,
8913       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8914       throws java.io.IOException {
8915     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
8916         PARSER, input, extensionRegistry);
8917   }
8918 
8919   @java.lang.Override
newBuilderForType()8920   public Builder newBuilderForType() {
8921     return newBuilder();
8922   }
8923 
newBuilder()8924   public static Builder newBuilder() {
8925     return DEFAULT_INSTANCE.toBuilder();
8926   }
8927 
newBuilder(io.grafeas.v1.VulnerabilityAssessmentNote prototype)8928   public static Builder newBuilder(io.grafeas.v1.VulnerabilityAssessmentNote prototype) {
8929     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
8930   }
8931 
8932   @java.lang.Override
toBuilder()8933   public Builder toBuilder() {
8934     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
8935   }
8936 
8937   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)8938   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
8939     Builder builder = new Builder(parent);
8940     return builder;
8941   }
8942   /**
8943    *
8944    *
8945    * <pre>
8946    * A single VulnerabilityAssessmentNote represents
8947    * one particular product's vulnerability assessment for one CVE.
8948    * </pre>
8949    *
8950    * Protobuf type {@code grafeas.v1.VulnerabilityAssessmentNote}
8951    */
8952   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
8953       implements
8954       // @@protoc_insertion_point(builder_implements:grafeas.v1.VulnerabilityAssessmentNote)
8955       io.grafeas.v1.VulnerabilityAssessmentNoteOrBuilder {
getDescriptor()8956     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
8957       return io.grafeas.v1.Vex.internal_static_grafeas_v1_VulnerabilityAssessmentNote_descriptor;
8958     }
8959 
8960     @java.lang.Override
8961     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()8962         internalGetFieldAccessorTable() {
8963       return io.grafeas.v1.Vex
8964           .internal_static_grafeas_v1_VulnerabilityAssessmentNote_fieldAccessorTable
8965           .ensureFieldAccessorsInitialized(
8966               io.grafeas.v1.VulnerabilityAssessmentNote.class,
8967               io.grafeas.v1.VulnerabilityAssessmentNote.Builder.class);
8968     }
8969 
8970     // Construct using io.grafeas.v1.VulnerabilityAssessmentNote.newBuilder()
Builder()8971     private Builder() {}
8972 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)8973     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
8974       super(parent);
8975     }
8976 
8977     @java.lang.Override
clear()8978     public Builder clear() {
8979       super.clear();
8980       bitField0_ = 0;
8981       title_ = "";
8982       shortDescription_ = "";
8983       longDescription_ = "";
8984       languageCode_ = "";
8985       publisher_ = null;
8986       if (publisherBuilder_ != null) {
8987         publisherBuilder_.dispose();
8988         publisherBuilder_ = null;
8989       }
8990       product_ = null;
8991       if (productBuilder_ != null) {
8992         productBuilder_.dispose();
8993         productBuilder_ = null;
8994       }
8995       assessment_ = null;
8996       if (assessmentBuilder_ != null) {
8997         assessmentBuilder_.dispose();
8998         assessmentBuilder_ = null;
8999       }
9000       return this;
9001     }
9002 
9003     @java.lang.Override
getDescriptorForType()9004     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
9005       return io.grafeas.v1.Vex.internal_static_grafeas_v1_VulnerabilityAssessmentNote_descriptor;
9006     }
9007 
9008     @java.lang.Override
getDefaultInstanceForType()9009     public io.grafeas.v1.VulnerabilityAssessmentNote getDefaultInstanceForType() {
9010       return io.grafeas.v1.VulnerabilityAssessmentNote.getDefaultInstance();
9011     }
9012 
9013     @java.lang.Override
build()9014     public io.grafeas.v1.VulnerabilityAssessmentNote build() {
9015       io.grafeas.v1.VulnerabilityAssessmentNote result = buildPartial();
9016       if (!result.isInitialized()) {
9017         throw newUninitializedMessageException(result);
9018       }
9019       return result;
9020     }
9021 
9022     @java.lang.Override
buildPartial()9023     public io.grafeas.v1.VulnerabilityAssessmentNote buildPartial() {
9024       io.grafeas.v1.VulnerabilityAssessmentNote result =
9025           new io.grafeas.v1.VulnerabilityAssessmentNote(this);
9026       if (bitField0_ != 0) {
9027         buildPartial0(result);
9028       }
9029       onBuilt();
9030       return result;
9031     }
9032 
buildPartial0(io.grafeas.v1.VulnerabilityAssessmentNote result)9033     private void buildPartial0(io.grafeas.v1.VulnerabilityAssessmentNote result) {
9034       int from_bitField0_ = bitField0_;
9035       if (((from_bitField0_ & 0x00000001) != 0)) {
9036         result.title_ = title_;
9037       }
9038       if (((from_bitField0_ & 0x00000002) != 0)) {
9039         result.shortDescription_ = shortDescription_;
9040       }
9041       if (((from_bitField0_ & 0x00000004) != 0)) {
9042         result.longDescription_ = longDescription_;
9043       }
9044       if (((from_bitField0_ & 0x00000008) != 0)) {
9045         result.languageCode_ = languageCode_;
9046       }
9047       if (((from_bitField0_ & 0x00000010) != 0)) {
9048         result.publisher_ = publisherBuilder_ == null ? publisher_ : publisherBuilder_.build();
9049       }
9050       if (((from_bitField0_ & 0x00000020) != 0)) {
9051         result.product_ = productBuilder_ == null ? product_ : productBuilder_.build();
9052       }
9053       if (((from_bitField0_ & 0x00000040) != 0)) {
9054         result.assessment_ = assessmentBuilder_ == null ? assessment_ : assessmentBuilder_.build();
9055       }
9056     }
9057 
9058     @java.lang.Override
clone()9059     public Builder clone() {
9060       return super.clone();
9061     }
9062 
9063     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)9064     public Builder setField(
9065         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
9066       return super.setField(field, value);
9067     }
9068 
9069     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)9070     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
9071       return super.clearField(field);
9072     }
9073 
9074     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)9075     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
9076       return super.clearOneof(oneof);
9077     }
9078 
9079     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)9080     public Builder setRepeatedField(
9081         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
9082       return super.setRepeatedField(field, index, value);
9083     }
9084 
9085     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)9086     public Builder addRepeatedField(
9087         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
9088       return super.addRepeatedField(field, value);
9089     }
9090 
9091     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)9092     public Builder mergeFrom(com.google.protobuf.Message other) {
9093       if (other instanceof io.grafeas.v1.VulnerabilityAssessmentNote) {
9094         return mergeFrom((io.grafeas.v1.VulnerabilityAssessmentNote) other);
9095       } else {
9096         super.mergeFrom(other);
9097         return this;
9098       }
9099     }
9100 
mergeFrom(io.grafeas.v1.VulnerabilityAssessmentNote other)9101     public Builder mergeFrom(io.grafeas.v1.VulnerabilityAssessmentNote other) {
9102       if (other == io.grafeas.v1.VulnerabilityAssessmentNote.getDefaultInstance()) return this;
9103       if (!other.getTitle().isEmpty()) {
9104         title_ = other.title_;
9105         bitField0_ |= 0x00000001;
9106         onChanged();
9107       }
9108       if (!other.getShortDescription().isEmpty()) {
9109         shortDescription_ = other.shortDescription_;
9110         bitField0_ |= 0x00000002;
9111         onChanged();
9112       }
9113       if (!other.getLongDescription().isEmpty()) {
9114         longDescription_ = other.longDescription_;
9115         bitField0_ |= 0x00000004;
9116         onChanged();
9117       }
9118       if (!other.getLanguageCode().isEmpty()) {
9119         languageCode_ = other.languageCode_;
9120         bitField0_ |= 0x00000008;
9121         onChanged();
9122       }
9123       if (other.hasPublisher()) {
9124         mergePublisher(other.getPublisher());
9125       }
9126       if (other.hasProduct()) {
9127         mergeProduct(other.getProduct());
9128       }
9129       if (other.hasAssessment()) {
9130         mergeAssessment(other.getAssessment());
9131       }
9132       this.mergeUnknownFields(other.getUnknownFields());
9133       onChanged();
9134       return this;
9135     }
9136 
9137     @java.lang.Override
isInitialized()9138     public final boolean isInitialized() {
9139       return true;
9140     }
9141 
9142     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)9143     public Builder mergeFrom(
9144         com.google.protobuf.CodedInputStream input,
9145         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9146         throws java.io.IOException {
9147       if (extensionRegistry == null) {
9148         throw new java.lang.NullPointerException();
9149       }
9150       try {
9151         boolean done = false;
9152         while (!done) {
9153           int tag = input.readTag();
9154           switch (tag) {
9155             case 0:
9156               done = true;
9157               break;
9158             case 10:
9159               {
9160                 title_ = input.readStringRequireUtf8();
9161                 bitField0_ |= 0x00000001;
9162                 break;
9163               } // case 10
9164             case 18:
9165               {
9166                 shortDescription_ = input.readStringRequireUtf8();
9167                 bitField0_ |= 0x00000002;
9168                 break;
9169               } // case 18
9170             case 26:
9171               {
9172                 longDescription_ = input.readStringRequireUtf8();
9173                 bitField0_ |= 0x00000004;
9174                 break;
9175               } // case 26
9176             case 34:
9177               {
9178                 languageCode_ = input.readStringRequireUtf8();
9179                 bitField0_ |= 0x00000008;
9180                 break;
9181               } // case 34
9182             case 42:
9183               {
9184                 input.readMessage(getPublisherFieldBuilder().getBuilder(), extensionRegistry);
9185                 bitField0_ |= 0x00000010;
9186                 break;
9187               } // case 42
9188             case 50:
9189               {
9190                 input.readMessage(getProductFieldBuilder().getBuilder(), extensionRegistry);
9191                 bitField0_ |= 0x00000020;
9192                 break;
9193               } // case 50
9194             case 58:
9195               {
9196                 input.readMessage(getAssessmentFieldBuilder().getBuilder(), extensionRegistry);
9197                 bitField0_ |= 0x00000040;
9198                 break;
9199               } // case 58
9200             default:
9201               {
9202                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
9203                   done = true; // was an endgroup tag
9204                 }
9205                 break;
9206               } // default:
9207           } // switch (tag)
9208         } // while (!done)
9209       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
9210         throw e.unwrapIOException();
9211       } finally {
9212         onChanged();
9213       } // finally
9214       return this;
9215     }
9216 
9217     private int bitField0_;
9218 
9219     private java.lang.Object title_ = "";
9220     /**
9221      *
9222      *
9223      * <pre>
9224      * The title of the note. E.g. `Vex-Debian-11.4`
9225      * </pre>
9226      *
9227      * <code>string title = 1;</code>
9228      *
9229      * @return The title.
9230      */
getTitle()9231     public java.lang.String getTitle() {
9232       java.lang.Object ref = title_;
9233       if (!(ref instanceof java.lang.String)) {
9234         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
9235         java.lang.String s = bs.toStringUtf8();
9236         title_ = s;
9237         return s;
9238       } else {
9239         return (java.lang.String) ref;
9240       }
9241     }
9242     /**
9243      *
9244      *
9245      * <pre>
9246      * The title of the note. E.g. `Vex-Debian-11.4`
9247      * </pre>
9248      *
9249      * <code>string title = 1;</code>
9250      *
9251      * @return The bytes for title.
9252      */
getTitleBytes()9253     public com.google.protobuf.ByteString getTitleBytes() {
9254       java.lang.Object ref = title_;
9255       if (ref instanceof String) {
9256         com.google.protobuf.ByteString b =
9257             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
9258         title_ = b;
9259         return b;
9260       } else {
9261         return (com.google.protobuf.ByteString) ref;
9262       }
9263     }
9264     /**
9265      *
9266      *
9267      * <pre>
9268      * The title of the note. E.g. `Vex-Debian-11.4`
9269      * </pre>
9270      *
9271      * <code>string title = 1;</code>
9272      *
9273      * @param value The title to set.
9274      * @return This builder for chaining.
9275      */
setTitle(java.lang.String value)9276     public Builder setTitle(java.lang.String value) {
9277       if (value == null) {
9278         throw new NullPointerException();
9279       }
9280       title_ = value;
9281       bitField0_ |= 0x00000001;
9282       onChanged();
9283       return this;
9284     }
9285     /**
9286      *
9287      *
9288      * <pre>
9289      * The title of the note. E.g. `Vex-Debian-11.4`
9290      * </pre>
9291      *
9292      * <code>string title = 1;</code>
9293      *
9294      * @return This builder for chaining.
9295      */
clearTitle()9296     public Builder clearTitle() {
9297       title_ = getDefaultInstance().getTitle();
9298       bitField0_ = (bitField0_ & ~0x00000001);
9299       onChanged();
9300       return this;
9301     }
9302     /**
9303      *
9304      *
9305      * <pre>
9306      * The title of the note. E.g. `Vex-Debian-11.4`
9307      * </pre>
9308      *
9309      * <code>string title = 1;</code>
9310      *
9311      * @param value The bytes for title to set.
9312      * @return This builder for chaining.
9313      */
setTitleBytes(com.google.protobuf.ByteString value)9314     public Builder setTitleBytes(com.google.protobuf.ByteString value) {
9315       if (value == null) {
9316         throw new NullPointerException();
9317       }
9318       checkByteStringIsUtf8(value);
9319       title_ = value;
9320       bitField0_ |= 0x00000001;
9321       onChanged();
9322       return this;
9323     }
9324 
9325     private java.lang.Object shortDescription_ = "";
9326     /**
9327      *
9328      *
9329      * <pre>
9330      * A one sentence description of this Vex.
9331      * </pre>
9332      *
9333      * <code>string short_description = 2;</code>
9334      *
9335      * @return The shortDescription.
9336      */
getShortDescription()9337     public java.lang.String getShortDescription() {
9338       java.lang.Object ref = shortDescription_;
9339       if (!(ref instanceof java.lang.String)) {
9340         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
9341         java.lang.String s = bs.toStringUtf8();
9342         shortDescription_ = s;
9343         return s;
9344       } else {
9345         return (java.lang.String) ref;
9346       }
9347     }
9348     /**
9349      *
9350      *
9351      * <pre>
9352      * A one sentence description of this Vex.
9353      * </pre>
9354      *
9355      * <code>string short_description = 2;</code>
9356      *
9357      * @return The bytes for shortDescription.
9358      */
getShortDescriptionBytes()9359     public com.google.protobuf.ByteString getShortDescriptionBytes() {
9360       java.lang.Object ref = shortDescription_;
9361       if (ref instanceof String) {
9362         com.google.protobuf.ByteString b =
9363             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
9364         shortDescription_ = b;
9365         return b;
9366       } else {
9367         return (com.google.protobuf.ByteString) ref;
9368       }
9369     }
9370     /**
9371      *
9372      *
9373      * <pre>
9374      * A one sentence description of this Vex.
9375      * </pre>
9376      *
9377      * <code>string short_description = 2;</code>
9378      *
9379      * @param value The shortDescription to set.
9380      * @return This builder for chaining.
9381      */
setShortDescription(java.lang.String value)9382     public Builder setShortDescription(java.lang.String value) {
9383       if (value == null) {
9384         throw new NullPointerException();
9385       }
9386       shortDescription_ = value;
9387       bitField0_ |= 0x00000002;
9388       onChanged();
9389       return this;
9390     }
9391     /**
9392      *
9393      *
9394      * <pre>
9395      * A one sentence description of this Vex.
9396      * </pre>
9397      *
9398      * <code>string short_description = 2;</code>
9399      *
9400      * @return This builder for chaining.
9401      */
clearShortDescription()9402     public Builder clearShortDescription() {
9403       shortDescription_ = getDefaultInstance().getShortDescription();
9404       bitField0_ = (bitField0_ & ~0x00000002);
9405       onChanged();
9406       return this;
9407     }
9408     /**
9409      *
9410      *
9411      * <pre>
9412      * A one sentence description of this Vex.
9413      * </pre>
9414      *
9415      * <code>string short_description = 2;</code>
9416      *
9417      * @param value The bytes for shortDescription to set.
9418      * @return This builder for chaining.
9419      */
setShortDescriptionBytes(com.google.protobuf.ByteString value)9420     public Builder setShortDescriptionBytes(com.google.protobuf.ByteString value) {
9421       if (value == null) {
9422         throw new NullPointerException();
9423       }
9424       checkByteStringIsUtf8(value);
9425       shortDescription_ = value;
9426       bitField0_ |= 0x00000002;
9427       onChanged();
9428       return this;
9429     }
9430 
9431     private java.lang.Object longDescription_ = "";
9432     /**
9433      *
9434      *
9435      * <pre>
9436      * A detailed description of this Vex.
9437      * </pre>
9438      *
9439      * <code>string long_description = 3;</code>
9440      *
9441      * @return The longDescription.
9442      */
getLongDescription()9443     public java.lang.String getLongDescription() {
9444       java.lang.Object ref = longDescription_;
9445       if (!(ref instanceof java.lang.String)) {
9446         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
9447         java.lang.String s = bs.toStringUtf8();
9448         longDescription_ = s;
9449         return s;
9450       } else {
9451         return (java.lang.String) ref;
9452       }
9453     }
9454     /**
9455      *
9456      *
9457      * <pre>
9458      * A detailed description of this Vex.
9459      * </pre>
9460      *
9461      * <code>string long_description = 3;</code>
9462      *
9463      * @return The bytes for longDescription.
9464      */
getLongDescriptionBytes()9465     public com.google.protobuf.ByteString getLongDescriptionBytes() {
9466       java.lang.Object ref = longDescription_;
9467       if (ref instanceof String) {
9468         com.google.protobuf.ByteString b =
9469             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
9470         longDescription_ = b;
9471         return b;
9472       } else {
9473         return (com.google.protobuf.ByteString) ref;
9474       }
9475     }
9476     /**
9477      *
9478      *
9479      * <pre>
9480      * A detailed description of this Vex.
9481      * </pre>
9482      *
9483      * <code>string long_description = 3;</code>
9484      *
9485      * @param value The longDescription to set.
9486      * @return This builder for chaining.
9487      */
setLongDescription(java.lang.String value)9488     public Builder setLongDescription(java.lang.String value) {
9489       if (value == null) {
9490         throw new NullPointerException();
9491       }
9492       longDescription_ = value;
9493       bitField0_ |= 0x00000004;
9494       onChanged();
9495       return this;
9496     }
9497     /**
9498      *
9499      *
9500      * <pre>
9501      * A detailed description of this Vex.
9502      * </pre>
9503      *
9504      * <code>string long_description = 3;</code>
9505      *
9506      * @return This builder for chaining.
9507      */
clearLongDescription()9508     public Builder clearLongDescription() {
9509       longDescription_ = getDefaultInstance().getLongDescription();
9510       bitField0_ = (bitField0_ & ~0x00000004);
9511       onChanged();
9512       return this;
9513     }
9514     /**
9515      *
9516      *
9517      * <pre>
9518      * A detailed description of this Vex.
9519      * </pre>
9520      *
9521      * <code>string long_description = 3;</code>
9522      *
9523      * @param value The bytes for longDescription to set.
9524      * @return This builder for chaining.
9525      */
setLongDescriptionBytes(com.google.protobuf.ByteString value)9526     public Builder setLongDescriptionBytes(com.google.protobuf.ByteString value) {
9527       if (value == null) {
9528         throw new NullPointerException();
9529       }
9530       checkByteStringIsUtf8(value);
9531       longDescription_ = value;
9532       bitField0_ |= 0x00000004;
9533       onChanged();
9534       return this;
9535     }
9536 
9537     private java.lang.Object languageCode_ = "";
9538     /**
9539      *
9540      *
9541      * <pre>
9542      * Identifies the language used by this document,
9543      * corresponding to IETF BCP 47 / RFC 5646.
9544      * </pre>
9545      *
9546      * <code>string language_code = 4;</code>
9547      *
9548      * @return The languageCode.
9549      */
getLanguageCode()9550     public java.lang.String getLanguageCode() {
9551       java.lang.Object ref = languageCode_;
9552       if (!(ref instanceof java.lang.String)) {
9553         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
9554         java.lang.String s = bs.toStringUtf8();
9555         languageCode_ = s;
9556         return s;
9557       } else {
9558         return (java.lang.String) ref;
9559       }
9560     }
9561     /**
9562      *
9563      *
9564      * <pre>
9565      * Identifies the language used by this document,
9566      * corresponding to IETF BCP 47 / RFC 5646.
9567      * </pre>
9568      *
9569      * <code>string language_code = 4;</code>
9570      *
9571      * @return The bytes for languageCode.
9572      */
getLanguageCodeBytes()9573     public com.google.protobuf.ByteString getLanguageCodeBytes() {
9574       java.lang.Object ref = languageCode_;
9575       if (ref instanceof String) {
9576         com.google.protobuf.ByteString b =
9577             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
9578         languageCode_ = b;
9579         return b;
9580       } else {
9581         return (com.google.protobuf.ByteString) ref;
9582       }
9583     }
9584     /**
9585      *
9586      *
9587      * <pre>
9588      * Identifies the language used by this document,
9589      * corresponding to IETF BCP 47 / RFC 5646.
9590      * </pre>
9591      *
9592      * <code>string language_code = 4;</code>
9593      *
9594      * @param value The languageCode to set.
9595      * @return This builder for chaining.
9596      */
setLanguageCode(java.lang.String value)9597     public Builder setLanguageCode(java.lang.String value) {
9598       if (value == null) {
9599         throw new NullPointerException();
9600       }
9601       languageCode_ = value;
9602       bitField0_ |= 0x00000008;
9603       onChanged();
9604       return this;
9605     }
9606     /**
9607      *
9608      *
9609      * <pre>
9610      * Identifies the language used by this document,
9611      * corresponding to IETF BCP 47 / RFC 5646.
9612      * </pre>
9613      *
9614      * <code>string language_code = 4;</code>
9615      *
9616      * @return This builder for chaining.
9617      */
clearLanguageCode()9618     public Builder clearLanguageCode() {
9619       languageCode_ = getDefaultInstance().getLanguageCode();
9620       bitField0_ = (bitField0_ & ~0x00000008);
9621       onChanged();
9622       return this;
9623     }
9624     /**
9625      *
9626      *
9627      * <pre>
9628      * Identifies the language used by this document,
9629      * corresponding to IETF BCP 47 / RFC 5646.
9630      * </pre>
9631      *
9632      * <code>string language_code = 4;</code>
9633      *
9634      * @param value The bytes for languageCode to set.
9635      * @return This builder for chaining.
9636      */
setLanguageCodeBytes(com.google.protobuf.ByteString value)9637     public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
9638       if (value == null) {
9639         throw new NullPointerException();
9640       }
9641       checkByteStringIsUtf8(value);
9642       languageCode_ = value;
9643       bitField0_ |= 0x00000008;
9644       onChanged();
9645       return this;
9646     }
9647 
9648     private io.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher_;
9649     private com.google.protobuf.SingleFieldBuilderV3<
9650             io.grafeas.v1.VulnerabilityAssessmentNote.Publisher,
9651             io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.Builder,
9652             io.grafeas.v1.VulnerabilityAssessmentNote.PublisherOrBuilder>
9653         publisherBuilder_;
9654     /**
9655      *
9656      *
9657      * <pre>
9658      * Publisher details of this Note.
9659      * </pre>
9660      *
9661      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
9662      *
9663      * @return Whether the publisher field is set.
9664      */
hasPublisher()9665     public boolean hasPublisher() {
9666       return ((bitField0_ & 0x00000010) != 0);
9667     }
9668     /**
9669      *
9670      *
9671      * <pre>
9672      * Publisher details of this Note.
9673      * </pre>
9674      *
9675      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
9676      *
9677      * @return The publisher.
9678      */
getPublisher()9679     public io.grafeas.v1.VulnerabilityAssessmentNote.Publisher getPublisher() {
9680       if (publisherBuilder_ == null) {
9681         return publisher_ == null
9682             ? io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.getDefaultInstance()
9683             : publisher_;
9684       } else {
9685         return publisherBuilder_.getMessage();
9686       }
9687     }
9688     /**
9689      *
9690      *
9691      * <pre>
9692      * Publisher details of this Note.
9693      * </pre>
9694      *
9695      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
9696      */
setPublisher(io.grafeas.v1.VulnerabilityAssessmentNote.Publisher value)9697     public Builder setPublisher(io.grafeas.v1.VulnerabilityAssessmentNote.Publisher value) {
9698       if (publisherBuilder_ == null) {
9699         if (value == null) {
9700           throw new NullPointerException();
9701         }
9702         publisher_ = value;
9703       } else {
9704         publisherBuilder_.setMessage(value);
9705       }
9706       bitField0_ |= 0x00000010;
9707       onChanged();
9708       return this;
9709     }
9710     /**
9711      *
9712      *
9713      * <pre>
9714      * Publisher details of this Note.
9715      * </pre>
9716      *
9717      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
9718      */
setPublisher( io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.Builder builderForValue)9719     public Builder setPublisher(
9720         io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.Builder builderForValue) {
9721       if (publisherBuilder_ == null) {
9722         publisher_ = builderForValue.build();
9723       } else {
9724         publisherBuilder_.setMessage(builderForValue.build());
9725       }
9726       bitField0_ |= 0x00000010;
9727       onChanged();
9728       return this;
9729     }
9730     /**
9731      *
9732      *
9733      * <pre>
9734      * Publisher details of this Note.
9735      * </pre>
9736      *
9737      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
9738      */
mergePublisher(io.grafeas.v1.VulnerabilityAssessmentNote.Publisher value)9739     public Builder mergePublisher(io.grafeas.v1.VulnerabilityAssessmentNote.Publisher value) {
9740       if (publisherBuilder_ == null) {
9741         if (((bitField0_ & 0x00000010) != 0)
9742             && publisher_ != null
9743             && publisher_
9744                 != io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.getDefaultInstance()) {
9745           getPublisherBuilder().mergeFrom(value);
9746         } else {
9747           publisher_ = value;
9748         }
9749       } else {
9750         publisherBuilder_.mergeFrom(value);
9751       }
9752       bitField0_ |= 0x00000010;
9753       onChanged();
9754       return this;
9755     }
9756     /**
9757      *
9758      *
9759      * <pre>
9760      * Publisher details of this Note.
9761      * </pre>
9762      *
9763      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
9764      */
clearPublisher()9765     public Builder clearPublisher() {
9766       bitField0_ = (bitField0_ & ~0x00000010);
9767       publisher_ = null;
9768       if (publisherBuilder_ != null) {
9769         publisherBuilder_.dispose();
9770         publisherBuilder_ = null;
9771       }
9772       onChanged();
9773       return this;
9774     }
9775     /**
9776      *
9777      *
9778      * <pre>
9779      * Publisher details of this Note.
9780      * </pre>
9781      *
9782      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
9783      */
getPublisherBuilder()9784     public io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.Builder getPublisherBuilder() {
9785       bitField0_ |= 0x00000010;
9786       onChanged();
9787       return getPublisherFieldBuilder().getBuilder();
9788     }
9789     /**
9790      *
9791      *
9792      * <pre>
9793      * Publisher details of this Note.
9794      * </pre>
9795      *
9796      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
9797      */
getPublisherOrBuilder()9798     public io.grafeas.v1.VulnerabilityAssessmentNote.PublisherOrBuilder getPublisherOrBuilder() {
9799       if (publisherBuilder_ != null) {
9800         return publisherBuilder_.getMessageOrBuilder();
9801       } else {
9802         return publisher_ == null
9803             ? io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.getDefaultInstance()
9804             : publisher_;
9805       }
9806     }
9807     /**
9808      *
9809      *
9810      * <pre>
9811      * Publisher details of this Note.
9812      * </pre>
9813      *
9814      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5;</code>
9815      */
9816     private com.google.protobuf.SingleFieldBuilderV3<
9817             io.grafeas.v1.VulnerabilityAssessmentNote.Publisher,
9818             io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.Builder,
9819             io.grafeas.v1.VulnerabilityAssessmentNote.PublisherOrBuilder>
getPublisherFieldBuilder()9820         getPublisherFieldBuilder() {
9821       if (publisherBuilder_ == null) {
9822         publisherBuilder_ =
9823             new com.google.protobuf.SingleFieldBuilderV3<
9824                 io.grafeas.v1.VulnerabilityAssessmentNote.Publisher,
9825                 io.grafeas.v1.VulnerabilityAssessmentNote.Publisher.Builder,
9826                 io.grafeas.v1.VulnerabilityAssessmentNote.PublisherOrBuilder>(
9827                 getPublisher(), getParentForChildren(), isClean());
9828         publisher_ = null;
9829       }
9830       return publisherBuilder_;
9831     }
9832 
9833     private io.grafeas.v1.VulnerabilityAssessmentNote.Product product_;
9834     private com.google.protobuf.SingleFieldBuilderV3<
9835             io.grafeas.v1.VulnerabilityAssessmentNote.Product,
9836             io.grafeas.v1.VulnerabilityAssessmentNote.Product.Builder,
9837             io.grafeas.v1.VulnerabilityAssessmentNote.ProductOrBuilder>
9838         productBuilder_;
9839     /**
9840      *
9841      *
9842      * <pre>
9843      * The product affected by this vex.
9844      * </pre>
9845      *
9846      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
9847      *
9848      * @return Whether the product field is set.
9849      */
hasProduct()9850     public boolean hasProduct() {
9851       return ((bitField0_ & 0x00000020) != 0);
9852     }
9853     /**
9854      *
9855      *
9856      * <pre>
9857      * The product affected by this vex.
9858      * </pre>
9859      *
9860      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
9861      *
9862      * @return The product.
9863      */
getProduct()9864     public io.grafeas.v1.VulnerabilityAssessmentNote.Product getProduct() {
9865       if (productBuilder_ == null) {
9866         return product_ == null
9867             ? io.grafeas.v1.VulnerabilityAssessmentNote.Product.getDefaultInstance()
9868             : product_;
9869       } else {
9870         return productBuilder_.getMessage();
9871       }
9872     }
9873     /**
9874      *
9875      *
9876      * <pre>
9877      * The product affected by this vex.
9878      * </pre>
9879      *
9880      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
9881      */
setProduct(io.grafeas.v1.VulnerabilityAssessmentNote.Product value)9882     public Builder setProduct(io.grafeas.v1.VulnerabilityAssessmentNote.Product value) {
9883       if (productBuilder_ == null) {
9884         if (value == null) {
9885           throw new NullPointerException();
9886         }
9887         product_ = value;
9888       } else {
9889         productBuilder_.setMessage(value);
9890       }
9891       bitField0_ |= 0x00000020;
9892       onChanged();
9893       return this;
9894     }
9895     /**
9896      *
9897      *
9898      * <pre>
9899      * The product affected by this vex.
9900      * </pre>
9901      *
9902      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
9903      */
setProduct( io.grafeas.v1.VulnerabilityAssessmentNote.Product.Builder builderForValue)9904     public Builder setProduct(
9905         io.grafeas.v1.VulnerabilityAssessmentNote.Product.Builder builderForValue) {
9906       if (productBuilder_ == null) {
9907         product_ = builderForValue.build();
9908       } else {
9909         productBuilder_.setMessage(builderForValue.build());
9910       }
9911       bitField0_ |= 0x00000020;
9912       onChanged();
9913       return this;
9914     }
9915     /**
9916      *
9917      *
9918      * <pre>
9919      * The product affected by this vex.
9920      * </pre>
9921      *
9922      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
9923      */
mergeProduct(io.grafeas.v1.VulnerabilityAssessmentNote.Product value)9924     public Builder mergeProduct(io.grafeas.v1.VulnerabilityAssessmentNote.Product value) {
9925       if (productBuilder_ == null) {
9926         if (((bitField0_ & 0x00000020) != 0)
9927             && product_ != null
9928             && product_ != io.grafeas.v1.VulnerabilityAssessmentNote.Product.getDefaultInstance()) {
9929           getProductBuilder().mergeFrom(value);
9930         } else {
9931           product_ = value;
9932         }
9933       } else {
9934         productBuilder_.mergeFrom(value);
9935       }
9936       bitField0_ |= 0x00000020;
9937       onChanged();
9938       return this;
9939     }
9940     /**
9941      *
9942      *
9943      * <pre>
9944      * The product affected by this vex.
9945      * </pre>
9946      *
9947      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
9948      */
clearProduct()9949     public Builder clearProduct() {
9950       bitField0_ = (bitField0_ & ~0x00000020);
9951       product_ = null;
9952       if (productBuilder_ != null) {
9953         productBuilder_.dispose();
9954         productBuilder_ = null;
9955       }
9956       onChanged();
9957       return this;
9958     }
9959     /**
9960      *
9961      *
9962      * <pre>
9963      * The product affected by this vex.
9964      * </pre>
9965      *
9966      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
9967      */
getProductBuilder()9968     public io.grafeas.v1.VulnerabilityAssessmentNote.Product.Builder getProductBuilder() {
9969       bitField0_ |= 0x00000020;
9970       onChanged();
9971       return getProductFieldBuilder().getBuilder();
9972     }
9973     /**
9974      *
9975      *
9976      * <pre>
9977      * The product affected by this vex.
9978      * </pre>
9979      *
9980      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
9981      */
getProductOrBuilder()9982     public io.grafeas.v1.VulnerabilityAssessmentNote.ProductOrBuilder getProductOrBuilder() {
9983       if (productBuilder_ != null) {
9984         return productBuilder_.getMessageOrBuilder();
9985       } else {
9986         return product_ == null
9987             ? io.grafeas.v1.VulnerabilityAssessmentNote.Product.getDefaultInstance()
9988             : product_;
9989       }
9990     }
9991     /**
9992      *
9993      *
9994      * <pre>
9995      * The product affected by this vex.
9996      * </pre>
9997      *
9998      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Product product = 6;</code>
9999      */
10000     private com.google.protobuf.SingleFieldBuilderV3<
10001             io.grafeas.v1.VulnerabilityAssessmentNote.Product,
10002             io.grafeas.v1.VulnerabilityAssessmentNote.Product.Builder,
10003             io.grafeas.v1.VulnerabilityAssessmentNote.ProductOrBuilder>
getProductFieldBuilder()10004         getProductFieldBuilder() {
10005       if (productBuilder_ == null) {
10006         productBuilder_ =
10007             new com.google.protobuf.SingleFieldBuilderV3<
10008                 io.grafeas.v1.VulnerabilityAssessmentNote.Product,
10009                 io.grafeas.v1.VulnerabilityAssessmentNote.Product.Builder,
10010                 io.grafeas.v1.VulnerabilityAssessmentNote.ProductOrBuilder>(
10011                 getProduct(), getParentForChildren(), isClean());
10012         product_ = null;
10013       }
10014       return productBuilder_;
10015     }
10016 
10017     private io.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment_;
10018     private com.google.protobuf.SingleFieldBuilderV3<
10019             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment,
10020             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Builder,
10021             io.grafeas.v1.VulnerabilityAssessmentNote.AssessmentOrBuilder>
10022         assessmentBuilder_;
10023     /**
10024      *
10025      *
10026      * <pre>
10027      * Represents a vulnerability assessment for the product.
10028      * </pre>
10029      *
10030      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
10031      *
10032      * @return Whether the assessment field is set.
10033      */
hasAssessment()10034     public boolean hasAssessment() {
10035       return ((bitField0_ & 0x00000040) != 0);
10036     }
10037     /**
10038      *
10039      *
10040      * <pre>
10041      * Represents a vulnerability assessment for the product.
10042      * </pre>
10043      *
10044      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
10045      *
10046      * @return The assessment.
10047      */
getAssessment()10048     public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment getAssessment() {
10049       if (assessmentBuilder_ == null) {
10050         return assessment_ == null
10051             ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.getDefaultInstance()
10052             : assessment_;
10053       } else {
10054         return assessmentBuilder_.getMessage();
10055       }
10056     }
10057     /**
10058      *
10059      *
10060      * <pre>
10061      * Represents a vulnerability assessment for the product.
10062      * </pre>
10063      *
10064      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
10065      */
setAssessment(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment value)10066     public Builder setAssessment(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment value) {
10067       if (assessmentBuilder_ == null) {
10068         if (value == null) {
10069           throw new NullPointerException();
10070         }
10071         assessment_ = value;
10072       } else {
10073         assessmentBuilder_.setMessage(value);
10074       }
10075       bitField0_ |= 0x00000040;
10076       onChanged();
10077       return this;
10078     }
10079     /**
10080      *
10081      *
10082      * <pre>
10083      * Represents a vulnerability assessment for the product.
10084      * </pre>
10085      *
10086      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
10087      */
setAssessment( io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Builder builderForValue)10088     public Builder setAssessment(
10089         io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Builder builderForValue) {
10090       if (assessmentBuilder_ == null) {
10091         assessment_ = builderForValue.build();
10092       } else {
10093         assessmentBuilder_.setMessage(builderForValue.build());
10094       }
10095       bitField0_ |= 0x00000040;
10096       onChanged();
10097       return this;
10098     }
10099     /**
10100      *
10101      *
10102      * <pre>
10103      * Represents a vulnerability assessment for the product.
10104      * </pre>
10105      *
10106      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
10107      */
mergeAssessment(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment value)10108     public Builder mergeAssessment(io.grafeas.v1.VulnerabilityAssessmentNote.Assessment value) {
10109       if (assessmentBuilder_ == null) {
10110         if (((bitField0_ & 0x00000040) != 0)
10111             && assessment_ != null
10112             && assessment_
10113                 != io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.getDefaultInstance()) {
10114           getAssessmentBuilder().mergeFrom(value);
10115         } else {
10116           assessment_ = value;
10117         }
10118       } else {
10119         assessmentBuilder_.mergeFrom(value);
10120       }
10121       bitField0_ |= 0x00000040;
10122       onChanged();
10123       return this;
10124     }
10125     /**
10126      *
10127      *
10128      * <pre>
10129      * Represents a vulnerability assessment for the product.
10130      * </pre>
10131      *
10132      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
10133      */
clearAssessment()10134     public Builder clearAssessment() {
10135       bitField0_ = (bitField0_ & ~0x00000040);
10136       assessment_ = null;
10137       if (assessmentBuilder_ != null) {
10138         assessmentBuilder_.dispose();
10139         assessmentBuilder_ = null;
10140       }
10141       onChanged();
10142       return this;
10143     }
10144     /**
10145      *
10146      *
10147      * <pre>
10148      * Represents a vulnerability assessment for the product.
10149      * </pre>
10150      *
10151      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
10152      */
getAssessmentBuilder()10153     public io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Builder getAssessmentBuilder() {
10154       bitField0_ |= 0x00000040;
10155       onChanged();
10156       return getAssessmentFieldBuilder().getBuilder();
10157     }
10158     /**
10159      *
10160      *
10161      * <pre>
10162      * Represents a vulnerability assessment for the product.
10163      * </pre>
10164      *
10165      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
10166      */
getAssessmentOrBuilder()10167     public io.grafeas.v1.VulnerabilityAssessmentNote.AssessmentOrBuilder getAssessmentOrBuilder() {
10168       if (assessmentBuilder_ != null) {
10169         return assessmentBuilder_.getMessageOrBuilder();
10170       } else {
10171         return assessment_ == null
10172             ? io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.getDefaultInstance()
10173             : assessment_;
10174       }
10175     }
10176     /**
10177      *
10178      *
10179      * <pre>
10180      * Represents a vulnerability assessment for the product.
10181      * </pre>
10182      *
10183      * <code>.grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7;</code>
10184      */
10185     private com.google.protobuf.SingleFieldBuilderV3<
10186             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment,
10187             io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Builder,
10188             io.grafeas.v1.VulnerabilityAssessmentNote.AssessmentOrBuilder>
getAssessmentFieldBuilder()10189         getAssessmentFieldBuilder() {
10190       if (assessmentBuilder_ == null) {
10191         assessmentBuilder_ =
10192             new com.google.protobuf.SingleFieldBuilderV3<
10193                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment,
10194                 io.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Builder,
10195                 io.grafeas.v1.VulnerabilityAssessmentNote.AssessmentOrBuilder>(
10196                 getAssessment(), getParentForChildren(), isClean());
10197         assessment_ = null;
10198       }
10199       return assessmentBuilder_;
10200     }
10201 
10202     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)10203     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
10204       return super.setUnknownFields(unknownFields);
10205     }
10206 
10207     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)10208     public final Builder mergeUnknownFields(
10209         final com.google.protobuf.UnknownFieldSet unknownFields) {
10210       return super.mergeUnknownFields(unknownFields);
10211     }
10212 
10213     // @@protoc_insertion_point(builder_scope:grafeas.v1.VulnerabilityAssessmentNote)
10214   }
10215 
10216   // @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityAssessmentNote)
10217   private static final io.grafeas.v1.VulnerabilityAssessmentNote DEFAULT_INSTANCE;
10218 
10219   static {
10220     DEFAULT_INSTANCE = new io.grafeas.v1.VulnerabilityAssessmentNote();
10221   }
10222 
getDefaultInstance()10223   public static io.grafeas.v1.VulnerabilityAssessmentNote getDefaultInstance() {
10224     return DEFAULT_INSTANCE;
10225   }
10226 
10227   private static final com.google.protobuf.Parser<VulnerabilityAssessmentNote> PARSER =
10228       new com.google.protobuf.AbstractParser<VulnerabilityAssessmentNote>() {
10229         @java.lang.Override
10230         public VulnerabilityAssessmentNote parsePartialFrom(
10231             com.google.protobuf.CodedInputStream input,
10232             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10233             throws com.google.protobuf.InvalidProtocolBufferException {
10234           Builder builder = newBuilder();
10235           try {
10236             builder.mergeFrom(input, extensionRegistry);
10237           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
10238             throw e.setUnfinishedMessage(builder.buildPartial());
10239           } catch (com.google.protobuf.UninitializedMessageException e) {
10240             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
10241           } catch (java.io.IOException e) {
10242             throw new com.google.protobuf.InvalidProtocolBufferException(e)
10243                 .setUnfinishedMessage(builder.buildPartial());
10244           }
10245           return builder.buildPartial();
10246         }
10247       };
10248 
parser()10249   public static com.google.protobuf.Parser<VulnerabilityAssessmentNote> parser() {
10250     return PARSER;
10251   }
10252 
10253   @java.lang.Override
getParserForType()10254   public com.google.protobuf.Parser<VulnerabilityAssessmentNote> getParserForType() {
10255     return PARSER;
10256   }
10257 
10258   @java.lang.Override
getDefaultInstanceForType()10259   public io.grafeas.v1.VulnerabilityAssessmentNote getDefaultInstanceForType() {
10260     return DEFAULT_INSTANCE;
10261   }
10262 }
10263