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