Class Report.Builder

  • All Implemented Interfaces:
    ReportOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Report

    public static final class Report.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Report.Builder>
    implements ReportOrBuilder
     The ID and description of a report that was used to generate report data.
     For example, "Google Cloud Daily Spend", "Google Workspace License Activity",
     etc.
     
    Protobuf type google.cloud.channel.v1.Report
    • 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<Report.Builder>
      • clear

        public Report.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<Report.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<Report.Builder>
      • getDefaultInstanceForType

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

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

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

        public Report.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<Report.Builder>
      • setField

        public Report.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<Report.Builder>
      • clearField

        public Report.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<Report.Builder>
      • clearOneof

        public Report.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<Report.Builder>
      • setRepeatedField

        public Report.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<Report.Builder>
      • addRepeatedField

        public Report.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<Report.Builder>
      • mergeFrom

        public Report.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<Report.Builder>
      • isInitialized

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

        public Report.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<Report.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The report's resource name. Specifies the account and report used
         to generate report data. The report_id identifier is a UID (for example,
         `613bf59q`).
        
         Name uses the format:
         accounts/{account_id}/reports/{report_id}
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface ReportOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The report's resource name. Specifies the account and report used
         to generate report data. The report_id identifier is a UID (for example,
         `613bf59q`).
        
         Name uses the format:
         accounts/{account_id}/reports/{report_id}
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface ReportOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Report.Builder setName​(String value)
         Required. The report's resource name. Specifies the account and report used
         to generate report data. The report_id identifier is a UID (for example,
         `613bf59q`).
        
         Name uses the format:
         accounts/{account_id}/reports/{report_id}
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Report.Builder clearName()
         Required. The report's resource name. Specifies the account and report used
         to generate report data. The report_id identifier is a UID (for example,
         `613bf59q`).
        
         Name uses the format:
         accounts/{account_id}/reports/{report_id}
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Report.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The report's resource name. Specifies the account and report used
         to generate report data. The report_id identifier is a UID (for example,
         `613bf59q`).
        
         Name uses the format:
         accounts/{account_id}/reports/{report_id}
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         A human-readable name for this report.
         
        string display_name = 2;
        Specified by:
        getDisplayName in interface ReportOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         A human-readable name for this report.
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface ReportOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public Report.Builder setDisplayName​(String value)
         A human-readable name for this report.
         
        string display_name = 2;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public Report.Builder clearDisplayName()
         A human-readable name for this report.
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public Report.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         A human-readable name for this report.
         
        string display_name = 2;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getColumnsList

        public List<Column> getColumnsList()
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
        Specified by:
        getColumnsList in interface ReportOrBuilder
      • getColumnsCount

        public int getColumnsCount()
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
        Specified by:
        getColumnsCount in interface ReportOrBuilder
      • getColumns

        public Column getColumns​(int index)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
        Specified by:
        getColumns in interface ReportOrBuilder
      • setColumns

        public Report.Builder setColumns​(int index,
                                         Column value)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • setColumns

        public Report.Builder setColumns​(int index,
                                         Column.Builder builderForValue)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • addColumns

        public Report.Builder addColumns​(Column value)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • addColumns

        public Report.Builder addColumns​(int index,
                                         Column value)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • addColumns

        public Report.Builder addColumns​(Column.Builder builderForValue)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • addColumns

        public Report.Builder addColumns​(int index,
                                         Column.Builder builderForValue)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • addAllColumns

        public Report.Builder addAllColumns​(Iterable<? extends Column> values)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • clearColumns

        public Report.Builder clearColumns()
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • removeColumns

        public Report.Builder removeColumns​(int index)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • getColumnsBuilder

        public Column.Builder getColumnsBuilder​(int index)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • getColumnsOrBuilder

        public ColumnOrBuilder getColumnsOrBuilder​(int index)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
        Specified by:
        getColumnsOrBuilder in interface ReportOrBuilder
      • getColumnsOrBuilderList

        public List<? extends ColumnOrBuilder> getColumnsOrBuilderList()
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
        Specified by:
        getColumnsOrBuilderList in interface ReportOrBuilder
      • addColumnsBuilder

        public Column.Builder addColumnsBuilder()
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • addColumnsBuilder

        public Column.Builder addColumnsBuilder​(int index)
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • getColumnsBuilderList

        public List<Column.Builder> getColumnsBuilderList()
         The list of columns included in the report. This defines the schema of
         the report results.
         
        repeated .google.cloud.channel.v1.Column columns = 3;
      • getDescription

        public String getDescription()
         A description of other aspects of the report, such as the products
         it supports.
         
        string description = 4;
        Specified by:
        getDescription in interface ReportOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         A description of other aspects of the report, such as the products
         it supports.
         
        string description = 4;
        Specified by:
        getDescriptionBytes in interface ReportOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Report.Builder setDescription​(String value)
         A description of other aspects of the report, such as the products
         it supports.
         
        string description = 4;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Report.Builder clearDescription()
         A description of other aspects of the report, such as the products
         it supports.
         
        string description = 4;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Report.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         A description of other aspects of the report, such as the products
         it supports.
         
        string description = 4;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Report.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<Report.Builder>
      • mergeUnknownFields

        public final Report.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<Report.Builder>