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