• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.UsageExportLocation}
29  */
30 public final class UsageExportLocation extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UsageExportLocation)
33     UsageExportLocationOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use UsageExportLocation.newBuilder() to construct.
UsageExportLocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private UsageExportLocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
UsageExportLocation()40   private UsageExportLocation() {
41     bucketName_ = "";
42     reportNamePrefix_ = "";
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new UsageExportLocation();
49   }
50 
51   @java.lang.Override
getUnknownFields()52   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53     return this.unknownFields;
54   }
55 
getDescriptor()56   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
57     return com.google.cloud.compute.v1.Compute
58         .internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor;
59   }
60 
61   @java.lang.Override
62   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()63       internalGetFieldAccessorTable() {
64     return com.google.cloud.compute.v1.Compute
65         .internal_static_google_cloud_compute_v1_UsageExportLocation_fieldAccessorTable
66         .ensureFieldAccessorsInitialized(
67             com.google.cloud.compute.v1.UsageExportLocation.class,
68             com.google.cloud.compute.v1.UsageExportLocation.Builder.class);
69   }
70 
71   private int bitField0_;
72   public static final int BUCKET_NAME_FIELD_NUMBER = 283610048;
73 
74   @SuppressWarnings("serial")
75   private volatile java.lang.Object bucketName_ = "";
76   /**
77    *
78    *
79    * <pre>
80    * The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
81    * </pre>
82    *
83    * <code>optional string bucket_name = 283610048;</code>
84    *
85    * @return Whether the bucketName field is set.
86    */
87   @java.lang.Override
hasBucketName()88   public boolean hasBucketName() {
89     return ((bitField0_ & 0x00000001) != 0);
90   }
91   /**
92    *
93    *
94    * <pre>
95    * The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
96    * </pre>
97    *
98    * <code>optional string bucket_name = 283610048;</code>
99    *
100    * @return The bucketName.
101    */
102   @java.lang.Override
getBucketName()103   public java.lang.String getBucketName() {
104     java.lang.Object ref = bucketName_;
105     if (ref instanceof java.lang.String) {
106       return (java.lang.String) ref;
107     } else {
108       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
109       java.lang.String s = bs.toStringUtf8();
110       bucketName_ = s;
111       return s;
112     }
113   }
114   /**
115    *
116    *
117    * <pre>
118    * The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
119    * </pre>
120    *
121    * <code>optional string bucket_name = 283610048;</code>
122    *
123    * @return The bytes for bucketName.
124    */
125   @java.lang.Override
getBucketNameBytes()126   public com.google.protobuf.ByteString getBucketNameBytes() {
127     java.lang.Object ref = bucketName_;
128     if (ref instanceof java.lang.String) {
129       com.google.protobuf.ByteString b =
130           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
131       bucketName_ = b;
132       return b;
133     } else {
134       return (com.google.protobuf.ByteString) ref;
135     }
136   }
137 
138   public static final int REPORT_NAME_PREFIX_FIELD_NUMBER = 320198715;
139 
140   @SuppressWarnings("serial")
141   private volatile java.lang.Object reportNamePrefix_ = "";
142   /**
143    *
144    *
145    * <pre>
146    * An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
147    * </pre>
148    *
149    * <code>optional string report_name_prefix = 320198715;</code>
150    *
151    * @return Whether the reportNamePrefix field is set.
152    */
153   @java.lang.Override
hasReportNamePrefix()154   public boolean hasReportNamePrefix() {
155     return ((bitField0_ & 0x00000002) != 0);
156   }
157   /**
158    *
159    *
160    * <pre>
161    * An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
162    * </pre>
163    *
164    * <code>optional string report_name_prefix = 320198715;</code>
165    *
166    * @return The reportNamePrefix.
167    */
168   @java.lang.Override
getReportNamePrefix()169   public java.lang.String getReportNamePrefix() {
170     java.lang.Object ref = reportNamePrefix_;
171     if (ref instanceof java.lang.String) {
172       return (java.lang.String) ref;
173     } else {
174       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
175       java.lang.String s = bs.toStringUtf8();
176       reportNamePrefix_ = s;
177       return s;
178     }
179   }
180   /**
181    *
182    *
183    * <pre>
184    * An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
185    * </pre>
186    *
187    * <code>optional string report_name_prefix = 320198715;</code>
188    *
189    * @return The bytes for reportNamePrefix.
190    */
191   @java.lang.Override
getReportNamePrefixBytes()192   public com.google.protobuf.ByteString getReportNamePrefixBytes() {
193     java.lang.Object ref = reportNamePrefix_;
194     if (ref instanceof java.lang.String) {
195       com.google.protobuf.ByteString b =
196           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
197       reportNamePrefix_ = b;
198       return b;
199     } else {
200       return (com.google.protobuf.ByteString) ref;
201     }
202   }
203 
204   private byte memoizedIsInitialized = -1;
205 
206   @java.lang.Override
isInitialized()207   public final boolean isInitialized() {
208     byte isInitialized = memoizedIsInitialized;
209     if (isInitialized == 1) return true;
210     if (isInitialized == 0) return false;
211 
212     memoizedIsInitialized = 1;
213     return true;
214   }
215 
216   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)217   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
218     if (((bitField0_ & 0x00000001) != 0)) {
219       com.google.protobuf.GeneratedMessageV3.writeString(output, 283610048, bucketName_);
220     }
221     if (((bitField0_ & 0x00000002) != 0)) {
222       com.google.protobuf.GeneratedMessageV3.writeString(output, 320198715, reportNamePrefix_);
223     }
224     getUnknownFields().writeTo(output);
225   }
226 
227   @java.lang.Override
getSerializedSize()228   public int getSerializedSize() {
229     int size = memoizedSize;
230     if (size != -1) return size;
231 
232     size = 0;
233     if (((bitField0_ & 0x00000001) != 0)) {
234       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(283610048, bucketName_);
235     }
236     if (((bitField0_ & 0x00000002) != 0)) {
237       size +=
238           com.google.protobuf.GeneratedMessageV3.computeStringSize(320198715, reportNamePrefix_);
239     }
240     size += getUnknownFields().getSerializedSize();
241     memoizedSize = size;
242     return size;
243   }
244 
245   @java.lang.Override
equals(final java.lang.Object obj)246   public boolean equals(final java.lang.Object obj) {
247     if (obj == this) {
248       return true;
249     }
250     if (!(obj instanceof com.google.cloud.compute.v1.UsageExportLocation)) {
251       return super.equals(obj);
252     }
253     com.google.cloud.compute.v1.UsageExportLocation other =
254         (com.google.cloud.compute.v1.UsageExportLocation) obj;
255 
256     if (hasBucketName() != other.hasBucketName()) return false;
257     if (hasBucketName()) {
258       if (!getBucketName().equals(other.getBucketName())) return false;
259     }
260     if (hasReportNamePrefix() != other.hasReportNamePrefix()) return false;
261     if (hasReportNamePrefix()) {
262       if (!getReportNamePrefix().equals(other.getReportNamePrefix())) return false;
263     }
264     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
265     return true;
266   }
267 
268   @java.lang.Override
hashCode()269   public int hashCode() {
270     if (memoizedHashCode != 0) {
271       return memoizedHashCode;
272     }
273     int hash = 41;
274     hash = (19 * hash) + getDescriptor().hashCode();
275     if (hasBucketName()) {
276       hash = (37 * hash) + BUCKET_NAME_FIELD_NUMBER;
277       hash = (53 * hash) + getBucketName().hashCode();
278     }
279     if (hasReportNamePrefix()) {
280       hash = (37 * hash) + REPORT_NAME_PREFIX_FIELD_NUMBER;
281       hash = (53 * hash) + getReportNamePrefix().hashCode();
282     }
283     hash = (29 * hash) + getUnknownFields().hashCode();
284     memoizedHashCode = hash;
285     return hash;
286   }
287 
parseFrom(java.nio.ByteBuffer data)288   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(java.nio.ByteBuffer data)
289       throws com.google.protobuf.InvalidProtocolBufferException {
290     return PARSER.parseFrom(data);
291   }
292 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)293   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(
294       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
295       throws com.google.protobuf.InvalidProtocolBufferException {
296     return PARSER.parseFrom(data, extensionRegistry);
297   }
298 
parseFrom( com.google.protobuf.ByteString data)299   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(
300       com.google.protobuf.ByteString data)
301       throws com.google.protobuf.InvalidProtocolBufferException {
302     return PARSER.parseFrom(data);
303   }
304 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)305   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(
306       com.google.protobuf.ByteString data,
307       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
308       throws com.google.protobuf.InvalidProtocolBufferException {
309     return PARSER.parseFrom(data, extensionRegistry);
310   }
311 
parseFrom(byte[] data)312   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(byte[] data)
313       throws com.google.protobuf.InvalidProtocolBufferException {
314     return PARSER.parseFrom(data);
315   }
316 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)317   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(
318       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
319       throws com.google.protobuf.InvalidProtocolBufferException {
320     return PARSER.parseFrom(data, extensionRegistry);
321   }
322 
parseFrom(java.io.InputStream input)323   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(java.io.InputStream input)
324       throws java.io.IOException {
325     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
326   }
327 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)328   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(
329       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
330       throws java.io.IOException {
331     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
332         PARSER, input, extensionRegistry);
333   }
334 
parseDelimitedFrom( java.io.InputStream input)335   public static com.google.cloud.compute.v1.UsageExportLocation parseDelimitedFrom(
336       java.io.InputStream input) throws java.io.IOException {
337     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
338   }
339 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)340   public static com.google.cloud.compute.v1.UsageExportLocation parseDelimitedFrom(
341       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
342       throws java.io.IOException {
343     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
344         PARSER, input, extensionRegistry);
345   }
346 
parseFrom( com.google.protobuf.CodedInputStream input)347   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(
348       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
349     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
350   }
351 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)352   public static com.google.cloud.compute.v1.UsageExportLocation parseFrom(
353       com.google.protobuf.CodedInputStream input,
354       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
355       throws java.io.IOException {
356     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
357         PARSER, input, extensionRegistry);
358   }
359 
360   @java.lang.Override
newBuilderForType()361   public Builder newBuilderForType() {
362     return newBuilder();
363   }
364 
newBuilder()365   public static Builder newBuilder() {
366     return DEFAULT_INSTANCE.toBuilder();
367   }
368 
newBuilder(com.google.cloud.compute.v1.UsageExportLocation prototype)369   public static Builder newBuilder(com.google.cloud.compute.v1.UsageExportLocation prototype) {
370     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
371   }
372 
373   @java.lang.Override
toBuilder()374   public Builder toBuilder() {
375     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
376   }
377 
378   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)379   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
380     Builder builder = new Builder(parent);
381     return builder;
382   }
383   /**
384    *
385    *
386    * <pre>
387    * The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.
388    * </pre>
389    *
390    * Protobuf type {@code google.cloud.compute.v1.UsageExportLocation}
391    */
392   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
393       implements
394       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UsageExportLocation)
395       com.google.cloud.compute.v1.UsageExportLocationOrBuilder {
getDescriptor()396     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
397       return com.google.cloud.compute.v1.Compute
398           .internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor;
399     }
400 
401     @java.lang.Override
402     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()403         internalGetFieldAccessorTable() {
404       return com.google.cloud.compute.v1.Compute
405           .internal_static_google_cloud_compute_v1_UsageExportLocation_fieldAccessorTable
406           .ensureFieldAccessorsInitialized(
407               com.google.cloud.compute.v1.UsageExportLocation.class,
408               com.google.cloud.compute.v1.UsageExportLocation.Builder.class);
409     }
410 
411     // Construct using com.google.cloud.compute.v1.UsageExportLocation.newBuilder()
Builder()412     private Builder() {}
413 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)414     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
415       super(parent);
416     }
417 
418     @java.lang.Override
clear()419     public Builder clear() {
420       super.clear();
421       bitField0_ = 0;
422       bucketName_ = "";
423       reportNamePrefix_ = "";
424       return this;
425     }
426 
427     @java.lang.Override
getDescriptorForType()428     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
429       return com.google.cloud.compute.v1.Compute
430           .internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor;
431     }
432 
433     @java.lang.Override
getDefaultInstanceForType()434     public com.google.cloud.compute.v1.UsageExportLocation getDefaultInstanceForType() {
435       return com.google.cloud.compute.v1.UsageExportLocation.getDefaultInstance();
436     }
437 
438     @java.lang.Override
build()439     public com.google.cloud.compute.v1.UsageExportLocation build() {
440       com.google.cloud.compute.v1.UsageExportLocation result = buildPartial();
441       if (!result.isInitialized()) {
442         throw newUninitializedMessageException(result);
443       }
444       return result;
445     }
446 
447     @java.lang.Override
buildPartial()448     public com.google.cloud.compute.v1.UsageExportLocation buildPartial() {
449       com.google.cloud.compute.v1.UsageExportLocation result =
450           new com.google.cloud.compute.v1.UsageExportLocation(this);
451       if (bitField0_ != 0) {
452         buildPartial0(result);
453       }
454       onBuilt();
455       return result;
456     }
457 
buildPartial0(com.google.cloud.compute.v1.UsageExportLocation result)458     private void buildPartial0(com.google.cloud.compute.v1.UsageExportLocation result) {
459       int from_bitField0_ = bitField0_;
460       int to_bitField0_ = 0;
461       if (((from_bitField0_ & 0x00000001) != 0)) {
462         result.bucketName_ = bucketName_;
463         to_bitField0_ |= 0x00000001;
464       }
465       if (((from_bitField0_ & 0x00000002) != 0)) {
466         result.reportNamePrefix_ = reportNamePrefix_;
467         to_bitField0_ |= 0x00000002;
468       }
469       result.bitField0_ |= to_bitField0_;
470     }
471 
472     @java.lang.Override
clone()473     public Builder clone() {
474       return super.clone();
475     }
476 
477     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)478     public Builder setField(
479         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
480       return super.setField(field, value);
481     }
482 
483     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)484     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
485       return super.clearField(field);
486     }
487 
488     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)489     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
490       return super.clearOneof(oneof);
491     }
492 
493     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)494     public Builder setRepeatedField(
495         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
496       return super.setRepeatedField(field, index, value);
497     }
498 
499     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)500     public Builder addRepeatedField(
501         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
502       return super.addRepeatedField(field, value);
503     }
504 
505     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)506     public Builder mergeFrom(com.google.protobuf.Message other) {
507       if (other instanceof com.google.cloud.compute.v1.UsageExportLocation) {
508         return mergeFrom((com.google.cloud.compute.v1.UsageExportLocation) other);
509       } else {
510         super.mergeFrom(other);
511         return this;
512       }
513     }
514 
mergeFrom(com.google.cloud.compute.v1.UsageExportLocation other)515     public Builder mergeFrom(com.google.cloud.compute.v1.UsageExportLocation other) {
516       if (other == com.google.cloud.compute.v1.UsageExportLocation.getDefaultInstance())
517         return this;
518       if (other.hasBucketName()) {
519         bucketName_ = other.bucketName_;
520         bitField0_ |= 0x00000001;
521         onChanged();
522       }
523       if (other.hasReportNamePrefix()) {
524         reportNamePrefix_ = other.reportNamePrefix_;
525         bitField0_ |= 0x00000002;
526         onChanged();
527       }
528       this.mergeUnknownFields(other.getUnknownFields());
529       onChanged();
530       return this;
531     }
532 
533     @java.lang.Override
isInitialized()534     public final boolean isInitialized() {
535       return true;
536     }
537 
538     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)539     public Builder mergeFrom(
540         com.google.protobuf.CodedInputStream input,
541         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
542         throws java.io.IOException {
543       if (extensionRegistry == null) {
544         throw new java.lang.NullPointerException();
545       }
546       try {
547         boolean done = false;
548         while (!done) {
549           int tag = input.readTag();
550           switch (tag) {
551             case 0:
552               done = true;
553               break;
554             case -2026086910:
555               {
556                 bucketName_ = input.readStringRequireUtf8();
557                 bitField0_ |= 0x00000001;
558                 break;
559               } // case -2026086910
560             case -1733377574:
561               {
562                 reportNamePrefix_ = input.readStringRequireUtf8();
563                 bitField0_ |= 0x00000002;
564                 break;
565               } // case -1733377574
566             default:
567               {
568                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
569                   done = true; // was an endgroup tag
570                 }
571                 break;
572               } // default:
573           } // switch (tag)
574         } // while (!done)
575       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
576         throw e.unwrapIOException();
577       } finally {
578         onChanged();
579       } // finally
580       return this;
581     }
582 
583     private int bitField0_;
584 
585     private java.lang.Object bucketName_ = "";
586     /**
587      *
588      *
589      * <pre>
590      * The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
591      * </pre>
592      *
593      * <code>optional string bucket_name = 283610048;</code>
594      *
595      * @return Whether the bucketName field is set.
596      */
hasBucketName()597     public boolean hasBucketName() {
598       return ((bitField0_ & 0x00000001) != 0);
599     }
600     /**
601      *
602      *
603      * <pre>
604      * The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
605      * </pre>
606      *
607      * <code>optional string bucket_name = 283610048;</code>
608      *
609      * @return The bucketName.
610      */
getBucketName()611     public java.lang.String getBucketName() {
612       java.lang.Object ref = bucketName_;
613       if (!(ref instanceof java.lang.String)) {
614         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
615         java.lang.String s = bs.toStringUtf8();
616         bucketName_ = s;
617         return s;
618       } else {
619         return (java.lang.String) ref;
620       }
621     }
622     /**
623      *
624      *
625      * <pre>
626      * The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
627      * </pre>
628      *
629      * <code>optional string bucket_name = 283610048;</code>
630      *
631      * @return The bytes for bucketName.
632      */
getBucketNameBytes()633     public com.google.protobuf.ByteString getBucketNameBytes() {
634       java.lang.Object ref = bucketName_;
635       if (ref instanceof String) {
636         com.google.protobuf.ByteString b =
637             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
638         bucketName_ = b;
639         return b;
640       } else {
641         return (com.google.protobuf.ByteString) ref;
642       }
643     }
644     /**
645      *
646      *
647      * <pre>
648      * The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
649      * </pre>
650      *
651      * <code>optional string bucket_name = 283610048;</code>
652      *
653      * @param value The bucketName to set.
654      * @return This builder for chaining.
655      */
setBucketName(java.lang.String value)656     public Builder setBucketName(java.lang.String value) {
657       if (value == null) {
658         throw new NullPointerException();
659       }
660       bucketName_ = value;
661       bitField0_ |= 0x00000001;
662       onChanged();
663       return this;
664     }
665     /**
666      *
667      *
668      * <pre>
669      * The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
670      * </pre>
671      *
672      * <code>optional string bucket_name = 283610048;</code>
673      *
674      * @return This builder for chaining.
675      */
clearBucketName()676     public Builder clearBucketName() {
677       bucketName_ = getDefaultInstance().getBucketName();
678       bitField0_ = (bitField0_ & ~0x00000001);
679       onChanged();
680       return this;
681     }
682     /**
683      *
684      *
685      * <pre>
686      * The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the bucket name by itself, such as example-bucket, or the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket.
687      * </pre>
688      *
689      * <code>optional string bucket_name = 283610048;</code>
690      *
691      * @param value The bytes for bucketName to set.
692      * @return This builder for chaining.
693      */
setBucketNameBytes(com.google.protobuf.ByteString value)694     public Builder setBucketNameBytes(com.google.protobuf.ByteString value) {
695       if (value == null) {
696         throw new NullPointerException();
697       }
698       checkByteStringIsUtf8(value);
699       bucketName_ = value;
700       bitField0_ |= 0x00000001;
701       onChanged();
702       return this;
703     }
704 
705     private java.lang.Object reportNamePrefix_ = "";
706     /**
707      *
708      *
709      * <pre>
710      * An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
711      * </pre>
712      *
713      * <code>optional string report_name_prefix = 320198715;</code>
714      *
715      * @return Whether the reportNamePrefix field is set.
716      */
hasReportNamePrefix()717     public boolean hasReportNamePrefix() {
718       return ((bitField0_ & 0x00000002) != 0);
719     }
720     /**
721      *
722      *
723      * <pre>
724      * An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
725      * </pre>
726      *
727      * <code>optional string report_name_prefix = 320198715;</code>
728      *
729      * @return The reportNamePrefix.
730      */
getReportNamePrefix()731     public java.lang.String getReportNamePrefix() {
732       java.lang.Object ref = reportNamePrefix_;
733       if (!(ref instanceof java.lang.String)) {
734         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
735         java.lang.String s = bs.toStringUtf8();
736         reportNamePrefix_ = s;
737         return s;
738       } else {
739         return (java.lang.String) ref;
740       }
741     }
742     /**
743      *
744      *
745      * <pre>
746      * An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
747      * </pre>
748      *
749      * <code>optional string report_name_prefix = 320198715;</code>
750      *
751      * @return The bytes for reportNamePrefix.
752      */
getReportNamePrefixBytes()753     public com.google.protobuf.ByteString getReportNamePrefixBytes() {
754       java.lang.Object ref = reportNamePrefix_;
755       if (ref instanceof String) {
756         com.google.protobuf.ByteString b =
757             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
758         reportNamePrefix_ = b;
759         return b;
760       } else {
761         return (com.google.protobuf.ByteString) ref;
762       }
763     }
764     /**
765      *
766      *
767      * <pre>
768      * An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
769      * </pre>
770      *
771      * <code>optional string report_name_prefix = 320198715;</code>
772      *
773      * @param value The reportNamePrefix to set.
774      * @return This builder for chaining.
775      */
setReportNamePrefix(java.lang.String value)776     public Builder setReportNamePrefix(java.lang.String value) {
777       if (value == null) {
778         throw new NullPointerException();
779       }
780       reportNamePrefix_ = value;
781       bitField0_ |= 0x00000002;
782       onChanged();
783       return this;
784     }
785     /**
786      *
787      *
788      * <pre>
789      * An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
790      * </pre>
791      *
792      * <code>optional string report_name_prefix = 320198715;</code>
793      *
794      * @return This builder for chaining.
795      */
clearReportNamePrefix()796     public Builder clearReportNamePrefix() {
797       reportNamePrefix_ = getDefaultInstance().getReportNamePrefix();
798       bitField0_ = (bitField0_ & ~0x00000002);
799       onChanged();
800       return this;
801     }
802     /**
803      *
804      *
805      * <pre>
806      * An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage_gce. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
807      * </pre>
808      *
809      * <code>optional string report_name_prefix = 320198715;</code>
810      *
811      * @param value The bytes for reportNamePrefix to set.
812      * @return This builder for chaining.
813      */
setReportNamePrefixBytes(com.google.protobuf.ByteString value)814     public Builder setReportNamePrefixBytes(com.google.protobuf.ByteString value) {
815       if (value == null) {
816         throw new NullPointerException();
817       }
818       checkByteStringIsUtf8(value);
819       reportNamePrefix_ = value;
820       bitField0_ |= 0x00000002;
821       onChanged();
822       return this;
823     }
824 
825     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)826     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
827       return super.setUnknownFields(unknownFields);
828     }
829 
830     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)831     public final Builder mergeUnknownFields(
832         final com.google.protobuf.UnknownFieldSet unknownFields) {
833       return super.mergeUnknownFields(unknownFields);
834     }
835 
836     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.UsageExportLocation)
837   }
838 
839   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UsageExportLocation)
840   private static final com.google.cloud.compute.v1.UsageExportLocation DEFAULT_INSTANCE;
841 
842   static {
843     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UsageExportLocation();
844   }
845 
getDefaultInstance()846   public static com.google.cloud.compute.v1.UsageExportLocation getDefaultInstance() {
847     return DEFAULT_INSTANCE;
848   }
849 
850   private static final com.google.protobuf.Parser<UsageExportLocation> PARSER =
851       new com.google.protobuf.AbstractParser<UsageExportLocation>() {
852         @java.lang.Override
853         public UsageExportLocation parsePartialFrom(
854             com.google.protobuf.CodedInputStream input,
855             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
856             throws com.google.protobuf.InvalidProtocolBufferException {
857           Builder builder = newBuilder();
858           try {
859             builder.mergeFrom(input, extensionRegistry);
860           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
861             throw e.setUnfinishedMessage(builder.buildPartial());
862           } catch (com.google.protobuf.UninitializedMessageException e) {
863             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
864           } catch (java.io.IOException e) {
865             throw new com.google.protobuf.InvalidProtocolBufferException(e)
866                 .setUnfinishedMessage(builder.buildPartial());
867           }
868           return builder.buildPartial();
869         }
870       };
871 
parser()872   public static com.google.protobuf.Parser<UsageExportLocation> parser() {
873     return PARSER;
874   }
875 
876   @java.lang.Override
getParserForType()877   public com.google.protobuf.Parser<UsageExportLocation> getParserForType() {
878     return PARSER;
879   }
880 
881   @java.lang.Override
getDefaultInstanceForType()882   public com.google.cloud.compute.v1.UsageExportLocation getDefaultInstanceForType() {
883     return DEFAULT_INSTANCE;
884   }
885 }
886