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 InterconnectLocations.Get. See the method description for details. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.GetInterconnectLocationRequest} 29 */ 30 public final class GetInterconnectLocationRequest extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetInterconnectLocationRequest) 33 GetInterconnectLocationRequestOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use GetInterconnectLocationRequest.newBuilder() to construct. GetInterconnectLocationRequest( com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private GetInterconnectLocationRequest( 37 com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 GetInterconnectLocationRequest()41 private GetInterconnectLocationRequest() { 42 interconnectLocation_ = ""; 43 project_ = ""; 44 } 45 46 @java.lang.Override 47 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)48 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 49 return new GetInterconnectLocationRequest(); 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_GetInterconnectLocationRequest_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_GetInterconnectLocationRequest_fieldAccessorTable 67 .ensureFieldAccessorsInitialized( 68 com.google.cloud.compute.v1.GetInterconnectLocationRequest.class, 69 com.google.cloud.compute.v1.GetInterconnectLocationRequest.Builder.class); 70 } 71 72 public static final int INTERCONNECT_LOCATION_FIELD_NUMBER = 492235846; 73 74 @SuppressWarnings("serial") 75 private volatile java.lang.Object interconnectLocation_ = ""; 76 /** 77 * 78 * 79 * <pre> 80 * Name of the interconnect location to return. 81 * </pre> 82 * 83 * <code>string interconnect_location = 492235846 [(.google.api.field_behavior) = REQUIRED]; 84 * </code> 85 * 86 * @return The interconnectLocation. 87 */ 88 @java.lang.Override getInterconnectLocation()89 public java.lang.String getInterconnectLocation() { 90 java.lang.Object ref = interconnectLocation_; 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 interconnectLocation_ = s; 97 return s; 98 } 99 } 100 /** 101 * 102 * 103 * <pre> 104 * Name of the interconnect location to return. 105 * </pre> 106 * 107 * <code>string interconnect_location = 492235846 [(.google.api.field_behavior) = REQUIRED]; 108 * </code> 109 * 110 * @return The bytes for interconnectLocation. 111 */ 112 @java.lang.Override getInterconnectLocationBytes()113 public com.google.protobuf.ByteString getInterconnectLocationBytes() { 114 java.lang.Object ref = interconnectLocation_; 115 if (ref instanceof java.lang.String) { 116 com.google.protobuf.ByteString b = 117 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 118 interconnectLocation_ = 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>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 137 * 138 * @return The project. 139 */ 140 @java.lang.Override getProject()141 public java.lang.String getProject() { 142 java.lang.Object ref = project_; 143 if (ref instanceof java.lang.String) { 144 return (java.lang.String) ref; 145 } else { 146 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 147 java.lang.String s = bs.toStringUtf8(); 148 project_ = s; 149 return s; 150 } 151 } 152 /** 153 * 154 * 155 * <pre> 156 * Project ID for this request. 157 * </pre> 158 * 159 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 160 * 161 * @return The bytes for project. 162 */ 163 @java.lang.Override getProjectBytes()164 public com.google.protobuf.ByteString getProjectBytes() { 165 java.lang.Object ref = project_; 166 if (ref instanceof java.lang.String) { 167 com.google.protobuf.ByteString b = 168 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 169 project_ = b; 170 return b; 171 } else { 172 return (com.google.protobuf.ByteString) ref; 173 } 174 } 175 176 private byte memoizedIsInitialized = -1; 177 178 @java.lang.Override isInitialized()179 public final boolean isInitialized() { 180 byte isInitialized = memoizedIsInitialized; 181 if (isInitialized == 1) return true; 182 if (isInitialized == 0) return false; 183 184 memoizedIsInitialized = 1; 185 return true; 186 } 187 188 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)189 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 190 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { 191 com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); 192 } 193 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interconnectLocation_)) { 194 com.google.protobuf.GeneratedMessageV3.writeString(output, 492235846, interconnectLocation_); 195 } 196 getUnknownFields().writeTo(output); 197 } 198 199 @java.lang.Override getSerializedSize()200 public int getSerializedSize() { 201 int size = memoizedSize; 202 if (size != -1) return size; 203 204 size = 0; 205 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { 206 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); 207 } 208 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interconnectLocation_)) { 209 size += 210 com.google.protobuf.GeneratedMessageV3.computeStringSize( 211 492235846, interconnectLocation_); 212 } 213 size += getUnknownFields().getSerializedSize(); 214 memoizedSize = size; 215 return size; 216 } 217 218 @java.lang.Override equals(final java.lang.Object obj)219 public boolean equals(final java.lang.Object obj) { 220 if (obj == this) { 221 return true; 222 } 223 if (!(obj instanceof com.google.cloud.compute.v1.GetInterconnectLocationRequest)) { 224 return super.equals(obj); 225 } 226 com.google.cloud.compute.v1.GetInterconnectLocationRequest other = 227 (com.google.cloud.compute.v1.GetInterconnectLocationRequest) obj; 228 229 if (!getInterconnectLocation().equals(other.getInterconnectLocation())) return false; 230 if (!getProject().equals(other.getProject())) return false; 231 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 232 return true; 233 } 234 235 @java.lang.Override hashCode()236 public int hashCode() { 237 if (memoizedHashCode != 0) { 238 return memoizedHashCode; 239 } 240 int hash = 41; 241 hash = (19 * hash) + getDescriptor().hashCode(); 242 hash = (37 * hash) + INTERCONNECT_LOCATION_FIELD_NUMBER; 243 hash = (53 * hash) + getInterconnectLocation().hashCode(); 244 hash = (37 * hash) + PROJECT_FIELD_NUMBER; 245 hash = (53 * hash) + getProject().hashCode(); 246 hash = (29 * hash) + getUnknownFields().hashCode(); 247 memoizedHashCode = hash; 248 return hash; 249 } 250 parseFrom( java.nio.ByteBuffer data)251 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom( 252 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 253 return PARSER.parseFrom(data); 254 } 255 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)256 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom( 257 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 258 throws com.google.protobuf.InvalidProtocolBufferException { 259 return PARSER.parseFrom(data, extensionRegistry); 260 } 261 parseFrom( com.google.protobuf.ByteString data)262 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom( 263 com.google.protobuf.ByteString data) 264 throws com.google.protobuf.InvalidProtocolBufferException { 265 return PARSER.parseFrom(data); 266 } 267 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)268 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom( 269 com.google.protobuf.ByteString data, 270 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 271 throws com.google.protobuf.InvalidProtocolBufferException { 272 return PARSER.parseFrom(data, extensionRegistry); 273 } 274 parseFrom(byte[] data)275 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom(byte[] data) 276 throws com.google.protobuf.InvalidProtocolBufferException { 277 return PARSER.parseFrom(data); 278 } 279 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)280 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom( 281 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 282 throws com.google.protobuf.InvalidProtocolBufferException { 283 return PARSER.parseFrom(data, extensionRegistry); 284 } 285 parseFrom( java.io.InputStream input)286 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom( 287 java.io.InputStream input) throws java.io.IOException { 288 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 289 } 290 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)291 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom( 292 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 293 throws java.io.IOException { 294 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 295 PARSER, input, extensionRegistry); 296 } 297 parseDelimitedFrom( java.io.InputStream input)298 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseDelimitedFrom( 299 java.io.InputStream input) throws java.io.IOException { 300 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 301 } 302 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)303 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseDelimitedFrom( 304 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 305 throws java.io.IOException { 306 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 307 PARSER, input, extensionRegistry); 308 } 309 parseFrom( com.google.protobuf.CodedInputStream input)310 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom( 311 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 312 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 313 } 314 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)315 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest parseFrom( 316 com.google.protobuf.CodedInputStream input, 317 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 318 throws java.io.IOException { 319 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 320 PARSER, input, extensionRegistry); 321 } 322 323 @java.lang.Override newBuilderForType()324 public Builder newBuilderForType() { 325 return newBuilder(); 326 } 327 newBuilder()328 public static Builder newBuilder() { 329 return DEFAULT_INSTANCE.toBuilder(); 330 } 331 newBuilder( com.google.cloud.compute.v1.GetInterconnectLocationRequest prototype)332 public static Builder newBuilder( 333 com.google.cloud.compute.v1.GetInterconnectLocationRequest prototype) { 334 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 335 } 336 337 @java.lang.Override toBuilder()338 public Builder toBuilder() { 339 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 340 } 341 342 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)343 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 344 Builder builder = new Builder(parent); 345 return builder; 346 } 347 /** 348 * 349 * 350 * <pre> 351 * A request message for InterconnectLocations.Get. See the method description for details. 352 * </pre> 353 * 354 * Protobuf type {@code google.cloud.compute.v1.GetInterconnectLocationRequest} 355 */ 356 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 357 implements 358 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetInterconnectLocationRequest) 359 com.google.cloud.compute.v1.GetInterconnectLocationRequestOrBuilder { getDescriptor()360 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 361 return com.google.cloud.compute.v1.Compute 362 .internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_descriptor; 363 } 364 365 @java.lang.Override 366 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()367 internalGetFieldAccessorTable() { 368 return com.google.cloud.compute.v1.Compute 369 .internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_fieldAccessorTable 370 .ensureFieldAccessorsInitialized( 371 com.google.cloud.compute.v1.GetInterconnectLocationRequest.class, 372 com.google.cloud.compute.v1.GetInterconnectLocationRequest.Builder.class); 373 } 374 375 // Construct using com.google.cloud.compute.v1.GetInterconnectLocationRequest.newBuilder() Builder()376 private Builder() {} 377 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)378 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 379 super(parent); 380 } 381 382 @java.lang.Override clear()383 public Builder clear() { 384 super.clear(); 385 bitField0_ = 0; 386 interconnectLocation_ = ""; 387 project_ = ""; 388 return this; 389 } 390 391 @java.lang.Override getDescriptorForType()392 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 393 return com.google.cloud.compute.v1.Compute 394 .internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_descriptor; 395 } 396 397 @java.lang.Override getDefaultInstanceForType()398 public com.google.cloud.compute.v1.GetInterconnectLocationRequest getDefaultInstanceForType() { 399 return com.google.cloud.compute.v1.GetInterconnectLocationRequest.getDefaultInstance(); 400 } 401 402 @java.lang.Override build()403 public com.google.cloud.compute.v1.GetInterconnectLocationRequest build() { 404 com.google.cloud.compute.v1.GetInterconnectLocationRequest result = buildPartial(); 405 if (!result.isInitialized()) { 406 throw newUninitializedMessageException(result); 407 } 408 return result; 409 } 410 411 @java.lang.Override buildPartial()412 public com.google.cloud.compute.v1.GetInterconnectLocationRequest buildPartial() { 413 com.google.cloud.compute.v1.GetInterconnectLocationRequest result = 414 new com.google.cloud.compute.v1.GetInterconnectLocationRequest(this); 415 if (bitField0_ != 0) { 416 buildPartial0(result); 417 } 418 onBuilt(); 419 return result; 420 } 421 buildPartial0(com.google.cloud.compute.v1.GetInterconnectLocationRequest result)422 private void buildPartial0(com.google.cloud.compute.v1.GetInterconnectLocationRequest result) { 423 int from_bitField0_ = bitField0_; 424 if (((from_bitField0_ & 0x00000001) != 0)) { 425 result.interconnectLocation_ = interconnectLocation_; 426 } 427 if (((from_bitField0_ & 0x00000002) != 0)) { 428 result.project_ = project_; 429 } 430 } 431 432 @java.lang.Override clone()433 public Builder clone() { 434 return super.clone(); 435 } 436 437 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)438 public Builder setField( 439 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 440 return super.setField(field, value); 441 } 442 443 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)444 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 445 return super.clearField(field); 446 } 447 448 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)449 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 450 return super.clearOneof(oneof); 451 } 452 453 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)454 public Builder setRepeatedField( 455 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 456 return super.setRepeatedField(field, index, value); 457 } 458 459 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)460 public Builder addRepeatedField( 461 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 462 return super.addRepeatedField(field, value); 463 } 464 465 @java.lang.Override mergeFrom(com.google.protobuf.Message other)466 public Builder mergeFrom(com.google.protobuf.Message other) { 467 if (other instanceof com.google.cloud.compute.v1.GetInterconnectLocationRequest) { 468 return mergeFrom((com.google.cloud.compute.v1.GetInterconnectLocationRequest) other); 469 } else { 470 super.mergeFrom(other); 471 return this; 472 } 473 } 474 mergeFrom(com.google.cloud.compute.v1.GetInterconnectLocationRequest other)475 public Builder mergeFrom(com.google.cloud.compute.v1.GetInterconnectLocationRequest other) { 476 if (other == com.google.cloud.compute.v1.GetInterconnectLocationRequest.getDefaultInstance()) 477 return this; 478 if (!other.getInterconnectLocation().isEmpty()) { 479 interconnectLocation_ = other.interconnectLocation_; 480 bitField0_ |= 0x00000001; 481 onChanged(); 482 } 483 if (!other.getProject().isEmpty()) { 484 project_ = other.project_; 485 bitField0_ |= 0x00000002; 486 onChanged(); 487 } 488 this.mergeUnknownFields(other.getUnknownFields()); 489 onChanged(); 490 return this; 491 } 492 493 @java.lang.Override isInitialized()494 public final boolean isInitialized() { 495 return true; 496 } 497 498 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)499 public Builder mergeFrom( 500 com.google.protobuf.CodedInputStream input, 501 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 502 throws java.io.IOException { 503 if (extensionRegistry == null) { 504 throw new java.lang.NullPointerException(); 505 } 506 try { 507 boolean done = false; 508 while (!done) { 509 int tag = input.readTag(); 510 switch (tag) { 511 case 0: 512 done = true; 513 break; 514 case 1820481738: 515 { 516 project_ = input.readStringRequireUtf8(); 517 bitField0_ |= 0x00000002; 518 break; 519 } // case 1820481738 520 case -357080526: 521 { 522 interconnectLocation_ = input.readStringRequireUtf8(); 523 bitField0_ |= 0x00000001; 524 break; 525 } // case -357080526 526 default: 527 { 528 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 529 done = true; // was an endgroup tag 530 } 531 break; 532 } // default: 533 } // switch (tag) 534 } // while (!done) 535 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 536 throw e.unwrapIOException(); 537 } finally { 538 onChanged(); 539 } // finally 540 return this; 541 } 542 543 private int bitField0_; 544 545 private java.lang.Object interconnectLocation_ = ""; 546 /** 547 * 548 * 549 * <pre> 550 * Name of the interconnect location to return. 551 * </pre> 552 * 553 * <code>string interconnect_location = 492235846 [(.google.api.field_behavior) = REQUIRED]; 554 * </code> 555 * 556 * @return The interconnectLocation. 557 */ getInterconnectLocation()558 public java.lang.String getInterconnectLocation() { 559 java.lang.Object ref = interconnectLocation_; 560 if (!(ref instanceof java.lang.String)) { 561 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 562 java.lang.String s = bs.toStringUtf8(); 563 interconnectLocation_ = s; 564 return s; 565 } else { 566 return (java.lang.String) ref; 567 } 568 } 569 /** 570 * 571 * 572 * <pre> 573 * Name of the interconnect location to return. 574 * </pre> 575 * 576 * <code>string interconnect_location = 492235846 [(.google.api.field_behavior) = REQUIRED]; 577 * </code> 578 * 579 * @return The bytes for interconnectLocation. 580 */ getInterconnectLocationBytes()581 public com.google.protobuf.ByteString getInterconnectLocationBytes() { 582 java.lang.Object ref = interconnectLocation_; 583 if (ref instanceof String) { 584 com.google.protobuf.ByteString b = 585 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 586 interconnectLocation_ = b; 587 return b; 588 } else { 589 return (com.google.protobuf.ByteString) ref; 590 } 591 } 592 /** 593 * 594 * 595 * <pre> 596 * Name of the interconnect location to return. 597 * </pre> 598 * 599 * <code>string interconnect_location = 492235846 [(.google.api.field_behavior) = REQUIRED]; 600 * </code> 601 * 602 * @param value The interconnectLocation to set. 603 * @return This builder for chaining. 604 */ setInterconnectLocation(java.lang.String value)605 public Builder setInterconnectLocation(java.lang.String value) { 606 if (value == null) { 607 throw new NullPointerException(); 608 } 609 interconnectLocation_ = value; 610 bitField0_ |= 0x00000001; 611 onChanged(); 612 return this; 613 } 614 /** 615 * 616 * 617 * <pre> 618 * Name of the interconnect location to return. 619 * </pre> 620 * 621 * <code>string interconnect_location = 492235846 [(.google.api.field_behavior) = REQUIRED]; 622 * </code> 623 * 624 * @return This builder for chaining. 625 */ clearInterconnectLocation()626 public Builder clearInterconnectLocation() { 627 interconnectLocation_ = getDefaultInstance().getInterconnectLocation(); 628 bitField0_ = (bitField0_ & ~0x00000001); 629 onChanged(); 630 return this; 631 } 632 /** 633 * 634 * 635 * <pre> 636 * Name of the interconnect location to return. 637 * </pre> 638 * 639 * <code>string interconnect_location = 492235846 [(.google.api.field_behavior) = REQUIRED]; 640 * </code> 641 * 642 * @param value The bytes for interconnectLocation to set. 643 * @return This builder for chaining. 644 */ setInterconnectLocationBytes(com.google.protobuf.ByteString value)645 public Builder setInterconnectLocationBytes(com.google.protobuf.ByteString value) { 646 if (value == null) { 647 throw new NullPointerException(); 648 } 649 checkByteStringIsUtf8(value); 650 interconnectLocation_ = value; 651 bitField0_ |= 0x00000001; 652 onChanged(); 653 return this; 654 } 655 656 private java.lang.Object project_ = ""; 657 /** 658 * 659 * 660 * <pre> 661 * Project ID for this request. 662 * </pre> 663 * 664 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 665 * 666 * @return The project. 667 */ getProject()668 public java.lang.String getProject() { 669 java.lang.Object ref = project_; 670 if (!(ref instanceof java.lang.String)) { 671 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 672 java.lang.String s = bs.toStringUtf8(); 673 project_ = s; 674 return s; 675 } else { 676 return (java.lang.String) ref; 677 } 678 } 679 /** 680 * 681 * 682 * <pre> 683 * Project ID for this request. 684 * </pre> 685 * 686 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 687 * 688 * @return The bytes for project. 689 */ getProjectBytes()690 public com.google.protobuf.ByteString getProjectBytes() { 691 java.lang.Object ref = project_; 692 if (ref instanceof String) { 693 com.google.protobuf.ByteString b = 694 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 695 project_ = b; 696 return b; 697 } else { 698 return (com.google.protobuf.ByteString) ref; 699 } 700 } 701 /** 702 * 703 * 704 * <pre> 705 * Project ID for this request. 706 * </pre> 707 * 708 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 709 * 710 * @param value The project to set. 711 * @return This builder for chaining. 712 */ setProject(java.lang.String value)713 public Builder setProject(java.lang.String value) { 714 if (value == null) { 715 throw new NullPointerException(); 716 } 717 project_ = value; 718 bitField0_ |= 0x00000002; 719 onChanged(); 720 return this; 721 } 722 /** 723 * 724 * 725 * <pre> 726 * Project ID for this request. 727 * </pre> 728 * 729 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 730 * 731 * @return This builder for chaining. 732 */ clearProject()733 public Builder clearProject() { 734 project_ = getDefaultInstance().getProject(); 735 bitField0_ = (bitField0_ & ~0x00000002); 736 onChanged(); 737 return this; 738 } 739 /** 740 * 741 * 742 * <pre> 743 * Project ID for this request. 744 * </pre> 745 * 746 * <code>string project = 227560217 [(.google.api.field_behavior) = REQUIRED];</code> 747 * 748 * @param value The bytes for project to set. 749 * @return This builder for chaining. 750 */ setProjectBytes(com.google.protobuf.ByteString value)751 public Builder setProjectBytes(com.google.protobuf.ByteString value) { 752 if (value == null) { 753 throw new NullPointerException(); 754 } 755 checkByteStringIsUtf8(value); 756 project_ = value; 757 bitField0_ |= 0x00000002; 758 onChanged(); 759 return this; 760 } 761 762 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)763 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 764 return super.setUnknownFields(unknownFields); 765 } 766 767 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)768 public final Builder mergeUnknownFields( 769 final com.google.protobuf.UnknownFieldSet unknownFields) { 770 return super.mergeUnknownFields(unknownFields); 771 } 772 773 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetInterconnectLocationRequest) 774 } 775 776 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetInterconnectLocationRequest) 777 private static final com.google.cloud.compute.v1.GetInterconnectLocationRequest DEFAULT_INSTANCE; 778 779 static { 780 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetInterconnectLocationRequest(); 781 } 782 getDefaultInstance()783 public static com.google.cloud.compute.v1.GetInterconnectLocationRequest getDefaultInstance() { 784 return DEFAULT_INSTANCE; 785 } 786 787 private static final com.google.protobuf.Parser<GetInterconnectLocationRequest> PARSER = 788 new com.google.protobuf.AbstractParser<GetInterconnectLocationRequest>() { 789 @java.lang.Override 790 public GetInterconnectLocationRequest parsePartialFrom( 791 com.google.protobuf.CodedInputStream input, 792 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 793 throws com.google.protobuf.InvalidProtocolBufferException { 794 Builder builder = newBuilder(); 795 try { 796 builder.mergeFrom(input, extensionRegistry); 797 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 798 throw e.setUnfinishedMessage(builder.buildPartial()); 799 } catch (com.google.protobuf.UninitializedMessageException e) { 800 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 801 } catch (java.io.IOException e) { 802 throw new com.google.protobuf.InvalidProtocolBufferException(e) 803 .setUnfinishedMessage(builder.buildPartial()); 804 } 805 return builder.buildPartial(); 806 } 807 }; 808 parser()809 public static com.google.protobuf.Parser<GetInterconnectLocationRequest> parser() { 810 return PARSER; 811 } 812 813 @java.lang.Override getParserForType()814 public com.google.protobuf.Parser<GetInterconnectLocationRequest> getParserForType() { 815 return PARSER; 816 } 817 818 @java.lang.Override getDefaultInstanceForType()819 public com.google.cloud.compute.v1.GetInterconnectLocationRequest getDefaultInstanceForType() { 820 return DEFAULT_INSTANCE; 821 } 822 } 823