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