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