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