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 * Represents a Target gRPC Proxy resource. A target gRPC proxy is a component of load balancers intended for load balancing gRPC traffic. Only global forwarding rules with load balancing scheme INTERNAL_SELF_MANAGED can reference a target gRPC proxy. The target gRPC Proxy references a URL map that specifies how traffic is routed to gRPC backend services. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.TargetGrpcProxy} 29 */ 30 public final class TargetGrpcProxy extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.TargetGrpcProxy) 33 TargetGrpcProxyOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use TargetGrpcProxy.newBuilder() to construct. TargetGrpcProxy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private TargetGrpcProxy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 TargetGrpcProxy()40 private TargetGrpcProxy() { 41 creationTimestamp_ = ""; 42 description_ = ""; 43 fingerprint_ = ""; 44 kind_ = ""; 45 name_ = ""; 46 selfLink_ = ""; 47 selfLinkWithId_ = ""; 48 urlMap_ = ""; 49 } 50 51 @java.lang.Override 52 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)53 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 54 return new TargetGrpcProxy(); 55 } 56 57 @java.lang.Override getUnknownFields()58 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 59 return this.unknownFields; 60 } 61 getDescriptor()62 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 63 return com.google.cloud.compute.v1.Compute 64 .internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor; 65 } 66 67 @java.lang.Override 68 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()69 internalGetFieldAccessorTable() { 70 return com.google.cloud.compute.v1.Compute 71 .internal_static_google_cloud_compute_v1_TargetGrpcProxy_fieldAccessorTable 72 .ensureFieldAccessorsInitialized( 73 com.google.cloud.compute.v1.TargetGrpcProxy.class, 74 com.google.cloud.compute.v1.TargetGrpcProxy.Builder.class); 75 } 76 77 private int bitField0_; 78 public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; 79 80 @SuppressWarnings("serial") 81 private volatile java.lang.Object creationTimestamp_ = ""; 82 /** 83 * 84 * 85 * <pre> 86 * [Output Only] Creation timestamp in RFC3339 text format. 87 * </pre> 88 * 89 * <code>optional string creation_timestamp = 30525366;</code> 90 * 91 * @return Whether the creationTimestamp field is set. 92 */ 93 @java.lang.Override hasCreationTimestamp()94 public boolean hasCreationTimestamp() { 95 return ((bitField0_ & 0x00000001) != 0); 96 } 97 /** 98 * 99 * 100 * <pre> 101 * [Output Only] Creation timestamp in RFC3339 text format. 102 * </pre> 103 * 104 * <code>optional string creation_timestamp = 30525366;</code> 105 * 106 * @return The creationTimestamp. 107 */ 108 @java.lang.Override getCreationTimestamp()109 public java.lang.String getCreationTimestamp() { 110 java.lang.Object ref = creationTimestamp_; 111 if (ref instanceof java.lang.String) { 112 return (java.lang.String) ref; 113 } else { 114 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 115 java.lang.String s = bs.toStringUtf8(); 116 creationTimestamp_ = s; 117 return s; 118 } 119 } 120 /** 121 * 122 * 123 * <pre> 124 * [Output Only] Creation timestamp in RFC3339 text format. 125 * </pre> 126 * 127 * <code>optional string creation_timestamp = 30525366;</code> 128 * 129 * @return The bytes for creationTimestamp. 130 */ 131 @java.lang.Override getCreationTimestampBytes()132 public com.google.protobuf.ByteString getCreationTimestampBytes() { 133 java.lang.Object ref = creationTimestamp_; 134 if (ref instanceof java.lang.String) { 135 com.google.protobuf.ByteString b = 136 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 137 creationTimestamp_ = b; 138 return b; 139 } else { 140 return (com.google.protobuf.ByteString) ref; 141 } 142 } 143 144 public static final int DESCRIPTION_FIELD_NUMBER = 422937596; 145 146 @SuppressWarnings("serial") 147 private volatile java.lang.Object description_ = ""; 148 /** 149 * 150 * 151 * <pre> 152 * An optional description of this resource. Provide this property when you create the resource. 153 * </pre> 154 * 155 * <code>optional string description = 422937596;</code> 156 * 157 * @return Whether the description field is set. 158 */ 159 @java.lang.Override hasDescription()160 public boolean hasDescription() { 161 return ((bitField0_ & 0x00000002) != 0); 162 } 163 /** 164 * 165 * 166 * <pre> 167 * An optional description of this resource. Provide this property when you create the resource. 168 * </pre> 169 * 170 * <code>optional string description = 422937596;</code> 171 * 172 * @return The description. 173 */ 174 @java.lang.Override getDescription()175 public java.lang.String getDescription() { 176 java.lang.Object ref = description_; 177 if (ref instanceof java.lang.String) { 178 return (java.lang.String) ref; 179 } else { 180 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 181 java.lang.String s = bs.toStringUtf8(); 182 description_ = s; 183 return s; 184 } 185 } 186 /** 187 * 188 * 189 * <pre> 190 * An optional description of this resource. Provide this property when you create the resource. 191 * </pre> 192 * 193 * <code>optional string description = 422937596;</code> 194 * 195 * @return The bytes for description. 196 */ 197 @java.lang.Override getDescriptionBytes()198 public com.google.protobuf.ByteString getDescriptionBytes() { 199 java.lang.Object ref = description_; 200 if (ref instanceof java.lang.String) { 201 com.google.protobuf.ByteString b = 202 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 203 description_ = b; 204 return b; 205 } else { 206 return (com.google.protobuf.ByteString) ref; 207 } 208 } 209 210 public static final int FINGERPRINT_FIELD_NUMBER = 234678500; 211 212 @SuppressWarnings("serial") 213 private volatile java.lang.Object fingerprint_ = ""; 214 /** 215 * 216 * 217 * <pre> 218 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. 219 * </pre> 220 * 221 * <code>optional string fingerprint = 234678500;</code> 222 * 223 * @return Whether the fingerprint field is set. 224 */ 225 @java.lang.Override hasFingerprint()226 public boolean hasFingerprint() { 227 return ((bitField0_ & 0x00000004) != 0); 228 } 229 /** 230 * 231 * 232 * <pre> 233 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. 234 * </pre> 235 * 236 * <code>optional string fingerprint = 234678500;</code> 237 * 238 * @return The fingerprint. 239 */ 240 @java.lang.Override getFingerprint()241 public java.lang.String getFingerprint() { 242 java.lang.Object ref = fingerprint_; 243 if (ref instanceof java.lang.String) { 244 return (java.lang.String) ref; 245 } else { 246 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 247 java.lang.String s = bs.toStringUtf8(); 248 fingerprint_ = s; 249 return s; 250 } 251 } 252 /** 253 * 254 * 255 * <pre> 256 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. 257 * </pre> 258 * 259 * <code>optional string fingerprint = 234678500;</code> 260 * 261 * @return The bytes for fingerprint. 262 */ 263 @java.lang.Override getFingerprintBytes()264 public com.google.protobuf.ByteString getFingerprintBytes() { 265 java.lang.Object ref = fingerprint_; 266 if (ref instanceof java.lang.String) { 267 com.google.protobuf.ByteString b = 268 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 269 fingerprint_ = b; 270 return b; 271 } else { 272 return (com.google.protobuf.ByteString) ref; 273 } 274 } 275 276 public static final int ID_FIELD_NUMBER = 3355; 277 private long id_ = 0L; 278 /** 279 * 280 * 281 * <pre> 282 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 283 * </pre> 284 * 285 * <code>optional uint64 id = 3355;</code> 286 * 287 * @return Whether the id field is set. 288 */ 289 @java.lang.Override hasId()290 public boolean hasId() { 291 return ((bitField0_ & 0x00000008) != 0); 292 } 293 /** 294 * 295 * 296 * <pre> 297 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 298 * </pre> 299 * 300 * <code>optional uint64 id = 3355;</code> 301 * 302 * @return The id. 303 */ 304 @java.lang.Override getId()305 public long getId() { 306 return id_; 307 } 308 309 public static final int KIND_FIELD_NUMBER = 3292052; 310 311 @SuppressWarnings("serial") 312 private volatile java.lang.Object kind_ = ""; 313 /** 314 * 315 * 316 * <pre> 317 * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. 318 * </pre> 319 * 320 * <code>optional string kind = 3292052;</code> 321 * 322 * @return Whether the kind field is set. 323 */ 324 @java.lang.Override hasKind()325 public boolean hasKind() { 326 return ((bitField0_ & 0x00000010) != 0); 327 } 328 /** 329 * 330 * 331 * <pre> 332 * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. 333 * </pre> 334 * 335 * <code>optional string kind = 3292052;</code> 336 * 337 * @return The kind. 338 */ 339 @java.lang.Override getKind()340 public java.lang.String getKind() { 341 java.lang.Object ref = kind_; 342 if (ref instanceof java.lang.String) { 343 return (java.lang.String) ref; 344 } else { 345 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 346 java.lang.String s = bs.toStringUtf8(); 347 kind_ = s; 348 return s; 349 } 350 } 351 /** 352 * 353 * 354 * <pre> 355 * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. 356 * </pre> 357 * 358 * <code>optional string kind = 3292052;</code> 359 * 360 * @return The bytes for kind. 361 */ 362 @java.lang.Override getKindBytes()363 public com.google.protobuf.ByteString getKindBytes() { 364 java.lang.Object ref = kind_; 365 if (ref instanceof java.lang.String) { 366 com.google.protobuf.ByteString b = 367 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 368 kind_ = b; 369 return b; 370 } else { 371 return (com.google.protobuf.ByteString) ref; 372 } 373 } 374 375 public static final int NAME_FIELD_NUMBER = 3373707; 376 377 @SuppressWarnings("serial") 378 private volatile java.lang.Object name_ = ""; 379 /** 380 * 381 * 382 * <pre> 383 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 384 * </pre> 385 * 386 * <code>optional string name = 3373707;</code> 387 * 388 * @return Whether the name field is set. 389 */ 390 @java.lang.Override hasName()391 public boolean hasName() { 392 return ((bitField0_ & 0x00000020) != 0); 393 } 394 /** 395 * 396 * 397 * <pre> 398 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 399 * </pre> 400 * 401 * <code>optional string name = 3373707;</code> 402 * 403 * @return The name. 404 */ 405 @java.lang.Override getName()406 public java.lang.String getName() { 407 java.lang.Object ref = name_; 408 if (ref instanceof java.lang.String) { 409 return (java.lang.String) ref; 410 } else { 411 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 412 java.lang.String s = bs.toStringUtf8(); 413 name_ = s; 414 return s; 415 } 416 } 417 /** 418 * 419 * 420 * <pre> 421 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 422 * </pre> 423 * 424 * <code>optional string name = 3373707;</code> 425 * 426 * @return The bytes for name. 427 */ 428 @java.lang.Override getNameBytes()429 public com.google.protobuf.ByteString getNameBytes() { 430 java.lang.Object ref = name_; 431 if (ref instanceof java.lang.String) { 432 com.google.protobuf.ByteString b = 433 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 434 name_ = b; 435 return b; 436 } else { 437 return (com.google.protobuf.ByteString) ref; 438 } 439 } 440 441 public static final int SELF_LINK_FIELD_NUMBER = 456214797; 442 443 @SuppressWarnings("serial") 444 private volatile java.lang.Object selfLink_ = ""; 445 /** 446 * 447 * 448 * <pre> 449 * [Output Only] Server-defined URL for the resource. 450 * </pre> 451 * 452 * <code>optional string self_link = 456214797;</code> 453 * 454 * @return Whether the selfLink field is set. 455 */ 456 @java.lang.Override hasSelfLink()457 public boolean hasSelfLink() { 458 return ((bitField0_ & 0x00000040) != 0); 459 } 460 /** 461 * 462 * 463 * <pre> 464 * [Output Only] Server-defined URL for the resource. 465 * </pre> 466 * 467 * <code>optional string self_link = 456214797;</code> 468 * 469 * @return The selfLink. 470 */ 471 @java.lang.Override getSelfLink()472 public java.lang.String getSelfLink() { 473 java.lang.Object ref = selfLink_; 474 if (ref instanceof java.lang.String) { 475 return (java.lang.String) ref; 476 } else { 477 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 478 java.lang.String s = bs.toStringUtf8(); 479 selfLink_ = s; 480 return s; 481 } 482 } 483 /** 484 * 485 * 486 * <pre> 487 * [Output Only] Server-defined URL for the resource. 488 * </pre> 489 * 490 * <code>optional string self_link = 456214797;</code> 491 * 492 * @return The bytes for selfLink. 493 */ 494 @java.lang.Override getSelfLinkBytes()495 public com.google.protobuf.ByteString getSelfLinkBytes() { 496 java.lang.Object ref = selfLink_; 497 if (ref instanceof java.lang.String) { 498 com.google.protobuf.ByteString b = 499 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 500 selfLink_ = b; 501 return b; 502 } else { 503 return (com.google.protobuf.ByteString) ref; 504 } 505 } 506 507 public static final int SELF_LINK_WITH_ID_FIELD_NUMBER = 44520962; 508 509 @SuppressWarnings("serial") 510 private volatile java.lang.Object selfLinkWithId_ = ""; 511 /** 512 * 513 * 514 * <pre> 515 * [Output Only] Server-defined URL with id for the resource. 516 * </pre> 517 * 518 * <code>optional string self_link_with_id = 44520962;</code> 519 * 520 * @return Whether the selfLinkWithId field is set. 521 */ 522 @java.lang.Override hasSelfLinkWithId()523 public boolean hasSelfLinkWithId() { 524 return ((bitField0_ & 0x00000080) != 0); 525 } 526 /** 527 * 528 * 529 * <pre> 530 * [Output Only] Server-defined URL with id for the resource. 531 * </pre> 532 * 533 * <code>optional string self_link_with_id = 44520962;</code> 534 * 535 * @return The selfLinkWithId. 536 */ 537 @java.lang.Override getSelfLinkWithId()538 public java.lang.String getSelfLinkWithId() { 539 java.lang.Object ref = selfLinkWithId_; 540 if (ref instanceof java.lang.String) { 541 return (java.lang.String) ref; 542 } else { 543 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 544 java.lang.String s = bs.toStringUtf8(); 545 selfLinkWithId_ = s; 546 return s; 547 } 548 } 549 /** 550 * 551 * 552 * <pre> 553 * [Output Only] Server-defined URL with id for the resource. 554 * </pre> 555 * 556 * <code>optional string self_link_with_id = 44520962;</code> 557 * 558 * @return The bytes for selfLinkWithId. 559 */ 560 @java.lang.Override getSelfLinkWithIdBytes()561 public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { 562 java.lang.Object ref = selfLinkWithId_; 563 if (ref instanceof java.lang.String) { 564 com.google.protobuf.ByteString b = 565 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 566 selfLinkWithId_ = b; 567 return b; 568 } else { 569 return (com.google.protobuf.ByteString) ref; 570 } 571 } 572 573 public static final int URL_MAP_FIELD_NUMBER = 367020684; 574 575 @SuppressWarnings("serial") 576 private volatile java.lang.Object urlMap_ = ""; 577 /** 578 * 579 * 580 * <pre> 581 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. 582 * </pre> 583 * 584 * <code>optional string url_map = 367020684;</code> 585 * 586 * @return Whether the urlMap field is set. 587 */ 588 @java.lang.Override hasUrlMap()589 public boolean hasUrlMap() { 590 return ((bitField0_ & 0x00000100) != 0); 591 } 592 /** 593 * 594 * 595 * <pre> 596 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. 597 * </pre> 598 * 599 * <code>optional string url_map = 367020684;</code> 600 * 601 * @return The urlMap. 602 */ 603 @java.lang.Override getUrlMap()604 public java.lang.String getUrlMap() { 605 java.lang.Object ref = urlMap_; 606 if (ref instanceof java.lang.String) { 607 return (java.lang.String) ref; 608 } else { 609 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 610 java.lang.String s = bs.toStringUtf8(); 611 urlMap_ = s; 612 return s; 613 } 614 } 615 /** 616 * 617 * 618 * <pre> 619 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. 620 * </pre> 621 * 622 * <code>optional string url_map = 367020684;</code> 623 * 624 * @return The bytes for urlMap. 625 */ 626 @java.lang.Override getUrlMapBytes()627 public com.google.protobuf.ByteString getUrlMapBytes() { 628 java.lang.Object ref = urlMap_; 629 if (ref instanceof java.lang.String) { 630 com.google.protobuf.ByteString b = 631 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 632 urlMap_ = b; 633 return b; 634 } else { 635 return (com.google.protobuf.ByteString) ref; 636 } 637 } 638 639 public static final int VALIDATE_FOR_PROXYLESS_FIELD_NUMBER = 101822888; 640 private boolean validateForProxyless_ = false; 641 /** 642 * 643 * 644 * <pre> 645 * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC applications without using a sidecar proxy. This will enable configuration checks on urlMap and its referenced BackendServices to not allow unsupported features. A gRPC application must use "xds:///" scheme in the target URI of the service it is connecting to. If false, indicates that the BackendServices referenced by the urlMap will be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC application must not use "xds:///" scheme in the target URI of the service it is connecting to 646 * </pre> 647 * 648 * <code>optional bool validate_for_proxyless = 101822888;</code> 649 * 650 * @return Whether the validateForProxyless field is set. 651 */ 652 @java.lang.Override hasValidateForProxyless()653 public boolean hasValidateForProxyless() { 654 return ((bitField0_ & 0x00000200) != 0); 655 } 656 /** 657 * 658 * 659 * <pre> 660 * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC applications without using a sidecar proxy. This will enable configuration checks on urlMap and its referenced BackendServices to not allow unsupported features. A gRPC application must use "xds:///" scheme in the target URI of the service it is connecting to. If false, indicates that the BackendServices referenced by the urlMap will be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC application must not use "xds:///" scheme in the target URI of the service it is connecting to 661 * </pre> 662 * 663 * <code>optional bool validate_for_proxyless = 101822888;</code> 664 * 665 * @return The validateForProxyless. 666 */ 667 @java.lang.Override getValidateForProxyless()668 public boolean getValidateForProxyless() { 669 return validateForProxyless_; 670 } 671 672 private byte memoizedIsInitialized = -1; 673 674 @java.lang.Override isInitialized()675 public final boolean isInitialized() { 676 byte isInitialized = memoizedIsInitialized; 677 if (isInitialized == 1) return true; 678 if (isInitialized == 0) return false; 679 680 memoizedIsInitialized = 1; 681 return true; 682 } 683 684 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)685 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 686 if (((bitField0_ & 0x00000008) != 0)) { 687 output.writeUInt64(3355, id_); 688 } 689 if (((bitField0_ & 0x00000010) != 0)) { 690 com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); 691 } 692 if (((bitField0_ & 0x00000020) != 0)) { 693 com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); 694 } 695 if (((bitField0_ & 0x00000001) != 0)) { 696 com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); 697 } 698 if (((bitField0_ & 0x00000080) != 0)) { 699 com.google.protobuf.GeneratedMessageV3.writeString(output, 44520962, selfLinkWithId_); 700 } 701 if (((bitField0_ & 0x00000200) != 0)) { 702 output.writeBool(101822888, validateForProxyless_); 703 } 704 if (((bitField0_ & 0x00000004) != 0)) { 705 com.google.protobuf.GeneratedMessageV3.writeString(output, 234678500, fingerprint_); 706 } 707 if (((bitField0_ & 0x00000100) != 0)) { 708 com.google.protobuf.GeneratedMessageV3.writeString(output, 367020684, urlMap_); 709 } 710 if (((bitField0_ & 0x00000002) != 0)) { 711 com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); 712 } 713 if (((bitField0_ & 0x00000040) != 0)) { 714 com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); 715 } 716 getUnknownFields().writeTo(output); 717 } 718 719 @java.lang.Override getSerializedSize()720 public int getSerializedSize() { 721 int size = memoizedSize; 722 if (size != -1) return size; 723 724 size = 0; 725 if (((bitField0_ & 0x00000008) != 0)) { 726 size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); 727 } 728 if (((bitField0_ & 0x00000010) != 0)) { 729 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); 730 } 731 if (((bitField0_ & 0x00000020) != 0)) { 732 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); 733 } 734 if (((bitField0_ & 0x00000001) != 0)) { 735 size += 736 com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); 737 } 738 if (((bitField0_ & 0x00000080) != 0)) { 739 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44520962, selfLinkWithId_); 740 } 741 if (((bitField0_ & 0x00000200) != 0)) { 742 size += 743 com.google.protobuf.CodedOutputStream.computeBoolSize(101822888, validateForProxyless_); 744 } 745 if (((bitField0_ & 0x00000004) != 0)) { 746 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(234678500, fingerprint_); 747 } 748 if (((bitField0_ & 0x00000100) != 0)) { 749 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(367020684, urlMap_); 750 } 751 if (((bitField0_ & 0x00000002) != 0)) { 752 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); 753 } 754 if (((bitField0_ & 0x00000040) != 0)) { 755 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 756 } 757 size += getUnknownFields().getSerializedSize(); 758 memoizedSize = size; 759 return size; 760 } 761 762 @java.lang.Override equals(final java.lang.Object obj)763 public boolean equals(final java.lang.Object obj) { 764 if (obj == this) { 765 return true; 766 } 767 if (!(obj instanceof com.google.cloud.compute.v1.TargetGrpcProxy)) { 768 return super.equals(obj); 769 } 770 com.google.cloud.compute.v1.TargetGrpcProxy other = 771 (com.google.cloud.compute.v1.TargetGrpcProxy) obj; 772 773 if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; 774 if (hasCreationTimestamp()) { 775 if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; 776 } 777 if (hasDescription() != other.hasDescription()) return false; 778 if (hasDescription()) { 779 if (!getDescription().equals(other.getDescription())) return false; 780 } 781 if (hasFingerprint() != other.hasFingerprint()) return false; 782 if (hasFingerprint()) { 783 if (!getFingerprint().equals(other.getFingerprint())) return false; 784 } 785 if (hasId() != other.hasId()) return false; 786 if (hasId()) { 787 if (getId() != other.getId()) return false; 788 } 789 if (hasKind() != other.hasKind()) return false; 790 if (hasKind()) { 791 if (!getKind().equals(other.getKind())) return false; 792 } 793 if (hasName() != other.hasName()) return false; 794 if (hasName()) { 795 if (!getName().equals(other.getName())) return false; 796 } 797 if (hasSelfLink() != other.hasSelfLink()) return false; 798 if (hasSelfLink()) { 799 if (!getSelfLink().equals(other.getSelfLink())) return false; 800 } 801 if (hasSelfLinkWithId() != other.hasSelfLinkWithId()) return false; 802 if (hasSelfLinkWithId()) { 803 if (!getSelfLinkWithId().equals(other.getSelfLinkWithId())) return false; 804 } 805 if (hasUrlMap() != other.hasUrlMap()) return false; 806 if (hasUrlMap()) { 807 if (!getUrlMap().equals(other.getUrlMap())) return false; 808 } 809 if (hasValidateForProxyless() != other.hasValidateForProxyless()) return false; 810 if (hasValidateForProxyless()) { 811 if (getValidateForProxyless() != other.getValidateForProxyless()) return false; 812 } 813 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 814 return true; 815 } 816 817 @java.lang.Override hashCode()818 public int hashCode() { 819 if (memoizedHashCode != 0) { 820 return memoizedHashCode; 821 } 822 int hash = 41; 823 hash = (19 * hash) + getDescriptor().hashCode(); 824 if (hasCreationTimestamp()) { 825 hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; 826 hash = (53 * hash) + getCreationTimestamp().hashCode(); 827 } 828 if (hasDescription()) { 829 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 830 hash = (53 * hash) + getDescription().hashCode(); 831 } 832 if (hasFingerprint()) { 833 hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; 834 hash = (53 * hash) + getFingerprint().hashCode(); 835 } 836 if (hasId()) { 837 hash = (37 * hash) + ID_FIELD_NUMBER; 838 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); 839 } 840 if (hasKind()) { 841 hash = (37 * hash) + KIND_FIELD_NUMBER; 842 hash = (53 * hash) + getKind().hashCode(); 843 } 844 if (hasName()) { 845 hash = (37 * hash) + NAME_FIELD_NUMBER; 846 hash = (53 * hash) + getName().hashCode(); 847 } 848 if (hasSelfLink()) { 849 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 850 hash = (53 * hash) + getSelfLink().hashCode(); 851 } 852 if (hasSelfLinkWithId()) { 853 hash = (37 * hash) + SELF_LINK_WITH_ID_FIELD_NUMBER; 854 hash = (53 * hash) + getSelfLinkWithId().hashCode(); 855 } 856 if (hasUrlMap()) { 857 hash = (37 * hash) + URL_MAP_FIELD_NUMBER; 858 hash = (53 * hash) + getUrlMap().hashCode(); 859 } 860 if (hasValidateForProxyless()) { 861 hash = (37 * hash) + VALIDATE_FOR_PROXYLESS_FIELD_NUMBER; 862 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateForProxyless()); 863 } 864 hash = (29 * hash) + getUnknownFields().hashCode(); 865 memoizedHashCode = hash; 866 return hash; 867 } 868 parseFrom(java.nio.ByteBuffer data)869 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom(java.nio.ByteBuffer data) 870 throws com.google.protobuf.InvalidProtocolBufferException { 871 return PARSER.parseFrom(data); 872 } 873 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)874 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom( 875 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 876 throws com.google.protobuf.InvalidProtocolBufferException { 877 return PARSER.parseFrom(data, extensionRegistry); 878 } 879 parseFrom( com.google.protobuf.ByteString data)880 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom( 881 com.google.protobuf.ByteString data) 882 throws com.google.protobuf.InvalidProtocolBufferException { 883 return PARSER.parseFrom(data); 884 } 885 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)886 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom( 887 com.google.protobuf.ByteString data, 888 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 889 throws com.google.protobuf.InvalidProtocolBufferException { 890 return PARSER.parseFrom(data, extensionRegistry); 891 } 892 parseFrom(byte[] data)893 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom(byte[] data) 894 throws com.google.protobuf.InvalidProtocolBufferException { 895 return PARSER.parseFrom(data); 896 } 897 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)898 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom( 899 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 900 throws com.google.protobuf.InvalidProtocolBufferException { 901 return PARSER.parseFrom(data, extensionRegistry); 902 } 903 parseFrom(java.io.InputStream input)904 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom(java.io.InputStream input) 905 throws java.io.IOException { 906 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 907 } 908 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)909 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom( 910 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 911 throws java.io.IOException { 912 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 913 PARSER, input, extensionRegistry); 914 } 915 parseDelimitedFrom( java.io.InputStream input)916 public static com.google.cloud.compute.v1.TargetGrpcProxy parseDelimitedFrom( 917 java.io.InputStream input) throws java.io.IOException { 918 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 919 } 920 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)921 public static com.google.cloud.compute.v1.TargetGrpcProxy parseDelimitedFrom( 922 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 923 throws java.io.IOException { 924 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 925 PARSER, input, extensionRegistry); 926 } 927 parseFrom( com.google.protobuf.CodedInputStream input)928 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom( 929 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 930 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 931 } 932 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)933 public static com.google.cloud.compute.v1.TargetGrpcProxy parseFrom( 934 com.google.protobuf.CodedInputStream input, 935 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 936 throws java.io.IOException { 937 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 938 PARSER, input, extensionRegistry); 939 } 940 941 @java.lang.Override newBuilderForType()942 public Builder newBuilderForType() { 943 return newBuilder(); 944 } 945 newBuilder()946 public static Builder newBuilder() { 947 return DEFAULT_INSTANCE.toBuilder(); 948 } 949 newBuilder(com.google.cloud.compute.v1.TargetGrpcProxy prototype)950 public static Builder newBuilder(com.google.cloud.compute.v1.TargetGrpcProxy prototype) { 951 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 952 } 953 954 @java.lang.Override toBuilder()955 public Builder toBuilder() { 956 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 957 } 958 959 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)960 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 961 Builder builder = new Builder(parent); 962 return builder; 963 } 964 /** 965 * 966 * 967 * <pre> 968 * Represents a Target gRPC Proxy resource. A target gRPC proxy is a component of load balancers intended for load balancing gRPC traffic. Only global forwarding rules with load balancing scheme INTERNAL_SELF_MANAGED can reference a target gRPC proxy. The target gRPC Proxy references a URL map that specifies how traffic is routed to gRPC backend services. 969 * </pre> 970 * 971 * Protobuf type {@code google.cloud.compute.v1.TargetGrpcProxy} 972 */ 973 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 974 implements 975 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.TargetGrpcProxy) 976 com.google.cloud.compute.v1.TargetGrpcProxyOrBuilder { getDescriptor()977 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 978 return com.google.cloud.compute.v1.Compute 979 .internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor; 980 } 981 982 @java.lang.Override 983 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()984 internalGetFieldAccessorTable() { 985 return com.google.cloud.compute.v1.Compute 986 .internal_static_google_cloud_compute_v1_TargetGrpcProxy_fieldAccessorTable 987 .ensureFieldAccessorsInitialized( 988 com.google.cloud.compute.v1.TargetGrpcProxy.class, 989 com.google.cloud.compute.v1.TargetGrpcProxy.Builder.class); 990 } 991 992 // Construct using com.google.cloud.compute.v1.TargetGrpcProxy.newBuilder() Builder()993 private Builder() {} 994 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)995 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 996 super(parent); 997 } 998 999 @java.lang.Override clear()1000 public Builder clear() { 1001 super.clear(); 1002 bitField0_ = 0; 1003 creationTimestamp_ = ""; 1004 description_ = ""; 1005 fingerprint_ = ""; 1006 id_ = 0L; 1007 kind_ = ""; 1008 name_ = ""; 1009 selfLink_ = ""; 1010 selfLinkWithId_ = ""; 1011 urlMap_ = ""; 1012 validateForProxyless_ = false; 1013 return this; 1014 } 1015 1016 @java.lang.Override getDescriptorForType()1017 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1018 return com.google.cloud.compute.v1.Compute 1019 .internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor; 1020 } 1021 1022 @java.lang.Override getDefaultInstanceForType()1023 public com.google.cloud.compute.v1.TargetGrpcProxy getDefaultInstanceForType() { 1024 return com.google.cloud.compute.v1.TargetGrpcProxy.getDefaultInstance(); 1025 } 1026 1027 @java.lang.Override build()1028 public com.google.cloud.compute.v1.TargetGrpcProxy build() { 1029 com.google.cloud.compute.v1.TargetGrpcProxy result = buildPartial(); 1030 if (!result.isInitialized()) { 1031 throw newUninitializedMessageException(result); 1032 } 1033 return result; 1034 } 1035 1036 @java.lang.Override buildPartial()1037 public com.google.cloud.compute.v1.TargetGrpcProxy buildPartial() { 1038 com.google.cloud.compute.v1.TargetGrpcProxy result = 1039 new com.google.cloud.compute.v1.TargetGrpcProxy(this); 1040 if (bitField0_ != 0) { 1041 buildPartial0(result); 1042 } 1043 onBuilt(); 1044 return result; 1045 } 1046 buildPartial0(com.google.cloud.compute.v1.TargetGrpcProxy result)1047 private void buildPartial0(com.google.cloud.compute.v1.TargetGrpcProxy result) { 1048 int from_bitField0_ = bitField0_; 1049 int to_bitField0_ = 0; 1050 if (((from_bitField0_ & 0x00000001) != 0)) { 1051 result.creationTimestamp_ = creationTimestamp_; 1052 to_bitField0_ |= 0x00000001; 1053 } 1054 if (((from_bitField0_ & 0x00000002) != 0)) { 1055 result.description_ = description_; 1056 to_bitField0_ |= 0x00000002; 1057 } 1058 if (((from_bitField0_ & 0x00000004) != 0)) { 1059 result.fingerprint_ = fingerprint_; 1060 to_bitField0_ |= 0x00000004; 1061 } 1062 if (((from_bitField0_ & 0x00000008) != 0)) { 1063 result.id_ = id_; 1064 to_bitField0_ |= 0x00000008; 1065 } 1066 if (((from_bitField0_ & 0x00000010) != 0)) { 1067 result.kind_ = kind_; 1068 to_bitField0_ |= 0x00000010; 1069 } 1070 if (((from_bitField0_ & 0x00000020) != 0)) { 1071 result.name_ = name_; 1072 to_bitField0_ |= 0x00000020; 1073 } 1074 if (((from_bitField0_ & 0x00000040) != 0)) { 1075 result.selfLink_ = selfLink_; 1076 to_bitField0_ |= 0x00000040; 1077 } 1078 if (((from_bitField0_ & 0x00000080) != 0)) { 1079 result.selfLinkWithId_ = selfLinkWithId_; 1080 to_bitField0_ |= 0x00000080; 1081 } 1082 if (((from_bitField0_ & 0x00000100) != 0)) { 1083 result.urlMap_ = urlMap_; 1084 to_bitField0_ |= 0x00000100; 1085 } 1086 if (((from_bitField0_ & 0x00000200) != 0)) { 1087 result.validateForProxyless_ = validateForProxyless_; 1088 to_bitField0_ |= 0x00000200; 1089 } 1090 result.bitField0_ |= to_bitField0_; 1091 } 1092 1093 @java.lang.Override clone()1094 public Builder clone() { 1095 return super.clone(); 1096 } 1097 1098 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1099 public Builder setField( 1100 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1101 return super.setField(field, value); 1102 } 1103 1104 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1105 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1106 return super.clearField(field); 1107 } 1108 1109 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1110 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1111 return super.clearOneof(oneof); 1112 } 1113 1114 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1115 public Builder setRepeatedField( 1116 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1117 return super.setRepeatedField(field, index, value); 1118 } 1119 1120 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1121 public Builder addRepeatedField( 1122 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1123 return super.addRepeatedField(field, value); 1124 } 1125 1126 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1127 public Builder mergeFrom(com.google.protobuf.Message other) { 1128 if (other instanceof com.google.cloud.compute.v1.TargetGrpcProxy) { 1129 return mergeFrom((com.google.cloud.compute.v1.TargetGrpcProxy) other); 1130 } else { 1131 super.mergeFrom(other); 1132 return this; 1133 } 1134 } 1135 mergeFrom(com.google.cloud.compute.v1.TargetGrpcProxy other)1136 public Builder mergeFrom(com.google.cloud.compute.v1.TargetGrpcProxy other) { 1137 if (other == com.google.cloud.compute.v1.TargetGrpcProxy.getDefaultInstance()) return this; 1138 if (other.hasCreationTimestamp()) { 1139 creationTimestamp_ = other.creationTimestamp_; 1140 bitField0_ |= 0x00000001; 1141 onChanged(); 1142 } 1143 if (other.hasDescription()) { 1144 description_ = other.description_; 1145 bitField0_ |= 0x00000002; 1146 onChanged(); 1147 } 1148 if (other.hasFingerprint()) { 1149 fingerprint_ = other.fingerprint_; 1150 bitField0_ |= 0x00000004; 1151 onChanged(); 1152 } 1153 if (other.hasId()) { 1154 setId(other.getId()); 1155 } 1156 if (other.hasKind()) { 1157 kind_ = other.kind_; 1158 bitField0_ |= 0x00000010; 1159 onChanged(); 1160 } 1161 if (other.hasName()) { 1162 name_ = other.name_; 1163 bitField0_ |= 0x00000020; 1164 onChanged(); 1165 } 1166 if (other.hasSelfLink()) { 1167 selfLink_ = other.selfLink_; 1168 bitField0_ |= 0x00000040; 1169 onChanged(); 1170 } 1171 if (other.hasSelfLinkWithId()) { 1172 selfLinkWithId_ = other.selfLinkWithId_; 1173 bitField0_ |= 0x00000080; 1174 onChanged(); 1175 } 1176 if (other.hasUrlMap()) { 1177 urlMap_ = other.urlMap_; 1178 bitField0_ |= 0x00000100; 1179 onChanged(); 1180 } 1181 if (other.hasValidateForProxyless()) { 1182 setValidateForProxyless(other.getValidateForProxyless()); 1183 } 1184 this.mergeUnknownFields(other.getUnknownFields()); 1185 onChanged(); 1186 return this; 1187 } 1188 1189 @java.lang.Override isInitialized()1190 public final boolean isInitialized() { 1191 return true; 1192 } 1193 1194 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1195 public Builder mergeFrom( 1196 com.google.protobuf.CodedInputStream input, 1197 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1198 throws java.io.IOException { 1199 if (extensionRegistry == null) { 1200 throw new java.lang.NullPointerException(); 1201 } 1202 try { 1203 boolean done = false; 1204 while (!done) { 1205 int tag = input.readTag(); 1206 switch (tag) { 1207 case 0: 1208 done = true; 1209 break; 1210 case 26840: 1211 { 1212 id_ = input.readUInt64(); 1213 bitField0_ |= 0x00000008; 1214 break; 1215 } // case 26840 1216 case 26336418: 1217 { 1218 kind_ = input.readStringRequireUtf8(); 1219 bitField0_ |= 0x00000010; 1220 break; 1221 } // case 26336418 1222 case 26989658: 1223 { 1224 name_ = input.readStringRequireUtf8(); 1225 bitField0_ |= 0x00000020; 1226 break; 1227 } // case 26989658 1228 case 244202930: 1229 { 1230 creationTimestamp_ = input.readStringRequireUtf8(); 1231 bitField0_ |= 0x00000001; 1232 break; 1233 } // case 244202930 1234 case 356167698: 1235 { 1236 selfLinkWithId_ = input.readStringRequireUtf8(); 1237 bitField0_ |= 0x00000080; 1238 break; 1239 } // case 356167698 1240 case 814583104: 1241 { 1242 validateForProxyless_ = input.readBool(); 1243 bitField0_ |= 0x00000200; 1244 break; 1245 } // case 814583104 1246 case 1877428002: 1247 { 1248 fingerprint_ = input.readStringRequireUtf8(); 1249 bitField0_ |= 0x00000004; 1250 break; 1251 } // case 1877428002 1252 case -1358801822: 1253 { 1254 urlMap_ = input.readStringRequireUtf8(); 1255 bitField0_ |= 0x00000100; 1256 break; 1257 } // case -1358801822 1258 case -911466526: 1259 { 1260 description_ = input.readStringRequireUtf8(); 1261 bitField0_ |= 0x00000002; 1262 break; 1263 } // case -911466526 1264 case -645248918: 1265 { 1266 selfLink_ = input.readStringRequireUtf8(); 1267 bitField0_ |= 0x00000040; 1268 break; 1269 } // case -645248918 1270 default: 1271 { 1272 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1273 done = true; // was an endgroup tag 1274 } 1275 break; 1276 } // default: 1277 } // switch (tag) 1278 } // while (!done) 1279 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1280 throw e.unwrapIOException(); 1281 } finally { 1282 onChanged(); 1283 } // finally 1284 return this; 1285 } 1286 1287 private int bitField0_; 1288 1289 private java.lang.Object creationTimestamp_ = ""; 1290 /** 1291 * 1292 * 1293 * <pre> 1294 * [Output Only] Creation timestamp in RFC3339 text format. 1295 * </pre> 1296 * 1297 * <code>optional string creation_timestamp = 30525366;</code> 1298 * 1299 * @return Whether the creationTimestamp field is set. 1300 */ hasCreationTimestamp()1301 public boolean hasCreationTimestamp() { 1302 return ((bitField0_ & 0x00000001) != 0); 1303 } 1304 /** 1305 * 1306 * 1307 * <pre> 1308 * [Output Only] Creation timestamp in RFC3339 text format. 1309 * </pre> 1310 * 1311 * <code>optional string creation_timestamp = 30525366;</code> 1312 * 1313 * @return The creationTimestamp. 1314 */ getCreationTimestamp()1315 public java.lang.String getCreationTimestamp() { 1316 java.lang.Object ref = creationTimestamp_; 1317 if (!(ref instanceof java.lang.String)) { 1318 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1319 java.lang.String s = bs.toStringUtf8(); 1320 creationTimestamp_ = s; 1321 return s; 1322 } else { 1323 return (java.lang.String) ref; 1324 } 1325 } 1326 /** 1327 * 1328 * 1329 * <pre> 1330 * [Output Only] Creation timestamp in RFC3339 text format. 1331 * </pre> 1332 * 1333 * <code>optional string creation_timestamp = 30525366;</code> 1334 * 1335 * @return The bytes for creationTimestamp. 1336 */ getCreationTimestampBytes()1337 public com.google.protobuf.ByteString getCreationTimestampBytes() { 1338 java.lang.Object ref = creationTimestamp_; 1339 if (ref instanceof String) { 1340 com.google.protobuf.ByteString b = 1341 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1342 creationTimestamp_ = b; 1343 return b; 1344 } else { 1345 return (com.google.protobuf.ByteString) ref; 1346 } 1347 } 1348 /** 1349 * 1350 * 1351 * <pre> 1352 * [Output Only] Creation timestamp in RFC3339 text format. 1353 * </pre> 1354 * 1355 * <code>optional string creation_timestamp = 30525366;</code> 1356 * 1357 * @param value The creationTimestamp to set. 1358 * @return This builder for chaining. 1359 */ setCreationTimestamp(java.lang.String value)1360 public Builder setCreationTimestamp(java.lang.String value) { 1361 if (value == null) { 1362 throw new NullPointerException(); 1363 } 1364 creationTimestamp_ = value; 1365 bitField0_ |= 0x00000001; 1366 onChanged(); 1367 return this; 1368 } 1369 /** 1370 * 1371 * 1372 * <pre> 1373 * [Output Only] Creation timestamp in RFC3339 text format. 1374 * </pre> 1375 * 1376 * <code>optional string creation_timestamp = 30525366;</code> 1377 * 1378 * @return This builder for chaining. 1379 */ clearCreationTimestamp()1380 public Builder clearCreationTimestamp() { 1381 creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); 1382 bitField0_ = (bitField0_ & ~0x00000001); 1383 onChanged(); 1384 return this; 1385 } 1386 /** 1387 * 1388 * 1389 * <pre> 1390 * [Output Only] Creation timestamp in RFC3339 text format. 1391 * </pre> 1392 * 1393 * <code>optional string creation_timestamp = 30525366;</code> 1394 * 1395 * @param value The bytes for creationTimestamp to set. 1396 * @return This builder for chaining. 1397 */ setCreationTimestampBytes(com.google.protobuf.ByteString value)1398 public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { 1399 if (value == null) { 1400 throw new NullPointerException(); 1401 } 1402 checkByteStringIsUtf8(value); 1403 creationTimestamp_ = value; 1404 bitField0_ |= 0x00000001; 1405 onChanged(); 1406 return this; 1407 } 1408 1409 private java.lang.Object description_ = ""; 1410 /** 1411 * 1412 * 1413 * <pre> 1414 * An optional description of this resource. Provide this property when you create the resource. 1415 * </pre> 1416 * 1417 * <code>optional string description = 422937596;</code> 1418 * 1419 * @return Whether the description field is set. 1420 */ hasDescription()1421 public boolean hasDescription() { 1422 return ((bitField0_ & 0x00000002) != 0); 1423 } 1424 /** 1425 * 1426 * 1427 * <pre> 1428 * An optional description of this resource. Provide this property when you create the resource. 1429 * </pre> 1430 * 1431 * <code>optional string description = 422937596;</code> 1432 * 1433 * @return The description. 1434 */ getDescription()1435 public java.lang.String getDescription() { 1436 java.lang.Object ref = description_; 1437 if (!(ref instanceof java.lang.String)) { 1438 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1439 java.lang.String s = bs.toStringUtf8(); 1440 description_ = s; 1441 return s; 1442 } else { 1443 return (java.lang.String) ref; 1444 } 1445 } 1446 /** 1447 * 1448 * 1449 * <pre> 1450 * An optional description of this resource. Provide this property when you create the resource. 1451 * </pre> 1452 * 1453 * <code>optional string description = 422937596;</code> 1454 * 1455 * @return The bytes for description. 1456 */ getDescriptionBytes()1457 public com.google.protobuf.ByteString getDescriptionBytes() { 1458 java.lang.Object ref = description_; 1459 if (ref instanceof String) { 1460 com.google.protobuf.ByteString b = 1461 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1462 description_ = b; 1463 return b; 1464 } else { 1465 return (com.google.protobuf.ByteString) ref; 1466 } 1467 } 1468 /** 1469 * 1470 * 1471 * <pre> 1472 * An optional description of this resource. Provide this property when you create the resource. 1473 * </pre> 1474 * 1475 * <code>optional string description = 422937596;</code> 1476 * 1477 * @param value The description to set. 1478 * @return This builder for chaining. 1479 */ setDescription(java.lang.String value)1480 public Builder setDescription(java.lang.String value) { 1481 if (value == null) { 1482 throw new NullPointerException(); 1483 } 1484 description_ = value; 1485 bitField0_ |= 0x00000002; 1486 onChanged(); 1487 return this; 1488 } 1489 /** 1490 * 1491 * 1492 * <pre> 1493 * An optional description of this resource. Provide this property when you create the resource. 1494 * </pre> 1495 * 1496 * <code>optional string description = 422937596;</code> 1497 * 1498 * @return This builder for chaining. 1499 */ clearDescription()1500 public Builder clearDescription() { 1501 description_ = getDefaultInstance().getDescription(); 1502 bitField0_ = (bitField0_ & ~0x00000002); 1503 onChanged(); 1504 return this; 1505 } 1506 /** 1507 * 1508 * 1509 * <pre> 1510 * An optional description of this resource. Provide this property when you create the resource. 1511 * </pre> 1512 * 1513 * <code>optional string description = 422937596;</code> 1514 * 1515 * @param value The bytes for description to set. 1516 * @return This builder for chaining. 1517 */ setDescriptionBytes(com.google.protobuf.ByteString value)1518 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 1519 if (value == null) { 1520 throw new NullPointerException(); 1521 } 1522 checkByteStringIsUtf8(value); 1523 description_ = value; 1524 bitField0_ |= 0x00000002; 1525 onChanged(); 1526 return this; 1527 } 1528 1529 private java.lang.Object fingerprint_ = ""; 1530 /** 1531 * 1532 * 1533 * <pre> 1534 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. 1535 * </pre> 1536 * 1537 * <code>optional string fingerprint = 234678500;</code> 1538 * 1539 * @return Whether the fingerprint field is set. 1540 */ hasFingerprint()1541 public boolean hasFingerprint() { 1542 return ((bitField0_ & 0x00000004) != 0); 1543 } 1544 /** 1545 * 1546 * 1547 * <pre> 1548 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. 1549 * </pre> 1550 * 1551 * <code>optional string fingerprint = 234678500;</code> 1552 * 1553 * @return The fingerprint. 1554 */ getFingerprint()1555 public java.lang.String getFingerprint() { 1556 java.lang.Object ref = fingerprint_; 1557 if (!(ref instanceof java.lang.String)) { 1558 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1559 java.lang.String s = bs.toStringUtf8(); 1560 fingerprint_ = s; 1561 return s; 1562 } else { 1563 return (java.lang.String) ref; 1564 } 1565 } 1566 /** 1567 * 1568 * 1569 * <pre> 1570 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. 1571 * </pre> 1572 * 1573 * <code>optional string fingerprint = 234678500;</code> 1574 * 1575 * @return The bytes for fingerprint. 1576 */ getFingerprintBytes()1577 public com.google.protobuf.ByteString getFingerprintBytes() { 1578 java.lang.Object ref = fingerprint_; 1579 if (ref instanceof String) { 1580 com.google.protobuf.ByteString b = 1581 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1582 fingerprint_ = b; 1583 return b; 1584 } else { 1585 return (com.google.protobuf.ByteString) ref; 1586 } 1587 } 1588 /** 1589 * 1590 * 1591 * <pre> 1592 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. 1593 * </pre> 1594 * 1595 * <code>optional string fingerprint = 234678500;</code> 1596 * 1597 * @param value The fingerprint to set. 1598 * @return This builder for chaining. 1599 */ setFingerprint(java.lang.String value)1600 public Builder setFingerprint(java.lang.String value) { 1601 if (value == null) { 1602 throw new NullPointerException(); 1603 } 1604 fingerprint_ = value; 1605 bitField0_ |= 0x00000004; 1606 onChanged(); 1607 return this; 1608 } 1609 /** 1610 * 1611 * 1612 * <pre> 1613 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. 1614 * </pre> 1615 * 1616 * <code>optional string fingerprint = 234678500;</code> 1617 * 1618 * @return This builder for chaining. 1619 */ clearFingerprint()1620 public Builder clearFingerprint() { 1621 fingerprint_ = getDefaultInstance().getFingerprint(); 1622 bitField0_ = (bitField0_ & ~0x00000004); 1623 onChanged(); 1624 return this; 1625 } 1626 /** 1627 * 1628 * 1629 * <pre> 1630 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetGrpcProxy. 1631 * </pre> 1632 * 1633 * <code>optional string fingerprint = 234678500;</code> 1634 * 1635 * @param value The bytes for fingerprint to set. 1636 * @return This builder for chaining. 1637 */ setFingerprintBytes(com.google.protobuf.ByteString value)1638 public Builder setFingerprintBytes(com.google.protobuf.ByteString value) { 1639 if (value == null) { 1640 throw new NullPointerException(); 1641 } 1642 checkByteStringIsUtf8(value); 1643 fingerprint_ = value; 1644 bitField0_ |= 0x00000004; 1645 onChanged(); 1646 return this; 1647 } 1648 1649 private long id_; 1650 /** 1651 * 1652 * 1653 * <pre> 1654 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 1655 * </pre> 1656 * 1657 * <code>optional uint64 id = 3355;</code> 1658 * 1659 * @return Whether the id field is set. 1660 */ 1661 @java.lang.Override hasId()1662 public boolean hasId() { 1663 return ((bitField0_ & 0x00000008) != 0); 1664 } 1665 /** 1666 * 1667 * 1668 * <pre> 1669 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 1670 * </pre> 1671 * 1672 * <code>optional uint64 id = 3355;</code> 1673 * 1674 * @return The id. 1675 */ 1676 @java.lang.Override getId()1677 public long getId() { 1678 return id_; 1679 } 1680 /** 1681 * 1682 * 1683 * <pre> 1684 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 1685 * </pre> 1686 * 1687 * <code>optional uint64 id = 3355;</code> 1688 * 1689 * @param value The id to set. 1690 * @return This builder for chaining. 1691 */ setId(long value)1692 public Builder setId(long value) { 1693 1694 id_ = value; 1695 bitField0_ |= 0x00000008; 1696 onChanged(); 1697 return this; 1698 } 1699 /** 1700 * 1701 * 1702 * <pre> 1703 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 1704 * </pre> 1705 * 1706 * <code>optional uint64 id = 3355;</code> 1707 * 1708 * @return This builder for chaining. 1709 */ clearId()1710 public Builder clearId() { 1711 bitField0_ = (bitField0_ & ~0x00000008); 1712 id_ = 0L; 1713 onChanged(); 1714 return this; 1715 } 1716 1717 private java.lang.Object kind_ = ""; 1718 /** 1719 * 1720 * 1721 * <pre> 1722 * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. 1723 * </pre> 1724 * 1725 * <code>optional string kind = 3292052;</code> 1726 * 1727 * @return Whether the kind field is set. 1728 */ hasKind()1729 public boolean hasKind() { 1730 return ((bitField0_ & 0x00000010) != 0); 1731 } 1732 /** 1733 * 1734 * 1735 * <pre> 1736 * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. 1737 * </pre> 1738 * 1739 * <code>optional string kind = 3292052;</code> 1740 * 1741 * @return The kind. 1742 */ getKind()1743 public java.lang.String getKind() { 1744 java.lang.Object ref = kind_; 1745 if (!(ref instanceof java.lang.String)) { 1746 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1747 java.lang.String s = bs.toStringUtf8(); 1748 kind_ = s; 1749 return s; 1750 } else { 1751 return (java.lang.String) ref; 1752 } 1753 } 1754 /** 1755 * 1756 * 1757 * <pre> 1758 * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. 1759 * </pre> 1760 * 1761 * <code>optional string kind = 3292052;</code> 1762 * 1763 * @return The bytes for kind. 1764 */ getKindBytes()1765 public com.google.protobuf.ByteString getKindBytes() { 1766 java.lang.Object ref = kind_; 1767 if (ref instanceof String) { 1768 com.google.protobuf.ByteString b = 1769 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1770 kind_ = b; 1771 return b; 1772 } else { 1773 return (com.google.protobuf.ByteString) ref; 1774 } 1775 } 1776 /** 1777 * 1778 * 1779 * <pre> 1780 * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. 1781 * </pre> 1782 * 1783 * <code>optional string kind = 3292052;</code> 1784 * 1785 * @param value The kind to set. 1786 * @return This builder for chaining. 1787 */ setKind(java.lang.String value)1788 public Builder setKind(java.lang.String value) { 1789 if (value == null) { 1790 throw new NullPointerException(); 1791 } 1792 kind_ = value; 1793 bitField0_ |= 0x00000010; 1794 onChanged(); 1795 return this; 1796 } 1797 /** 1798 * 1799 * 1800 * <pre> 1801 * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. 1802 * </pre> 1803 * 1804 * <code>optional string kind = 3292052;</code> 1805 * 1806 * @return This builder for chaining. 1807 */ clearKind()1808 public Builder clearKind() { 1809 kind_ = getDefaultInstance().getKind(); 1810 bitField0_ = (bitField0_ & ~0x00000010); 1811 onChanged(); 1812 return this; 1813 } 1814 /** 1815 * 1816 * 1817 * <pre> 1818 * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. 1819 * </pre> 1820 * 1821 * <code>optional string kind = 3292052;</code> 1822 * 1823 * @param value The bytes for kind to set. 1824 * @return This builder for chaining. 1825 */ setKindBytes(com.google.protobuf.ByteString value)1826 public Builder setKindBytes(com.google.protobuf.ByteString value) { 1827 if (value == null) { 1828 throw new NullPointerException(); 1829 } 1830 checkByteStringIsUtf8(value); 1831 kind_ = value; 1832 bitField0_ |= 0x00000010; 1833 onChanged(); 1834 return this; 1835 } 1836 1837 private java.lang.Object name_ = ""; 1838 /** 1839 * 1840 * 1841 * <pre> 1842 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 1843 * </pre> 1844 * 1845 * <code>optional string name = 3373707;</code> 1846 * 1847 * @return Whether the name field is set. 1848 */ hasName()1849 public boolean hasName() { 1850 return ((bitField0_ & 0x00000020) != 0); 1851 } 1852 /** 1853 * 1854 * 1855 * <pre> 1856 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 1857 * </pre> 1858 * 1859 * <code>optional string name = 3373707;</code> 1860 * 1861 * @return The name. 1862 */ getName()1863 public java.lang.String getName() { 1864 java.lang.Object ref = name_; 1865 if (!(ref instanceof java.lang.String)) { 1866 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1867 java.lang.String s = bs.toStringUtf8(); 1868 name_ = s; 1869 return s; 1870 } else { 1871 return (java.lang.String) ref; 1872 } 1873 } 1874 /** 1875 * 1876 * 1877 * <pre> 1878 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 1879 * </pre> 1880 * 1881 * <code>optional string name = 3373707;</code> 1882 * 1883 * @return The bytes for name. 1884 */ getNameBytes()1885 public com.google.protobuf.ByteString getNameBytes() { 1886 java.lang.Object ref = name_; 1887 if (ref instanceof String) { 1888 com.google.protobuf.ByteString b = 1889 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1890 name_ = b; 1891 return b; 1892 } else { 1893 return (com.google.protobuf.ByteString) ref; 1894 } 1895 } 1896 /** 1897 * 1898 * 1899 * <pre> 1900 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 1901 * </pre> 1902 * 1903 * <code>optional string name = 3373707;</code> 1904 * 1905 * @param value The name to set. 1906 * @return This builder for chaining. 1907 */ setName(java.lang.String value)1908 public Builder setName(java.lang.String value) { 1909 if (value == null) { 1910 throw new NullPointerException(); 1911 } 1912 name_ = value; 1913 bitField0_ |= 0x00000020; 1914 onChanged(); 1915 return this; 1916 } 1917 /** 1918 * 1919 * 1920 * <pre> 1921 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 1922 * </pre> 1923 * 1924 * <code>optional string name = 3373707;</code> 1925 * 1926 * @return This builder for chaining. 1927 */ clearName()1928 public Builder clearName() { 1929 name_ = getDefaultInstance().getName(); 1930 bitField0_ = (bitField0_ & ~0x00000020); 1931 onChanged(); 1932 return this; 1933 } 1934 /** 1935 * 1936 * 1937 * <pre> 1938 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 1939 * </pre> 1940 * 1941 * <code>optional string name = 3373707;</code> 1942 * 1943 * @param value The bytes for name to set. 1944 * @return This builder for chaining. 1945 */ setNameBytes(com.google.protobuf.ByteString value)1946 public Builder setNameBytes(com.google.protobuf.ByteString value) { 1947 if (value == null) { 1948 throw new NullPointerException(); 1949 } 1950 checkByteStringIsUtf8(value); 1951 name_ = value; 1952 bitField0_ |= 0x00000020; 1953 onChanged(); 1954 return this; 1955 } 1956 1957 private java.lang.Object selfLink_ = ""; 1958 /** 1959 * 1960 * 1961 * <pre> 1962 * [Output Only] Server-defined URL for the resource. 1963 * </pre> 1964 * 1965 * <code>optional string self_link = 456214797;</code> 1966 * 1967 * @return Whether the selfLink field is set. 1968 */ hasSelfLink()1969 public boolean hasSelfLink() { 1970 return ((bitField0_ & 0x00000040) != 0); 1971 } 1972 /** 1973 * 1974 * 1975 * <pre> 1976 * [Output Only] Server-defined URL for the resource. 1977 * </pre> 1978 * 1979 * <code>optional string self_link = 456214797;</code> 1980 * 1981 * @return The selfLink. 1982 */ getSelfLink()1983 public java.lang.String getSelfLink() { 1984 java.lang.Object ref = selfLink_; 1985 if (!(ref instanceof java.lang.String)) { 1986 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1987 java.lang.String s = bs.toStringUtf8(); 1988 selfLink_ = s; 1989 return s; 1990 } else { 1991 return (java.lang.String) ref; 1992 } 1993 } 1994 /** 1995 * 1996 * 1997 * <pre> 1998 * [Output Only] Server-defined URL for the resource. 1999 * </pre> 2000 * 2001 * <code>optional string self_link = 456214797;</code> 2002 * 2003 * @return The bytes for selfLink. 2004 */ getSelfLinkBytes()2005 public com.google.protobuf.ByteString getSelfLinkBytes() { 2006 java.lang.Object ref = selfLink_; 2007 if (ref instanceof String) { 2008 com.google.protobuf.ByteString b = 2009 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2010 selfLink_ = b; 2011 return b; 2012 } else { 2013 return (com.google.protobuf.ByteString) ref; 2014 } 2015 } 2016 /** 2017 * 2018 * 2019 * <pre> 2020 * [Output Only] Server-defined URL for the resource. 2021 * </pre> 2022 * 2023 * <code>optional string self_link = 456214797;</code> 2024 * 2025 * @param value The selfLink to set. 2026 * @return This builder for chaining. 2027 */ setSelfLink(java.lang.String value)2028 public Builder setSelfLink(java.lang.String value) { 2029 if (value == null) { 2030 throw new NullPointerException(); 2031 } 2032 selfLink_ = value; 2033 bitField0_ |= 0x00000040; 2034 onChanged(); 2035 return this; 2036 } 2037 /** 2038 * 2039 * 2040 * <pre> 2041 * [Output Only] Server-defined URL for the resource. 2042 * </pre> 2043 * 2044 * <code>optional string self_link = 456214797;</code> 2045 * 2046 * @return This builder for chaining. 2047 */ clearSelfLink()2048 public Builder clearSelfLink() { 2049 selfLink_ = getDefaultInstance().getSelfLink(); 2050 bitField0_ = (bitField0_ & ~0x00000040); 2051 onChanged(); 2052 return this; 2053 } 2054 /** 2055 * 2056 * 2057 * <pre> 2058 * [Output Only] Server-defined URL for the resource. 2059 * </pre> 2060 * 2061 * <code>optional string self_link = 456214797;</code> 2062 * 2063 * @param value The bytes for selfLink to set. 2064 * @return This builder for chaining. 2065 */ setSelfLinkBytes(com.google.protobuf.ByteString value)2066 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 2067 if (value == null) { 2068 throw new NullPointerException(); 2069 } 2070 checkByteStringIsUtf8(value); 2071 selfLink_ = value; 2072 bitField0_ |= 0x00000040; 2073 onChanged(); 2074 return this; 2075 } 2076 2077 private java.lang.Object selfLinkWithId_ = ""; 2078 /** 2079 * 2080 * 2081 * <pre> 2082 * [Output Only] Server-defined URL with id for the resource. 2083 * </pre> 2084 * 2085 * <code>optional string self_link_with_id = 44520962;</code> 2086 * 2087 * @return Whether the selfLinkWithId field is set. 2088 */ hasSelfLinkWithId()2089 public boolean hasSelfLinkWithId() { 2090 return ((bitField0_ & 0x00000080) != 0); 2091 } 2092 /** 2093 * 2094 * 2095 * <pre> 2096 * [Output Only] Server-defined URL with id for the resource. 2097 * </pre> 2098 * 2099 * <code>optional string self_link_with_id = 44520962;</code> 2100 * 2101 * @return The selfLinkWithId. 2102 */ getSelfLinkWithId()2103 public java.lang.String getSelfLinkWithId() { 2104 java.lang.Object ref = selfLinkWithId_; 2105 if (!(ref instanceof java.lang.String)) { 2106 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2107 java.lang.String s = bs.toStringUtf8(); 2108 selfLinkWithId_ = s; 2109 return s; 2110 } else { 2111 return (java.lang.String) ref; 2112 } 2113 } 2114 /** 2115 * 2116 * 2117 * <pre> 2118 * [Output Only] Server-defined URL with id for the resource. 2119 * </pre> 2120 * 2121 * <code>optional string self_link_with_id = 44520962;</code> 2122 * 2123 * @return The bytes for selfLinkWithId. 2124 */ getSelfLinkWithIdBytes()2125 public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { 2126 java.lang.Object ref = selfLinkWithId_; 2127 if (ref instanceof String) { 2128 com.google.protobuf.ByteString b = 2129 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2130 selfLinkWithId_ = b; 2131 return b; 2132 } else { 2133 return (com.google.protobuf.ByteString) ref; 2134 } 2135 } 2136 /** 2137 * 2138 * 2139 * <pre> 2140 * [Output Only] Server-defined URL with id for the resource. 2141 * </pre> 2142 * 2143 * <code>optional string self_link_with_id = 44520962;</code> 2144 * 2145 * @param value The selfLinkWithId to set. 2146 * @return This builder for chaining. 2147 */ setSelfLinkWithId(java.lang.String value)2148 public Builder setSelfLinkWithId(java.lang.String value) { 2149 if (value == null) { 2150 throw new NullPointerException(); 2151 } 2152 selfLinkWithId_ = value; 2153 bitField0_ |= 0x00000080; 2154 onChanged(); 2155 return this; 2156 } 2157 /** 2158 * 2159 * 2160 * <pre> 2161 * [Output Only] Server-defined URL with id for the resource. 2162 * </pre> 2163 * 2164 * <code>optional string self_link_with_id = 44520962;</code> 2165 * 2166 * @return This builder for chaining. 2167 */ clearSelfLinkWithId()2168 public Builder clearSelfLinkWithId() { 2169 selfLinkWithId_ = getDefaultInstance().getSelfLinkWithId(); 2170 bitField0_ = (bitField0_ & ~0x00000080); 2171 onChanged(); 2172 return this; 2173 } 2174 /** 2175 * 2176 * 2177 * <pre> 2178 * [Output Only] Server-defined URL with id for the resource. 2179 * </pre> 2180 * 2181 * <code>optional string self_link_with_id = 44520962;</code> 2182 * 2183 * @param value The bytes for selfLinkWithId to set. 2184 * @return This builder for chaining. 2185 */ setSelfLinkWithIdBytes(com.google.protobuf.ByteString value)2186 public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { 2187 if (value == null) { 2188 throw new NullPointerException(); 2189 } 2190 checkByteStringIsUtf8(value); 2191 selfLinkWithId_ = value; 2192 bitField0_ |= 0x00000080; 2193 onChanged(); 2194 return this; 2195 } 2196 2197 private java.lang.Object urlMap_ = ""; 2198 /** 2199 * 2200 * 2201 * <pre> 2202 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. 2203 * </pre> 2204 * 2205 * <code>optional string url_map = 367020684;</code> 2206 * 2207 * @return Whether the urlMap field is set. 2208 */ hasUrlMap()2209 public boolean hasUrlMap() { 2210 return ((bitField0_ & 0x00000100) != 0); 2211 } 2212 /** 2213 * 2214 * 2215 * <pre> 2216 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. 2217 * </pre> 2218 * 2219 * <code>optional string url_map = 367020684;</code> 2220 * 2221 * @return The urlMap. 2222 */ getUrlMap()2223 public java.lang.String getUrlMap() { 2224 java.lang.Object ref = urlMap_; 2225 if (!(ref instanceof java.lang.String)) { 2226 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2227 java.lang.String s = bs.toStringUtf8(); 2228 urlMap_ = s; 2229 return s; 2230 } else { 2231 return (java.lang.String) ref; 2232 } 2233 } 2234 /** 2235 * 2236 * 2237 * <pre> 2238 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. 2239 * </pre> 2240 * 2241 * <code>optional string url_map = 367020684;</code> 2242 * 2243 * @return The bytes for urlMap. 2244 */ getUrlMapBytes()2245 public com.google.protobuf.ByteString getUrlMapBytes() { 2246 java.lang.Object ref = urlMap_; 2247 if (ref instanceof String) { 2248 com.google.protobuf.ByteString b = 2249 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2250 urlMap_ = b; 2251 return b; 2252 } else { 2253 return (com.google.protobuf.ByteString) ref; 2254 } 2255 } 2256 /** 2257 * 2258 * 2259 * <pre> 2260 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. 2261 * </pre> 2262 * 2263 * <code>optional string url_map = 367020684;</code> 2264 * 2265 * @param value The urlMap to set. 2266 * @return This builder for chaining. 2267 */ setUrlMap(java.lang.String value)2268 public Builder setUrlMap(java.lang.String value) { 2269 if (value == null) { 2270 throw new NullPointerException(); 2271 } 2272 urlMap_ = value; 2273 bitField0_ |= 0x00000100; 2274 onChanged(); 2275 return this; 2276 } 2277 /** 2278 * 2279 * 2280 * <pre> 2281 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. 2282 * </pre> 2283 * 2284 * <code>optional string url_map = 367020684;</code> 2285 * 2286 * @return This builder for chaining. 2287 */ clearUrlMap()2288 public Builder clearUrlMap() { 2289 urlMap_ = getDefaultInstance().getUrlMap(); 2290 bitField0_ = (bitField0_ & ~0x00000100); 2291 onChanged(); 2292 return this; 2293 } 2294 /** 2295 * 2296 * 2297 * <pre> 2298 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The protocol field in the BackendService must be set to GRPC. 2299 * </pre> 2300 * 2301 * <code>optional string url_map = 367020684;</code> 2302 * 2303 * @param value The bytes for urlMap to set. 2304 * @return This builder for chaining. 2305 */ setUrlMapBytes(com.google.protobuf.ByteString value)2306 public Builder setUrlMapBytes(com.google.protobuf.ByteString value) { 2307 if (value == null) { 2308 throw new NullPointerException(); 2309 } 2310 checkByteStringIsUtf8(value); 2311 urlMap_ = value; 2312 bitField0_ |= 0x00000100; 2313 onChanged(); 2314 return this; 2315 } 2316 2317 private boolean validateForProxyless_; 2318 /** 2319 * 2320 * 2321 * <pre> 2322 * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC applications without using a sidecar proxy. This will enable configuration checks on urlMap and its referenced BackendServices to not allow unsupported features. A gRPC application must use "xds:///" scheme in the target URI of the service it is connecting to. If false, indicates that the BackendServices referenced by the urlMap will be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC application must not use "xds:///" scheme in the target URI of the service it is connecting to 2323 * </pre> 2324 * 2325 * <code>optional bool validate_for_proxyless = 101822888;</code> 2326 * 2327 * @return Whether the validateForProxyless field is set. 2328 */ 2329 @java.lang.Override hasValidateForProxyless()2330 public boolean hasValidateForProxyless() { 2331 return ((bitField0_ & 0x00000200) != 0); 2332 } 2333 /** 2334 * 2335 * 2336 * <pre> 2337 * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC applications without using a sidecar proxy. This will enable configuration checks on urlMap and its referenced BackendServices to not allow unsupported features. A gRPC application must use "xds:///" scheme in the target URI of the service it is connecting to. If false, indicates that the BackendServices referenced by the urlMap will be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC application must not use "xds:///" scheme in the target URI of the service it is connecting to 2338 * </pre> 2339 * 2340 * <code>optional bool validate_for_proxyless = 101822888;</code> 2341 * 2342 * @return The validateForProxyless. 2343 */ 2344 @java.lang.Override getValidateForProxyless()2345 public boolean getValidateForProxyless() { 2346 return validateForProxyless_; 2347 } 2348 /** 2349 * 2350 * 2351 * <pre> 2352 * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC applications without using a sidecar proxy. This will enable configuration checks on urlMap and its referenced BackendServices to not allow unsupported features. A gRPC application must use "xds:///" scheme in the target URI of the service it is connecting to. If false, indicates that the BackendServices referenced by the urlMap will be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC application must not use "xds:///" scheme in the target URI of the service it is connecting to 2353 * </pre> 2354 * 2355 * <code>optional bool validate_for_proxyless = 101822888;</code> 2356 * 2357 * @param value The validateForProxyless to set. 2358 * @return This builder for chaining. 2359 */ setValidateForProxyless(boolean value)2360 public Builder setValidateForProxyless(boolean value) { 2361 2362 validateForProxyless_ = value; 2363 bitField0_ |= 0x00000200; 2364 onChanged(); 2365 return this; 2366 } 2367 /** 2368 * 2369 * 2370 * <pre> 2371 * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC applications without using a sidecar proxy. This will enable configuration checks on urlMap and its referenced BackendServices to not allow unsupported features. A gRPC application must use "xds:///" scheme in the target URI of the service it is connecting to. If false, indicates that the BackendServices referenced by the urlMap will be accessed by gRPC applications via a sidecar proxy. In this case, a gRPC application must not use "xds:///" scheme in the target URI of the service it is connecting to 2372 * </pre> 2373 * 2374 * <code>optional bool validate_for_proxyless = 101822888;</code> 2375 * 2376 * @return This builder for chaining. 2377 */ clearValidateForProxyless()2378 public Builder clearValidateForProxyless() { 2379 bitField0_ = (bitField0_ & ~0x00000200); 2380 validateForProxyless_ = false; 2381 onChanged(); 2382 return this; 2383 } 2384 2385 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2386 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2387 return super.setUnknownFields(unknownFields); 2388 } 2389 2390 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2391 public final Builder mergeUnknownFields( 2392 final com.google.protobuf.UnknownFieldSet unknownFields) { 2393 return super.mergeUnknownFields(unknownFields); 2394 } 2395 2396 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.TargetGrpcProxy) 2397 } 2398 2399 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.TargetGrpcProxy) 2400 private static final com.google.cloud.compute.v1.TargetGrpcProxy DEFAULT_INSTANCE; 2401 2402 static { 2403 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.TargetGrpcProxy(); 2404 } 2405 getDefaultInstance()2406 public static com.google.cloud.compute.v1.TargetGrpcProxy getDefaultInstance() { 2407 return DEFAULT_INSTANCE; 2408 } 2409 2410 private static final com.google.protobuf.Parser<TargetGrpcProxy> PARSER = 2411 new com.google.protobuf.AbstractParser<TargetGrpcProxy>() { 2412 @java.lang.Override 2413 public TargetGrpcProxy parsePartialFrom( 2414 com.google.protobuf.CodedInputStream input, 2415 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2416 throws com.google.protobuf.InvalidProtocolBufferException { 2417 Builder builder = newBuilder(); 2418 try { 2419 builder.mergeFrom(input, extensionRegistry); 2420 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2421 throw e.setUnfinishedMessage(builder.buildPartial()); 2422 } catch (com.google.protobuf.UninitializedMessageException e) { 2423 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2424 } catch (java.io.IOException e) { 2425 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2426 .setUnfinishedMessage(builder.buildPartial()); 2427 } 2428 return builder.buildPartial(); 2429 } 2430 }; 2431 parser()2432 public static com.google.protobuf.Parser<TargetGrpcProxy> parser() { 2433 return PARSER; 2434 } 2435 2436 @java.lang.Override getParserForType()2437 public com.google.protobuf.Parser<TargetGrpcProxy> getParserForType() { 2438 return PARSER; 2439 } 2440 2441 @java.lang.Override getDefaultInstanceForType()2442 public com.google.cloud.compute.v1.TargetGrpcProxy getDefaultInstanceForType() { 2443 return DEFAULT_INSTANCE; 2444 } 2445 } 2446