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/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A request message for Autoscalers.Patch. See the method description for details. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.PatchAutoscalerRequest} 29 */ 30 public final class PatchAutoscalerRequest extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.PatchAutoscalerRequest) 33 PatchAutoscalerRequestOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use PatchAutoscalerRequest.newBuilder() to construct. PatchAutoscalerRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private PatchAutoscalerRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 PatchAutoscalerRequest()40 private PatchAutoscalerRequest() { 41 autoscaler_ = ""; 42 project_ = ""; 43 requestId_ = ""; 44 zone_ = ""; 45 } 46 47 @java.lang.Override 48 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)49 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 50 return new PatchAutoscalerRequest(); 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.cloud.compute.v1.Compute 60 .internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor; 61 } 62 63 @java.lang.Override 64 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()65 internalGetFieldAccessorTable() { 66 return com.google.cloud.compute.v1.Compute 67 .internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_fieldAccessorTable 68 .ensureFieldAccessorsInitialized( 69 com.google.cloud.compute.v1.PatchAutoscalerRequest.class, 70 com.google.cloud.compute.v1.PatchAutoscalerRequest.Builder.class); 71 } 72 73 private int bitField0_; 74 public static final int AUTOSCALER_FIELD_NUMBER = 517258967; 75 76 @SuppressWarnings("serial") 77 private volatile java.lang.Object autoscaler_ = ""; 78 /** 79 * 80 * 81 * <pre> 82 * Name of the autoscaler to patch. 83 * </pre> 84 * 85 * <code>optional string autoscaler = 517258967;</code> 86 * 87 * @return Whether the autoscaler field is set. 88 */ 89 @java.lang.Override hasAutoscaler()90 public boolean hasAutoscaler() { 91 return ((bitField0_ & 0x00000001) != 0); 92 } 93 /** 94 * 95 * 96 * <pre> 97 * Name of the autoscaler to patch. 98 * </pre> 99 * 100 * <code>optional string autoscaler = 517258967;</code> 101 * 102 * @return The autoscaler. 103 */ 104 @java.lang.Override getAutoscaler()105 public java.lang.String getAutoscaler() { 106 java.lang.Object ref = autoscaler_; 107 if (ref instanceof java.lang.String) { 108 return (java.lang.String) ref; 109 } else { 110 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 111 java.lang.String s = bs.toStringUtf8(); 112 autoscaler_ = s; 113 return s; 114 } 115 } 116 /** 117 * 118 * 119 * <pre> 120 * Name of the autoscaler to patch. 121 * </pre> 122 * 123 * <code>optional string autoscaler = 517258967;</code> 124 * 125 * @return The bytes for autoscaler. 126 */ 127 @java.lang.Override getAutoscalerBytes()128 public com.google.protobuf.ByteString getAutoscalerBytes() { 129 java.lang.Object ref = autoscaler_; 130 if (ref instanceof java.lang.String) { 131 com.google.protobuf.ByteString b = 132 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 133 autoscaler_ = b; 134 return b; 135 } else { 136 return (com.google.protobuf.ByteString) ref; 137 } 138 } 139 140 public static final int AUTOSCALER_RESOURCE_FIELD_NUMBER = 207616118; 141 private com.google.cloud.compute.v1.Autoscaler autoscalerResource_; 142 /** 143 * 144 * 145 * <pre> 146 * The body resource for this request 147 * </pre> 148 * 149 * <code> 150 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 151 * </code> 152 * 153 * @return Whether the autoscalerResource field is set. 154 */ 155 @java.lang.Override hasAutoscalerResource()156 public boolean hasAutoscalerResource() { 157 return autoscalerResource_ != null; 158 } 159 /** 160 * 161 * 162 * <pre> 163 * The body resource for this request 164 * </pre> 165 * 166 * <code> 167 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 168 * </code> 169 * 170 * @return The autoscalerResource. 171 */ 172 @java.lang.Override getAutoscalerResource()173 public com.google.cloud.compute.v1.Autoscaler getAutoscalerResource() { 174 return autoscalerResource_ == null 175 ? com.google.cloud.compute.v1.Autoscaler.getDefaultInstance() 176 : autoscalerResource_; 177 } 178 /** 179 * 180 * 181 * <pre> 182 * The body resource for this request 183 * </pre> 184 * 185 * <code> 186 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 187 * </code> 188 */ 189 @java.lang.Override getAutoscalerResourceOrBuilder()190 public com.google.cloud.compute.v1.AutoscalerOrBuilder getAutoscalerResourceOrBuilder() { 191 return autoscalerResource_ == null 192 ? com.google.cloud.compute.v1.Autoscaler.getDefaultInstance() 193 : autoscalerResource_; 194 } 195 196 public static final int PROJECT_FIELD_NUMBER = 227560217; 197 198 @SuppressWarnings("serial") 199 private volatile java.lang.Object project_ = ""; 200 /** 201 * 202 * 203 * <pre> 204 * Project ID for this request. 205 * </pre> 206 * 207 * <code> 208 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 209 * </code> 210 * 211 * @return The project. 212 */ 213 @java.lang.Override getProject()214 public java.lang.String getProject() { 215 java.lang.Object ref = project_; 216 if (ref instanceof java.lang.String) { 217 return (java.lang.String) ref; 218 } else { 219 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 220 java.lang.String s = bs.toStringUtf8(); 221 project_ = s; 222 return s; 223 } 224 } 225 /** 226 * 227 * 228 * <pre> 229 * Project ID for this request. 230 * </pre> 231 * 232 * <code> 233 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 234 * </code> 235 * 236 * @return The bytes for project. 237 */ 238 @java.lang.Override getProjectBytes()239 public com.google.protobuf.ByteString getProjectBytes() { 240 java.lang.Object ref = project_; 241 if (ref instanceof java.lang.String) { 242 com.google.protobuf.ByteString b = 243 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 244 project_ = b; 245 return b; 246 } else { 247 return (com.google.protobuf.ByteString) ref; 248 } 249 } 250 251 public static final int REQUEST_ID_FIELD_NUMBER = 37109963; 252 253 @SuppressWarnings("serial") 254 private volatile java.lang.Object requestId_ = ""; 255 /** 256 * 257 * 258 * <pre> 259 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 260 * </pre> 261 * 262 * <code>optional string request_id = 37109963;</code> 263 * 264 * @return Whether the requestId field is set. 265 */ 266 @java.lang.Override hasRequestId()267 public boolean hasRequestId() { 268 return ((bitField0_ & 0x00000002) != 0); 269 } 270 /** 271 * 272 * 273 * <pre> 274 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 275 * </pre> 276 * 277 * <code>optional string request_id = 37109963;</code> 278 * 279 * @return The requestId. 280 */ 281 @java.lang.Override getRequestId()282 public java.lang.String getRequestId() { 283 java.lang.Object ref = requestId_; 284 if (ref instanceof java.lang.String) { 285 return (java.lang.String) ref; 286 } else { 287 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 288 java.lang.String s = bs.toStringUtf8(); 289 requestId_ = s; 290 return s; 291 } 292 } 293 /** 294 * 295 * 296 * <pre> 297 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 298 * </pre> 299 * 300 * <code>optional string request_id = 37109963;</code> 301 * 302 * @return The bytes for requestId. 303 */ 304 @java.lang.Override getRequestIdBytes()305 public com.google.protobuf.ByteString getRequestIdBytes() { 306 java.lang.Object ref = requestId_; 307 if (ref instanceof java.lang.String) { 308 com.google.protobuf.ByteString b = 309 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 310 requestId_ = b; 311 return b; 312 } else { 313 return (com.google.protobuf.ByteString) ref; 314 } 315 } 316 317 public static final int ZONE_FIELD_NUMBER = 3744684; 318 319 @SuppressWarnings("serial") 320 private volatile java.lang.Object zone_ = ""; 321 /** 322 * 323 * 324 * <pre> 325 * Name of the zone for this request. 326 * </pre> 327 * 328 * <code> 329 * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; 330 * </code> 331 * 332 * @return The zone. 333 */ 334 @java.lang.Override getZone()335 public java.lang.String getZone() { 336 java.lang.Object ref = zone_; 337 if (ref instanceof java.lang.String) { 338 return (java.lang.String) ref; 339 } else { 340 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 341 java.lang.String s = bs.toStringUtf8(); 342 zone_ = s; 343 return s; 344 } 345 } 346 /** 347 * 348 * 349 * <pre> 350 * Name of the zone for this request. 351 * </pre> 352 * 353 * <code> 354 * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; 355 * </code> 356 * 357 * @return The bytes for zone. 358 */ 359 @java.lang.Override getZoneBytes()360 public com.google.protobuf.ByteString getZoneBytes() { 361 java.lang.Object ref = zone_; 362 if (ref instanceof java.lang.String) { 363 com.google.protobuf.ByteString b = 364 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 365 zone_ = b; 366 return b; 367 } else { 368 return (com.google.protobuf.ByteString) ref; 369 } 370 } 371 372 private byte memoizedIsInitialized = -1; 373 374 @java.lang.Override isInitialized()375 public final boolean isInitialized() { 376 byte isInitialized = memoizedIsInitialized; 377 if (isInitialized == 1) return true; 378 if (isInitialized == 0) return false; 379 380 memoizedIsInitialized = 1; 381 return true; 382 } 383 384 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)385 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 386 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { 387 com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); 388 } 389 if (((bitField0_ & 0x00000002) != 0)) { 390 com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); 391 } 392 if (autoscalerResource_ != null) { 393 output.writeMessage(207616118, getAutoscalerResource()); 394 } 395 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { 396 com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); 397 } 398 if (((bitField0_ & 0x00000001) != 0)) { 399 com.google.protobuf.GeneratedMessageV3.writeString(output, 517258967, autoscaler_); 400 } 401 getUnknownFields().writeTo(output); 402 } 403 404 @java.lang.Override getSerializedSize()405 public int getSerializedSize() { 406 int size = memoizedSize; 407 if (size != -1) return size; 408 409 size = 0; 410 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { 411 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); 412 } 413 if (((bitField0_ & 0x00000002) != 0)) { 414 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); 415 } 416 if (autoscalerResource_ != null) { 417 size += 418 com.google.protobuf.CodedOutputStream.computeMessageSize( 419 207616118, getAutoscalerResource()); 420 } 421 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { 422 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); 423 } 424 if (((bitField0_ & 0x00000001) != 0)) { 425 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(517258967, autoscaler_); 426 } 427 size += getUnknownFields().getSerializedSize(); 428 memoizedSize = size; 429 return size; 430 } 431 432 @java.lang.Override equals(final java.lang.Object obj)433 public boolean equals(final java.lang.Object obj) { 434 if (obj == this) { 435 return true; 436 } 437 if (!(obj instanceof com.google.cloud.compute.v1.PatchAutoscalerRequest)) { 438 return super.equals(obj); 439 } 440 com.google.cloud.compute.v1.PatchAutoscalerRequest other = 441 (com.google.cloud.compute.v1.PatchAutoscalerRequest) obj; 442 443 if (hasAutoscaler() != other.hasAutoscaler()) return false; 444 if (hasAutoscaler()) { 445 if (!getAutoscaler().equals(other.getAutoscaler())) return false; 446 } 447 if (hasAutoscalerResource() != other.hasAutoscalerResource()) return false; 448 if (hasAutoscalerResource()) { 449 if (!getAutoscalerResource().equals(other.getAutoscalerResource())) return false; 450 } 451 if (!getProject().equals(other.getProject())) return false; 452 if (hasRequestId() != other.hasRequestId()) return false; 453 if (hasRequestId()) { 454 if (!getRequestId().equals(other.getRequestId())) return false; 455 } 456 if (!getZone().equals(other.getZone())) return false; 457 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 458 return true; 459 } 460 461 @java.lang.Override hashCode()462 public int hashCode() { 463 if (memoizedHashCode != 0) { 464 return memoizedHashCode; 465 } 466 int hash = 41; 467 hash = (19 * hash) + getDescriptor().hashCode(); 468 if (hasAutoscaler()) { 469 hash = (37 * hash) + AUTOSCALER_FIELD_NUMBER; 470 hash = (53 * hash) + getAutoscaler().hashCode(); 471 } 472 if (hasAutoscalerResource()) { 473 hash = (37 * hash) + AUTOSCALER_RESOURCE_FIELD_NUMBER; 474 hash = (53 * hash) + getAutoscalerResource().hashCode(); 475 } 476 hash = (37 * hash) + PROJECT_FIELD_NUMBER; 477 hash = (53 * hash) + getProject().hashCode(); 478 if (hasRequestId()) { 479 hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; 480 hash = (53 * hash) + getRequestId().hashCode(); 481 } 482 hash = (37 * hash) + ZONE_FIELD_NUMBER; 483 hash = (53 * hash) + getZone().hashCode(); 484 hash = (29 * hash) + getUnknownFields().hashCode(); 485 memoizedHashCode = hash; 486 return hash; 487 } 488 parseFrom( java.nio.ByteBuffer data)489 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom( 490 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 491 return PARSER.parseFrom(data); 492 } 493 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)494 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom( 495 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 496 throws com.google.protobuf.InvalidProtocolBufferException { 497 return PARSER.parseFrom(data, extensionRegistry); 498 } 499 parseFrom( com.google.protobuf.ByteString data)500 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom( 501 com.google.protobuf.ByteString data) 502 throws com.google.protobuf.InvalidProtocolBufferException { 503 return PARSER.parseFrom(data); 504 } 505 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)506 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom( 507 com.google.protobuf.ByteString data, 508 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 509 throws com.google.protobuf.InvalidProtocolBufferException { 510 return PARSER.parseFrom(data, extensionRegistry); 511 } 512 parseFrom(byte[] data)513 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom(byte[] data) 514 throws com.google.protobuf.InvalidProtocolBufferException { 515 return PARSER.parseFrom(data); 516 } 517 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)518 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom( 519 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 520 throws com.google.protobuf.InvalidProtocolBufferException { 521 return PARSER.parseFrom(data, extensionRegistry); 522 } 523 parseFrom( java.io.InputStream input)524 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom( 525 java.io.InputStream input) throws java.io.IOException { 526 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 527 } 528 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)529 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom( 530 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 531 throws java.io.IOException { 532 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 533 PARSER, input, extensionRegistry); 534 } 535 parseDelimitedFrom( java.io.InputStream input)536 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseDelimitedFrom( 537 java.io.InputStream input) throws java.io.IOException { 538 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 539 } 540 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)541 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseDelimitedFrom( 542 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 543 throws java.io.IOException { 544 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 545 PARSER, input, extensionRegistry); 546 } 547 parseFrom( com.google.protobuf.CodedInputStream input)548 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom( 549 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 550 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 551 } 552 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)553 public static com.google.cloud.compute.v1.PatchAutoscalerRequest parseFrom( 554 com.google.protobuf.CodedInputStream input, 555 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 556 throws java.io.IOException { 557 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 558 PARSER, input, extensionRegistry); 559 } 560 561 @java.lang.Override newBuilderForType()562 public Builder newBuilderForType() { 563 return newBuilder(); 564 } 565 newBuilder()566 public static Builder newBuilder() { 567 return DEFAULT_INSTANCE.toBuilder(); 568 } 569 newBuilder(com.google.cloud.compute.v1.PatchAutoscalerRequest prototype)570 public static Builder newBuilder(com.google.cloud.compute.v1.PatchAutoscalerRequest prototype) { 571 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 572 } 573 574 @java.lang.Override toBuilder()575 public Builder toBuilder() { 576 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 577 } 578 579 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)580 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 581 Builder builder = new Builder(parent); 582 return builder; 583 } 584 /** 585 * 586 * 587 * <pre> 588 * A request message for Autoscalers.Patch. See the method description for details. 589 * </pre> 590 * 591 * Protobuf type {@code google.cloud.compute.v1.PatchAutoscalerRequest} 592 */ 593 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 594 implements 595 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.PatchAutoscalerRequest) 596 com.google.cloud.compute.v1.PatchAutoscalerRequestOrBuilder { getDescriptor()597 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 598 return com.google.cloud.compute.v1.Compute 599 .internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor; 600 } 601 602 @java.lang.Override 603 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()604 internalGetFieldAccessorTable() { 605 return com.google.cloud.compute.v1.Compute 606 .internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_fieldAccessorTable 607 .ensureFieldAccessorsInitialized( 608 com.google.cloud.compute.v1.PatchAutoscalerRequest.class, 609 com.google.cloud.compute.v1.PatchAutoscalerRequest.Builder.class); 610 } 611 612 // Construct using com.google.cloud.compute.v1.PatchAutoscalerRequest.newBuilder() Builder()613 private Builder() {} 614 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)615 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 616 super(parent); 617 } 618 619 @java.lang.Override clear()620 public Builder clear() { 621 super.clear(); 622 bitField0_ = 0; 623 autoscaler_ = ""; 624 autoscalerResource_ = null; 625 if (autoscalerResourceBuilder_ != null) { 626 autoscalerResourceBuilder_.dispose(); 627 autoscalerResourceBuilder_ = null; 628 } 629 project_ = ""; 630 requestId_ = ""; 631 zone_ = ""; 632 return this; 633 } 634 635 @java.lang.Override getDescriptorForType()636 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 637 return com.google.cloud.compute.v1.Compute 638 .internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor; 639 } 640 641 @java.lang.Override getDefaultInstanceForType()642 public com.google.cloud.compute.v1.PatchAutoscalerRequest getDefaultInstanceForType() { 643 return com.google.cloud.compute.v1.PatchAutoscalerRequest.getDefaultInstance(); 644 } 645 646 @java.lang.Override build()647 public com.google.cloud.compute.v1.PatchAutoscalerRequest build() { 648 com.google.cloud.compute.v1.PatchAutoscalerRequest result = buildPartial(); 649 if (!result.isInitialized()) { 650 throw newUninitializedMessageException(result); 651 } 652 return result; 653 } 654 655 @java.lang.Override buildPartial()656 public com.google.cloud.compute.v1.PatchAutoscalerRequest buildPartial() { 657 com.google.cloud.compute.v1.PatchAutoscalerRequest result = 658 new com.google.cloud.compute.v1.PatchAutoscalerRequest(this); 659 if (bitField0_ != 0) { 660 buildPartial0(result); 661 } 662 onBuilt(); 663 return result; 664 } 665 buildPartial0(com.google.cloud.compute.v1.PatchAutoscalerRequest result)666 private void buildPartial0(com.google.cloud.compute.v1.PatchAutoscalerRequest result) { 667 int from_bitField0_ = bitField0_; 668 int to_bitField0_ = 0; 669 if (((from_bitField0_ & 0x00000001) != 0)) { 670 result.autoscaler_ = autoscaler_; 671 to_bitField0_ |= 0x00000001; 672 } 673 if (((from_bitField0_ & 0x00000002) != 0)) { 674 result.autoscalerResource_ = 675 autoscalerResourceBuilder_ == null 676 ? autoscalerResource_ 677 : autoscalerResourceBuilder_.build(); 678 } 679 if (((from_bitField0_ & 0x00000004) != 0)) { 680 result.project_ = project_; 681 } 682 if (((from_bitField0_ & 0x00000008) != 0)) { 683 result.requestId_ = requestId_; 684 to_bitField0_ |= 0x00000002; 685 } 686 if (((from_bitField0_ & 0x00000010) != 0)) { 687 result.zone_ = zone_; 688 } 689 result.bitField0_ |= to_bitField0_; 690 } 691 692 @java.lang.Override clone()693 public Builder clone() { 694 return super.clone(); 695 } 696 697 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)698 public Builder setField( 699 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 700 return super.setField(field, value); 701 } 702 703 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)704 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 705 return super.clearField(field); 706 } 707 708 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)709 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 710 return super.clearOneof(oneof); 711 } 712 713 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)714 public Builder setRepeatedField( 715 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 716 return super.setRepeatedField(field, index, value); 717 } 718 719 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)720 public Builder addRepeatedField( 721 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 722 return super.addRepeatedField(field, value); 723 } 724 725 @java.lang.Override mergeFrom(com.google.protobuf.Message other)726 public Builder mergeFrom(com.google.protobuf.Message other) { 727 if (other instanceof com.google.cloud.compute.v1.PatchAutoscalerRequest) { 728 return mergeFrom((com.google.cloud.compute.v1.PatchAutoscalerRequest) other); 729 } else { 730 super.mergeFrom(other); 731 return this; 732 } 733 } 734 mergeFrom(com.google.cloud.compute.v1.PatchAutoscalerRequest other)735 public Builder mergeFrom(com.google.cloud.compute.v1.PatchAutoscalerRequest other) { 736 if (other == com.google.cloud.compute.v1.PatchAutoscalerRequest.getDefaultInstance()) 737 return this; 738 if (other.hasAutoscaler()) { 739 autoscaler_ = other.autoscaler_; 740 bitField0_ |= 0x00000001; 741 onChanged(); 742 } 743 if (other.hasAutoscalerResource()) { 744 mergeAutoscalerResource(other.getAutoscalerResource()); 745 } 746 if (!other.getProject().isEmpty()) { 747 project_ = other.project_; 748 bitField0_ |= 0x00000004; 749 onChanged(); 750 } 751 if (other.hasRequestId()) { 752 requestId_ = other.requestId_; 753 bitField0_ |= 0x00000008; 754 onChanged(); 755 } 756 if (!other.getZone().isEmpty()) { 757 zone_ = other.zone_; 758 bitField0_ |= 0x00000010; 759 onChanged(); 760 } 761 this.mergeUnknownFields(other.getUnknownFields()); 762 onChanged(); 763 return this; 764 } 765 766 @java.lang.Override isInitialized()767 public final boolean isInitialized() { 768 return true; 769 } 770 771 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)772 public Builder mergeFrom( 773 com.google.protobuf.CodedInputStream input, 774 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 775 throws java.io.IOException { 776 if (extensionRegistry == null) { 777 throw new java.lang.NullPointerException(); 778 } 779 try { 780 boolean done = false; 781 while (!done) { 782 int tag = input.readTag(); 783 switch (tag) { 784 case 0: 785 done = true; 786 break; 787 case 29957474: 788 { 789 zone_ = input.readStringRequireUtf8(); 790 bitField0_ |= 0x00000010; 791 break; 792 } // case 29957474 793 case 296879706: 794 { 795 requestId_ = input.readStringRequireUtf8(); 796 bitField0_ |= 0x00000008; 797 break; 798 } // case 296879706 799 case 1660928946: 800 { 801 input.readMessage( 802 getAutoscalerResourceFieldBuilder().getBuilder(), extensionRegistry); 803 bitField0_ |= 0x00000002; 804 break; 805 } // case 1660928946 806 case 1820481738: 807 { 808 project_ = input.readStringRequireUtf8(); 809 bitField0_ |= 0x00000004; 810 break; 811 } // case 1820481738 812 case -156895558: 813 { 814 autoscaler_ = input.readStringRequireUtf8(); 815 bitField0_ |= 0x00000001; 816 break; 817 } // case -156895558 818 default: 819 { 820 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 821 done = true; // was an endgroup tag 822 } 823 break; 824 } // default: 825 } // switch (tag) 826 } // while (!done) 827 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 828 throw e.unwrapIOException(); 829 } finally { 830 onChanged(); 831 } // finally 832 return this; 833 } 834 835 private int bitField0_; 836 837 private java.lang.Object autoscaler_ = ""; 838 /** 839 * 840 * 841 * <pre> 842 * Name of the autoscaler to patch. 843 * </pre> 844 * 845 * <code>optional string autoscaler = 517258967;</code> 846 * 847 * @return Whether the autoscaler field is set. 848 */ hasAutoscaler()849 public boolean hasAutoscaler() { 850 return ((bitField0_ & 0x00000001) != 0); 851 } 852 /** 853 * 854 * 855 * <pre> 856 * Name of the autoscaler to patch. 857 * </pre> 858 * 859 * <code>optional string autoscaler = 517258967;</code> 860 * 861 * @return The autoscaler. 862 */ getAutoscaler()863 public java.lang.String getAutoscaler() { 864 java.lang.Object ref = autoscaler_; 865 if (!(ref instanceof java.lang.String)) { 866 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 867 java.lang.String s = bs.toStringUtf8(); 868 autoscaler_ = s; 869 return s; 870 } else { 871 return (java.lang.String) ref; 872 } 873 } 874 /** 875 * 876 * 877 * <pre> 878 * Name of the autoscaler to patch. 879 * </pre> 880 * 881 * <code>optional string autoscaler = 517258967;</code> 882 * 883 * @return The bytes for autoscaler. 884 */ getAutoscalerBytes()885 public com.google.protobuf.ByteString getAutoscalerBytes() { 886 java.lang.Object ref = autoscaler_; 887 if (ref instanceof String) { 888 com.google.protobuf.ByteString b = 889 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 890 autoscaler_ = b; 891 return b; 892 } else { 893 return (com.google.protobuf.ByteString) ref; 894 } 895 } 896 /** 897 * 898 * 899 * <pre> 900 * Name of the autoscaler to patch. 901 * </pre> 902 * 903 * <code>optional string autoscaler = 517258967;</code> 904 * 905 * @param value The autoscaler to set. 906 * @return This builder for chaining. 907 */ setAutoscaler(java.lang.String value)908 public Builder setAutoscaler(java.lang.String value) { 909 if (value == null) { 910 throw new NullPointerException(); 911 } 912 autoscaler_ = value; 913 bitField0_ |= 0x00000001; 914 onChanged(); 915 return this; 916 } 917 /** 918 * 919 * 920 * <pre> 921 * Name of the autoscaler to patch. 922 * </pre> 923 * 924 * <code>optional string autoscaler = 517258967;</code> 925 * 926 * @return This builder for chaining. 927 */ clearAutoscaler()928 public Builder clearAutoscaler() { 929 autoscaler_ = getDefaultInstance().getAutoscaler(); 930 bitField0_ = (bitField0_ & ~0x00000001); 931 onChanged(); 932 return this; 933 } 934 /** 935 * 936 * 937 * <pre> 938 * Name of the autoscaler to patch. 939 * </pre> 940 * 941 * <code>optional string autoscaler = 517258967;</code> 942 * 943 * @param value The bytes for autoscaler to set. 944 * @return This builder for chaining. 945 */ setAutoscalerBytes(com.google.protobuf.ByteString value)946 public Builder setAutoscalerBytes(com.google.protobuf.ByteString value) { 947 if (value == null) { 948 throw new NullPointerException(); 949 } 950 checkByteStringIsUtf8(value); 951 autoscaler_ = value; 952 bitField0_ |= 0x00000001; 953 onChanged(); 954 return this; 955 } 956 957 private com.google.cloud.compute.v1.Autoscaler autoscalerResource_; 958 private com.google.protobuf.SingleFieldBuilderV3< 959 com.google.cloud.compute.v1.Autoscaler, 960 com.google.cloud.compute.v1.Autoscaler.Builder, 961 com.google.cloud.compute.v1.AutoscalerOrBuilder> 962 autoscalerResourceBuilder_; 963 /** 964 * 965 * 966 * <pre> 967 * The body resource for this request 968 * </pre> 969 * 970 * <code> 971 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 972 * </code> 973 * 974 * @return Whether the autoscalerResource field is set. 975 */ hasAutoscalerResource()976 public boolean hasAutoscalerResource() { 977 return ((bitField0_ & 0x00000002) != 0); 978 } 979 /** 980 * 981 * 982 * <pre> 983 * The body resource for this request 984 * </pre> 985 * 986 * <code> 987 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 988 * </code> 989 * 990 * @return The autoscalerResource. 991 */ getAutoscalerResource()992 public com.google.cloud.compute.v1.Autoscaler getAutoscalerResource() { 993 if (autoscalerResourceBuilder_ == null) { 994 return autoscalerResource_ == null 995 ? com.google.cloud.compute.v1.Autoscaler.getDefaultInstance() 996 : autoscalerResource_; 997 } else { 998 return autoscalerResourceBuilder_.getMessage(); 999 } 1000 } 1001 /** 1002 * 1003 * 1004 * <pre> 1005 * The body resource for this request 1006 * </pre> 1007 * 1008 * <code> 1009 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 1010 * </code> 1011 */ setAutoscalerResource(com.google.cloud.compute.v1.Autoscaler value)1012 public Builder setAutoscalerResource(com.google.cloud.compute.v1.Autoscaler value) { 1013 if (autoscalerResourceBuilder_ == null) { 1014 if (value == null) { 1015 throw new NullPointerException(); 1016 } 1017 autoscalerResource_ = value; 1018 } else { 1019 autoscalerResourceBuilder_.setMessage(value); 1020 } 1021 bitField0_ |= 0x00000002; 1022 onChanged(); 1023 return this; 1024 } 1025 /** 1026 * 1027 * 1028 * <pre> 1029 * The body resource for this request 1030 * </pre> 1031 * 1032 * <code> 1033 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 1034 * </code> 1035 */ setAutoscalerResource( com.google.cloud.compute.v1.Autoscaler.Builder builderForValue)1036 public Builder setAutoscalerResource( 1037 com.google.cloud.compute.v1.Autoscaler.Builder builderForValue) { 1038 if (autoscalerResourceBuilder_ == null) { 1039 autoscalerResource_ = builderForValue.build(); 1040 } else { 1041 autoscalerResourceBuilder_.setMessage(builderForValue.build()); 1042 } 1043 bitField0_ |= 0x00000002; 1044 onChanged(); 1045 return this; 1046 } 1047 /** 1048 * 1049 * 1050 * <pre> 1051 * The body resource for this request 1052 * </pre> 1053 * 1054 * <code> 1055 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 1056 * </code> 1057 */ mergeAutoscalerResource(com.google.cloud.compute.v1.Autoscaler value)1058 public Builder mergeAutoscalerResource(com.google.cloud.compute.v1.Autoscaler value) { 1059 if (autoscalerResourceBuilder_ == null) { 1060 if (((bitField0_ & 0x00000002) != 0) 1061 && autoscalerResource_ != null 1062 && autoscalerResource_ != com.google.cloud.compute.v1.Autoscaler.getDefaultInstance()) { 1063 getAutoscalerResourceBuilder().mergeFrom(value); 1064 } else { 1065 autoscalerResource_ = value; 1066 } 1067 } else { 1068 autoscalerResourceBuilder_.mergeFrom(value); 1069 } 1070 bitField0_ |= 0x00000002; 1071 onChanged(); 1072 return this; 1073 } 1074 /** 1075 * 1076 * 1077 * <pre> 1078 * The body resource for this request 1079 * </pre> 1080 * 1081 * <code> 1082 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 1083 * </code> 1084 */ clearAutoscalerResource()1085 public Builder clearAutoscalerResource() { 1086 bitField0_ = (bitField0_ & ~0x00000002); 1087 autoscalerResource_ = null; 1088 if (autoscalerResourceBuilder_ != null) { 1089 autoscalerResourceBuilder_.dispose(); 1090 autoscalerResourceBuilder_ = null; 1091 } 1092 onChanged(); 1093 return this; 1094 } 1095 /** 1096 * 1097 * 1098 * <pre> 1099 * The body resource for this request 1100 * </pre> 1101 * 1102 * <code> 1103 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 1104 * </code> 1105 */ getAutoscalerResourceBuilder()1106 public com.google.cloud.compute.v1.Autoscaler.Builder getAutoscalerResourceBuilder() { 1107 bitField0_ |= 0x00000002; 1108 onChanged(); 1109 return getAutoscalerResourceFieldBuilder().getBuilder(); 1110 } 1111 /** 1112 * 1113 * 1114 * <pre> 1115 * The body resource for this request 1116 * </pre> 1117 * 1118 * <code> 1119 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 1120 * </code> 1121 */ getAutoscalerResourceOrBuilder()1122 public com.google.cloud.compute.v1.AutoscalerOrBuilder getAutoscalerResourceOrBuilder() { 1123 if (autoscalerResourceBuilder_ != null) { 1124 return autoscalerResourceBuilder_.getMessageOrBuilder(); 1125 } else { 1126 return autoscalerResource_ == null 1127 ? com.google.cloud.compute.v1.Autoscaler.getDefaultInstance() 1128 : autoscalerResource_; 1129 } 1130 } 1131 /** 1132 * 1133 * 1134 * <pre> 1135 * The body resource for this request 1136 * </pre> 1137 * 1138 * <code> 1139 * .google.cloud.compute.v1.Autoscaler autoscaler_resource = 207616118 [(.google.api.field_behavior) = REQUIRED]; 1140 * </code> 1141 */ 1142 private com.google.protobuf.SingleFieldBuilderV3< 1143 com.google.cloud.compute.v1.Autoscaler, 1144 com.google.cloud.compute.v1.Autoscaler.Builder, 1145 com.google.cloud.compute.v1.AutoscalerOrBuilder> getAutoscalerResourceFieldBuilder()1146 getAutoscalerResourceFieldBuilder() { 1147 if (autoscalerResourceBuilder_ == null) { 1148 autoscalerResourceBuilder_ = 1149 new com.google.protobuf.SingleFieldBuilderV3< 1150 com.google.cloud.compute.v1.Autoscaler, 1151 com.google.cloud.compute.v1.Autoscaler.Builder, 1152 com.google.cloud.compute.v1.AutoscalerOrBuilder>( 1153 getAutoscalerResource(), getParentForChildren(), isClean()); 1154 autoscalerResource_ = null; 1155 } 1156 return autoscalerResourceBuilder_; 1157 } 1158 1159 private java.lang.Object project_ = ""; 1160 /** 1161 * 1162 * 1163 * <pre> 1164 * Project ID for this request. 1165 * </pre> 1166 * 1167 * <code> 1168 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 1169 * </code> 1170 * 1171 * @return The project. 1172 */ getProject()1173 public java.lang.String getProject() { 1174 java.lang.Object ref = project_; 1175 if (!(ref instanceof java.lang.String)) { 1176 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1177 java.lang.String s = bs.toStringUtf8(); 1178 project_ = s; 1179 return s; 1180 } else { 1181 return (java.lang.String) ref; 1182 } 1183 } 1184 /** 1185 * 1186 * 1187 * <pre> 1188 * Project ID for this request. 1189 * </pre> 1190 * 1191 * <code> 1192 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 1193 * </code> 1194 * 1195 * @return The bytes for project. 1196 */ getProjectBytes()1197 public com.google.protobuf.ByteString getProjectBytes() { 1198 java.lang.Object ref = project_; 1199 if (ref instanceof String) { 1200 com.google.protobuf.ByteString b = 1201 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1202 project_ = b; 1203 return b; 1204 } else { 1205 return (com.google.protobuf.ByteString) ref; 1206 } 1207 } 1208 /** 1209 * 1210 * 1211 * <pre> 1212 * Project ID for this request. 1213 * </pre> 1214 * 1215 * <code> 1216 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 1217 * </code> 1218 * 1219 * @param value The project to set. 1220 * @return This builder for chaining. 1221 */ setProject(java.lang.String value)1222 public Builder setProject(java.lang.String value) { 1223 if (value == null) { 1224 throw new NullPointerException(); 1225 } 1226 project_ = value; 1227 bitField0_ |= 0x00000004; 1228 onChanged(); 1229 return this; 1230 } 1231 /** 1232 * 1233 * 1234 * <pre> 1235 * Project ID for this request. 1236 * </pre> 1237 * 1238 * <code> 1239 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 1240 * </code> 1241 * 1242 * @return This builder for chaining. 1243 */ clearProject()1244 public Builder clearProject() { 1245 project_ = getDefaultInstance().getProject(); 1246 bitField0_ = (bitField0_ & ~0x00000004); 1247 onChanged(); 1248 return this; 1249 } 1250 /** 1251 * 1252 * 1253 * <pre> 1254 * Project ID for this request. 1255 * </pre> 1256 * 1257 * <code> 1258 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 1259 * </code> 1260 * 1261 * @param value The bytes for project to set. 1262 * @return This builder for chaining. 1263 */ setProjectBytes(com.google.protobuf.ByteString value)1264 public Builder setProjectBytes(com.google.protobuf.ByteString value) { 1265 if (value == null) { 1266 throw new NullPointerException(); 1267 } 1268 checkByteStringIsUtf8(value); 1269 project_ = value; 1270 bitField0_ |= 0x00000004; 1271 onChanged(); 1272 return this; 1273 } 1274 1275 private java.lang.Object requestId_ = ""; 1276 /** 1277 * 1278 * 1279 * <pre> 1280 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 1281 * </pre> 1282 * 1283 * <code>optional string request_id = 37109963;</code> 1284 * 1285 * @return Whether the requestId field is set. 1286 */ hasRequestId()1287 public boolean hasRequestId() { 1288 return ((bitField0_ & 0x00000008) != 0); 1289 } 1290 /** 1291 * 1292 * 1293 * <pre> 1294 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 1295 * </pre> 1296 * 1297 * <code>optional string request_id = 37109963;</code> 1298 * 1299 * @return The requestId. 1300 */ getRequestId()1301 public java.lang.String getRequestId() { 1302 java.lang.Object ref = requestId_; 1303 if (!(ref instanceof java.lang.String)) { 1304 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1305 java.lang.String s = bs.toStringUtf8(); 1306 requestId_ = s; 1307 return s; 1308 } else { 1309 return (java.lang.String) ref; 1310 } 1311 } 1312 /** 1313 * 1314 * 1315 * <pre> 1316 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 1317 * </pre> 1318 * 1319 * <code>optional string request_id = 37109963;</code> 1320 * 1321 * @return The bytes for requestId. 1322 */ getRequestIdBytes()1323 public com.google.protobuf.ByteString getRequestIdBytes() { 1324 java.lang.Object ref = requestId_; 1325 if (ref instanceof String) { 1326 com.google.protobuf.ByteString b = 1327 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1328 requestId_ = b; 1329 return b; 1330 } else { 1331 return (com.google.protobuf.ByteString) ref; 1332 } 1333 } 1334 /** 1335 * 1336 * 1337 * <pre> 1338 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 1339 * </pre> 1340 * 1341 * <code>optional string request_id = 37109963;</code> 1342 * 1343 * @param value The requestId to set. 1344 * @return This builder for chaining. 1345 */ setRequestId(java.lang.String value)1346 public Builder setRequestId(java.lang.String value) { 1347 if (value == null) { 1348 throw new NullPointerException(); 1349 } 1350 requestId_ = value; 1351 bitField0_ |= 0x00000008; 1352 onChanged(); 1353 return this; 1354 } 1355 /** 1356 * 1357 * 1358 * <pre> 1359 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 1360 * </pre> 1361 * 1362 * <code>optional string request_id = 37109963;</code> 1363 * 1364 * @return This builder for chaining. 1365 */ clearRequestId()1366 public Builder clearRequestId() { 1367 requestId_ = getDefaultInstance().getRequestId(); 1368 bitField0_ = (bitField0_ & ~0x00000008); 1369 onChanged(); 1370 return this; 1371 } 1372 /** 1373 * 1374 * 1375 * <pre> 1376 * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 1377 * </pre> 1378 * 1379 * <code>optional string request_id = 37109963;</code> 1380 * 1381 * @param value The bytes for requestId to set. 1382 * @return This builder for chaining. 1383 */ setRequestIdBytes(com.google.protobuf.ByteString value)1384 public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { 1385 if (value == null) { 1386 throw new NullPointerException(); 1387 } 1388 checkByteStringIsUtf8(value); 1389 requestId_ = value; 1390 bitField0_ |= 0x00000008; 1391 onChanged(); 1392 return this; 1393 } 1394 1395 private java.lang.Object zone_ = ""; 1396 /** 1397 * 1398 * 1399 * <pre> 1400 * Name of the zone for this request. 1401 * </pre> 1402 * 1403 * <code> 1404 * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; 1405 * </code> 1406 * 1407 * @return The zone. 1408 */ getZone()1409 public java.lang.String getZone() { 1410 java.lang.Object ref = zone_; 1411 if (!(ref instanceof java.lang.String)) { 1412 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1413 java.lang.String s = bs.toStringUtf8(); 1414 zone_ = s; 1415 return s; 1416 } else { 1417 return (java.lang.String) ref; 1418 } 1419 } 1420 /** 1421 * 1422 * 1423 * <pre> 1424 * Name of the zone for this request. 1425 * </pre> 1426 * 1427 * <code> 1428 * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; 1429 * </code> 1430 * 1431 * @return The bytes for zone. 1432 */ getZoneBytes()1433 public com.google.protobuf.ByteString getZoneBytes() { 1434 java.lang.Object ref = zone_; 1435 if (ref instanceof String) { 1436 com.google.protobuf.ByteString b = 1437 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1438 zone_ = b; 1439 return b; 1440 } else { 1441 return (com.google.protobuf.ByteString) ref; 1442 } 1443 } 1444 /** 1445 * 1446 * 1447 * <pre> 1448 * Name of the zone for this request. 1449 * </pre> 1450 * 1451 * <code> 1452 * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; 1453 * </code> 1454 * 1455 * @param value The zone to set. 1456 * @return This builder for chaining. 1457 */ setZone(java.lang.String value)1458 public Builder setZone(java.lang.String value) { 1459 if (value == null) { 1460 throw new NullPointerException(); 1461 } 1462 zone_ = value; 1463 bitField0_ |= 0x00000010; 1464 onChanged(); 1465 return this; 1466 } 1467 /** 1468 * 1469 * 1470 * <pre> 1471 * Name of the zone for this request. 1472 * </pre> 1473 * 1474 * <code> 1475 * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; 1476 * </code> 1477 * 1478 * @return This builder for chaining. 1479 */ clearZone()1480 public Builder clearZone() { 1481 zone_ = getDefaultInstance().getZone(); 1482 bitField0_ = (bitField0_ & ~0x00000010); 1483 onChanged(); 1484 return this; 1485 } 1486 /** 1487 * 1488 * 1489 * <pre> 1490 * Name of the zone for this request. 1491 * </pre> 1492 * 1493 * <code> 1494 * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; 1495 * </code> 1496 * 1497 * @param value The bytes for zone to set. 1498 * @return This builder for chaining. 1499 */ setZoneBytes(com.google.protobuf.ByteString value)1500 public Builder setZoneBytes(com.google.protobuf.ByteString value) { 1501 if (value == null) { 1502 throw new NullPointerException(); 1503 } 1504 checkByteStringIsUtf8(value); 1505 zone_ = value; 1506 bitField0_ |= 0x00000010; 1507 onChanged(); 1508 return this; 1509 } 1510 1511 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1512 public final Builder setUnknownFields(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.compute.v1.PatchAutoscalerRequest) 1523 } 1524 1525 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.PatchAutoscalerRequest) 1526 private static final com.google.cloud.compute.v1.PatchAutoscalerRequest DEFAULT_INSTANCE; 1527 1528 static { 1529 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.PatchAutoscalerRequest(); 1530 } 1531 getDefaultInstance()1532 public static com.google.cloud.compute.v1.PatchAutoscalerRequest getDefaultInstance() { 1533 return DEFAULT_INSTANCE; 1534 } 1535 1536 private static final com.google.protobuf.Parser<PatchAutoscalerRequest> PARSER = 1537 new com.google.protobuf.AbstractParser<PatchAutoscalerRequest>() { 1538 @java.lang.Override 1539 public PatchAutoscalerRequest parsePartialFrom( 1540 com.google.protobuf.CodedInputStream input, 1541 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1542 throws com.google.protobuf.InvalidProtocolBufferException { 1543 Builder builder = newBuilder(); 1544 try { 1545 builder.mergeFrom(input, extensionRegistry); 1546 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1547 throw e.setUnfinishedMessage(builder.buildPartial()); 1548 } catch (com.google.protobuf.UninitializedMessageException e) { 1549 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1550 } catch (java.io.IOException e) { 1551 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1552 .setUnfinishedMessage(builder.buildPartial()); 1553 } 1554 return builder.buildPartial(); 1555 } 1556 }; 1557 parser()1558 public static com.google.protobuf.Parser<PatchAutoscalerRequest> parser() { 1559 return PARSER; 1560 } 1561 1562 @java.lang.Override getParserForType()1563 public com.google.protobuf.Parser<PatchAutoscalerRequest> getParserForType() { 1564 return PARSER; 1565 } 1566 1567 @java.lang.Override getDefaultInstanceForType()1568 public com.google.cloud.compute.v1.PatchAutoscalerRequest getDefaultInstanceForType() { 1569 return DEFAULT_INSTANCE; 1570 } 1571 } 1572