Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public UsageExportLocation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
      • setField

        public UsageExportLocation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
      • clearField

        public UsageExportLocation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
      • clearOneof

        public UsageExportLocation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
      • setRepeatedField

        public UsageExportLocation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
      • addRepeatedField

        public UsageExportLocation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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 as example-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 as example-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 as example-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 as example-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 as example-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 as example-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 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.
         
        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 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.
         
        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 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.
         
        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 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.
         
        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 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.
         
        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 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.
         
        optional string report_name_prefix = 320198715;
        Parameters:
        value - The bytes for reportNamePrefix to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final UsageExportLocation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>
      • mergeUnknownFields

        public final UsageExportLocation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UsageExportLocation.Builder>