Class UsageExportLocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UsageExportLocation.Builder>
com.google.cloud.compute.v1.UsageExportLocation.Builder
All Implemented Interfaces:
UsageExportLocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UsageExportLocation

public static final class UsageExportLocation.Builder extends com.google.protobuf.GeneratedMessage.Builder<UsageExportLocation.Builder> implements UsageExportLocationOrBuilder
 The location in Cloud Storage and naming method of the daily usage
 report. Contains bucket_name and report_name prefix.
 
Protobuf type google.cloud.compute.v1.UsageExportLocation
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The name of an existing bucket in Cloud Storage where the usage report object is stored.
    An optional prefix for the name of the usage report object stored inbucketName.
    The name of an existing bucket in Cloud Storage where the usage report object is stored.
    com.google.protobuf.ByteString
    The name of an existing bucket in Cloud Storage where the usage report object is stored.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    An optional prefix for the name of the usage report object stored inbucketName.
    com.google.protobuf.ByteString
    An optional prefix for the name of the usage report object stored inbucketName.
    boolean
    The name of an existing bucket in Cloud Storage where the usage report object is stored.
    boolean
    An optional prefix for the name of the usage report object stored inbucketName.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The name of an existing bucket in Cloud Storage where the usage report object is stored.
    setBucketNameBytes(com.google.protobuf.ByteString value)
    The name of an existing bucket in Cloud Storage where the usage report object is stored.
    An optional prefix for the name of the usage report object stored inbucketName.
    setReportNamePrefixBytes(com.google.protobuf.ByteString value)
    An optional prefix for the name of the usage report object stored inbucketName.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UsageExportLocation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UsageExportLocation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UsageExportLocation.Builder>
    • getDefaultInstanceForType

      public UsageExportLocation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UsageExportLocation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UsageExportLocation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public UsageExportLocation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UsageExportLocation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UsageExportLocation.Builder>
    • mergeFrom

      public UsageExportLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UsageExportLocation.Builder>
      Throws:
      IOException
    • hasBucketName

      public boolean hasBucketName()
       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 asexample-bucket, or the bucket name with gs://
       or https://storage.googleapis.com/ in front of it, such
       as gs://example-bucket.
       
      optional string bucket_name = 283610048;
      Specified by:
      hasBucketName in interface UsageExportLocationOrBuilder
      Returns:
      Whether the bucketName field is set.
    • getBucketName

      public String getBucketName()
       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 asexample-bucket, or the bucket name with gs://
       or https://storage.googleapis.com/ in front of it, such
       as gs://example-bucket.
       
      optional string bucket_name = 283610048;
      Specified by:
      getBucketName in interface UsageExportLocationOrBuilder
      Returns:
      The bucketName.
    • getBucketNameBytes

      public com.google.protobuf.ByteString getBucketNameBytes()
       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 asexample-bucket, or the bucket name with gs://
       or https://storage.googleapis.com/ in front of it, such
       as gs://example-bucket.
       
      optional string bucket_name = 283610048;
      Specified by:
      getBucketNameBytes in interface UsageExportLocationOrBuilder
      Returns:
      The bytes for bucketName.
    • setBucketName

      public UsageExportLocation.Builder setBucketName(String value)
       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 asexample-bucket, or the bucket name with gs://
       or https://storage.googleapis.com/ in front of it, such
       as gs://example-bucket.
       
      optional string bucket_name = 283610048;
      Parameters:
      value - The bucketName to set.
      Returns:
      This builder for chaining.
    • clearBucketName

      public UsageExportLocation.Builder clearBucketName()
       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 asexample-bucket, or the bucket name with gs://
       or https://storage.googleapis.com/ in front of it, such
       as gs://example-bucket.
       
      optional string bucket_name = 283610048;
      Returns:
      This builder for chaining.
    • setBucketNameBytes

      public UsageExportLocation.Builder setBucketNameBytes(com.google.protobuf.ByteString value)
       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 asexample-bucket, or the bucket name with gs://
       or https://storage.googleapis.com/ in front of it, such
       as gs://example-bucket.
       
      optional string bucket_name = 283610048;
      Parameters:
      value - The bytes for bucketName to set.
      Returns:
      This builder for chaining.
    • hasReportNamePrefix

      public boolean hasReportNamePrefix()
       An optional prefix for the name of the usage report object stored inbucketName. If not supplied, defaults tousage_gce. The report is stored as a CSV file namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to Pacific Time.
       If you supply a prefix, it should conform to Cloud Storageobject naming
       conventions.
       
      optional string report_name_prefix = 320198715;
      Specified by:
      hasReportNamePrefix in interface UsageExportLocationOrBuilder
      Returns:
      Whether the reportNamePrefix field is set.
    • getReportNamePrefix

      public String getReportNamePrefix()
       An optional prefix for the name of the usage report object stored inbucketName. If not supplied, defaults tousage_gce. The report is stored as a CSV file namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to Pacific Time.
       If you supply a prefix, it should conform to Cloud Storageobject naming
       conventions.
       
      optional string report_name_prefix = 320198715;
      Specified by:
      getReportNamePrefix in interface UsageExportLocationOrBuilder
      Returns:
      The reportNamePrefix.
    • getReportNamePrefixBytes

      public com.google.protobuf.ByteString getReportNamePrefixBytes()
       An optional prefix for the name of the usage report object stored inbucketName. If not supplied, defaults tousage_gce. The report is stored as a CSV file namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to Pacific Time.
       If you supply a prefix, it should conform to Cloud Storageobject naming
       conventions.
       
      optional string report_name_prefix = 320198715;
      Specified by:
      getReportNamePrefixBytes in interface UsageExportLocationOrBuilder
      Returns:
      The bytes for reportNamePrefix.
    • setReportNamePrefix

      public UsageExportLocation.Builder setReportNamePrefix(String value)
       An optional prefix for the name of the usage report object stored inbucketName. If not supplied, defaults tousage_gce. The report is stored as a CSV file namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to Pacific Time.
       If you supply a prefix, it should conform to Cloud Storageobject naming
       conventions.
       
      optional string report_name_prefix = 320198715;
      Parameters:
      value - The reportNamePrefix to set.
      Returns:
      This builder for chaining.
    • clearReportNamePrefix

      public UsageExportLocation.Builder clearReportNamePrefix()
       An optional prefix for the name of the usage report object stored inbucketName. If not supplied, defaults tousage_gce. The report is stored as a CSV file namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to Pacific Time.
       If you supply a prefix, it should conform to Cloud Storageobject naming
       conventions.
       
      optional string report_name_prefix = 320198715;
      Returns:
      This builder for chaining.
    • setReportNamePrefixBytes

      public UsageExportLocation.Builder setReportNamePrefixBytes(com.google.protobuf.ByteString value)
       An optional prefix for the name of the usage report object stored inbucketName. If not supplied, defaults tousage_gce. The report is stored as a CSV file namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to Pacific Time.
       If you supply a prefix, it should conform to Cloud Storageobject naming
       conventions.
       
      optional string report_name_prefix = 320198715;
      Parameters:
      value - The bytes for reportNamePrefix to set.
      Returns:
      This builder for chaining.