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