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 HTTP Proxy resource. Google Compute Engine has two Target HTTP Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpProxies) A target HTTP proxy is a component of GCP HTTP load balancers. * targetHttpProxies are used by external HTTP load balancers and Traffic Director. * regionTargetHttpProxies are used by internal HTTP load balancers. Forwarding rules reference a target HTTP proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.TargetHttpProxy} 29 */ 30 public final class TargetHttpProxy extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.TargetHttpProxy) 33 TargetHttpProxyOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use TargetHttpProxy.newBuilder() to construct. TargetHttpProxy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private TargetHttpProxy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 TargetHttpProxy()40 private TargetHttpProxy() { 41 creationTimestamp_ = ""; 42 description_ = ""; 43 fingerprint_ = ""; 44 kind_ = ""; 45 name_ = ""; 46 region_ = ""; 47 selfLink_ = ""; 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 TargetHttpProxy(); 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_TargetHttpProxy_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_TargetHttpProxy_fieldAccessorTable 72 .ensureFieldAccessorsInitialized( 73 com.google.cloud.compute.v1.TargetHttpProxy.class, 74 com.google.cloud.compute.v1.TargetHttpProxy.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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. 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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. 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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. 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. This identifier is defined by the server. 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. This identifier is defined by the server. 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 resource. Always compute#targetHttpProxy for target HTTP 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 resource. Always compute#targetHttpProxy for target HTTP 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 resource. Always compute#targetHttpProxy for target HTTP 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 PROXY_BIND_FIELD_NUMBER = 286025582; 442 private boolean proxyBind_ = false; 443 /** 444 * 445 * 446 * <pre> 447 * This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false. 448 * </pre> 449 * 450 * <code>optional bool proxy_bind = 286025582;</code> 451 * 452 * @return Whether the proxyBind field is set. 453 */ 454 @java.lang.Override hasProxyBind()455 public boolean hasProxyBind() { 456 return ((bitField0_ & 0x00000040) != 0); 457 } 458 /** 459 * 460 * 461 * <pre> 462 * This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false. 463 * </pre> 464 * 465 * <code>optional bool proxy_bind = 286025582;</code> 466 * 467 * @return The proxyBind. 468 */ 469 @java.lang.Override getProxyBind()470 public boolean getProxyBind() { 471 return proxyBind_; 472 } 473 474 public static final int REGION_FIELD_NUMBER = 138946292; 475 476 @SuppressWarnings("serial") 477 private volatile java.lang.Object region_ = ""; 478 /** 479 * 480 * 481 * <pre> 482 * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. 483 * </pre> 484 * 485 * <code>optional string region = 138946292;</code> 486 * 487 * @return Whether the region field is set. 488 */ 489 @java.lang.Override hasRegion()490 public boolean hasRegion() { 491 return ((bitField0_ & 0x00000080) != 0); 492 } 493 /** 494 * 495 * 496 * <pre> 497 * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. 498 * </pre> 499 * 500 * <code>optional string region = 138946292;</code> 501 * 502 * @return The region. 503 */ 504 @java.lang.Override getRegion()505 public java.lang.String getRegion() { 506 java.lang.Object ref = region_; 507 if (ref instanceof java.lang.String) { 508 return (java.lang.String) ref; 509 } else { 510 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 511 java.lang.String s = bs.toStringUtf8(); 512 region_ = s; 513 return s; 514 } 515 } 516 /** 517 * 518 * 519 * <pre> 520 * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. 521 * </pre> 522 * 523 * <code>optional string region = 138946292;</code> 524 * 525 * @return The bytes for region. 526 */ 527 @java.lang.Override getRegionBytes()528 public com.google.protobuf.ByteString getRegionBytes() { 529 java.lang.Object ref = region_; 530 if (ref instanceof java.lang.String) { 531 com.google.protobuf.ByteString b = 532 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 533 region_ = b; 534 return b; 535 } else { 536 return (com.google.protobuf.ByteString) ref; 537 } 538 } 539 540 public static final int SELF_LINK_FIELD_NUMBER = 456214797; 541 542 @SuppressWarnings("serial") 543 private volatile java.lang.Object selfLink_ = ""; 544 /** 545 * 546 * 547 * <pre> 548 * [Output Only] Server-defined URL for the resource. 549 * </pre> 550 * 551 * <code>optional string self_link = 456214797;</code> 552 * 553 * @return Whether the selfLink field is set. 554 */ 555 @java.lang.Override hasSelfLink()556 public boolean hasSelfLink() { 557 return ((bitField0_ & 0x00000100) != 0); 558 } 559 /** 560 * 561 * 562 * <pre> 563 * [Output Only] Server-defined URL for the resource. 564 * </pre> 565 * 566 * <code>optional string self_link = 456214797;</code> 567 * 568 * @return The selfLink. 569 */ 570 @java.lang.Override getSelfLink()571 public java.lang.String getSelfLink() { 572 java.lang.Object ref = selfLink_; 573 if (ref instanceof java.lang.String) { 574 return (java.lang.String) ref; 575 } else { 576 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 577 java.lang.String s = bs.toStringUtf8(); 578 selfLink_ = s; 579 return s; 580 } 581 } 582 /** 583 * 584 * 585 * <pre> 586 * [Output Only] Server-defined URL for the resource. 587 * </pre> 588 * 589 * <code>optional string self_link = 456214797;</code> 590 * 591 * @return The bytes for selfLink. 592 */ 593 @java.lang.Override getSelfLinkBytes()594 public com.google.protobuf.ByteString getSelfLinkBytes() { 595 java.lang.Object ref = selfLink_; 596 if (ref instanceof java.lang.String) { 597 com.google.protobuf.ByteString b = 598 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 599 selfLink_ = b; 600 return b; 601 } else { 602 return (com.google.protobuf.ByteString) ref; 603 } 604 } 605 606 public static final int URL_MAP_FIELD_NUMBER = 367020684; 607 608 @SuppressWarnings("serial") 609 private volatile java.lang.Object urlMap_ = ""; 610 /** 611 * 612 * 613 * <pre> 614 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. 615 * </pre> 616 * 617 * <code>optional string url_map = 367020684;</code> 618 * 619 * @return Whether the urlMap field is set. 620 */ 621 @java.lang.Override hasUrlMap()622 public boolean hasUrlMap() { 623 return ((bitField0_ & 0x00000200) != 0); 624 } 625 /** 626 * 627 * 628 * <pre> 629 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. 630 * </pre> 631 * 632 * <code>optional string url_map = 367020684;</code> 633 * 634 * @return The urlMap. 635 */ 636 @java.lang.Override getUrlMap()637 public java.lang.String getUrlMap() { 638 java.lang.Object ref = urlMap_; 639 if (ref instanceof java.lang.String) { 640 return (java.lang.String) ref; 641 } else { 642 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 643 java.lang.String s = bs.toStringUtf8(); 644 urlMap_ = s; 645 return s; 646 } 647 } 648 /** 649 * 650 * 651 * <pre> 652 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. 653 * </pre> 654 * 655 * <code>optional string url_map = 367020684;</code> 656 * 657 * @return The bytes for urlMap. 658 */ 659 @java.lang.Override getUrlMapBytes()660 public com.google.protobuf.ByteString getUrlMapBytes() { 661 java.lang.Object ref = urlMap_; 662 if (ref instanceof java.lang.String) { 663 com.google.protobuf.ByteString b = 664 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 665 urlMap_ = b; 666 return b; 667 } else { 668 return (com.google.protobuf.ByteString) ref; 669 } 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, 138946292, region_); 700 } 701 if (((bitField0_ & 0x00000004) != 0)) { 702 com.google.protobuf.GeneratedMessageV3.writeString(output, 234678500, fingerprint_); 703 } 704 if (((bitField0_ & 0x00000040) != 0)) { 705 output.writeBool(286025582, proxyBind_); 706 } 707 if (((bitField0_ & 0x00000200) != 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_ & 0x00000100) != 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(138946292, region_); 740 } 741 if (((bitField0_ & 0x00000004) != 0)) { 742 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(234678500, fingerprint_); 743 } 744 if (((bitField0_ & 0x00000040) != 0)) { 745 size += com.google.protobuf.CodedOutputStream.computeBoolSize(286025582, proxyBind_); 746 } 747 if (((bitField0_ & 0x00000200) != 0)) { 748 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(367020684, urlMap_); 749 } 750 if (((bitField0_ & 0x00000002) != 0)) { 751 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); 752 } 753 if (((bitField0_ & 0x00000100) != 0)) { 754 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 755 } 756 size += getUnknownFields().getSerializedSize(); 757 memoizedSize = size; 758 return size; 759 } 760 761 @java.lang.Override equals(final java.lang.Object obj)762 public boolean equals(final java.lang.Object obj) { 763 if (obj == this) { 764 return true; 765 } 766 if (!(obj instanceof com.google.cloud.compute.v1.TargetHttpProxy)) { 767 return super.equals(obj); 768 } 769 com.google.cloud.compute.v1.TargetHttpProxy other = 770 (com.google.cloud.compute.v1.TargetHttpProxy) obj; 771 772 if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; 773 if (hasCreationTimestamp()) { 774 if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; 775 } 776 if (hasDescription() != other.hasDescription()) return false; 777 if (hasDescription()) { 778 if (!getDescription().equals(other.getDescription())) return false; 779 } 780 if (hasFingerprint() != other.hasFingerprint()) return false; 781 if (hasFingerprint()) { 782 if (!getFingerprint().equals(other.getFingerprint())) return false; 783 } 784 if (hasId() != other.hasId()) return false; 785 if (hasId()) { 786 if (getId() != other.getId()) return false; 787 } 788 if (hasKind() != other.hasKind()) return false; 789 if (hasKind()) { 790 if (!getKind().equals(other.getKind())) return false; 791 } 792 if (hasName() != other.hasName()) return false; 793 if (hasName()) { 794 if (!getName().equals(other.getName())) return false; 795 } 796 if (hasProxyBind() != other.hasProxyBind()) return false; 797 if (hasProxyBind()) { 798 if (getProxyBind() != other.getProxyBind()) return false; 799 } 800 if (hasRegion() != other.hasRegion()) return false; 801 if (hasRegion()) { 802 if (!getRegion().equals(other.getRegion())) return false; 803 } 804 if (hasSelfLink() != other.hasSelfLink()) return false; 805 if (hasSelfLink()) { 806 if (!getSelfLink().equals(other.getSelfLink())) return false; 807 } 808 if (hasUrlMap() != other.hasUrlMap()) return false; 809 if (hasUrlMap()) { 810 if (!getUrlMap().equals(other.getUrlMap())) return false; 811 } 812 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 813 return true; 814 } 815 816 @java.lang.Override hashCode()817 public int hashCode() { 818 if (memoizedHashCode != 0) { 819 return memoizedHashCode; 820 } 821 int hash = 41; 822 hash = (19 * hash) + getDescriptor().hashCode(); 823 if (hasCreationTimestamp()) { 824 hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; 825 hash = (53 * hash) + getCreationTimestamp().hashCode(); 826 } 827 if (hasDescription()) { 828 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 829 hash = (53 * hash) + getDescription().hashCode(); 830 } 831 if (hasFingerprint()) { 832 hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; 833 hash = (53 * hash) + getFingerprint().hashCode(); 834 } 835 if (hasId()) { 836 hash = (37 * hash) + ID_FIELD_NUMBER; 837 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); 838 } 839 if (hasKind()) { 840 hash = (37 * hash) + KIND_FIELD_NUMBER; 841 hash = (53 * hash) + getKind().hashCode(); 842 } 843 if (hasName()) { 844 hash = (37 * hash) + NAME_FIELD_NUMBER; 845 hash = (53 * hash) + getName().hashCode(); 846 } 847 if (hasProxyBind()) { 848 hash = (37 * hash) + PROXY_BIND_FIELD_NUMBER; 849 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProxyBind()); 850 } 851 if (hasRegion()) { 852 hash = (37 * hash) + REGION_FIELD_NUMBER; 853 hash = (53 * hash) + getRegion().hashCode(); 854 } 855 if (hasSelfLink()) { 856 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 857 hash = (53 * hash) + getSelfLink().hashCode(); 858 } 859 if (hasUrlMap()) { 860 hash = (37 * hash) + URL_MAP_FIELD_NUMBER; 861 hash = (53 * hash) + getUrlMap().hashCode(); 862 } 863 hash = (29 * hash) + getUnknownFields().hashCode(); 864 memoizedHashCode = hash; 865 return hash; 866 } 867 parseFrom(java.nio.ByteBuffer data)868 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom(java.nio.ByteBuffer data) 869 throws com.google.protobuf.InvalidProtocolBufferException { 870 return PARSER.parseFrom(data); 871 } 872 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)873 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom( 874 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 875 throws com.google.protobuf.InvalidProtocolBufferException { 876 return PARSER.parseFrom(data, extensionRegistry); 877 } 878 parseFrom( com.google.protobuf.ByteString data)879 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom( 880 com.google.protobuf.ByteString data) 881 throws com.google.protobuf.InvalidProtocolBufferException { 882 return PARSER.parseFrom(data); 883 } 884 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)885 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom( 886 com.google.protobuf.ByteString data, 887 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 888 throws com.google.protobuf.InvalidProtocolBufferException { 889 return PARSER.parseFrom(data, extensionRegistry); 890 } 891 parseFrom(byte[] data)892 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom(byte[] data) 893 throws com.google.protobuf.InvalidProtocolBufferException { 894 return PARSER.parseFrom(data); 895 } 896 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)897 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom( 898 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 899 throws com.google.protobuf.InvalidProtocolBufferException { 900 return PARSER.parseFrom(data, extensionRegistry); 901 } 902 parseFrom(java.io.InputStream input)903 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom(java.io.InputStream input) 904 throws java.io.IOException { 905 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 906 } 907 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)908 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom( 909 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 910 throws java.io.IOException { 911 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 912 PARSER, input, extensionRegistry); 913 } 914 parseDelimitedFrom( java.io.InputStream input)915 public static com.google.cloud.compute.v1.TargetHttpProxy parseDelimitedFrom( 916 java.io.InputStream input) throws java.io.IOException { 917 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 918 } 919 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)920 public static com.google.cloud.compute.v1.TargetHttpProxy parseDelimitedFrom( 921 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 922 throws java.io.IOException { 923 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 924 PARSER, input, extensionRegistry); 925 } 926 parseFrom( com.google.protobuf.CodedInputStream input)927 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom( 928 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 929 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 930 } 931 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)932 public static com.google.cloud.compute.v1.TargetHttpProxy parseFrom( 933 com.google.protobuf.CodedInputStream input, 934 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 935 throws java.io.IOException { 936 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 937 PARSER, input, extensionRegistry); 938 } 939 940 @java.lang.Override newBuilderForType()941 public Builder newBuilderForType() { 942 return newBuilder(); 943 } 944 newBuilder()945 public static Builder newBuilder() { 946 return DEFAULT_INSTANCE.toBuilder(); 947 } 948 newBuilder(com.google.cloud.compute.v1.TargetHttpProxy prototype)949 public static Builder newBuilder(com.google.cloud.compute.v1.TargetHttpProxy prototype) { 950 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 951 } 952 953 @java.lang.Override toBuilder()954 public Builder toBuilder() { 955 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 956 } 957 958 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)959 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 960 Builder builder = new Builder(parent); 961 return builder; 962 } 963 /** 964 * 965 * 966 * <pre> 967 * Represents a Target HTTP Proxy resource. Google Compute Engine has two Target HTTP Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpProxies) A target HTTP proxy is a component of GCP HTTP load balancers. * targetHttpProxies are used by external HTTP load balancers and Traffic Director. * regionTargetHttpProxies are used by internal HTTP load balancers. Forwarding rules reference a target HTTP proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts. 968 * </pre> 969 * 970 * Protobuf type {@code google.cloud.compute.v1.TargetHttpProxy} 971 */ 972 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 973 implements 974 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.TargetHttpProxy) 975 com.google.cloud.compute.v1.TargetHttpProxyOrBuilder { getDescriptor()976 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 977 return com.google.cloud.compute.v1.Compute 978 .internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor; 979 } 980 981 @java.lang.Override 982 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()983 internalGetFieldAccessorTable() { 984 return com.google.cloud.compute.v1.Compute 985 .internal_static_google_cloud_compute_v1_TargetHttpProxy_fieldAccessorTable 986 .ensureFieldAccessorsInitialized( 987 com.google.cloud.compute.v1.TargetHttpProxy.class, 988 com.google.cloud.compute.v1.TargetHttpProxy.Builder.class); 989 } 990 991 // Construct using com.google.cloud.compute.v1.TargetHttpProxy.newBuilder() Builder()992 private Builder() {} 993 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)994 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 995 super(parent); 996 } 997 998 @java.lang.Override clear()999 public Builder clear() { 1000 super.clear(); 1001 bitField0_ = 0; 1002 creationTimestamp_ = ""; 1003 description_ = ""; 1004 fingerprint_ = ""; 1005 id_ = 0L; 1006 kind_ = ""; 1007 name_ = ""; 1008 proxyBind_ = false; 1009 region_ = ""; 1010 selfLink_ = ""; 1011 urlMap_ = ""; 1012 return this; 1013 } 1014 1015 @java.lang.Override getDescriptorForType()1016 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1017 return com.google.cloud.compute.v1.Compute 1018 .internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor; 1019 } 1020 1021 @java.lang.Override getDefaultInstanceForType()1022 public com.google.cloud.compute.v1.TargetHttpProxy getDefaultInstanceForType() { 1023 return com.google.cloud.compute.v1.TargetHttpProxy.getDefaultInstance(); 1024 } 1025 1026 @java.lang.Override build()1027 public com.google.cloud.compute.v1.TargetHttpProxy build() { 1028 com.google.cloud.compute.v1.TargetHttpProxy result = buildPartial(); 1029 if (!result.isInitialized()) { 1030 throw newUninitializedMessageException(result); 1031 } 1032 return result; 1033 } 1034 1035 @java.lang.Override buildPartial()1036 public com.google.cloud.compute.v1.TargetHttpProxy buildPartial() { 1037 com.google.cloud.compute.v1.TargetHttpProxy result = 1038 new com.google.cloud.compute.v1.TargetHttpProxy(this); 1039 if (bitField0_ != 0) { 1040 buildPartial0(result); 1041 } 1042 onBuilt(); 1043 return result; 1044 } 1045 buildPartial0(com.google.cloud.compute.v1.TargetHttpProxy result)1046 private void buildPartial0(com.google.cloud.compute.v1.TargetHttpProxy result) { 1047 int from_bitField0_ = bitField0_; 1048 int to_bitField0_ = 0; 1049 if (((from_bitField0_ & 0x00000001) != 0)) { 1050 result.creationTimestamp_ = creationTimestamp_; 1051 to_bitField0_ |= 0x00000001; 1052 } 1053 if (((from_bitField0_ & 0x00000002) != 0)) { 1054 result.description_ = description_; 1055 to_bitField0_ |= 0x00000002; 1056 } 1057 if (((from_bitField0_ & 0x00000004) != 0)) { 1058 result.fingerprint_ = fingerprint_; 1059 to_bitField0_ |= 0x00000004; 1060 } 1061 if (((from_bitField0_ & 0x00000008) != 0)) { 1062 result.id_ = id_; 1063 to_bitField0_ |= 0x00000008; 1064 } 1065 if (((from_bitField0_ & 0x00000010) != 0)) { 1066 result.kind_ = kind_; 1067 to_bitField0_ |= 0x00000010; 1068 } 1069 if (((from_bitField0_ & 0x00000020) != 0)) { 1070 result.name_ = name_; 1071 to_bitField0_ |= 0x00000020; 1072 } 1073 if (((from_bitField0_ & 0x00000040) != 0)) { 1074 result.proxyBind_ = proxyBind_; 1075 to_bitField0_ |= 0x00000040; 1076 } 1077 if (((from_bitField0_ & 0x00000080) != 0)) { 1078 result.region_ = region_; 1079 to_bitField0_ |= 0x00000080; 1080 } 1081 if (((from_bitField0_ & 0x00000100) != 0)) { 1082 result.selfLink_ = selfLink_; 1083 to_bitField0_ |= 0x00000100; 1084 } 1085 if (((from_bitField0_ & 0x00000200) != 0)) { 1086 result.urlMap_ = urlMap_; 1087 to_bitField0_ |= 0x00000200; 1088 } 1089 result.bitField0_ |= to_bitField0_; 1090 } 1091 1092 @java.lang.Override clone()1093 public Builder clone() { 1094 return super.clone(); 1095 } 1096 1097 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1098 public Builder setField( 1099 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1100 return super.setField(field, value); 1101 } 1102 1103 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1104 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1105 return super.clearField(field); 1106 } 1107 1108 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1109 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1110 return super.clearOneof(oneof); 1111 } 1112 1113 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1114 public Builder setRepeatedField( 1115 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1116 return super.setRepeatedField(field, index, value); 1117 } 1118 1119 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1120 public Builder addRepeatedField( 1121 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1122 return super.addRepeatedField(field, value); 1123 } 1124 1125 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1126 public Builder mergeFrom(com.google.protobuf.Message other) { 1127 if (other instanceof com.google.cloud.compute.v1.TargetHttpProxy) { 1128 return mergeFrom((com.google.cloud.compute.v1.TargetHttpProxy) other); 1129 } else { 1130 super.mergeFrom(other); 1131 return this; 1132 } 1133 } 1134 mergeFrom(com.google.cloud.compute.v1.TargetHttpProxy other)1135 public Builder mergeFrom(com.google.cloud.compute.v1.TargetHttpProxy other) { 1136 if (other == com.google.cloud.compute.v1.TargetHttpProxy.getDefaultInstance()) return this; 1137 if (other.hasCreationTimestamp()) { 1138 creationTimestamp_ = other.creationTimestamp_; 1139 bitField0_ |= 0x00000001; 1140 onChanged(); 1141 } 1142 if (other.hasDescription()) { 1143 description_ = other.description_; 1144 bitField0_ |= 0x00000002; 1145 onChanged(); 1146 } 1147 if (other.hasFingerprint()) { 1148 fingerprint_ = other.fingerprint_; 1149 bitField0_ |= 0x00000004; 1150 onChanged(); 1151 } 1152 if (other.hasId()) { 1153 setId(other.getId()); 1154 } 1155 if (other.hasKind()) { 1156 kind_ = other.kind_; 1157 bitField0_ |= 0x00000010; 1158 onChanged(); 1159 } 1160 if (other.hasName()) { 1161 name_ = other.name_; 1162 bitField0_ |= 0x00000020; 1163 onChanged(); 1164 } 1165 if (other.hasProxyBind()) { 1166 setProxyBind(other.getProxyBind()); 1167 } 1168 if (other.hasRegion()) { 1169 region_ = other.region_; 1170 bitField0_ |= 0x00000080; 1171 onChanged(); 1172 } 1173 if (other.hasSelfLink()) { 1174 selfLink_ = other.selfLink_; 1175 bitField0_ |= 0x00000100; 1176 onChanged(); 1177 } 1178 if (other.hasUrlMap()) { 1179 urlMap_ = other.urlMap_; 1180 bitField0_ |= 0x00000200; 1181 onChanged(); 1182 } 1183 this.mergeUnknownFields(other.getUnknownFields()); 1184 onChanged(); 1185 return this; 1186 } 1187 1188 @java.lang.Override isInitialized()1189 public final boolean isInitialized() { 1190 return true; 1191 } 1192 1193 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1194 public Builder mergeFrom( 1195 com.google.protobuf.CodedInputStream input, 1196 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1197 throws java.io.IOException { 1198 if (extensionRegistry == null) { 1199 throw new java.lang.NullPointerException(); 1200 } 1201 try { 1202 boolean done = false; 1203 while (!done) { 1204 int tag = input.readTag(); 1205 switch (tag) { 1206 case 0: 1207 done = true; 1208 break; 1209 case 26840: 1210 { 1211 id_ = input.readUInt64(); 1212 bitField0_ |= 0x00000008; 1213 break; 1214 } // case 26840 1215 case 26336418: 1216 { 1217 kind_ = input.readStringRequireUtf8(); 1218 bitField0_ |= 0x00000010; 1219 break; 1220 } // case 26336418 1221 case 26989658: 1222 { 1223 name_ = input.readStringRequireUtf8(); 1224 bitField0_ |= 0x00000020; 1225 break; 1226 } // case 26989658 1227 case 244202930: 1228 { 1229 creationTimestamp_ = input.readStringRequireUtf8(); 1230 bitField0_ |= 0x00000001; 1231 break; 1232 } // case 244202930 1233 case 1111570338: 1234 { 1235 region_ = input.readStringRequireUtf8(); 1236 bitField0_ |= 0x00000080; 1237 break; 1238 } // case 1111570338 1239 case 1877428002: 1240 { 1241 fingerprint_ = input.readStringRequireUtf8(); 1242 bitField0_ |= 0x00000004; 1243 break; 1244 } // case 1877428002 1245 case -2006762640: 1246 { 1247 proxyBind_ = input.readBool(); 1248 bitField0_ |= 0x00000040; 1249 break; 1250 } // case -2006762640 1251 case -1358801822: 1252 { 1253 urlMap_ = input.readStringRequireUtf8(); 1254 bitField0_ |= 0x00000200; 1255 break; 1256 } // case -1358801822 1257 case -911466526: 1258 { 1259 description_ = input.readStringRequireUtf8(); 1260 bitField0_ |= 0x00000002; 1261 break; 1262 } // case -911466526 1263 case -645248918: 1264 { 1265 selfLink_ = input.readStringRequireUtf8(); 1266 bitField0_ |= 0x00000100; 1267 break; 1268 } // case -645248918 1269 default: 1270 { 1271 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1272 done = true; // was an endgroup tag 1273 } 1274 break; 1275 } // default: 1276 } // switch (tag) 1277 } // while (!done) 1278 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1279 throw e.unwrapIOException(); 1280 } finally { 1281 onChanged(); 1282 } // finally 1283 return this; 1284 } 1285 1286 private int bitField0_; 1287 1288 private java.lang.Object creationTimestamp_ = ""; 1289 /** 1290 * 1291 * 1292 * <pre> 1293 * [Output Only] Creation timestamp in RFC3339 text format. 1294 * </pre> 1295 * 1296 * <code>optional string creation_timestamp = 30525366;</code> 1297 * 1298 * @return Whether the creationTimestamp field is set. 1299 */ hasCreationTimestamp()1300 public boolean hasCreationTimestamp() { 1301 return ((bitField0_ & 0x00000001) != 0); 1302 } 1303 /** 1304 * 1305 * 1306 * <pre> 1307 * [Output Only] Creation timestamp in RFC3339 text format. 1308 * </pre> 1309 * 1310 * <code>optional string creation_timestamp = 30525366;</code> 1311 * 1312 * @return The creationTimestamp. 1313 */ getCreationTimestamp()1314 public java.lang.String getCreationTimestamp() { 1315 java.lang.Object ref = creationTimestamp_; 1316 if (!(ref instanceof java.lang.String)) { 1317 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1318 java.lang.String s = bs.toStringUtf8(); 1319 creationTimestamp_ = s; 1320 return s; 1321 } else { 1322 return (java.lang.String) ref; 1323 } 1324 } 1325 /** 1326 * 1327 * 1328 * <pre> 1329 * [Output Only] Creation timestamp in RFC3339 text format. 1330 * </pre> 1331 * 1332 * <code>optional string creation_timestamp = 30525366;</code> 1333 * 1334 * @return The bytes for creationTimestamp. 1335 */ getCreationTimestampBytes()1336 public com.google.protobuf.ByteString getCreationTimestampBytes() { 1337 java.lang.Object ref = creationTimestamp_; 1338 if (ref instanceof String) { 1339 com.google.protobuf.ByteString b = 1340 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1341 creationTimestamp_ = b; 1342 return b; 1343 } else { 1344 return (com.google.protobuf.ByteString) ref; 1345 } 1346 } 1347 /** 1348 * 1349 * 1350 * <pre> 1351 * [Output Only] Creation timestamp in RFC3339 text format. 1352 * </pre> 1353 * 1354 * <code>optional string creation_timestamp = 30525366;</code> 1355 * 1356 * @param value The creationTimestamp to set. 1357 * @return This builder for chaining. 1358 */ setCreationTimestamp(java.lang.String value)1359 public Builder setCreationTimestamp(java.lang.String value) { 1360 if (value == null) { 1361 throw new NullPointerException(); 1362 } 1363 creationTimestamp_ = value; 1364 bitField0_ |= 0x00000001; 1365 onChanged(); 1366 return this; 1367 } 1368 /** 1369 * 1370 * 1371 * <pre> 1372 * [Output Only] Creation timestamp in RFC3339 text format. 1373 * </pre> 1374 * 1375 * <code>optional string creation_timestamp = 30525366;</code> 1376 * 1377 * @return This builder for chaining. 1378 */ clearCreationTimestamp()1379 public Builder clearCreationTimestamp() { 1380 creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); 1381 bitField0_ = (bitField0_ & ~0x00000001); 1382 onChanged(); 1383 return this; 1384 } 1385 /** 1386 * 1387 * 1388 * <pre> 1389 * [Output Only] Creation timestamp in RFC3339 text format. 1390 * </pre> 1391 * 1392 * <code>optional string creation_timestamp = 30525366;</code> 1393 * 1394 * @param value The bytes for creationTimestamp to set. 1395 * @return This builder for chaining. 1396 */ setCreationTimestampBytes(com.google.protobuf.ByteString value)1397 public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { 1398 if (value == null) { 1399 throw new NullPointerException(); 1400 } 1401 checkByteStringIsUtf8(value); 1402 creationTimestamp_ = value; 1403 bitField0_ |= 0x00000001; 1404 onChanged(); 1405 return this; 1406 } 1407 1408 private java.lang.Object description_ = ""; 1409 /** 1410 * 1411 * 1412 * <pre> 1413 * An optional description of this resource. Provide this property when you create the resource. 1414 * </pre> 1415 * 1416 * <code>optional string description = 422937596;</code> 1417 * 1418 * @return Whether the description field is set. 1419 */ hasDescription()1420 public boolean hasDescription() { 1421 return ((bitField0_ & 0x00000002) != 0); 1422 } 1423 /** 1424 * 1425 * 1426 * <pre> 1427 * An optional description of this resource. Provide this property when you create the resource. 1428 * </pre> 1429 * 1430 * <code>optional string description = 422937596;</code> 1431 * 1432 * @return The description. 1433 */ getDescription()1434 public java.lang.String getDescription() { 1435 java.lang.Object ref = description_; 1436 if (!(ref instanceof java.lang.String)) { 1437 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1438 java.lang.String s = bs.toStringUtf8(); 1439 description_ = s; 1440 return s; 1441 } else { 1442 return (java.lang.String) ref; 1443 } 1444 } 1445 /** 1446 * 1447 * 1448 * <pre> 1449 * An optional description of this resource. Provide this property when you create the resource. 1450 * </pre> 1451 * 1452 * <code>optional string description = 422937596;</code> 1453 * 1454 * @return The bytes for description. 1455 */ getDescriptionBytes()1456 public com.google.protobuf.ByteString getDescriptionBytes() { 1457 java.lang.Object ref = description_; 1458 if (ref instanceof String) { 1459 com.google.protobuf.ByteString b = 1460 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1461 description_ = b; 1462 return b; 1463 } else { 1464 return (com.google.protobuf.ByteString) ref; 1465 } 1466 } 1467 /** 1468 * 1469 * 1470 * <pre> 1471 * An optional description of this resource. Provide this property when you create the resource. 1472 * </pre> 1473 * 1474 * <code>optional string description = 422937596;</code> 1475 * 1476 * @param value The description to set. 1477 * @return This builder for chaining. 1478 */ setDescription(java.lang.String value)1479 public Builder setDescription(java.lang.String value) { 1480 if (value == null) { 1481 throw new NullPointerException(); 1482 } 1483 description_ = value; 1484 bitField0_ |= 0x00000002; 1485 onChanged(); 1486 return this; 1487 } 1488 /** 1489 * 1490 * 1491 * <pre> 1492 * An optional description of this resource. Provide this property when you create the resource. 1493 * </pre> 1494 * 1495 * <code>optional string description = 422937596;</code> 1496 * 1497 * @return This builder for chaining. 1498 */ clearDescription()1499 public Builder clearDescription() { 1500 description_ = getDefaultInstance().getDescription(); 1501 bitField0_ = (bitField0_ & ~0x00000002); 1502 onChanged(); 1503 return this; 1504 } 1505 /** 1506 * 1507 * 1508 * <pre> 1509 * An optional description of this resource. Provide this property when you create the resource. 1510 * </pre> 1511 * 1512 * <code>optional string description = 422937596;</code> 1513 * 1514 * @param value The bytes for description to set. 1515 * @return This builder for chaining. 1516 */ setDescriptionBytes(com.google.protobuf.ByteString value)1517 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 1518 if (value == null) { 1519 throw new NullPointerException(); 1520 } 1521 checkByteStringIsUtf8(value); 1522 description_ = value; 1523 bitField0_ |= 0x00000002; 1524 onChanged(); 1525 return this; 1526 } 1527 1528 private java.lang.Object fingerprint_ = ""; 1529 /** 1530 * 1531 * 1532 * <pre> 1533 * 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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. 1534 * </pre> 1535 * 1536 * <code>optional string fingerprint = 234678500;</code> 1537 * 1538 * @return Whether the fingerprint field is set. 1539 */ hasFingerprint()1540 public boolean hasFingerprint() { 1541 return ((bitField0_ & 0x00000004) != 0); 1542 } 1543 /** 1544 * 1545 * 1546 * <pre> 1547 * 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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. 1548 * </pre> 1549 * 1550 * <code>optional string fingerprint = 234678500;</code> 1551 * 1552 * @return The fingerprint. 1553 */ getFingerprint()1554 public java.lang.String getFingerprint() { 1555 java.lang.Object ref = fingerprint_; 1556 if (!(ref instanceof java.lang.String)) { 1557 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1558 java.lang.String s = bs.toStringUtf8(); 1559 fingerprint_ = s; 1560 return s; 1561 } else { 1562 return (java.lang.String) ref; 1563 } 1564 } 1565 /** 1566 * 1567 * 1568 * <pre> 1569 * 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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. 1570 * </pre> 1571 * 1572 * <code>optional string fingerprint = 234678500;</code> 1573 * 1574 * @return The bytes for fingerprint. 1575 */ getFingerprintBytes()1576 public com.google.protobuf.ByteString getFingerprintBytes() { 1577 java.lang.Object ref = fingerprint_; 1578 if (ref instanceof String) { 1579 com.google.protobuf.ByteString b = 1580 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1581 fingerprint_ = b; 1582 return b; 1583 } else { 1584 return (com.google.protobuf.ByteString) ref; 1585 } 1586 } 1587 /** 1588 * 1589 * 1590 * <pre> 1591 * 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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. 1592 * </pre> 1593 * 1594 * <code>optional string fingerprint = 234678500;</code> 1595 * 1596 * @param value The fingerprint to set. 1597 * @return This builder for chaining. 1598 */ setFingerprint(java.lang.String value)1599 public Builder setFingerprint(java.lang.String value) { 1600 if (value == null) { 1601 throw new NullPointerException(); 1602 } 1603 fingerprint_ = value; 1604 bitField0_ |= 0x00000004; 1605 onChanged(); 1606 return this; 1607 } 1608 /** 1609 * 1610 * 1611 * <pre> 1612 * 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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. 1613 * </pre> 1614 * 1615 * <code>optional string fingerprint = 234678500;</code> 1616 * 1617 * @return This builder for chaining. 1618 */ clearFingerprint()1619 public Builder clearFingerprint() { 1620 fingerprint_ = getDefaultInstance().getFingerprint(); 1621 bitField0_ = (bitField0_ & ~0x00000004); 1622 onChanged(); 1623 return this; 1624 } 1625 /** 1626 * 1627 * 1628 * <pre> 1629 * 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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. 1630 * </pre> 1631 * 1632 * <code>optional string fingerprint = 234678500;</code> 1633 * 1634 * @param value The bytes for fingerprint to set. 1635 * @return This builder for chaining. 1636 */ setFingerprintBytes(com.google.protobuf.ByteString value)1637 public Builder setFingerprintBytes(com.google.protobuf.ByteString value) { 1638 if (value == null) { 1639 throw new NullPointerException(); 1640 } 1641 checkByteStringIsUtf8(value); 1642 fingerprint_ = value; 1643 bitField0_ |= 0x00000004; 1644 onChanged(); 1645 return this; 1646 } 1647 1648 private long id_; 1649 /** 1650 * 1651 * 1652 * <pre> 1653 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1654 * </pre> 1655 * 1656 * <code>optional uint64 id = 3355;</code> 1657 * 1658 * @return Whether the id field is set. 1659 */ 1660 @java.lang.Override hasId()1661 public boolean hasId() { 1662 return ((bitField0_ & 0x00000008) != 0); 1663 } 1664 /** 1665 * 1666 * 1667 * <pre> 1668 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1669 * </pre> 1670 * 1671 * <code>optional uint64 id = 3355;</code> 1672 * 1673 * @return The id. 1674 */ 1675 @java.lang.Override getId()1676 public long getId() { 1677 return id_; 1678 } 1679 /** 1680 * 1681 * 1682 * <pre> 1683 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1684 * </pre> 1685 * 1686 * <code>optional uint64 id = 3355;</code> 1687 * 1688 * @param value The id to set. 1689 * @return This builder for chaining. 1690 */ setId(long value)1691 public Builder setId(long value) { 1692 1693 id_ = value; 1694 bitField0_ |= 0x00000008; 1695 onChanged(); 1696 return this; 1697 } 1698 /** 1699 * 1700 * 1701 * <pre> 1702 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1703 * </pre> 1704 * 1705 * <code>optional uint64 id = 3355;</code> 1706 * 1707 * @return This builder for chaining. 1708 */ clearId()1709 public Builder clearId() { 1710 bitField0_ = (bitField0_ & ~0x00000008); 1711 id_ = 0L; 1712 onChanged(); 1713 return this; 1714 } 1715 1716 private java.lang.Object kind_ = ""; 1717 /** 1718 * 1719 * 1720 * <pre> 1721 * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. 1722 * </pre> 1723 * 1724 * <code>optional string kind = 3292052;</code> 1725 * 1726 * @return Whether the kind field is set. 1727 */ hasKind()1728 public boolean hasKind() { 1729 return ((bitField0_ & 0x00000010) != 0); 1730 } 1731 /** 1732 * 1733 * 1734 * <pre> 1735 * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. 1736 * </pre> 1737 * 1738 * <code>optional string kind = 3292052;</code> 1739 * 1740 * @return The kind. 1741 */ getKind()1742 public java.lang.String getKind() { 1743 java.lang.Object ref = kind_; 1744 if (!(ref instanceof java.lang.String)) { 1745 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1746 java.lang.String s = bs.toStringUtf8(); 1747 kind_ = s; 1748 return s; 1749 } else { 1750 return (java.lang.String) ref; 1751 } 1752 } 1753 /** 1754 * 1755 * 1756 * <pre> 1757 * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. 1758 * </pre> 1759 * 1760 * <code>optional string kind = 3292052;</code> 1761 * 1762 * @return The bytes for kind. 1763 */ getKindBytes()1764 public com.google.protobuf.ByteString getKindBytes() { 1765 java.lang.Object ref = kind_; 1766 if (ref instanceof String) { 1767 com.google.protobuf.ByteString b = 1768 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1769 kind_ = b; 1770 return b; 1771 } else { 1772 return (com.google.protobuf.ByteString) ref; 1773 } 1774 } 1775 /** 1776 * 1777 * 1778 * <pre> 1779 * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. 1780 * </pre> 1781 * 1782 * <code>optional string kind = 3292052;</code> 1783 * 1784 * @param value The kind to set. 1785 * @return This builder for chaining. 1786 */ setKind(java.lang.String value)1787 public Builder setKind(java.lang.String value) { 1788 if (value == null) { 1789 throw new NullPointerException(); 1790 } 1791 kind_ = value; 1792 bitField0_ |= 0x00000010; 1793 onChanged(); 1794 return this; 1795 } 1796 /** 1797 * 1798 * 1799 * <pre> 1800 * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. 1801 * </pre> 1802 * 1803 * <code>optional string kind = 3292052;</code> 1804 * 1805 * @return This builder for chaining. 1806 */ clearKind()1807 public Builder clearKind() { 1808 kind_ = getDefaultInstance().getKind(); 1809 bitField0_ = (bitField0_ & ~0x00000010); 1810 onChanged(); 1811 return this; 1812 } 1813 /** 1814 * 1815 * 1816 * <pre> 1817 * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. 1818 * </pre> 1819 * 1820 * <code>optional string kind = 3292052;</code> 1821 * 1822 * @param value The bytes for kind to set. 1823 * @return This builder for chaining. 1824 */ setKindBytes(com.google.protobuf.ByteString value)1825 public Builder setKindBytes(com.google.protobuf.ByteString value) { 1826 if (value == null) { 1827 throw new NullPointerException(); 1828 } 1829 checkByteStringIsUtf8(value); 1830 kind_ = value; 1831 bitField0_ |= 0x00000010; 1832 onChanged(); 1833 return this; 1834 } 1835 1836 private java.lang.Object name_ = ""; 1837 /** 1838 * 1839 * 1840 * <pre> 1841 * 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. 1842 * </pre> 1843 * 1844 * <code>optional string name = 3373707;</code> 1845 * 1846 * @return Whether the name field is set. 1847 */ hasName()1848 public boolean hasName() { 1849 return ((bitField0_ & 0x00000020) != 0); 1850 } 1851 /** 1852 * 1853 * 1854 * <pre> 1855 * 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. 1856 * </pre> 1857 * 1858 * <code>optional string name = 3373707;</code> 1859 * 1860 * @return The name. 1861 */ getName()1862 public java.lang.String getName() { 1863 java.lang.Object ref = name_; 1864 if (!(ref instanceof java.lang.String)) { 1865 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1866 java.lang.String s = bs.toStringUtf8(); 1867 name_ = s; 1868 return s; 1869 } else { 1870 return (java.lang.String) ref; 1871 } 1872 } 1873 /** 1874 * 1875 * 1876 * <pre> 1877 * 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. 1878 * </pre> 1879 * 1880 * <code>optional string name = 3373707;</code> 1881 * 1882 * @return The bytes for name. 1883 */ getNameBytes()1884 public com.google.protobuf.ByteString getNameBytes() { 1885 java.lang.Object ref = name_; 1886 if (ref instanceof String) { 1887 com.google.protobuf.ByteString b = 1888 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1889 name_ = b; 1890 return b; 1891 } else { 1892 return (com.google.protobuf.ByteString) ref; 1893 } 1894 } 1895 /** 1896 * 1897 * 1898 * <pre> 1899 * 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. 1900 * </pre> 1901 * 1902 * <code>optional string name = 3373707;</code> 1903 * 1904 * @param value The name to set. 1905 * @return This builder for chaining. 1906 */ setName(java.lang.String value)1907 public Builder setName(java.lang.String value) { 1908 if (value == null) { 1909 throw new NullPointerException(); 1910 } 1911 name_ = value; 1912 bitField0_ |= 0x00000020; 1913 onChanged(); 1914 return this; 1915 } 1916 /** 1917 * 1918 * 1919 * <pre> 1920 * 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. 1921 * </pre> 1922 * 1923 * <code>optional string name = 3373707;</code> 1924 * 1925 * @return This builder for chaining. 1926 */ clearName()1927 public Builder clearName() { 1928 name_ = getDefaultInstance().getName(); 1929 bitField0_ = (bitField0_ & ~0x00000020); 1930 onChanged(); 1931 return this; 1932 } 1933 /** 1934 * 1935 * 1936 * <pre> 1937 * 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. 1938 * </pre> 1939 * 1940 * <code>optional string name = 3373707;</code> 1941 * 1942 * @param value The bytes for name to set. 1943 * @return This builder for chaining. 1944 */ setNameBytes(com.google.protobuf.ByteString value)1945 public Builder setNameBytes(com.google.protobuf.ByteString value) { 1946 if (value == null) { 1947 throw new NullPointerException(); 1948 } 1949 checkByteStringIsUtf8(value); 1950 name_ = value; 1951 bitField0_ |= 0x00000020; 1952 onChanged(); 1953 return this; 1954 } 1955 1956 private boolean proxyBind_; 1957 /** 1958 * 1959 * 1960 * <pre> 1961 * This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false. 1962 * </pre> 1963 * 1964 * <code>optional bool proxy_bind = 286025582;</code> 1965 * 1966 * @return Whether the proxyBind field is set. 1967 */ 1968 @java.lang.Override hasProxyBind()1969 public boolean hasProxyBind() { 1970 return ((bitField0_ & 0x00000040) != 0); 1971 } 1972 /** 1973 * 1974 * 1975 * <pre> 1976 * This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false. 1977 * </pre> 1978 * 1979 * <code>optional bool proxy_bind = 286025582;</code> 1980 * 1981 * @return The proxyBind. 1982 */ 1983 @java.lang.Override getProxyBind()1984 public boolean getProxyBind() { 1985 return proxyBind_; 1986 } 1987 /** 1988 * 1989 * 1990 * <pre> 1991 * This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false. 1992 * </pre> 1993 * 1994 * <code>optional bool proxy_bind = 286025582;</code> 1995 * 1996 * @param value The proxyBind to set. 1997 * @return This builder for chaining. 1998 */ setProxyBind(boolean value)1999 public Builder setProxyBind(boolean value) { 2000 2001 proxyBind_ = value; 2002 bitField0_ |= 0x00000040; 2003 onChanged(); 2004 return this; 2005 } 2006 /** 2007 * 2008 * 2009 * <pre> 2010 * This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false. 2011 * </pre> 2012 * 2013 * <code>optional bool proxy_bind = 286025582;</code> 2014 * 2015 * @return This builder for chaining. 2016 */ clearProxyBind()2017 public Builder clearProxyBind() { 2018 bitField0_ = (bitField0_ & ~0x00000040); 2019 proxyBind_ = false; 2020 onChanged(); 2021 return this; 2022 } 2023 2024 private java.lang.Object region_ = ""; 2025 /** 2026 * 2027 * 2028 * <pre> 2029 * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. 2030 * </pre> 2031 * 2032 * <code>optional string region = 138946292;</code> 2033 * 2034 * @return Whether the region field is set. 2035 */ hasRegion()2036 public boolean hasRegion() { 2037 return ((bitField0_ & 0x00000080) != 0); 2038 } 2039 /** 2040 * 2041 * 2042 * <pre> 2043 * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. 2044 * </pre> 2045 * 2046 * <code>optional string region = 138946292;</code> 2047 * 2048 * @return The region. 2049 */ getRegion()2050 public java.lang.String getRegion() { 2051 java.lang.Object ref = region_; 2052 if (!(ref instanceof java.lang.String)) { 2053 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2054 java.lang.String s = bs.toStringUtf8(); 2055 region_ = s; 2056 return s; 2057 } else { 2058 return (java.lang.String) ref; 2059 } 2060 } 2061 /** 2062 * 2063 * 2064 * <pre> 2065 * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. 2066 * </pre> 2067 * 2068 * <code>optional string region = 138946292;</code> 2069 * 2070 * @return The bytes for region. 2071 */ getRegionBytes()2072 public com.google.protobuf.ByteString getRegionBytes() { 2073 java.lang.Object ref = region_; 2074 if (ref instanceof String) { 2075 com.google.protobuf.ByteString b = 2076 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2077 region_ = b; 2078 return b; 2079 } else { 2080 return (com.google.protobuf.ByteString) ref; 2081 } 2082 } 2083 /** 2084 * 2085 * 2086 * <pre> 2087 * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. 2088 * </pre> 2089 * 2090 * <code>optional string region = 138946292;</code> 2091 * 2092 * @param value The region to set. 2093 * @return This builder for chaining. 2094 */ setRegion(java.lang.String value)2095 public Builder setRegion(java.lang.String value) { 2096 if (value == null) { 2097 throw new NullPointerException(); 2098 } 2099 region_ = value; 2100 bitField0_ |= 0x00000080; 2101 onChanged(); 2102 return this; 2103 } 2104 /** 2105 * 2106 * 2107 * <pre> 2108 * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. 2109 * </pre> 2110 * 2111 * <code>optional string region = 138946292;</code> 2112 * 2113 * @return This builder for chaining. 2114 */ clearRegion()2115 public Builder clearRegion() { 2116 region_ = getDefaultInstance().getRegion(); 2117 bitField0_ = (bitField0_ & ~0x00000080); 2118 onChanged(); 2119 return this; 2120 } 2121 /** 2122 * 2123 * 2124 * <pre> 2125 * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not applicable to global Target HTTP Proxies. 2126 * </pre> 2127 * 2128 * <code>optional string region = 138946292;</code> 2129 * 2130 * @param value The bytes for region to set. 2131 * @return This builder for chaining. 2132 */ setRegionBytes(com.google.protobuf.ByteString value)2133 public Builder setRegionBytes(com.google.protobuf.ByteString value) { 2134 if (value == null) { 2135 throw new NullPointerException(); 2136 } 2137 checkByteStringIsUtf8(value); 2138 region_ = value; 2139 bitField0_ |= 0x00000080; 2140 onChanged(); 2141 return this; 2142 } 2143 2144 private java.lang.Object selfLink_ = ""; 2145 /** 2146 * 2147 * 2148 * <pre> 2149 * [Output Only] Server-defined URL for the resource. 2150 * </pre> 2151 * 2152 * <code>optional string self_link = 456214797;</code> 2153 * 2154 * @return Whether the selfLink field is set. 2155 */ hasSelfLink()2156 public boolean hasSelfLink() { 2157 return ((bitField0_ & 0x00000100) != 0); 2158 } 2159 /** 2160 * 2161 * 2162 * <pre> 2163 * [Output Only] Server-defined URL for the resource. 2164 * </pre> 2165 * 2166 * <code>optional string self_link = 456214797;</code> 2167 * 2168 * @return The selfLink. 2169 */ getSelfLink()2170 public java.lang.String getSelfLink() { 2171 java.lang.Object ref = selfLink_; 2172 if (!(ref instanceof java.lang.String)) { 2173 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2174 java.lang.String s = bs.toStringUtf8(); 2175 selfLink_ = s; 2176 return s; 2177 } else { 2178 return (java.lang.String) ref; 2179 } 2180 } 2181 /** 2182 * 2183 * 2184 * <pre> 2185 * [Output Only] Server-defined URL for the resource. 2186 * </pre> 2187 * 2188 * <code>optional string self_link = 456214797;</code> 2189 * 2190 * @return The bytes for selfLink. 2191 */ getSelfLinkBytes()2192 public com.google.protobuf.ByteString getSelfLinkBytes() { 2193 java.lang.Object ref = selfLink_; 2194 if (ref instanceof String) { 2195 com.google.protobuf.ByteString b = 2196 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2197 selfLink_ = b; 2198 return b; 2199 } else { 2200 return (com.google.protobuf.ByteString) ref; 2201 } 2202 } 2203 /** 2204 * 2205 * 2206 * <pre> 2207 * [Output Only] Server-defined URL for the resource. 2208 * </pre> 2209 * 2210 * <code>optional string self_link = 456214797;</code> 2211 * 2212 * @param value The selfLink to set. 2213 * @return This builder for chaining. 2214 */ setSelfLink(java.lang.String value)2215 public Builder setSelfLink(java.lang.String value) { 2216 if (value == null) { 2217 throw new NullPointerException(); 2218 } 2219 selfLink_ = value; 2220 bitField0_ |= 0x00000100; 2221 onChanged(); 2222 return this; 2223 } 2224 /** 2225 * 2226 * 2227 * <pre> 2228 * [Output Only] Server-defined URL for the resource. 2229 * </pre> 2230 * 2231 * <code>optional string self_link = 456214797;</code> 2232 * 2233 * @return This builder for chaining. 2234 */ clearSelfLink()2235 public Builder clearSelfLink() { 2236 selfLink_ = getDefaultInstance().getSelfLink(); 2237 bitField0_ = (bitField0_ & ~0x00000100); 2238 onChanged(); 2239 return this; 2240 } 2241 /** 2242 * 2243 * 2244 * <pre> 2245 * [Output Only] Server-defined URL for the resource. 2246 * </pre> 2247 * 2248 * <code>optional string self_link = 456214797;</code> 2249 * 2250 * @param value The bytes for selfLink to set. 2251 * @return This builder for chaining. 2252 */ setSelfLinkBytes(com.google.protobuf.ByteString value)2253 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 2254 if (value == null) { 2255 throw new NullPointerException(); 2256 } 2257 checkByteStringIsUtf8(value); 2258 selfLink_ = value; 2259 bitField0_ |= 0x00000100; 2260 onChanged(); 2261 return this; 2262 } 2263 2264 private java.lang.Object urlMap_ = ""; 2265 /** 2266 * 2267 * 2268 * <pre> 2269 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. 2270 * </pre> 2271 * 2272 * <code>optional string url_map = 367020684;</code> 2273 * 2274 * @return Whether the urlMap field is set. 2275 */ hasUrlMap()2276 public boolean hasUrlMap() { 2277 return ((bitField0_ & 0x00000200) != 0); 2278 } 2279 /** 2280 * 2281 * 2282 * <pre> 2283 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. 2284 * </pre> 2285 * 2286 * <code>optional string url_map = 367020684;</code> 2287 * 2288 * @return The urlMap. 2289 */ getUrlMap()2290 public java.lang.String getUrlMap() { 2291 java.lang.Object ref = urlMap_; 2292 if (!(ref instanceof java.lang.String)) { 2293 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2294 java.lang.String s = bs.toStringUtf8(); 2295 urlMap_ = s; 2296 return s; 2297 } else { 2298 return (java.lang.String) ref; 2299 } 2300 } 2301 /** 2302 * 2303 * 2304 * <pre> 2305 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. 2306 * </pre> 2307 * 2308 * <code>optional string url_map = 367020684;</code> 2309 * 2310 * @return The bytes for urlMap. 2311 */ getUrlMapBytes()2312 public com.google.protobuf.ByteString getUrlMapBytes() { 2313 java.lang.Object ref = urlMap_; 2314 if (ref instanceof String) { 2315 com.google.protobuf.ByteString b = 2316 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2317 urlMap_ = b; 2318 return b; 2319 } else { 2320 return (com.google.protobuf.ByteString) ref; 2321 } 2322 } 2323 /** 2324 * 2325 * 2326 * <pre> 2327 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. 2328 * </pre> 2329 * 2330 * <code>optional string url_map = 367020684;</code> 2331 * 2332 * @param value The urlMap to set. 2333 * @return This builder for chaining. 2334 */ setUrlMap(java.lang.String value)2335 public Builder setUrlMap(java.lang.String value) { 2336 if (value == null) { 2337 throw new NullPointerException(); 2338 } 2339 urlMap_ = value; 2340 bitField0_ |= 0x00000200; 2341 onChanged(); 2342 return this; 2343 } 2344 /** 2345 * 2346 * 2347 * <pre> 2348 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. 2349 * </pre> 2350 * 2351 * <code>optional string url_map = 367020684;</code> 2352 * 2353 * @return This builder for chaining. 2354 */ clearUrlMap()2355 public Builder clearUrlMap() { 2356 urlMap_ = getDefaultInstance().getUrlMap(); 2357 bitField0_ = (bitField0_ & ~0x00000200); 2358 onChanged(); 2359 return this; 2360 } 2361 /** 2362 * 2363 * 2364 * <pre> 2365 * URL to the UrlMap resource that defines the mapping from URL to the BackendService. 2366 * </pre> 2367 * 2368 * <code>optional string url_map = 367020684;</code> 2369 * 2370 * @param value The bytes for urlMap to set. 2371 * @return This builder for chaining. 2372 */ setUrlMapBytes(com.google.protobuf.ByteString value)2373 public Builder setUrlMapBytes(com.google.protobuf.ByteString value) { 2374 if (value == null) { 2375 throw new NullPointerException(); 2376 } 2377 checkByteStringIsUtf8(value); 2378 urlMap_ = value; 2379 bitField0_ |= 0x00000200; 2380 onChanged(); 2381 return this; 2382 } 2383 2384 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2385 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2386 return super.setUnknownFields(unknownFields); 2387 } 2388 2389 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2390 public final Builder mergeUnknownFields( 2391 final com.google.protobuf.UnknownFieldSet unknownFields) { 2392 return super.mergeUnknownFields(unknownFields); 2393 } 2394 2395 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.TargetHttpProxy) 2396 } 2397 2398 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.TargetHttpProxy) 2399 private static final com.google.cloud.compute.v1.TargetHttpProxy DEFAULT_INSTANCE; 2400 2401 static { 2402 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.TargetHttpProxy(); 2403 } 2404 getDefaultInstance()2405 public static com.google.cloud.compute.v1.TargetHttpProxy getDefaultInstance() { 2406 return DEFAULT_INSTANCE; 2407 } 2408 2409 private static final com.google.protobuf.Parser<TargetHttpProxy> PARSER = 2410 new com.google.protobuf.AbstractParser<TargetHttpProxy>() { 2411 @java.lang.Override 2412 public TargetHttpProxy parsePartialFrom( 2413 com.google.protobuf.CodedInputStream input, 2414 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2415 throws com.google.protobuf.InvalidProtocolBufferException { 2416 Builder builder = newBuilder(); 2417 try { 2418 builder.mergeFrom(input, extensionRegistry); 2419 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2420 throw e.setUnfinishedMessage(builder.buildPartial()); 2421 } catch (com.google.protobuf.UninitializedMessageException e) { 2422 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2423 } catch (java.io.IOException e) { 2424 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2425 .setUnfinishedMessage(builder.buildPartial()); 2426 } 2427 return builder.buildPartial(); 2428 } 2429 }; 2430 parser()2431 public static com.google.protobuf.Parser<TargetHttpProxy> parser() { 2432 return PARSER; 2433 } 2434 2435 @java.lang.Override getParserForType()2436 public com.google.protobuf.Parser<TargetHttpProxy> getParserForType() { 2437 return PARSER; 2438 } 2439 2440 @java.lang.Override getDefaultInstanceForType()2441 public com.google.cloud.compute.v1.TargetHttpProxy getDefaultInstanceForType() { 2442 return DEFAULT_INSTANCE; 2443 } 2444 } 2445