• 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  * A request message for SslPolicies.Patch. See the method description for details.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.PatchSslPolicyRequest}
29  */
30 public final class PatchSslPolicyRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.PatchSslPolicyRequest)
33     PatchSslPolicyRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use PatchSslPolicyRequest.newBuilder() to construct.
PatchSslPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private PatchSslPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
PatchSslPolicyRequest()40   private PatchSslPolicyRequest() {
41     project_ = "";
42     requestId_ = "";
43     sslPolicy_ = "";
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new PatchSslPolicyRequest();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.compute.v1.Compute
59         .internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.compute.v1.Compute
66         .internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.compute.v1.PatchSslPolicyRequest.class,
69             com.google.cloud.compute.v1.PatchSslPolicyRequest.Builder.class);
70   }
71 
72   private int bitField0_;
73   public static final int PROJECT_FIELD_NUMBER = 227560217;
74 
75   @SuppressWarnings("serial")
76   private volatile java.lang.Object project_ = "";
77   /**
78    *
79    *
80    * <pre>
81    * Project ID for this request.
82    * </pre>
83    *
84    * <code>
85    * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
86    * </code>
87    *
88    * @return The project.
89    */
90   @java.lang.Override
getProject()91   public java.lang.String getProject() {
92     java.lang.Object ref = project_;
93     if (ref instanceof java.lang.String) {
94       return (java.lang.String) ref;
95     } else {
96       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
97       java.lang.String s = bs.toStringUtf8();
98       project_ = s;
99       return s;
100     }
101   }
102   /**
103    *
104    *
105    * <pre>
106    * Project ID for this request.
107    * </pre>
108    *
109    * <code>
110    * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
111    * </code>
112    *
113    * @return The bytes for project.
114    */
115   @java.lang.Override
getProjectBytes()116   public com.google.protobuf.ByteString getProjectBytes() {
117     java.lang.Object ref = project_;
118     if (ref instanceof java.lang.String) {
119       com.google.protobuf.ByteString b =
120           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
121       project_ = b;
122       return b;
123     } else {
124       return (com.google.protobuf.ByteString) ref;
125     }
126   }
127 
128   public static final int REQUEST_ID_FIELD_NUMBER = 37109963;
129 
130   @SuppressWarnings("serial")
131   private volatile java.lang.Object requestId_ = "";
132   /**
133    *
134    *
135    * <pre>
136    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
137    * </pre>
138    *
139    * <code>optional string request_id = 37109963;</code>
140    *
141    * @return Whether the requestId field is set.
142    */
143   @java.lang.Override
hasRequestId()144   public boolean hasRequestId() {
145     return ((bitField0_ & 0x00000001) != 0);
146   }
147   /**
148    *
149    *
150    * <pre>
151    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
152    * </pre>
153    *
154    * <code>optional string request_id = 37109963;</code>
155    *
156    * @return The requestId.
157    */
158   @java.lang.Override
getRequestId()159   public java.lang.String getRequestId() {
160     java.lang.Object ref = requestId_;
161     if (ref instanceof java.lang.String) {
162       return (java.lang.String) ref;
163     } else {
164       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
165       java.lang.String s = bs.toStringUtf8();
166       requestId_ = s;
167       return s;
168     }
169   }
170   /**
171    *
172    *
173    * <pre>
174    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
175    * </pre>
176    *
177    * <code>optional string request_id = 37109963;</code>
178    *
179    * @return The bytes for requestId.
180    */
181   @java.lang.Override
getRequestIdBytes()182   public com.google.protobuf.ByteString getRequestIdBytes() {
183     java.lang.Object ref = requestId_;
184     if (ref instanceof java.lang.String) {
185       com.google.protobuf.ByteString b =
186           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
187       requestId_ = b;
188       return b;
189     } else {
190       return (com.google.protobuf.ByteString) ref;
191     }
192   }
193 
194   public static final int SSL_POLICY_FIELD_NUMBER = 295190213;
195 
196   @SuppressWarnings("serial")
197   private volatile java.lang.Object sslPolicy_ = "";
198   /**
199    *
200    *
201    * <pre>
202    * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
203    * </pre>
204    *
205    * <code>string ssl_policy = 295190213 [(.google.api.field_behavior) = REQUIRED];</code>
206    *
207    * @return The sslPolicy.
208    */
209   @java.lang.Override
getSslPolicy()210   public java.lang.String getSslPolicy() {
211     java.lang.Object ref = sslPolicy_;
212     if (ref instanceof java.lang.String) {
213       return (java.lang.String) ref;
214     } else {
215       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
216       java.lang.String s = bs.toStringUtf8();
217       sslPolicy_ = s;
218       return s;
219     }
220   }
221   /**
222    *
223    *
224    * <pre>
225    * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
226    * </pre>
227    *
228    * <code>string ssl_policy = 295190213 [(.google.api.field_behavior) = REQUIRED];</code>
229    *
230    * @return The bytes for sslPolicy.
231    */
232   @java.lang.Override
getSslPolicyBytes()233   public com.google.protobuf.ByteString getSslPolicyBytes() {
234     java.lang.Object ref = sslPolicy_;
235     if (ref instanceof java.lang.String) {
236       com.google.protobuf.ByteString b =
237           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
238       sslPolicy_ = b;
239       return b;
240     } else {
241       return (com.google.protobuf.ByteString) ref;
242     }
243   }
244 
245   public static final int SSL_POLICY_RESOURCE_FIELD_NUMBER = 274891848;
246   private com.google.cloud.compute.v1.SslPolicy sslPolicyResource_;
247   /**
248    *
249    *
250    * <pre>
251    * The body resource for this request
252    * </pre>
253    *
254    * <code>
255    * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
256    * </code>
257    *
258    * @return Whether the sslPolicyResource field is set.
259    */
260   @java.lang.Override
hasSslPolicyResource()261   public boolean hasSslPolicyResource() {
262     return sslPolicyResource_ != null;
263   }
264   /**
265    *
266    *
267    * <pre>
268    * The body resource for this request
269    * </pre>
270    *
271    * <code>
272    * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
273    * </code>
274    *
275    * @return The sslPolicyResource.
276    */
277   @java.lang.Override
getSslPolicyResource()278   public com.google.cloud.compute.v1.SslPolicy getSslPolicyResource() {
279     return sslPolicyResource_ == null
280         ? com.google.cloud.compute.v1.SslPolicy.getDefaultInstance()
281         : sslPolicyResource_;
282   }
283   /**
284    *
285    *
286    * <pre>
287    * The body resource for this request
288    * </pre>
289    *
290    * <code>
291    * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
292    * </code>
293    */
294   @java.lang.Override
getSslPolicyResourceOrBuilder()295   public com.google.cloud.compute.v1.SslPolicyOrBuilder getSslPolicyResourceOrBuilder() {
296     return sslPolicyResource_ == null
297         ? com.google.cloud.compute.v1.SslPolicy.getDefaultInstance()
298         : sslPolicyResource_;
299   }
300 
301   private byte memoizedIsInitialized = -1;
302 
303   @java.lang.Override
isInitialized()304   public final boolean isInitialized() {
305     byte isInitialized = memoizedIsInitialized;
306     if (isInitialized == 1) return true;
307     if (isInitialized == 0) return false;
308 
309     memoizedIsInitialized = 1;
310     return true;
311   }
312 
313   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)314   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
315     if (((bitField0_ & 0x00000001) != 0)) {
316       com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_);
317     }
318     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
319       com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_);
320     }
321     if (sslPolicyResource_ != null) {
322       output.writeMessage(274891848, getSslPolicyResource());
323     }
324     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslPolicy_)) {
325       com.google.protobuf.GeneratedMessageV3.writeString(output, 295190213, sslPolicy_);
326     }
327     getUnknownFields().writeTo(output);
328   }
329 
330   @java.lang.Override
getSerializedSize()331   public int getSerializedSize() {
332     int size = memoizedSize;
333     if (size != -1) return size;
334 
335     size = 0;
336     if (((bitField0_ & 0x00000001) != 0)) {
337       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_);
338     }
339     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
340       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_);
341     }
342     if (sslPolicyResource_ != null) {
343       size +=
344           com.google.protobuf.CodedOutputStream.computeMessageSize(
345               274891848, getSslPolicyResource());
346     }
347     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslPolicy_)) {
348       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(295190213, sslPolicy_);
349     }
350     size += getUnknownFields().getSerializedSize();
351     memoizedSize = size;
352     return size;
353   }
354 
355   @java.lang.Override
equals(final java.lang.Object obj)356   public boolean equals(final java.lang.Object obj) {
357     if (obj == this) {
358       return true;
359     }
360     if (!(obj instanceof com.google.cloud.compute.v1.PatchSslPolicyRequest)) {
361       return super.equals(obj);
362     }
363     com.google.cloud.compute.v1.PatchSslPolicyRequest other =
364         (com.google.cloud.compute.v1.PatchSslPolicyRequest) obj;
365 
366     if (!getProject().equals(other.getProject())) return false;
367     if (hasRequestId() != other.hasRequestId()) return false;
368     if (hasRequestId()) {
369       if (!getRequestId().equals(other.getRequestId())) return false;
370     }
371     if (!getSslPolicy().equals(other.getSslPolicy())) return false;
372     if (hasSslPolicyResource() != other.hasSslPolicyResource()) return false;
373     if (hasSslPolicyResource()) {
374       if (!getSslPolicyResource().equals(other.getSslPolicyResource())) return false;
375     }
376     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
377     return true;
378   }
379 
380   @java.lang.Override
hashCode()381   public int hashCode() {
382     if (memoizedHashCode != 0) {
383       return memoizedHashCode;
384     }
385     int hash = 41;
386     hash = (19 * hash) + getDescriptor().hashCode();
387     hash = (37 * hash) + PROJECT_FIELD_NUMBER;
388     hash = (53 * hash) + getProject().hashCode();
389     if (hasRequestId()) {
390       hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
391       hash = (53 * hash) + getRequestId().hashCode();
392     }
393     hash = (37 * hash) + SSL_POLICY_FIELD_NUMBER;
394     hash = (53 * hash) + getSslPolicy().hashCode();
395     if (hasSslPolicyResource()) {
396       hash = (37 * hash) + SSL_POLICY_RESOURCE_FIELD_NUMBER;
397       hash = (53 * hash) + getSslPolicyResource().hashCode();
398     }
399     hash = (29 * hash) + getUnknownFields().hashCode();
400     memoizedHashCode = hash;
401     return hash;
402   }
403 
parseFrom( java.nio.ByteBuffer data)404   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(
405       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
406     return PARSER.parseFrom(data);
407   }
408 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)409   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(
410       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
411       throws com.google.protobuf.InvalidProtocolBufferException {
412     return PARSER.parseFrom(data, extensionRegistry);
413   }
414 
parseFrom( com.google.protobuf.ByteString data)415   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(
416       com.google.protobuf.ByteString data)
417       throws com.google.protobuf.InvalidProtocolBufferException {
418     return PARSER.parseFrom(data);
419   }
420 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)421   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(
422       com.google.protobuf.ByteString data,
423       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
424       throws com.google.protobuf.InvalidProtocolBufferException {
425     return PARSER.parseFrom(data, extensionRegistry);
426   }
427 
parseFrom(byte[] data)428   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(byte[] data)
429       throws com.google.protobuf.InvalidProtocolBufferException {
430     return PARSER.parseFrom(data);
431   }
432 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)433   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(
434       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
435       throws com.google.protobuf.InvalidProtocolBufferException {
436     return PARSER.parseFrom(data, extensionRegistry);
437   }
438 
parseFrom( java.io.InputStream input)439   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(
440       java.io.InputStream input) throws java.io.IOException {
441     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
442   }
443 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)444   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(
445       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
446       throws java.io.IOException {
447     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
448         PARSER, input, extensionRegistry);
449   }
450 
parseDelimitedFrom( java.io.InputStream input)451   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseDelimitedFrom(
452       java.io.InputStream input) throws java.io.IOException {
453     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
454   }
455 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)456   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseDelimitedFrom(
457       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
458       throws java.io.IOException {
459     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
460         PARSER, input, extensionRegistry);
461   }
462 
parseFrom( com.google.protobuf.CodedInputStream input)463   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(
464       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
465     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
466   }
467 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)468   public static com.google.cloud.compute.v1.PatchSslPolicyRequest parseFrom(
469       com.google.protobuf.CodedInputStream input,
470       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
471       throws java.io.IOException {
472     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
473         PARSER, input, extensionRegistry);
474   }
475 
476   @java.lang.Override
newBuilderForType()477   public Builder newBuilderForType() {
478     return newBuilder();
479   }
480 
newBuilder()481   public static Builder newBuilder() {
482     return DEFAULT_INSTANCE.toBuilder();
483   }
484 
newBuilder(com.google.cloud.compute.v1.PatchSslPolicyRequest prototype)485   public static Builder newBuilder(com.google.cloud.compute.v1.PatchSslPolicyRequest prototype) {
486     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
487   }
488 
489   @java.lang.Override
toBuilder()490   public Builder toBuilder() {
491     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
492   }
493 
494   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)495   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
496     Builder builder = new Builder(parent);
497     return builder;
498   }
499   /**
500    *
501    *
502    * <pre>
503    * A request message for SslPolicies.Patch. See the method description for details.
504    * </pre>
505    *
506    * Protobuf type {@code google.cloud.compute.v1.PatchSslPolicyRequest}
507    */
508   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
509       implements
510       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.PatchSslPolicyRequest)
511       com.google.cloud.compute.v1.PatchSslPolicyRequestOrBuilder {
getDescriptor()512     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
513       return com.google.cloud.compute.v1.Compute
514           .internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor;
515     }
516 
517     @java.lang.Override
518     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()519         internalGetFieldAccessorTable() {
520       return com.google.cloud.compute.v1.Compute
521           .internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_fieldAccessorTable
522           .ensureFieldAccessorsInitialized(
523               com.google.cloud.compute.v1.PatchSslPolicyRequest.class,
524               com.google.cloud.compute.v1.PatchSslPolicyRequest.Builder.class);
525     }
526 
527     // Construct using com.google.cloud.compute.v1.PatchSslPolicyRequest.newBuilder()
Builder()528     private Builder() {}
529 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)530     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
531       super(parent);
532     }
533 
534     @java.lang.Override
clear()535     public Builder clear() {
536       super.clear();
537       bitField0_ = 0;
538       project_ = "";
539       requestId_ = "";
540       sslPolicy_ = "";
541       sslPolicyResource_ = null;
542       if (sslPolicyResourceBuilder_ != null) {
543         sslPolicyResourceBuilder_.dispose();
544         sslPolicyResourceBuilder_ = null;
545       }
546       return this;
547     }
548 
549     @java.lang.Override
getDescriptorForType()550     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
551       return com.google.cloud.compute.v1.Compute
552           .internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor;
553     }
554 
555     @java.lang.Override
getDefaultInstanceForType()556     public com.google.cloud.compute.v1.PatchSslPolicyRequest getDefaultInstanceForType() {
557       return com.google.cloud.compute.v1.PatchSslPolicyRequest.getDefaultInstance();
558     }
559 
560     @java.lang.Override
build()561     public com.google.cloud.compute.v1.PatchSslPolicyRequest build() {
562       com.google.cloud.compute.v1.PatchSslPolicyRequest result = buildPartial();
563       if (!result.isInitialized()) {
564         throw newUninitializedMessageException(result);
565       }
566       return result;
567     }
568 
569     @java.lang.Override
buildPartial()570     public com.google.cloud.compute.v1.PatchSslPolicyRequest buildPartial() {
571       com.google.cloud.compute.v1.PatchSslPolicyRequest result =
572           new com.google.cloud.compute.v1.PatchSslPolicyRequest(this);
573       if (bitField0_ != 0) {
574         buildPartial0(result);
575       }
576       onBuilt();
577       return result;
578     }
579 
buildPartial0(com.google.cloud.compute.v1.PatchSslPolicyRequest result)580     private void buildPartial0(com.google.cloud.compute.v1.PatchSslPolicyRequest result) {
581       int from_bitField0_ = bitField0_;
582       if (((from_bitField0_ & 0x00000001) != 0)) {
583         result.project_ = project_;
584       }
585       int to_bitField0_ = 0;
586       if (((from_bitField0_ & 0x00000002) != 0)) {
587         result.requestId_ = requestId_;
588         to_bitField0_ |= 0x00000001;
589       }
590       if (((from_bitField0_ & 0x00000004) != 0)) {
591         result.sslPolicy_ = sslPolicy_;
592       }
593       if (((from_bitField0_ & 0x00000008) != 0)) {
594         result.sslPolicyResource_ =
595             sslPolicyResourceBuilder_ == null
596                 ? sslPolicyResource_
597                 : sslPolicyResourceBuilder_.build();
598       }
599       result.bitField0_ |= to_bitField0_;
600     }
601 
602     @java.lang.Override
clone()603     public Builder clone() {
604       return super.clone();
605     }
606 
607     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)608     public Builder setField(
609         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
610       return super.setField(field, value);
611     }
612 
613     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)614     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
615       return super.clearField(field);
616     }
617 
618     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)619     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
620       return super.clearOneof(oneof);
621     }
622 
623     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)624     public Builder setRepeatedField(
625         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
626       return super.setRepeatedField(field, index, value);
627     }
628 
629     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)630     public Builder addRepeatedField(
631         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
632       return super.addRepeatedField(field, value);
633     }
634 
635     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)636     public Builder mergeFrom(com.google.protobuf.Message other) {
637       if (other instanceof com.google.cloud.compute.v1.PatchSslPolicyRequest) {
638         return mergeFrom((com.google.cloud.compute.v1.PatchSslPolicyRequest) other);
639       } else {
640         super.mergeFrom(other);
641         return this;
642       }
643     }
644 
mergeFrom(com.google.cloud.compute.v1.PatchSslPolicyRequest other)645     public Builder mergeFrom(com.google.cloud.compute.v1.PatchSslPolicyRequest other) {
646       if (other == com.google.cloud.compute.v1.PatchSslPolicyRequest.getDefaultInstance())
647         return this;
648       if (!other.getProject().isEmpty()) {
649         project_ = other.project_;
650         bitField0_ |= 0x00000001;
651         onChanged();
652       }
653       if (other.hasRequestId()) {
654         requestId_ = other.requestId_;
655         bitField0_ |= 0x00000002;
656         onChanged();
657       }
658       if (!other.getSslPolicy().isEmpty()) {
659         sslPolicy_ = other.sslPolicy_;
660         bitField0_ |= 0x00000004;
661         onChanged();
662       }
663       if (other.hasSslPolicyResource()) {
664         mergeSslPolicyResource(other.getSslPolicyResource());
665       }
666       this.mergeUnknownFields(other.getUnknownFields());
667       onChanged();
668       return this;
669     }
670 
671     @java.lang.Override
isInitialized()672     public final boolean isInitialized() {
673       return true;
674     }
675 
676     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)677     public Builder mergeFrom(
678         com.google.protobuf.CodedInputStream input,
679         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
680         throws java.io.IOException {
681       if (extensionRegistry == null) {
682         throw new java.lang.NullPointerException();
683       }
684       try {
685         boolean done = false;
686         while (!done) {
687           int tag = input.readTag();
688           switch (tag) {
689             case 0:
690               done = true;
691               break;
692             case 296879706:
693               {
694                 requestId_ = input.readStringRequireUtf8();
695                 bitField0_ |= 0x00000002;
696                 break;
697               } // case 296879706
698             case 1820481738:
699               {
700                 project_ = input.readStringRequireUtf8();
701                 bitField0_ |= 0x00000001;
702                 break;
703               } // case 1820481738
704             case -2095832510:
705               {
706                 input.readMessage(
707                     getSslPolicyResourceFieldBuilder().getBuilder(), extensionRegistry);
708                 bitField0_ |= 0x00000008;
709                 break;
710               } // case -2095832510
711             case -1933445590:
712               {
713                 sslPolicy_ = input.readStringRequireUtf8();
714                 bitField0_ |= 0x00000004;
715                 break;
716               } // case -1933445590
717             default:
718               {
719                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
720                   done = true; // was an endgroup tag
721                 }
722                 break;
723               } // default:
724           } // switch (tag)
725         } // while (!done)
726       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
727         throw e.unwrapIOException();
728       } finally {
729         onChanged();
730       } // finally
731       return this;
732     }
733 
734     private int bitField0_;
735 
736     private java.lang.Object project_ = "";
737     /**
738      *
739      *
740      * <pre>
741      * Project ID for this request.
742      * </pre>
743      *
744      * <code>
745      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
746      * </code>
747      *
748      * @return The project.
749      */
getProject()750     public java.lang.String getProject() {
751       java.lang.Object ref = project_;
752       if (!(ref instanceof java.lang.String)) {
753         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
754         java.lang.String s = bs.toStringUtf8();
755         project_ = s;
756         return s;
757       } else {
758         return (java.lang.String) ref;
759       }
760     }
761     /**
762      *
763      *
764      * <pre>
765      * Project ID for this request.
766      * </pre>
767      *
768      * <code>
769      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
770      * </code>
771      *
772      * @return The bytes for project.
773      */
getProjectBytes()774     public com.google.protobuf.ByteString getProjectBytes() {
775       java.lang.Object ref = project_;
776       if (ref instanceof String) {
777         com.google.protobuf.ByteString b =
778             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
779         project_ = b;
780         return b;
781       } else {
782         return (com.google.protobuf.ByteString) ref;
783       }
784     }
785     /**
786      *
787      *
788      * <pre>
789      * Project ID for this request.
790      * </pre>
791      *
792      * <code>
793      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
794      * </code>
795      *
796      * @param value The project to set.
797      * @return This builder for chaining.
798      */
setProject(java.lang.String value)799     public Builder setProject(java.lang.String value) {
800       if (value == null) {
801         throw new NullPointerException();
802       }
803       project_ = value;
804       bitField0_ |= 0x00000001;
805       onChanged();
806       return this;
807     }
808     /**
809      *
810      *
811      * <pre>
812      * Project ID for this request.
813      * </pre>
814      *
815      * <code>
816      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
817      * </code>
818      *
819      * @return This builder for chaining.
820      */
clearProject()821     public Builder clearProject() {
822       project_ = getDefaultInstance().getProject();
823       bitField0_ = (bitField0_ & ~0x00000001);
824       onChanged();
825       return this;
826     }
827     /**
828      *
829      *
830      * <pre>
831      * Project ID for this request.
832      * </pre>
833      *
834      * <code>
835      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
836      * </code>
837      *
838      * @param value The bytes for project to set.
839      * @return This builder for chaining.
840      */
setProjectBytes(com.google.protobuf.ByteString value)841     public Builder setProjectBytes(com.google.protobuf.ByteString value) {
842       if (value == null) {
843         throw new NullPointerException();
844       }
845       checkByteStringIsUtf8(value);
846       project_ = value;
847       bitField0_ |= 0x00000001;
848       onChanged();
849       return this;
850     }
851 
852     private java.lang.Object requestId_ = "";
853     /**
854      *
855      *
856      * <pre>
857      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
858      * </pre>
859      *
860      * <code>optional string request_id = 37109963;</code>
861      *
862      * @return Whether the requestId field is set.
863      */
hasRequestId()864     public boolean hasRequestId() {
865       return ((bitField0_ & 0x00000002) != 0);
866     }
867     /**
868      *
869      *
870      * <pre>
871      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
872      * </pre>
873      *
874      * <code>optional string request_id = 37109963;</code>
875      *
876      * @return The requestId.
877      */
getRequestId()878     public java.lang.String getRequestId() {
879       java.lang.Object ref = requestId_;
880       if (!(ref instanceof java.lang.String)) {
881         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
882         java.lang.String s = bs.toStringUtf8();
883         requestId_ = s;
884         return s;
885       } else {
886         return (java.lang.String) ref;
887       }
888     }
889     /**
890      *
891      *
892      * <pre>
893      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
894      * </pre>
895      *
896      * <code>optional string request_id = 37109963;</code>
897      *
898      * @return The bytes for requestId.
899      */
getRequestIdBytes()900     public com.google.protobuf.ByteString getRequestIdBytes() {
901       java.lang.Object ref = requestId_;
902       if (ref instanceof String) {
903         com.google.protobuf.ByteString b =
904             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
905         requestId_ = b;
906         return b;
907       } else {
908         return (com.google.protobuf.ByteString) ref;
909       }
910     }
911     /**
912      *
913      *
914      * <pre>
915      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
916      * </pre>
917      *
918      * <code>optional string request_id = 37109963;</code>
919      *
920      * @param value The requestId to set.
921      * @return This builder for chaining.
922      */
setRequestId(java.lang.String value)923     public Builder setRequestId(java.lang.String value) {
924       if (value == null) {
925         throw new NullPointerException();
926       }
927       requestId_ = value;
928       bitField0_ |= 0x00000002;
929       onChanged();
930       return this;
931     }
932     /**
933      *
934      *
935      * <pre>
936      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
937      * </pre>
938      *
939      * <code>optional string request_id = 37109963;</code>
940      *
941      * @return This builder for chaining.
942      */
clearRequestId()943     public Builder clearRequestId() {
944       requestId_ = getDefaultInstance().getRequestId();
945       bitField0_ = (bitField0_ & ~0x00000002);
946       onChanged();
947       return this;
948     }
949     /**
950      *
951      *
952      * <pre>
953      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
954      * </pre>
955      *
956      * <code>optional string request_id = 37109963;</code>
957      *
958      * @param value The bytes for requestId to set.
959      * @return This builder for chaining.
960      */
setRequestIdBytes(com.google.protobuf.ByteString value)961     public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
962       if (value == null) {
963         throw new NullPointerException();
964       }
965       checkByteStringIsUtf8(value);
966       requestId_ = value;
967       bitField0_ |= 0x00000002;
968       onChanged();
969       return this;
970     }
971 
972     private java.lang.Object sslPolicy_ = "";
973     /**
974      *
975      *
976      * <pre>
977      * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
978      * </pre>
979      *
980      * <code>string ssl_policy = 295190213 [(.google.api.field_behavior) = REQUIRED];</code>
981      *
982      * @return The sslPolicy.
983      */
getSslPolicy()984     public java.lang.String getSslPolicy() {
985       java.lang.Object ref = sslPolicy_;
986       if (!(ref instanceof java.lang.String)) {
987         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
988         java.lang.String s = bs.toStringUtf8();
989         sslPolicy_ = s;
990         return s;
991       } else {
992         return (java.lang.String) ref;
993       }
994     }
995     /**
996      *
997      *
998      * <pre>
999      * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
1000      * </pre>
1001      *
1002      * <code>string ssl_policy = 295190213 [(.google.api.field_behavior) = REQUIRED];</code>
1003      *
1004      * @return The bytes for sslPolicy.
1005      */
getSslPolicyBytes()1006     public com.google.protobuf.ByteString getSslPolicyBytes() {
1007       java.lang.Object ref = sslPolicy_;
1008       if (ref instanceof String) {
1009         com.google.protobuf.ByteString b =
1010             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1011         sslPolicy_ = b;
1012         return b;
1013       } else {
1014         return (com.google.protobuf.ByteString) ref;
1015       }
1016     }
1017     /**
1018      *
1019      *
1020      * <pre>
1021      * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
1022      * </pre>
1023      *
1024      * <code>string ssl_policy = 295190213 [(.google.api.field_behavior) = REQUIRED];</code>
1025      *
1026      * @param value The sslPolicy to set.
1027      * @return This builder for chaining.
1028      */
setSslPolicy(java.lang.String value)1029     public Builder setSslPolicy(java.lang.String value) {
1030       if (value == null) {
1031         throw new NullPointerException();
1032       }
1033       sslPolicy_ = value;
1034       bitField0_ |= 0x00000004;
1035       onChanged();
1036       return this;
1037     }
1038     /**
1039      *
1040      *
1041      * <pre>
1042      * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
1043      * </pre>
1044      *
1045      * <code>string ssl_policy = 295190213 [(.google.api.field_behavior) = REQUIRED];</code>
1046      *
1047      * @return This builder for chaining.
1048      */
clearSslPolicy()1049     public Builder clearSslPolicy() {
1050       sslPolicy_ = getDefaultInstance().getSslPolicy();
1051       bitField0_ = (bitField0_ & ~0x00000004);
1052       onChanged();
1053       return this;
1054     }
1055     /**
1056      *
1057      *
1058      * <pre>
1059      * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
1060      * </pre>
1061      *
1062      * <code>string ssl_policy = 295190213 [(.google.api.field_behavior) = REQUIRED];</code>
1063      *
1064      * @param value The bytes for sslPolicy to set.
1065      * @return This builder for chaining.
1066      */
setSslPolicyBytes(com.google.protobuf.ByteString value)1067     public Builder setSslPolicyBytes(com.google.protobuf.ByteString value) {
1068       if (value == null) {
1069         throw new NullPointerException();
1070       }
1071       checkByteStringIsUtf8(value);
1072       sslPolicy_ = value;
1073       bitField0_ |= 0x00000004;
1074       onChanged();
1075       return this;
1076     }
1077 
1078     private com.google.cloud.compute.v1.SslPolicy sslPolicyResource_;
1079     private com.google.protobuf.SingleFieldBuilderV3<
1080             com.google.cloud.compute.v1.SslPolicy,
1081             com.google.cloud.compute.v1.SslPolicy.Builder,
1082             com.google.cloud.compute.v1.SslPolicyOrBuilder>
1083         sslPolicyResourceBuilder_;
1084     /**
1085      *
1086      *
1087      * <pre>
1088      * The body resource for this request
1089      * </pre>
1090      *
1091      * <code>
1092      * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
1093      * </code>
1094      *
1095      * @return Whether the sslPolicyResource field is set.
1096      */
hasSslPolicyResource()1097     public boolean hasSslPolicyResource() {
1098       return ((bitField0_ & 0x00000008) != 0);
1099     }
1100     /**
1101      *
1102      *
1103      * <pre>
1104      * The body resource for this request
1105      * </pre>
1106      *
1107      * <code>
1108      * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
1109      * </code>
1110      *
1111      * @return The sslPolicyResource.
1112      */
getSslPolicyResource()1113     public com.google.cloud.compute.v1.SslPolicy getSslPolicyResource() {
1114       if (sslPolicyResourceBuilder_ == null) {
1115         return sslPolicyResource_ == null
1116             ? com.google.cloud.compute.v1.SslPolicy.getDefaultInstance()
1117             : sslPolicyResource_;
1118       } else {
1119         return sslPolicyResourceBuilder_.getMessage();
1120       }
1121     }
1122     /**
1123      *
1124      *
1125      * <pre>
1126      * The body resource for this request
1127      * </pre>
1128      *
1129      * <code>
1130      * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
1131      * </code>
1132      */
setSslPolicyResource(com.google.cloud.compute.v1.SslPolicy value)1133     public Builder setSslPolicyResource(com.google.cloud.compute.v1.SslPolicy value) {
1134       if (sslPolicyResourceBuilder_ == null) {
1135         if (value == null) {
1136           throw new NullPointerException();
1137         }
1138         sslPolicyResource_ = value;
1139       } else {
1140         sslPolicyResourceBuilder_.setMessage(value);
1141       }
1142       bitField0_ |= 0x00000008;
1143       onChanged();
1144       return this;
1145     }
1146     /**
1147      *
1148      *
1149      * <pre>
1150      * The body resource for this request
1151      * </pre>
1152      *
1153      * <code>
1154      * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
1155      * </code>
1156      */
setSslPolicyResource( com.google.cloud.compute.v1.SslPolicy.Builder builderForValue)1157     public Builder setSslPolicyResource(
1158         com.google.cloud.compute.v1.SslPolicy.Builder builderForValue) {
1159       if (sslPolicyResourceBuilder_ == null) {
1160         sslPolicyResource_ = builderForValue.build();
1161       } else {
1162         sslPolicyResourceBuilder_.setMessage(builderForValue.build());
1163       }
1164       bitField0_ |= 0x00000008;
1165       onChanged();
1166       return this;
1167     }
1168     /**
1169      *
1170      *
1171      * <pre>
1172      * The body resource for this request
1173      * </pre>
1174      *
1175      * <code>
1176      * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
1177      * </code>
1178      */
mergeSslPolicyResource(com.google.cloud.compute.v1.SslPolicy value)1179     public Builder mergeSslPolicyResource(com.google.cloud.compute.v1.SslPolicy value) {
1180       if (sslPolicyResourceBuilder_ == null) {
1181         if (((bitField0_ & 0x00000008) != 0)
1182             && sslPolicyResource_ != null
1183             && sslPolicyResource_ != com.google.cloud.compute.v1.SslPolicy.getDefaultInstance()) {
1184           getSslPolicyResourceBuilder().mergeFrom(value);
1185         } else {
1186           sslPolicyResource_ = value;
1187         }
1188       } else {
1189         sslPolicyResourceBuilder_.mergeFrom(value);
1190       }
1191       bitField0_ |= 0x00000008;
1192       onChanged();
1193       return this;
1194     }
1195     /**
1196      *
1197      *
1198      * <pre>
1199      * The body resource for this request
1200      * </pre>
1201      *
1202      * <code>
1203      * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
1204      * </code>
1205      */
clearSslPolicyResource()1206     public Builder clearSslPolicyResource() {
1207       bitField0_ = (bitField0_ & ~0x00000008);
1208       sslPolicyResource_ = null;
1209       if (sslPolicyResourceBuilder_ != null) {
1210         sslPolicyResourceBuilder_.dispose();
1211         sslPolicyResourceBuilder_ = null;
1212       }
1213       onChanged();
1214       return this;
1215     }
1216     /**
1217      *
1218      *
1219      * <pre>
1220      * The body resource for this request
1221      * </pre>
1222      *
1223      * <code>
1224      * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
1225      * </code>
1226      */
getSslPolicyResourceBuilder()1227     public com.google.cloud.compute.v1.SslPolicy.Builder getSslPolicyResourceBuilder() {
1228       bitField0_ |= 0x00000008;
1229       onChanged();
1230       return getSslPolicyResourceFieldBuilder().getBuilder();
1231     }
1232     /**
1233      *
1234      *
1235      * <pre>
1236      * The body resource for this request
1237      * </pre>
1238      *
1239      * <code>
1240      * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
1241      * </code>
1242      */
getSslPolicyResourceOrBuilder()1243     public com.google.cloud.compute.v1.SslPolicyOrBuilder getSslPolicyResourceOrBuilder() {
1244       if (sslPolicyResourceBuilder_ != null) {
1245         return sslPolicyResourceBuilder_.getMessageOrBuilder();
1246       } else {
1247         return sslPolicyResource_ == null
1248             ? com.google.cloud.compute.v1.SslPolicy.getDefaultInstance()
1249             : sslPolicyResource_;
1250       }
1251     }
1252     /**
1253      *
1254      *
1255      * <pre>
1256      * The body resource for this request
1257      * </pre>
1258      *
1259      * <code>
1260      * .google.cloud.compute.v1.SslPolicy ssl_policy_resource = 274891848 [(.google.api.field_behavior) = REQUIRED];
1261      * </code>
1262      */
1263     private com.google.protobuf.SingleFieldBuilderV3<
1264             com.google.cloud.compute.v1.SslPolicy,
1265             com.google.cloud.compute.v1.SslPolicy.Builder,
1266             com.google.cloud.compute.v1.SslPolicyOrBuilder>
getSslPolicyResourceFieldBuilder()1267         getSslPolicyResourceFieldBuilder() {
1268       if (sslPolicyResourceBuilder_ == null) {
1269         sslPolicyResourceBuilder_ =
1270             new com.google.protobuf.SingleFieldBuilderV3<
1271                 com.google.cloud.compute.v1.SslPolicy,
1272                 com.google.cloud.compute.v1.SslPolicy.Builder,
1273                 com.google.cloud.compute.v1.SslPolicyOrBuilder>(
1274                 getSslPolicyResource(), getParentForChildren(), isClean());
1275         sslPolicyResource_ = null;
1276       }
1277       return sslPolicyResourceBuilder_;
1278     }
1279 
1280     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1281     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1282       return super.setUnknownFields(unknownFields);
1283     }
1284 
1285     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1286     public final Builder mergeUnknownFields(
1287         final com.google.protobuf.UnknownFieldSet unknownFields) {
1288       return super.mergeUnknownFields(unknownFields);
1289     }
1290 
1291     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.PatchSslPolicyRequest)
1292   }
1293 
1294   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.PatchSslPolicyRequest)
1295   private static final com.google.cloud.compute.v1.PatchSslPolicyRequest DEFAULT_INSTANCE;
1296 
1297   static {
1298     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.PatchSslPolicyRequest();
1299   }
1300 
getDefaultInstance()1301   public static com.google.cloud.compute.v1.PatchSslPolicyRequest getDefaultInstance() {
1302     return DEFAULT_INSTANCE;
1303   }
1304 
1305   private static final com.google.protobuf.Parser<PatchSslPolicyRequest> PARSER =
1306       new com.google.protobuf.AbstractParser<PatchSslPolicyRequest>() {
1307         @java.lang.Override
1308         public PatchSslPolicyRequest parsePartialFrom(
1309             com.google.protobuf.CodedInputStream input,
1310             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1311             throws com.google.protobuf.InvalidProtocolBufferException {
1312           Builder builder = newBuilder();
1313           try {
1314             builder.mergeFrom(input, extensionRegistry);
1315           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1316             throw e.setUnfinishedMessage(builder.buildPartial());
1317           } catch (com.google.protobuf.UninitializedMessageException e) {
1318             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1319           } catch (java.io.IOException e) {
1320             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1321                 .setUnfinishedMessage(builder.buildPartial());
1322           }
1323           return builder.buildPartial();
1324         }
1325       };
1326 
parser()1327   public static com.google.protobuf.Parser<PatchSslPolicyRequest> parser() {
1328     return PARSER;
1329   }
1330 
1331   @java.lang.Override
getParserForType()1332   public com.google.protobuf.Parser<PatchSslPolicyRequest> getParserForType() {
1333     return PARSER;
1334   }
1335 
1336   @java.lang.Override
getDefaultInstanceForType()1337   public com.google.cloud.compute.v1.PatchSslPolicyRequest getDefaultInstanceForType() {
1338     return DEFAULT_INSTANCE;
1339   }
1340 }
1341