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 Networks.Delete. See the method description for details. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.DeleteNetworkRequest} 29 */ 30 public final class DeleteNetworkRequest extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteNetworkRequest) 33 DeleteNetworkRequestOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use DeleteNetworkRequest.newBuilder() to construct. DeleteNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private DeleteNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 DeleteNetworkRequest()40 private DeleteNetworkRequest() { 41 network_ = ""; 42 project_ = ""; 43 requestId_ = ""; 44 } 45 46 @java.lang.Override 47 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)48 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 49 return new DeleteNetworkRequest(); 50 } 51 52 @java.lang.Override getUnknownFields()53 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 54 return this.unknownFields; 55 } 56 getDescriptor()57 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 58 return com.google.cloud.compute.v1.Compute 59 .internal_static_google_cloud_compute_v1_DeleteNetworkRequest_descriptor; 60 } 61 62 @java.lang.Override 63 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()64 internalGetFieldAccessorTable() { 65 return com.google.cloud.compute.v1.Compute 66 .internal_static_google_cloud_compute_v1_DeleteNetworkRequest_fieldAccessorTable 67 .ensureFieldAccessorsInitialized( 68 com.google.cloud.compute.v1.DeleteNetworkRequest.class, 69 com.google.cloud.compute.v1.DeleteNetworkRequest.Builder.class); 70 } 71 72 private int bitField0_; 73 public static final int NETWORK_FIELD_NUMBER = 232872494; 74 75 @SuppressWarnings("serial") 76 private volatile java.lang.Object network_ = ""; 77 /** 78 * 79 * 80 * <pre> 81 * Name of the network to delete. 82 * </pre> 83 * 84 * <code>string network = 232872494 [(.google.api.field_behavior) = REQUIRED];</code> 85 * 86 * @return The network. 87 */ 88 @java.lang.Override getNetwork()89 public java.lang.String getNetwork() { 90 java.lang.Object ref = network_; 91 if (ref instanceof java.lang.String) { 92 return (java.lang.String) ref; 93 } else { 94 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 95 java.lang.String s = bs.toStringUtf8(); 96 network_ = s; 97 return s; 98 } 99 } 100 /** 101 * 102 * 103 * <pre> 104 * Name of the network to delete. 105 * </pre> 106 * 107 * <code>string network = 232872494 [(.google.api.field_behavior) = REQUIRED];</code> 108 * 109 * @return The bytes for network. 110 */ 111 @java.lang.Override getNetworkBytes()112 public com.google.protobuf.ByteString getNetworkBytes() { 113 java.lang.Object ref = network_; 114 if (ref instanceof java.lang.String) { 115 com.google.protobuf.ByteString b = 116 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 117 network_ = b; 118 return b; 119 } else { 120 return (com.google.protobuf.ByteString) ref; 121 } 122 } 123 124 public static final int PROJECT_FIELD_NUMBER = 227560217; 125 126 @SuppressWarnings("serial") 127 private volatile java.lang.Object project_ = ""; 128 /** 129 * 130 * 131 * <pre> 132 * Project ID for this request. 133 * </pre> 134 * 135 * <code> 136 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 137 * </code> 138 * 139 * @return The project. 140 */ 141 @java.lang.Override getProject()142 public java.lang.String getProject() { 143 java.lang.Object ref = project_; 144 if (ref instanceof java.lang.String) { 145 return (java.lang.String) ref; 146 } else { 147 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 148 java.lang.String s = bs.toStringUtf8(); 149 project_ = s; 150 return s; 151 } 152 } 153 /** 154 * 155 * 156 * <pre> 157 * Project ID for this request. 158 * </pre> 159 * 160 * <code> 161 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 162 * </code> 163 * 164 * @return The bytes for project. 165 */ 166 @java.lang.Override getProjectBytes()167 public com.google.protobuf.ByteString getProjectBytes() { 168 java.lang.Object ref = project_; 169 if (ref instanceof java.lang.String) { 170 com.google.protobuf.ByteString b = 171 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 172 project_ = b; 173 return b; 174 } else { 175 return (com.google.protobuf.ByteString) ref; 176 } 177 } 178 179 public static final int REQUEST_ID_FIELD_NUMBER = 37109963; 180 181 @SuppressWarnings("serial") 182 private volatile java.lang.Object requestId_ = ""; 183 /** 184 * 185 * 186 * <pre> 187 * 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). 188 * </pre> 189 * 190 * <code>optional string request_id = 37109963;</code> 191 * 192 * @return Whether the requestId field is set. 193 */ 194 @java.lang.Override hasRequestId()195 public boolean hasRequestId() { 196 return ((bitField0_ & 0x00000001) != 0); 197 } 198 /** 199 * 200 * 201 * <pre> 202 * 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). 203 * </pre> 204 * 205 * <code>optional string request_id = 37109963;</code> 206 * 207 * @return The requestId. 208 */ 209 @java.lang.Override getRequestId()210 public java.lang.String getRequestId() { 211 java.lang.Object ref = requestId_; 212 if (ref instanceof java.lang.String) { 213 return (java.lang.String) ref; 214 } else { 215 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 216 java.lang.String s = bs.toStringUtf8(); 217 requestId_ = s; 218 return s; 219 } 220 } 221 /** 222 * 223 * 224 * <pre> 225 * 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). 226 * </pre> 227 * 228 * <code>optional string request_id = 37109963;</code> 229 * 230 * @return The bytes for requestId. 231 */ 232 @java.lang.Override getRequestIdBytes()233 public com.google.protobuf.ByteString getRequestIdBytes() { 234 java.lang.Object ref = requestId_; 235 if (ref instanceof java.lang.String) { 236 com.google.protobuf.ByteString b = 237 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 238 requestId_ = b; 239 return b; 240 } else { 241 return (com.google.protobuf.ByteString) ref; 242 } 243 } 244 245 private byte memoizedIsInitialized = -1; 246 247 @java.lang.Override isInitialized()248 public final boolean isInitialized() { 249 byte isInitialized = memoizedIsInitialized; 250 if (isInitialized == 1) return true; 251 if (isInitialized == 0) return false; 252 253 memoizedIsInitialized = 1; 254 return true; 255 } 256 257 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)258 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 259 if (((bitField0_ & 0x00000001) != 0)) { 260 com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); 261 } 262 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { 263 com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); 264 } 265 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { 266 com.google.protobuf.GeneratedMessageV3.writeString(output, 232872494, network_); 267 } 268 getUnknownFields().writeTo(output); 269 } 270 271 @java.lang.Override getSerializedSize()272 public int getSerializedSize() { 273 int size = memoizedSize; 274 if (size != -1) return size; 275 276 size = 0; 277 if (((bitField0_ & 0x00000001) != 0)) { 278 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); 279 } 280 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { 281 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); 282 } 283 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { 284 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(232872494, network_); 285 } 286 size += getUnknownFields().getSerializedSize(); 287 memoizedSize = size; 288 return size; 289 } 290 291 @java.lang.Override equals(final java.lang.Object obj)292 public boolean equals(final java.lang.Object obj) { 293 if (obj == this) { 294 return true; 295 } 296 if (!(obj instanceof com.google.cloud.compute.v1.DeleteNetworkRequest)) { 297 return super.equals(obj); 298 } 299 com.google.cloud.compute.v1.DeleteNetworkRequest other = 300 (com.google.cloud.compute.v1.DeleteNetworkRequest) obj; 301 302 if (!getNetwork().equals(other.getNetwork())) return false; 303 if (!getProject().equals(other.getProject())) return false; 304 if (hasRequestId() != other.hasRequestId()) return false; 305 if (hasRequestId()) { 306 if (!getRequestId().equals(other.getRequestId())) return false; 307 } 308 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 309 return true; 310 } 311 312 @java.lang.Override hashCode()313 public int hashCode() { 314 if (memoizedHashCode != 0) { 315 return memoizedHashCode; 316 } 317 int hash = 41; 318 hash = (19 * hash) + getDescriptor().hashCode(); 319 hash = (37 * hash) + NETWORK_FIELD_NUMBER; 320 hash = (53 * hash) + getNetwork().hashCode(); 321 hash = (37 * hash) + PROJECT_FIELD_NUMBER; 322 hash = (53 * hash) + getProject().hashCode(); 323 if (hasRequestId()) { 324 hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; 325 hash = (53 * hash) + getRequestId().hashCode(); 326 } 327 hash = (29 * hash) + getUnknownFields().hashCode(); 328 memoizedHashCode = hash; 329 return hash; 330 } 331 parseFrom(java.nio.ByteBuffer data)332 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom(java.nio.ByteBuffer data) 333 throws com.google.protobuf.InvalidProtocolBufferException { 334 return PARSER.parseFrom(data); 335 } 336 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)337 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom( 338 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 339 throws com.google.protobuf.InvalidProtocolBufferException { 340 return PARSER.parseFrom(data, extensionRegistry); 341 } 342 parseFrom( com.google.protobuf.ByteString data)343 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom( 344 com.google.protobuf.ByteString data) 345 throws com.google.protobuf.InvalidProtocolBufferException { 346 return PARSER.parseFrom(data); 347 } 348 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)349 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom( 350 com.google.protobuf.ByteString data, 351 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 352 throws com.google.protobuf.InvalidProtocolBufferException { 353 return PARSER.parseFrom(data, extensionRegistry); 354 } 355 parseFrom(byte[] data)356 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom(byte[] data) 357 throws com.google.protobuf.InvalidProtocolBufferException { 358 return PARSER.parseFrom(data); 359 } 360 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)361 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom( 362 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 363 throws com.google.protobuf.InvalidProtocolBufferException { 364 return PARSER.parseFrom(data, extensionRegistry); 365 } 366 parseFrom( java.io.InputStream input)367 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom( 368 java.io.InputStream input) throws java.io.IOException { 369 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 370 } 371 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)372 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom( 373 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 374 throws java.io.IOException { 375 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 376 PARSER, input, extensionRegistry); 377 } 378 parseDelimitedFrom( java.io.InputStream input)379 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseDelimitedFrom( 380 java.io.InputStream input) throws java.io.IOException { 381 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 382 } 383 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)384 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseDelimitedFrom( 385 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 386 throws java.io.IOException { 387 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 388 PARSER, input, extensionRegistry); 389 } 390 parseFrom( com.google.protobuf.CodedInputStream input)391 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom( 392 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 393 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 394 } 395 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)396 public static com.google.cloud.compute.v1.DeleteNetworkRequest parseFrom( 397 com.google.protobuf.CodedInputStream input, 398 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 399 throws java.io.IOException { 400 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 401 PARSER, input, extensionRegistry); 402 } 403 404 @java.lang.Override newBuilderForType()405 public Builder newBuilderForType() { 406 return newBuilder(); 407 } 408 newBuilder()409 public static Builder newBuilder() { 410 return DEFAULT_INSTANCE.toBuilder(); 411 } 412 newBuilder(com.google.cloud.compute.v1.DeleteNetworkRequest prototype)413 public static Builder newBuilder(com.google.cloud.compute.v1.DeleteNetworkRequest prototype) { 414 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 415 } 416 417 @java.lang.Override toBuilder()418 public Builder toBuilder() { 419 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 420 } 421 422 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)423 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 424 Builder builder = new Builder(parent); 425 return builder; 426 } 427 /** 428 * 429 * 430 * <pre> 431 * A request message for Networks.Delete. See the method description for details. 432 * </pre> 433 * 434 * Protobuf type {@code google.cloud.compute.v1.DeleteNetworkRequest} 435 */ 436 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 437 implements 438 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteNetworkRequest) 439 com.google.cloud.compute.v1.DeleteNetworkRequestOrBuilder { getDescriptor()440 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 441 return com.google.cloud.compute.v1.Compute 442 .internal_static_google_cloud_compute_v1_DeleteNetworkRequest_descriptor; 443 } 444 445 @java.lang.Override 446 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()447 internalGetFieldAccessorTable() { 448 return com.google.cloud.compute.v1.Compute 449 .internal_static_google_cloud_compute_v1_DeleteNetworkRequest_fieldAccessorTable 450 .ensureFieldAccessorsInitialized( 451 com.google.cloud.compute.v1.DeleteNetworkRequest.class, 452 com.google.cloud.compute.v1.DeleteNetworkRequest.Builder.class); 453 } 454 455 // Construct using com.google.cloud.compute.v1.DeleteNetworkRequest.newBuilder() Builder()456 private Builder() {} 457 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)458 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 459 super(parent); 460 } 461 462 @java.lang.Override clear()463 public Builder clear() { 464 super.clear(); 465 bitField0_ = 0; 466 network_ = ""; 467 project_ = ""; 468 requestId_ = ""; 469 return this; 470 } 471 472 @java.lang.Override getDescriptorForType()473 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 474 return com.google.cloud.compute.v1.Compute 475 .internal_static_google_cloud_compute_v1_DeleteNetworkRequest_descriptor; 476 } 477 478 @java.lang.Override getDefaultInstanceForType()479 public com.google.cloud.compute.v1.DeleteNetworkRequest getDefaultInstanceForType() { 480 return com.google.cloud.compute.v1.DeleteNetworkRequest.getDefaultInstance(); 481 } 482 483 @java.lang.Override build()484 public com.google.cloud.compute.v1.DeleteNetworkRequest build() { 485 com.google.cloud.compute.v1.DeleteNetworkRequest result = buildPartial(); 486 if (!result.isInitialized()) { 487 throw newUninitializedMessageException(result); 488 } 489 return result; 490 } 491 492 @java.lang.Override buildPartial()493 public com.google.cloud.compute.v1.DeleteNetworkRequest buildPartial() { 494 com.google.cloud.compute.v1.DeleteNetworkRequest result = 495 new com.google.cloud.compute.v1.DeleteNetworkRequest(this); 496 if (bitField0_ != 0) { 497 buildPartial0(result); 498 } 499 onBuilt(); 500 return result; 501 } 502 buildPartial0(com.google.cloud.compute.v1.DeleteNetworkRequest result)503 private void buildPartial0(com.google.cloud.compute.v1.DeleteNetworkRequest result) { 504 int from_bitField0_ = bitField0_; 505 if (((from_bitField0_ & 0x00000001) != 0)) { 506 result.network_ = network_; 507 } 508 if (((from_bitField0_ & 0x00000002) != 0)) { 509 result.project_ = project_; 510 } 511 int to_bitField0_ = 0; 512 if (((from_bitField0_ & 0x00000004) != 0)) { 513 result.requestId_ = requestId_; 514 to_bitField0_ |= 0x00000001; 515 } 516 result.bitField0_ |= to_bitField0_; 517 } 518 519 @java.lang.Override clone()520 public Builder clone() { 521 return super.clone(); 522 } 523 524 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)525 public Builder setField( 526 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 527 return super.setField(field, value); 528 } 529 530 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)531 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 532 return super.clearField(field); 533 } 534 535 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)536 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 537 return super.clearOneof(oneof); 538 } 539 540 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)541 public Builder setRepeatedField( 542 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 543 return super.setRepeatedField(field, index, value); 544 } 545 546 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)547 public Builder addRepeatedField( 548 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 549 return super.addRepeatedField(field, value); 550 } 551 552 @java.lang.Override mergeFrom(com.google.protobuf.Message other)553 public Builder mergeFrom(com.google.protobuf.Message other) { 554 if (other instanceof com.google.cloud.compute.v1.DeleteNetworkRequest) { 555 return mergeFrom((com.google.cloud.compute.v1.DeleteNetworkRequest) other); 556 } else { 557 super.mergeFrom(other); 558 return this; 559 } 560 } 561 mergeFrom(com.google.cloud.compute.v1.DeleteNetworkRequest other)562 public Builder mergeFrom(com.google.cloud.compute.v1.DeleteNetworkRequest other) { 563 if (other == com.google.cloud.compute.v1.DeleteNetworkRequest.getDefaultInstance()) 564 return this; 565 if (!other.getNetwork().isEmpty()) { 566 network_ = other.network_; 567 bitField0_ |= 0x00000001; 568 onChanged(); 569 } 570 if (!other.getProject().isEmpty()) { 571 project_ = other.project_; 572 bitField0_ |= 0x00000002; 573 onChanged(); 574 } 575 if (other.hasRequestId()) { 576 requestId_ = other.requestId_; 577 bitField0_ |= 0x00000004; 578 onChanged(); 579 } 580 this.mergeUnknownFields(other.getUnknownFields()); 581 onChanged(); 582 return this; 583 } 584 585 @java.lang.Override isInitialized()586 public final boolean isInitialized() { 587 return true; 588 } 589 590 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)591 public Builder mergeFrom( 592 com.google.protobuf.CodedInputStream input, 593 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 594 throws java.io.IOException { 595 if (extensionRegistry == null) { 596 throw new java.lang.NullPointerException(); 597 } 598 try { 599 boolean done = false; 600 while (!done) { 601 int tag = input.readTag(); 602 switch (tag) { 603 case 0: 604 done = true; 605 break; 606 case 296879706: 607 { 608 requestId_ = input.readStringRequireUtf8(); 609 bitField0_ |= 0x00000004; 610 break; 611 } // case 296879706 612 case 1820481738: 613 { 614 project_ = input.readStringRequireUtf8(); 615 bitField0_ |= 0x00000002; 616 break; 617 } // case 1820481738 618 case 1862979954: 619 { 620 network_ = input.readStringRequireUtf8(); 621 bitField0_ |= 0x00000001; 622 break; 623 } // case 1862979954 624 default: 625 { 626 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 627 done = true; // was an endgroup tag 628 } 629 break; 630 } // default: 631 } // switch (tag) 632 } // while (!done) 633 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 634 throw e.unwrapIOException(); 635 } finally { 636 onChanged(); 637 } // finally 638 return this; 639 } 640 641 private int bitField0_; 642 643 private java.lang.Object network_ = ""; 644 /** 645 * 646 * 647 * <pre> 648 * Name of the network to delete. 649 * </pre> 650 * 651 * <code>string network = 232872494 [(.google.api.field_behavior) = REQUIRED];</code> 652 * 653 * @return The network. 654 */ getNetwork()655 public java.lang.String getNetwork() { 656 java.lang.Object ref = network_; 657 if (!(ref instanceof java.lang.String)) { 658 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 659 java.lang.String s = bs.toStringUtf8(); 660 network_ = s; 661 return s; 662 } else { 663 return (java.lang.String) ref; 664 } 665 } 666 /** 667 * 668 * 669 * <pre> 670 * Name of the network to delete. 671 * </pre> 672 * 673 * <code>string network = 232872494 [(.google.api.field_behavior) = REQUIRED];</code> 674 * 675 * @return The bytes for network. 676 */ getNetworkBytes()677 public com.google.protobuf.ByteString getNetworkBytes() { 678 java.lang.Object ref = network_; 679 if (ref instanceof String) { 680 com.google.protobuf.ByteString b = 681 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 682 network_ = b; 683 return b; 684 } else { 685 return (com.google.protobuf.ByteString) ref; 686 } 687 } 688 /** 689 * 690 * 691 * <pre> 692 * Name of the network to delete. 693 * </pre> 694 * 695 * <code>string network = 232872494 [(.google.api.field_behavior) = REQUIRED];</code> 696 * 697 * @param value The network to set. 698 * @return This builder for chaining. 699 */ setNetwork(java.lang.String value)700 public Builder setNetwork(java.lang.String value) { 701 if (value == null) { 702 throw new NullPointerException(); 703 } 704 network_ = value; 705 bitField0_ |= 0x00000001; 706 onChanged(); 707 return this; 708 } 709 /** 710 * 711 * 712 * <pre> 713 * Name of the network to delete. 714 * </pre> 715 * 716 * <code>string network = 232872494 [(.google.api.field_behavior) = REQUIRED];</code> 717 * 718 * @return This builder for chaining. 719 */ clearNetwork()720 public Builder clearNetwork() { 721 network_ = getDefaultInstance().getNetwork(); 722 bitField0_ = (bitField0_ & ~0x00000001); 723 onChanged(); 724 return this; 725 } 726 /** 727 * 728 * 729 * <pre> 730 * Name of the network to delete. 731 * </pre> 732 * 733 * <code>string network = 232872494 [(.google.api.field_behavior) = REQUIRED];</code> 734 * 735 * @param value The bytes for network to set. 736 * @return This builder for chaining. 737 */ setNetworkBytes(com.google.protobuf.ByteString value)738 public Builder setNetworkBytes(com.google.protobuf.ByteString value) { 739 if (value == null) { 740 throw new NullPointerException(); 741 } 742 checkByteStringIsUtf8(value); 743 network_ = value; 744 bitField0_ |= 0x00000001; 745 onChanged(); 746 return this; 747 } 748 749 private java.lang.Object project_ = ""; 750 /** 751 * 752 * 753 * <pre> 754 * Project ID for this request. 755 * </pre> 756 * 757 * <code> 758 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 759 * </code> 760 * 761 * @return The project. 762 */ getProject()763 public java.lang.String getProject() { 764 java.lang.Object ref = project_; 765 if (!(ref instanceof java.lang.String)) { 766 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 767 java.lang.String s = bs.toStringUtf8(); 768 project_ = s; 769 return s; 770 } else { 771 return (java.lang.String) ref; 772 } 773 } 774 /** 775 * 776 * 777 * <pre> 778 * Project ID for this request. 779 * </pre> 780 * 781 * <code> 782 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 783 * </code> 784 * 785 * @return The bytes for project. 786 */ getProjectBytes()787 public com.google.protobuf.ByteString getProjectBytes() { 788 java.lang.Object ref = project_; 789 if (ref instanceof String) { 790 com.google.protobuf.ByteString b = 791 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 792 project_ = b; 793 return b; 794 } else { 795 return (com.google.protobuf.ByteString) ref; 796 } 797 } 798 /** 799 * 800 * 801 * <pre> 802 * Project ID for this request. 803 * </pre> 804 * 805 * <code> 806 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 807 * </code> 808 * 809 * @param value The project to set. 810 * @return This builder for chaining. 811 */ setProject(java.lang.String value)812 public Builder setProject(java.lang.String value) { 813 if (value == null) { 814 throw new NullPointerException(); 815 } 816 project_ = value; 817 bitField0_ |= 0x00000002; 818 onChanged(); 819 return this; 820 } 821 /** 822 * 823 * 824 * <pre> 825 * Project ID for this request. 826 * </pre> 827 * 828 * <code> 829 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 830 * </code> 831 * 832 * @return This builder for chaining. 833 */ clearProject()834 public Builder clearProject() { 835 project_ = getDefaultInstance().getProject(); 836 bitField0_ = (bitField0_ & ~0x00000002); 837 onChanged(); 838 return this; 839 } 840 /** 841 * 842 * 843 * <pre> 844 * Project ID for this request. 845 * </pre> 846 * 847 * <code> 848 * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; 849 * </code> 850 * 851 * @param value The bytes for project to set. 852 * @return This builder for chaining. 853 */ setProjectBytes(com.google.protobuf.ByteString value)854 public Builder setProjectBytes(com.google.protobuf.ByteString value) { 855 if (value == null) { 856 throw new NullPointerException(); 857 } 858 checkByteStringIsUtf8(value); 859 project_ = value; 860 bitField0_ |= 0x00000002; 861 onChanged(); 862 return this; 863 } 864 865 private java.lang.Object requestId_ = ""; 866 /** 867 * 868 * 869 * <pre> 870 * 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). 871 * </pre> 872 * 873 * <code>optional string request_id = 37109963;</code> 874 * 875 * @return Whether the requestId field is set. 876 */ hasRequestId()877 public boolean hasRequestId() { 878 return ((bitField0_ & 0x00000004) != 0); 879 } 880 /** 881 * 882 * 883 * <pre> 884 * 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). 885 * </pre> 886 * 887 * <code>optional string request_id = 37109963;</code> 888 * 889 * @return The requestId. 890 */ getRequestId()891 public java.lang.String getRequestId() { 892 java.lang.Object ref = requestId_; 893 if (!(ref instanceof java.lang.String)) { 894 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 895 java.lang.String s = bs.toStringUtf8(); 896 requestId_ = s; 897 return s; 898 } else { 899 return (java.lang.String) ref; 900 } 901 } 902 /** 903 * 904 * 905 * <pre> 906 * 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). 907 * </pre> 908 * 909 * <code>optional string request_id = 37109963;</code> 910 * 911 * @return The bytes for requestId. 912 */ getRequestIdBytes()913 public com.google.protobuf.ByteString getRequestIdBytes() { 914 java.lang.Object ref = requestId_; 915 if (ref instanceof String) { 916 com.google.protobuf.ByteString b = 917 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 918 requestId_ = b; 919 return b; 920 } else { 921 return (com.google.protobuf.ByteString) ref; 922 } 923 } 924 /** 925 * 926 * 927 * <pre> 928 * 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). 929 * </pre> 930 * 931 * <code>optional string request_id = 37109963;</code> 932 * 933 * @param value The requestId to set. 934 * @return This builder for chaining. 935 */ setRequestId(java.lang.String value)936 public Builder setRequestId(java.lang.String value) { 937 if (value == null) { 938 throw new NullPointerException(); 939 } 940 requestId_ = value; 941 bitField0_ |= 0x00000004; 942 onChanged(); 943 return this; 944 } 945 /** 946 * 947 * 948 * <pre> 949 * 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). 950 * </pre> 951 * 952 * <code>optional string request_id = 37109963;</code> 953 * 954 * @return This builder for chaining. 955 */ clearRequestId()956 public Builder clearRequestId() { 957 requestId_ = getDefaultInstance().getRequestId(); 958 bitField0_ = (bitField0_ & ~0x00000004); 959 onChanged(); 960 return this; 961 } 962 /** 963 * 964 * 965 * <pre> 966 * 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). 967 * </pre> 968 * 969 * <code>optional string request_id = 37109963;</code> 970 * 971 * @param value The bytes for requestId to set. 972 * @return This builder for chaining. 973 */ setRequestIdBytes(com.google.protobuf.ByteString value)974 public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { 975 if (value == null) { 976 throw new NullPointerException(); 977 } 978 checkByteStringIsUtf8(value); 979 requestId_ = value; 980 bitField0_ |= 0x00000004; 981 onChanged(); 982 return this; 983 } 984 985 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)986 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 987 return super.setUnknownFields(unknownFields); 988 } 989 990 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)991 public final Builder mergeUnknownFields( 992 final com.google.protobuf.UnknownFieldSet unknownFields) { 993 return super.mergeUnknownFields(unknownFields); 994 } 995 996 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteNetworkRequest) 997 } 998 999 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteNetworkRequest) 1000 private static final com.google.cloud.compute.v1.DeleteNetworkRequest DEFAULT_INSTANCE; 1001 1002 static { 1003 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeleteNetworkRequest(); 1004 } 1005 getDefaultInstance()1006 public static com.google.cloud.compute.v1.DeleteNetworkRequest getDefaultInstance() { 1007 return DEFAULT_INSTANCE; 1008 } 1009 1010 private static final com.google.protobuf.Parser<DeleteNetworkRequest> PARSER = 1011 new com.google.protobuf.AbstractParser<DeleteNetworkRequest>() { 1012 @java.lang.Override 1013 public DeleteNetworkRequest parsePartialFrom( 1014 com.google.protobuf.CodedInputStream input, 1015 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1016 throws com.google.protobuf.InvalidProtocolBufferException { 1017 Builder builder = newBuilder(); 1018 try { 1019 builder.mergeFrom(input, extensionRegistry); 1020 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1021 throw e.setUnfinishedMessage(builder.buildPartial()); 1022 } catch (com.google.protobuf.UninitializedMessageException e) { 1023 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1024 } catch (java.io.IOException e) { 1025 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1026 .setUnfinishedMessage(builder.buildPartial()); 1027 } 1028 return builder.buildPartial(); 1029 } 1030 }; 1031 parser()1032 public static com.google.protobuf.Parser<DeleteNetworkRequest> parser() { 1033 return PARSER; 1034 } 1035 1036 @java.lang.Override getParserForType()1037 public com.google.protobuf.Parser<DeleteNetworkRequest> getParserForType() { 1038 return PARSER; 1039 } 1040 1041 @java.lang.Override getDefaultInstanceForType()1042 public com.google.cloud.compute.v1.DeleteNetworkRequest getDefaultInstanceForType() { 1043 return DEFAULT_INSTANCE; 1044 } 1045 } 1046