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