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/attestation.proto 19 20 package io.grafeas.v1; 21 22 /** 23 * 24 * 25 * <pre> 26 * Note kind that represents a logical attestation "role" or "authority". For 27 * example, an organization might have one `Authority` for "QA" and one for 28 * "build". This note is intended to act strictly as a grouping mechanism for 29 * the attached occurrences (Attestations). This grouping mechanism also 30 * provides a security boundary, since IAM ACLs gate the ability for a principle 31 * to attach an occurrence to a given note. It also provides a single point of 32 * lookup to find all attached attestation occurrences, even if they don't all 33 * live in the same project. 34 * </pre> 35 * 36 * Protobuf type {@code grafeas.v1.AttestationNote} 37 */ 38 public final class AttestationNote extends com.google.protobuf.GeneratedMessageV3 39 implements 40 // @@protoc_insertion_point(message_implements:grafeas.v1.AttestationNote) 41 AttestationNoteOrBuilder { 42 private static final long serialVersionUID = 0L; 43 // Use AttestationNote.newBuilder() to construct. AttestationNote(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)44 private AttestationNote(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 45 super(builder); 46 } 47 AttestationNote()48 private AttestationNote() {} 49 50 @java.lang.Override 51 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)52 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 53 return new AttestationNote(); 54 } 55 56 @java.lang.Override getUnknownFields()57 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 58 return this.unknownFields; 59 } 60 getDescriptor()61 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 62 return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationNote_descriptor; 63 } 64 65 @java.lang.Override 66 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()67 internalGetFieldAccessorTable() { 68 return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationNote_fieldAccessorTable 69 .ensureFieldAccessorsInitialized( 70 io.grafeas.v1.AttestationNote.class, io.grafeas.v1.AttestationNote.Builder.class); 71 } 72 73 public interface HintOrBuilder 74 extends 75 // @@protoc_insertion_point(interface_extends:grafeas.v1.AttestationNote.Hint) 76 com.google.protobuf.MessageOrBuilder { 77 78 /** 79 * 80 * 81 * <pre> 82 * Required. The human readable name of this attestation authority, for 83 * example "qa". 84 * </pre> 85 * 86 * <code>string human_readable_name = 1;</code> 87 * 88 * @return The humanReadableName. 89 */ getHumanReadableName()90 java.lang.String getHumanReadableName(); 91 /** 92 * 93 * 94 * <pre> 95 * Required. The human readable name of this attestation authority, for 96 * example "qa". 97 * </pre> 98 * 99 * <code>string human_readable_name = 1;</code> 100 * 101 * @return The bytes for humanReadableName. 102 */ getHumanReadableNameBytes()103 com.google.protobuf.ByteString getHumanReadableNameBytes(); 104 } 105 /** 106 * 107 * 108 * <pre> 109 * This submessage provides human-readable hints about the purpose of the 110 * authority. Because the name of a note acts as its resource reference, it is 111 * important to disambiguate the canonical name of the Note (which might be a 112 * UUID for security purposes) from "readable" names more suitable for debug 113 * output. Note that these hints should not be used to look up authorities in 114 * security sensitive contexts, such as when looking up attestations to 115 * verify. 116 * </pre> 117 * 118 * Protobuf type {@code grafeas.v1.AttestationNote.Hint} 119 */ 120 public static final class Hint extends com.google.protobuf.GeneratedMessageV3 121 implements 122 // @@protoc_insertion_point(message_implements:grafeas.v1.AttestationNote.Hint) 123 HintOrBuilder { 124 private static final long serialVersionUID = 0L; 125 // Use Hint.newBuilder() to construct. Hint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)126 private Hint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 127 super(builder); 128 } 129 Hint()130 private Hint() { 131 humanReadableName_ = ""; 132 } 133 134 @java.lang.Override 135 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)136 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 137 return new Hint(); 138 } 139 140 @java.lang.Override getUnknownFields()141 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 142 return this.unknownFields; 143 } 144 getDescriptor()145 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 146 return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationNote_Hint_descriptor; 147 } 148 149 @java.lang.Override 150 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()151 internalGetFieldAccessorTable() { 152 return io.grafeas.v1.Attestation 153 .internal_static_grafeas_v1_AttestationNote_Hint_fieldAccessorTable 154 .ensureFieldAccessorsInitialized( 155 io.grafeas.v1.AttestationNote.Hint.class, 156 io.grafeas.v1.AttestationNote.Hint.Builder.class); 157 } 158 159 public static final int HUMAN_READABLE_NAME_FIELD_NUMBER = 1; 160 161 @SuppressWarnings("serial") 162 private volatile java.lang.Object humanReadableName_ = ""; 163 /** 164 * 165 * 166 * <pre> 167 * Required. The human readable name of this attestation authority, for 168 * example "qa". 169 * </pre> 170 * 171 * <code>string human_readable_name = 1;</code> 172 * 173 * @return The humanReadableName. 174 */ 175 @java.lang.Override getHumanReadableName()176 public java.lang.String getHumanReadableName() { 177 java.lang.Object ref = humanReadableName_; 178 if (ref instanceof java.lang.String) { 179 return (java.lang.String) ref; 180 } else { 181 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 182 java.lang.String s = bs.toStringUtf8(); 183 humanReadableName_ = s; 184 return s; 185 } 186 } 187 /** 188 * 189 * 190 * <pre> 191 * Required. The human readable name of this attestation authority, for 192 * example "qa". 193 * </pre> 194 * 195 * <code>string human_readable_name = 1;</code> 196 * 197 * @return The bytes for humanReadableName. 198 */ 199 @java.lang.Override getHumanReadableNameBytes()200 public com.google.protobuf.ByteString getHumanReadableNameBytes() { 201 java.lang.Object ref = humanReadableName_; 202 if (ref instanceof java.lang.String) { 203 com.google.protobuf.ByteString b = 204 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 205 humanReadableName_ = b; 206 return b; 207 } else { 208 return (com.google.protobuf.ByteString) ref; 209 } 210 } 211 212 private byte memoizedIsInitialized = -1; 213 214 @java.lang.Override isInitialized()215 public final boolean isInitialized() { 216 byte isInitialized = memoizedIsInitialized; 217 if (isInitialized == 1) return true; 218 if (isInitialized == 0) return false; 219 220 memoizedIsInitialized = 1; 221 return true; 222 } 223 224 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)225 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 226 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(humanReadableName_)) { 227 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, humanReadableName_); 228 } 229 getUnknownFields().writeTo(output); 230 } 231 232 @java.lang.Override getSerializedSize()233 public int getSerializedSize() { 234 int size = memoizedSize; 235 if (size != -1) return size; 236 237 size = 0; 238 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(humanReadableName_)) { 239 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, humanReadableName_); 240 } 241 size += getUnknownFields().getSerializedSize(); 242 memoizedSize = size; 243 return size; 244 } 245 246 @java.lang.Override equals(final java.lang.Object obj)247 public boolean equals(final java.lang.Object obj) { 248 if (obj == this) { 249 return true; 250 } 251 if (!(obj instanceof io.grafeas.v1.AttestationNote.Hint)) { 252 return super.equals(obj); 253 } 254 io.grafeas.v1.AttestationNote.Hint other = (io.grafeas.v1.AttestationNote.Hint) obj; 255 256 if (!getHumanReadableName().equals(other.getHumanReadableName())) return false; 257 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 258 return true; 259 } 260 261 @java.lang.Override hashCode()262 public int hashCode() { 263 if (memoizedHashCode != 0) { 264 return memoizedHashCode; 265 } 266 int hash = 41; 267 hash = (19 * hash) + getDescriptor().hashCode(); 268 hash = (37 * hash) + HUMAN_READABLE_NAME_FIELD_NUMBER; 269 hash = (53 * hash) + getHumanReadableName().hashCode(); 270 hash = (29 * hash) + getUnknownFields().hashCode(); 271 memoizedHashCode = hash; 272 return hash; 273 } 274 parseFrom(java.nio.ByteBuffer data)275 public static io.grafeas.v1.AttestationNote.Hint parseFrom(java.nio.ByteBuffer data) 276 throws com.google.protobuf.InvalidProtocolBufferException { 277 return PARSER.parseFrom(data); 278 } 279 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)280 public static io.grafeas.v1.AttestationNote.Hint parseFrom( 281 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 282 throws com.google.protobuf.InvalidProtocolBufferException { 283 return PARSER.parseFrom(data, extensionRegistry); 284 } 285 parseFrom(com.google.protobuf.ByteString data)286 public static io.grafeas.v1.AttestationNote.Hint parseFrom(com.google.protobuf.ByteString data) 287 throws com.google.protobuf.InvalidProtocolBufferException { 288 return PARSER.parseFrom(data); 289 } 290 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)291 public static io.grafeas.v1.AttestationNote.Hint parseFrom( 292 com.google.protobuf.ByteString data, 293 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 294 throws com.google.protobuf.InvalidProtocolBufferException { 295 return PARSER.parseFrom(data, extensionRegistry); 296 } 297 parseFrom(byte[] data)298 public static io.grafeas.v1.AttestationNote.Hint parseFrom(byte[] data) 299 throws com.google.protobuf.InvalidProtocolBufferException { 300 return PARSER.parseFrom(data); 301 } 302 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)303 public static io.grafeas.v1.AttestationNote.Hint parseFrom( 304 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 305 throws com.google.protobuf.InvalidProtocolBufferException { 306 return PARSER.parseFrom(data, extensionRegistry); 307 } 308 parseFrom(java.io.InputStream input)309 public static io.grafeas.v1.AttestationNote.Hint parseFrom(java.io.InputStream input) 310 throws java.io.IOException { 311 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 312 } 313 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)314 public static io.grafeas.v1.AttestationNote.Hint parseFrom( 315 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 316 throws java.io.IOException { 317 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 318 PARSER, input, extensionRegistry); 319 } 320 parseDelimitedFrom(java.io.InputStream input)321 public static io.grafeas.v1.AttestationNote.Hint parseDelimitedFrom(java.io.InputStream input) 322 throws java.io.IOException { 323 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 324 } 325 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)326 public static io.grafeas.v1.AttestationNote.Hint parseDelimitedFrom( 327 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 328 throws java.io.IOException { 329 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 330 PARSER, input, extensionRegistry); 331 } 332 parseFrom( com.google.protobuf.CodedInputStream input)333 public static io.grafeas.v1.AttestationNote.Hint parseFrom( 334 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 335 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 336 } 337 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)338 public static io.grafeas.v1.AttestationNote.Hint parseFrom( 339 com.google.protobuf.CodedInputStream input, 340 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 341 throws java.io.IOException { 342 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 343 PARSER, input, extensionRegistry); 344 } 345 346 @java.lang.Override newBuilderForType()347 public Builder newBuilderForType() { 348 return newBuilder(); 349 } 350 newBuilder()351 public static Builder newBuilder() { 352 return DEFAULT_INSTANCE.toBuilder(); 353 } 354 newBuilder(io.grafeas.v1.AttestationNote.Hint prototype)355 public static Builder newBuilder(io.grafeas.v1.AttestationNote.Hint prototype) { 356 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 357 } 358 359 @java.lang.Override toBuilder()360 public Builder toBuilder() { 361 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 362 } 363 364 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)365 protected Builder newBuilderForType( 366 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 367 Builder builder = new Builder(parent); 368 return builder; 369 } 370 /** 371 * 372 * 373 * <pre> 374 * This submessage provides human-readable hints about the purpose of the 375 * authority. Because the name of a note acts as its resource reference, it is 376 * important to disambiguate the canonical name of the Note (which might be a 377 * UUID for security purposes) from "readable" names more suitable for debug 378 * output. Note that these hints should not be used to look up authorities in 379 * security sensitive contexts, such as when looking up attestations to 380 * verify. 381 * </pre> 382 * 383 * Protobuf type {@code grafeas.v1.AttestationNote.Hint} 384 */ 385 public static final class Builder 386 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 387 implements 388 // @@protoc_insertion_point(builder_implements:grafeas.v1.AttestationNote.Hint) 389 io.grafeas.v1.AttestationNote.HintOrBuilder { getDescriptor()390 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 391 return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationNote_Hint_descriptor; 392 } 393 394 @java.lang.Override 395 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()396 internalGetFieldAccessorTable() { 397 return io.grafeas.v1.Attestation 398 .internal_static_grafeas_v1_AttestationNote_Hint_fieldAccessorTable 399 .ensureFieldAccessorsInitialized( 400 io.grafeas.v1.AttestationNote.Hint.class, 401 io.grafeas.v1.AttestationNote.Hint.Builder.class); 402 } 403 404 // Construct using io.grafeas.v1.AttestationNote.Hint.newBuilder() Builder()405 private Builder() {} 406 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)407 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 408 super(parent); 409 } 410 411 @java.lang.Override clear()412 public Builder clear() { 413 super.clear(); 414 bitField0_ = 0; 415 humanReadableName_ = ""; 416 return this; 417 } 418 419 @java.lang.Override getDescriptorForType()420 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 421 return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationNote_Hint_descriptor; 422 } 423 424 @java.lang.Override getDefaultInstanceForType()425 public io.grafeas.v1.AttestationNote.Hint getDefaultInstanceForType() { 426 return io.grafeas.v1.AttestationNote.Hint.getDefaultInstance(); 427 } 428 429 @java.lang.Override build()430 public io.grafeas.v1.AttestationNote.Hint build() { 431 io.grafeas.v1.AttestationNote.Hint result = buildPartial(); 432 if (!result.isInitialized()) { 433 throw newUninitializedMessageException(result); 434 } 435 return result; 436 } 437 438 @java.lang.Override buildPartial()439 public io.grafeas.v1.AttestationNote.Hint buildPartial() { 440 io.grafeas.v1.AttestationNote.Hint result = new io.grafeas.v1.AttestationNote.Hint(this); 441 if (bitField0_ != 0) { 442 buildPartial0(result); 443 } 444 onBuilt(); 445 return result; 446 } 447 buildPartial0(io.grafeas.v1.AttestationNote.Hint result)448 private void buildPartial0(io.grafeas.v1.AttestationNote.Hint result) { 449 int from_bitField0_ = bitField0_; 450 if (((from_bitField0_ & 0x00000001) != 0)) { 451 result.humanReadableName_ = humanReadableName_; 452 } 453 } 454 455 @java.lang.Override clone()456 public Builder clone() { 457 return super.clone(); 458 } 459 460 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)461 public Builder setField( 462 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 463 return super.setField(field, value); 464 } 465 466 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)467 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 468 return super.clearField(field); 469 } 470 471 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)472 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 473 return super.clearOneof(oneof); 474 } 475 476 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)477 public Builder setRepeatedField( 478 com.google.protobuf.Descriptors.FieldDescriptor field, 479 int index, 480 java.lang.Object value) { 481 return super.setRepeatedField(field, index, value); 482 } 483 484 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)485 public Builder addRepeatedField( 486 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 487 return super.addRepeatedField(field, value); 488 } 489 490 @java.lang.Override mergeFrom(com.google.protobuf.Message other)491 public Builder mergeFrom(com.google.protobuf.Message other) { 492 if (other instanceof io.grafeas.v1.AttestationNote.Hint) { 493 return mergeFrom((io.grafeas.v1.AttestationNote.Hint) other); 494 } else { 495 super.mergeFrom(other); 496 return this; 497 } 498 } 499 mergeFrom(io.grafeas.v1.AttestationNote.Hint other)500 public Builder mergeFrom(io.grafeas.v1.AttestationNote.Hint other) { 501 if (other == io.grafeas.v1.AttestationNote.Hint.getDefaultInstance()) return this; 502 if (!other.getHumanReadableName().isEmpty()) { 503 humanReadableName_ = other.humanReadableName_; 504 bitField0_ |= 0x00000001; 505 onChanged(); 506 } 507 this.mergeUnknownFields(other.getUnknownFields()); 508 onChanged(); 509 return this; 510 } 511 512 @java.lang.Override isInitialized()513 public final boolean isInitialized() { 514 return true; 515 } 516 517 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)518 public Builder mergeFrom( 519 com.google.protobuf.CodedInputStream input, 520 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 521 throws java.io.IOException { 522 if (extensionRegistry == null) { 523 throw new java.lang.NullPointerException(); 524 } 525 try { 526 boolean done = false; 527 while (!done) { 528 int tag = input.readTag(); 529 switch (tag) { 530 case 0: 531 done = true; 532 break; 533 case 10: 534 { 535 humanReadableName_ = input.readStringRequireUtf8(); 536 bitField0_ |= 0x00000001; 537 break; 538 } // case 10 539 default: 540 { 541 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 542 done = true; // was an endgroup tag 543 } 544 break; 545 } // default: 546 } // switch (tag) 547 } // while (!done) 548 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 549 throw e.unwrapIOException(); 550 } finally { 551 onChanged(); 552 } // finally 553 return this; 554 } 555 556 private int bitField0_; 557 558 private java.lang.Object humanReadableName_ = ""; 559 /** 560 * 561 * 562 * <pre> 563 * Required. The human readable name of this attestation authority, for 564 * example "qa". 565 * </pre> 566 * 567 * <code>string human_readable_name = 1;</code> 568 * 569 * @return The humanReadableName. 570 */ getHumanReadableName()571 public java.lang.String getHumanReadableName() { 572 java.lang.Object ref = humanReadableName_; 573 if (!(ref instanceof java.lang.String)) { 574 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 575 java.lang.String s = bs.toStringUtf8(); 576 humanReadableName_ = s; 577 return s; 578 } else { 579 return (java.lang.String) ref; 580 } 581 } 582 /** 583 * 584 * 585 * <pre> 586 * Required. The human readable name of this attestation authority, for 587 * example "qa". 588 * </pre> 589 * 590 * <code>string human_readable_name = 1;</code> 591 * 592 * @return The bytes for humanReadableName. 593 */ getHumanReadableNameBytes()594 public com.google.protobuf.ByteString getHumanReadableNameBytes() { 595 java.lang.Object ref = humanReadableName_; 596 if (ref instanceof String) { 597 com.google.protobuf.ByteString b = 598 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 599 humanReadableName_ = b; 600 return b; 601 } else { 602 return (com.google.protobuf.ByteString) ref; 603 } 604 } 605 /** 606 * 607 * 608 * <pre> 609 * Required. The human readable name of this attestation authority, for 610 * example "qa". 611 * </pre> 612 * 613 * <code>string human_readable_name = 1;</code> 614 * 615 * @param value The humanReadableName to set. 616 * @return This builder for chaining. 617 */ setHumanReadableName(java.lang.String value)618 public Builder setHumanReadableName(java.lang.String value) { 619 if (value == null) { 620 throw new NullPointerException(); 621 } 622 humanReadableName_ = value; 623 bitField0_ |= 0x00000001; 624 onChanged(); 625 return this; 626 } 627 /** 628 * 629 * 630 * <pre> 631 * Required. The human readable name of this attestation authority, for 632 * example "qa". 633 * </pre> 634 * 635 * <code>string human_readable_name = 1;</code> 636 * 637 * @return This builder for chaining. 638 */ clearHumanReadableName()639 public Builder clearHumanReadableName() { 640 humanReadableName_ = getDefaultInstance().getHumanReadableName(); 641 bitField0_ = (bitField0_ & ~0x00000001); 642 onChanged(); 643 return this; 644 } 645 /** 646 * 647 * 648 * <pre> 649 * Required. The human readable name of this attestation authority, for 650 * example "qa". 651 * </pre> 652 * 653 * <code>string human_readable_name = 1;</code> 654 * 655 * @param value The bytes for humanReadableName to set. 656 * @return This builder for chaining. 657 */ setHumanReadableNameBytes(com.google.protobuf.ByteString value)658 public Builder setHumanReadableNameBytes(com.google.protobuf.ByteString value) { 659 if (value == null) { 660 throw new NullPointerException(); 661 } 662 checkByteStringIsUtf8(value); 663 humanReadableName_ = value; 664 bitField0_ |= 0x00000001; 665 onChanged(); 666 return this; 667 } 668 669 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)670 public final Builder setUnknownFields( 671 final com.google.protobuf.UnknownFieldSet unknownFields) { 672 return super.setUnknownFields(unknownFields); 673 } 674 675 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)676 public final Builder mergeUnknownFields( 677 final com.google.protobuf.UnknownFieldSet unknownFields) { 678 return super.mergeUnknownFields(unknownFields); 679 } 680 681 // @@protoc_insertion_point(builder_scope:grafeas.v1.AttestationNote.Hint) 682 } 683 684 // @@protoc_insertion_point(class_scope:grafeas.v1.AttestationNote.Hint) 685 private static final io.grafeas.v1.AttestationNote.Hint DEFAULT_INSTANCE; 686 687 static { 688 DEFAULT_INSTANCE = new io.grafeas.v1.AttestationNote.Hint(); 689 } 690 getDefaultInstance()691 public static io.grafeas.v1.AttestationNote.Hint getDefaultInstance() { 692 return DEFAULT_INSTANCE; 693 } 694 695 private static final com.google.protobuf.Parser<Hint> PARSER = 696 new com.google.protobuf.AbstractParser<Hint>() { 697 @java.lang.Override 698 public Hint parsePartialFrom( 699 com.google.protobuf.CodedInputStream input, 700 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 701 throws com.google.protobuf.InvalidProtocolBufferException { 702 Builder builder = newBuilder(); 703 try { 704 builder.mergeFrom(input, extensionRegistry); 705 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 706 throw e.setUnfinishedMessage(builder.buildPartial()); 707 } catch (com.google.protobuf.UninitializedMessageException e) { 708 throw e.asInvalidProtocolBufferException() 709 .setUnfinishedMessage(builder.buildPartial()); 710 } catch (java.io.IOException e) { 711 throw new com.google.protobuf.InvalidProtocolBufferException(e) 712 .setUnfinishedMessage(builder.buildPartial()); 713 } 714 return builder.buildPartial(); 715 } 716 }; 717 parser()718 public static com.google.protobuf.Parser<Hint> parser() { 719 return PARSER; 720 } 721 722 @java.lang.Override getParserForType()723 public com.google.protobuf.Parser<Hint> getParserForType() { 724 return PARSER; 725 } 726 727 @java.lang.Override getDefaultInstanceForType()728 public io.grafeas.v1.AttestationNote.Hint getDefaultInstanceForType() { 729 return DEFAULT_INSTANCE; 730 } 731 } 732 733 public static final int HINT_FIELD_NUMBER = 1; 734 private io.grafeas.v1.AttestationNote.Hint hint_; 735 /** 736 * 737 * 738 * <pre> 739 * Hint hints at the purpose of the attestation authority. 740 * </pre> 741 * 742 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 743 * 744 * @return Whether the hint field is set. 745 */ 746 @java.lang.Override hasHint()747 public boolean hasHint() { 748 return hint_ != null; 749 } 750 /** 751 * 752 * 753 * <pre> 754 * Hint hints at the purpose of the attestation authority. 755 * </pre> 756 * 757 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 758 * 759 * @return The hint. 760 */ 761 @java.lang.Override getHint()762 public io.grafeas.v1.AttestationNote.Hint getHint() { 763 return hint_ == null ? io.grafeas.v1.AttestationNote.Hint.getDefaultInstance() : hint_; 764 } 765 /** 766 * 767 * 768 * <pre> 769 * Hint hints at the purpose of the attestation authority. 770 * </pre> 771 * 772 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 773 */ 774 @java.lang.Override getHintOrBuilder()775 public io.grafeas.v1.AttestationNote.HintOrBuilder getHintOrBuilder() { 776 return hint_ == null ? io.grafeas.v1.AttestationNote.Hint.getDefaultInstance() : hint_; 777 } 778 779 private byte memoizedIsInitialized = -1; 780 781 @java.lang.Override isInitialized()782 public final boolean isInitialized() { 783 byte isInitialized = memoizedIsInitialized; 784 if (isInitialized == 1) return true; 785 if (isInitialized == 0) return false; 786 787 memoizedIsInitialized = 1; 788 return true; 789 } 790 791 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)792 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 793 if (hint_ != null) { 794 output.writeMessage(1, getHint()); 795 } 796 getUnknownFields().writeTo(output); 797 } 798 799 @java.lang.Override getSerializedSize()800 public int getSerializedSize() { 801 int size = memoizedSize; 802 if (size != -1) return size; 803 804 size = 0; 805 if (hint_ != null) { 806 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHint()); 807 } 808 size += getUnknownFields().getSerializedSize(); 809 memoizedSize = size; 810 return size; 811 } 812 813 @java.lang.Override equals(final java.lang.Object obj)814 public boolean equals(final java.lang.Object obj) { 815 if (obj == this) { 816 return true; 817 } 818 if (!(obj instanceof io.grafeas.v1.AttestationNote)) { 819 return super.equals(obj); 820 } 821 io.grafeas.v1.AttestationNote other = (io.grafeas.v1.AttestationNote) obj; 822 823 if (hasHint() != other.hasHint()) return false; 824 if (hasHint()) { 825 if (!getHint().equals(other.getHint())) return false; 826 } 827 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 828 return true; 829 } 830 831 @java.lang.Override hashCode()832 public int hashCode() { 833 if (memoizedHashCode != 0) { 834 return memoizedHashCode; 835 } 836 int hash = 41; 837 hash = (19 * hash) + getDescriptor().hashCode(); 838 if (hasHint()) { 839 hash = (37 * hash) + HINT_FIELD_NUMBER; 840 hash = (53 * hash) + getHint().hashCode(); 841 } 842 hash = (29 * hash) + getUnknownFields().hashCode(); 843 memoizedHashCode = hash; 844 return hash; 845 } 846 parseFrom(java.nio.ByteBuffer data)847 public static io.grafeas.v1.AttestationNote parseFrom(java.nio.ByteBuffer data) 848 throws com.google.protobuf.InvalidProtocolBufferException { 849 return PARSER.parseFrom(data); 850 } 851 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)852 public static io.grafeas.v1.AttestationNote parseFrom( 853 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 854 throws com.google.protobuf.InvalidProtocolBufferException { 855 return PARSER.parseFrom(data, extensionRegistry); 856 } 857 parseFrom(com.google.protobuf.ByteString data)858 public static io.grafeas.v1.AttestationNote parseFrom(com.google.protobuf.ByteString data) 859 throws com.google.protobuf.InvalidProtocolBufferException { 860 return PARSER.parseFrom(data); 861 } 862 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)863 public static io.grafeas.v1.AttestationNote parseFrom( 864 com.google.protobuf.ByteString data, 865 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 866 throws com.google.protobuf.InvalidProtocolBufferException { 867 return PARSER.parseFrom(data, extensionRegistry); 868 } 869 parseFrom(byte[] data)870 public static io.grafeas.v1.AttestationNote parseFrom(byte[] data) 871 throws com.google.protobuf.InvalidProtocolBufferException { 872 return PARSER.parseFrom(data); 873 } 874 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)875 public static io.grafeas.v1.AttestationNote parseFrom( 876 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 877 throws com.google.protobuf.InvalidProtocolBufferException { 878 return PARSER.parseFrom(data, extensionRegistry); 879 } 880 parseFrom(java.io.InputStream input)881 public static io.grafeas.v1.AttestationNote parseFrom(java.io.InputStream input) 882 throws java.io.IOException { 883 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 884 } 885 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)886 public static io.grafeas.v1.AttestationNote parseFrom( 887 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 888 throws java.io.IOException { 889 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 890 PARSER, input, extensionRegistry); 891 } 892 parseDelimitedFrom(java.io.InputStream input)893 public static io.grafeas.v1.AttestationNote parseDelimitedFrom(java.io.InputStream input) 894 throws java.io.IOException { 895 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 896 } 897 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)898 public static io.grafeas.v1.AttestationNote parseDelimitedFrom( 899 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 900 throws java.io.IOException { 901 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 902 PARSER, input, extensionRegistry); 903 } 904 parseFrom(com.google.protobuf.CodedInputStream input)905 public static io.grafeas.v1.AttestationNote parseFrom(com.google.protobuf.CodedInputStream input) 906 throws java.io.IOException { 907 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 908 } 909 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)910 public static io.grafeas.v1.AttestationNote parseFrom( 911 com.google.protobuf.CodedInputStream input, 912 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 913 throws java.io.IOException { 914 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 915 PARSER, input, extensionRegistry); 916 } 917 918 @java.lang.Override newBuilderForType()919 public Builder newBuilderForType() { 920 return newBuilder(); 921 } 922 newBuilder()923 public static Builder newBuilder() { 924 return DEFAULT_INSTANCE.toBuilder(); 925 } 926 newBuilder(io.grafeas.v1.AttestationNote prototype)927 public static Builder newBuilder(io.grafeas.v1.AttestationNote prototype) { 928 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 929 } 930 931 @java.lang.Override toBuilder()932 public Builder toBuilder() { 933 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 934 } 935 936 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)937 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 938 Builder builder = new Builder(parent); 939 return builder; 940 } 941 /** 942 * 943 * 944 * <pre> 945 * Note kind that represents a logical attestation "role" or "authority". For 946 * example, an organization might have one `Authority` for "QA" and one for 947 * "build". This note is intended to act strictly as a grouping mechanism for 948 * the attached occurrences (Attestations). This grouping mechanism also 949 * provides a security boundary, since IAM ACLs gate the ability for a principle 950 * to attach an occurrence to a given note. It also provides a single point of 951 * lookup to find all attached attestation occurrences, even if they don't all 952 * live in the same project. 953 * </pre> 954 * 955 * Protobuf type {@code grafeas.v1.AttestationNote} 956 */ 957 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 958 implements 959 // @@protoc_insertion_point(builder_implements:grafeas.v1.AttestationNote) 960 io.grafeas.v1.AttestationNoteOrBuilder { getDescriptor()961 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 962 return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationNote_descriptor; 963 } 964 965 @java.lang.Override 966 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()967 internalGetFieldAccessorTable() { 968 return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationNote_fieldAccessorTable 969 .ensureFieldAccessorsInitialized( 970 io.grafeas.v1.AttestationNote.class, io.grafeas.v1.AttestationNote.Builder.class); 971 } 972 973 // Construct using io.grafeas.v1.AttestationNote.newBuilder() Builder()974 private Builder() {} 975 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)976 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 977 super(parent); 978 } 979 980 @java.lang.Override clear()981 public Builder clear() { 982 super.clear(); 983 bitField0_ = 0; 984 hint_ = null; 985 if (hintBuilder_ != null) { 986 hintBuilder_.dispose(); 987 hintBuilder_ = null; 988 } 989 return this; 990 } 991 992 @java.lang.Override getDescriptorForType()993 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 994 return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationNote_descriptor; 995 } 996 997 @java.lang.Override getDefaultInstanceForType()998 public io.grafeas.v1.AttestationNote getDefaultInstanceForType() { 999 return io.grafeas.v1.AttestationNote.getDefaultInstance(); 1000 } 1001 1002 @java.lang.Override build()1003 public io.grafeas.v1.AttestationNote build() { 1004 io.grafeas.v1.AttestationNote result = buildPartial(); 1005 if (!result.isInitialized()) { 1006 throw newUninitializedMessageException(result); 1007 } 1008 return result; 1009 } 1010 1011 @java.lang.Override buildPartial()1012 public io.grafeas.v1.AttestationNote buildPartial() { 1013 io.grafeas.v1.AttestationNote result = new io.grafeas.v1.AttestationNote(this); 1014 if (bitField0_ != 0) { 1015 buildPartial0(result); 1016 } 1017 onBuilt(); 1018 return result; 1019 } 1020 buildPartial0(io.grafeas.v1.AttestationNote result)1021 private void buildPartial0(io.grafeas.v1.AttestationNote result) { 1022 int from_bitField0_ = bitField0_; 1023 if (((from_bitField0_ & 0x00000001) != 0)) { 1024 result.hint_ = hintBuilder_ == null ? hint_ : hintBuilder_.build(); 1025 } 1026 } 1027 1028 @java.lang.Override clone()1029 public Builder clone() { 1030 return super.clone(); 1031 } 1032 1033 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1034 public Builder setField( 1035 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1036 return super.setField(field, value); 1037 } 1038 1039 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1040 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1041 return super.clearField(field); 1042 } 1043 1044 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1045 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1046 return super.clearOneof(oneof); 1047 } 1048 1049 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1050 public Builder setRepeatedField( 1051 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1052 return super.setRepeatedField(field, index, value); 1053 } 1054 1055 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1056 public Builder addRepeatedField( 1057 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1058 return super.addRepeatedField(field, value); 1059 } 1060 1061 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1062 public Builder mergeFrom(com.google.protobuf.Message other) { 1063 if (other instanceof io.grafeas.v1.AttestationNote) { 1064 return mergeFrom((io.grafeas.v1.AttestationNote) other); 1065 } else { 1066 super.mergeFrom(other); 1067 return this; 1068 } 1069 } 1070 mergeFrom(io.grafeas.v1.AttestationNote other)1071 public Builder mergeFrom(io.grafeas.v1.AttestationNote other) { 1072 if (other == io.grafeas.v1.AttestationNote.getDefaultInstance()) return this; 1073 if (other.hasHint()) { 1074 mergeHint(other.getHint()); 1075 } 1076 this.mergeUnknownFields(other.getUnknownFields()); 1077 onChanged(); 1078 return this; 1079 } 1080 1081 @java.lang.Override isInitialized()1082 public final boolean isInitialized() { 1083 return true; 1084 } 1085 1086 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1087 public Builder mergeFrom( 1088 com.google.protobuf.CodedInputStream input, 1089 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1090 throws java.io.IOException { 1091 if (extensionRegistry == null) { 1092 throw new java.lang.NullPointerException(); 1093 } 1094 try { 1095 boolean done = false; 1096 while (!done) { 1097 int tag = input.readTag(); 1098 switch (tag) { 1099 case 0: 1100 done = true; 1101 break; 1102 case 10: 1103 { 1104 input.readMessage(getHintFieldBuilder().getBuilder(), extensionRegistry); 1105 bitField0_ |= 0x00000001; 1106 break; 1107 } // case 10 1108 default: 1109 { 1110 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1111 done = true; // was an endgroup tag 1112 } 1113 break; 1114 } // default: 1115 } // switch (tag) 1116 } // while (!done) 1117 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1118 throw e.unwrapIOException(); 1119 } finally { 1120 onChanged(); 1121 } // finally 1122 return this; 1123 } 1124 1125 private int bitField0_; 1126 1127 private io.grafeas.v1.AttestationNote.Hint hint_; 1128 private com.google.protobuf.SingleFieldBuilderV3< 1129 io.grafeas.v1.AttestationNote.Hint, 1130 io.grafeas.v1.AttestationNote.Hint.Builder, 1131 io.grafeas.v1.AttestationNote.HintOrBuilder> 1132 hintBuilder_; 1133 /** 1134 * 1135 * 1136 * <pre> 1137 * Hint hints at the purpose of the attestation authority. 1138 * </pre> 1139 * 1140 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 1141 * 1142 * @return Whether the hint field is set. 1143 */ hasHint()1144 public boolean hasHint() { 1145 return ((bitField0_ & 0x00000001) != 0); 1146 } 1147 /** 1148 * 1149 * 1150 * <pre> 1151 * Hint hints at the purpose of the attestation authority. 1152 * </pre> 1153 * 1154 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 1155 * 1156 * @return The hint. 1157 */ getHint()1158 public io.grafeas.v1.AttestationNote.Hint getHint() { 1159 if (hintBuilder_ == null) { 1160 return hint_ == null ? io.grafeas.v1.AttestationNote.Hint.getDefaultInstance() : hint_; 1161 } else { 1162 return hintBuilder_.getMessage(); 1163 } 1164 } 1165 /** 1166 * 1167 * 1168 * <pre> 1169 * Hint hints at the purpose of the attestation authority. 1170 * </pre> 1171 * 1172 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 1173 */ setHint(io.grafeas.v1.AttestationNote.Hint value)1174 public Builder setHint(io.grafeas.v1.AttestationNote.Hint value) { 1175 if (hintBuilder_ == null) { 1176 if (value == null) { 1177 throw new NullPointerException(); 1178 } 1179 hint_ = value; 1180 } else { 1181 hintBuilder_.setMessage(value); 1182 } 1183 bitField0_ |= 0x00000001; 1184 onChanged(); 1185 return this; 1186 } 1187 /** 1188 * 1189 * 1190 * <pre> 1191 * Hint hints at the purpose of the attestation authority. 1192 * </pre> 1193 * 1194 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 1195 */ setHint(io.grafeas.v1.AttestationNote.Hint.Builder builderForValue)1196 public Builder setHint(io.grafeas.v1.AttestationNote.Hint.Builder builderForValue) { 1197 if (hintBuilder_ == null) { 1198 hint_ = builderForValue.build(); 1199 } else { 1200 hintBuilder_.setMessage(builderForValue.build()); 1201 } 1202 bitField0_ |= 0x00000001; 1203 onChanged(); 1204 return this; 1205 } 1206 /** 1207 * 1208 * 1209 * <pre> 1210 * Hint hints at the purpose of the attestation authority. 1211 * </pre> 1212 * 1213 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 1214 */ mergeHint(io.grafeas.v1.AttestationNote.Hint value)1215 public Builder mergeHint(io.grafeas.v1.AttestationNote.Hint value) { 1216 if (hintBuilder_ == null) { 1217 if (((bitField0_ & 0x00000001) != 0) 1218 && hint_ != null 1219 && hint_ != io.grafeas.v1.AttestationNote.Hint.getDefaultInstance()) { 1220 getHintBuilder().mergeFrom(value); 1221 } else { 1222 hint_ = value; 1223 } 1224 } else { 1225 hintBuilder_.mergeFrom(value); 1226 } 1227 bitField0_ |= 0x00000001; 1228 onChanged(); 1229 return this; 1230 } 1231 /** 1232 * 1233 * 1234 * <pre> 1235 * Hint hints at the purpose of the attestation authority. 1236 * </pre> 1237 * 1238 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 1239 */ clearHint()1240 public Builder clearHint() { 1241 bitField0_ = (bitField0_ & ~0x00000001); 1242 hint_ = null; 1243 if (hintBuilder_ != null) { 1244 hintBuilder_.dispose(); 1245 hintBuilder_ = null; 1246 } 1247 onChanged(); 1248 return this; 1249 } 1250 /** 1251 * 1252 * 1253 * <pre> 1254 * Hint hints at the purpose of the attestation authority. 1255 * </pre> 1256 * 1257 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 1258 */ getHintBuilder()1259 public io.grafeas.v1.AttestationNote.Hint.Builder getHintBuilder() { 1260 bitField0_ |= 0x00000001; 1261 onChanged(); 1262 return getHintFieldBuilder().getBuilder(); 1263 } 1264 /** 1265 * 1266 * 1267 * <pre> 1268 * Hint hints at the purpose of the attestation authority. 1269 * </pre> 1270 * 1271 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 1272 */ getHintOrBuilder()1273 public io.grafeas.v1.AttestationNote.HintOrBuilder getHintOrBuilder() { 1274 if (hintBuilder_ != null) { 1275 return hintBuilder_.getMessageOrBuilder(); 1276 } else { 1277 return hint_ == null ? io.grafeas.v1.AttestationNote.Hint.getDefaultInstance() : hint_; 1278 } 1279 } 1280 /** 1281 * 1282 * 1283 * <pre> 1284 * Hint hints at the purpose of the attestation authority. 1285 * </pre> 1286 * 1287 * <code>.grafeas.v1.AttestationNote.Hint hint = 1;</code> 1288 */ 1289 private com.google.protobuf.SingleFieldBuilderV3< 1290 io.grafeas.v1.AttestationNote.Hint, 1291 io.grafeas.v1.AttestationNote.Hint.Builder, 1292 io.grafeas.v1.AttestationNote.HintOrBuilder> getHintFieldBuilder()1293 getHintFieldBuilder() { 1294 if (hintBuilder_ == null) { 1295 hintBuilder_ = 1296 new com.google.protobuf.SingleFieldBuilderV3< 1297 io.grafeas.v1.AttestationNote.Hint, 1298 io.grafeas.v1.AttestationNote.Hint.Builder, 1299 io.grafeas.v1.AttestationNote.HintOrBuilder>( 1300 getHint(), getParentForChildren(), isClean()); 1301 hint_ = null; 1302 } 1303 return hintBuilder_; 1304 } 1305 1306 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1307 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1308 return super.setUnknownFields(unknownFields); 1309 } 1310 1311 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1312 public final Builder mergeUnknownFields( 1313 final com.google.protobuf.UnknownFieldSet unknownFields) { 1314 return super.mergeUnknownFields(unknownFields); 1315 } 1316 1317 // @@protoc_insertion_point(builder_scope:grafeas.v1.AttestationNote) 1318 } 1319 1320 // @@protoc_insertion_point(class_scope:grafeas.v1.AttestationNote) 1321 private static final io.grafeas.v1.AttestationNote DEFAULT_INSTANCE; 1322 1323 static { 1324 DEFAULT_INSTANCE = new io.grafeas.v1.AttestationNote(); 1325 } 1326 getDefaultInstance()1327 public static io.grafeas.v1.AttestationNote getDefaultInstance() { 1328 return DEFAULT_INSTANCE; 1329 } 1330 1331 private static final com.google.protobuf.Parser<AttestationNote> PARSER = 1332 new com.google.protobuf.AbstractParser<AttestationNote>() { 1333 @java.lang.Override 1334 public AttestationNote parsePartialFrom( 1335 com.google.protobuf.CodedInputStream input, 1336 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1337 throws com.google.protobuf.InvalidProtocolBufferException { 1338 Builder builder = newBuilder(); 1339 try { 1340 builder.mergeFrom(input, extensionRegistry); 1341 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1342 throw e.setUnfinishedMessage(builder.buildPartial()); 1343 } catch (com.google.protobuf.UninitializedMessageException e) { 1344 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1345 } catch (java.io.IOException e) { 1346 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1347 .setUnfinishedMessage(builder.buildPartial()); 1348 } 1349 return builder.buildPartial(); 1350 } 1351 }; 1352 parser()1353 public static com.google.protobuf.Parser<AttestationNote> parser() { 1354 return PARSER; 1355 } 1356 1357 @java.lang.Override getParserForType()1358 public com.google.protobuf.Parser<AttestationNote> getParserForType() { 1359 return PARSER; 1360 } 1361 1362 @java.lang.Override getDefaultInstanceForType()1363 public io.grafeas.v1.AttestationNote getDefaultInstanceForType() { 1364 return DEFAULT_INSTANCE; 1365 } 1366 } 1367