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