Class ReportResultsMetadata.Builder (3.10.0)

public static final class ReportResultsMetadata.Builder extends GeneratedMessageV3.Builder<ReportResultsMetadata.Builder> implements ReportResultsMetadataOrBuilder

The features describing the data. Returned by CloudChannelReportsService.RunReportJob and CloudChannelReportsService.FetchReportResults.

Protobuf type google.cloud.channel.v1.ReportResultsMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReportResultsMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides

build()

public ReportResultsMetadata build()
Returns
TypeDescription
ReportResultsMetadata

buildPartial()

public ReportResultsMetadata buildPartial()
Returns
TypeDescription
ReportResultsMetadata

clear()

public ReportResultsMetadata.Builder clear()
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides

clearDateRange()

public ReportResultsMetadata.Builder clearDateRange()

The date range of reported usage.

.google.cloud.channel.v1.DateRange date_range = 3;

Returns
TypeDescription
ReportResultsMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public ReportResultsMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ReportResultsMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides

clearPrecedingDateRange()

public ReportResultsMetadata.Builder clearPrecedingDateRange()

The usage dates immediately preceding date_range with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data. For example, if date_range is July 1-15, preceding_date_range will be June 16-30.

.google.cloud.channel.v1.DateRange preceding_date_range = 4;

Returns
TypeDescription
ReportResultsMetadata.Builder

clearReport()

public ReportResultsMetadata.Builder clearReport()

Details of the completed report.

.google.cloud.channel.v1.Report report = 1;

Returns
TypeDescription
ReportResultsMetadata.Builder

clearRowCount()

public ReportResultsMetadata.Builder clearRowCount()

The total number of rows of data in the final report.

int64 row_count = 2;

Returns
TypeDescription
ReportResultsMetadata.Builder

This builder for chaining.

clone()

public ReportResultsMetadata.Builder clone()
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides

getDateRange()

public DateRange getDateRange()

The date range of reported usage.

.google.cloud.channel.v1.DateRange date_range = 3;

Returns
TypeDescription
DateRange

The dateRange.

getDateRangeBuilder()

public DateRange.Builder getDateRangeBuilder()

The date range of reported usage.

.google.cloud.channel.v1.DateRange date_range = 3;

Returns
TypeDescription
DateRange.Builder

getDateRangeOrBuilder()

public DateRangeOrBuilder getDateRangeOrBuilder()

The date range of reported usage.

.google.cloud.channel.v1.DateRange date_range = 3;

Returns
TypeDescription
DateRangeOrBuilder

getDefaultInstanceForType()

public ReportResultsMetadata getDefaultInstanceForType()
Returns
TypeDescription
ReportResultsMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrecedingDateRange()

public DateRange getPrecedingDateRange()

The usage dates immediately preceding date_range with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data. For example, if date_range is July 1-15, preceding_date_range will be June 16-30.

.google.cloud.channel.v1.DateRange preceding_date_range = 4;

Returns
TypeDescription
DateRange

The precedingDateRange.

getPrecedingDateRangeBuilder()

public DateRange.Builder getPrecedingDateRangeBuilder()

The usage dates immediately preceding date_range with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data. For example, if date_range is July 1-15, preceding_date_range will be June 16-30.

.google.cloud.channel.v1.DateRange preceding_date_range = 4;

Returns
TypeDescription
DateRange.Builder

getPrecedingDateRangeOrBuilder()

public DateRangeOrBuilder getPrecedingDateRangeOrBuilder()

The usage dates immediately preceding date_range with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data. For example, if date_range is July 1-15, preceding_date_range will be June 16-30.

.google.cloud.channel.v1.DateRange preceding_date_range = 4;

Returns
TypeDescription
DateRangeOrBuilder

getReport()

public Report getReport()

Details of the completed report.

.google.cloud.channel.v1.Report report = 1;

Returns
TypeDescription
Report

The report.

getReportBuilder()

public Report.Builder getReportBuilder()

Details of the completed report.

.google.cloud.channel.v1.Report report = 1;

Returns
TypeDescription
Report.Builder

getReportOrBuilder()

public ReportOrBuilder getReportOrBuilder()

Details of the completed report.

.google.cloud.channel.v1.Report report = 1;

Returns
TypeDescription
ReportOrBuilder

getRowCount()

public long getRowCount()

The total number of rows of data in the final report.

int64 row_count = 2;

Returns
TypeDescription
long

The rowCount.

hasDateRange()

public boolean hasDateRange()

The date range of reported usage.

.google.cloud.channel.v1.DateRange date_range = 3;

Returns
TypeDescription
boolean

Whether the dateRange field is set.

hasPrecedingDateRange()

public boolean hasPrecedingDateRange()

The usage dates immediately preceding date_range with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data. For example, if date_range is July 1-15, preceding_date_range will be June 16-30.

.google.cloud.channel.v1.DateRange preceding_date_range = 4;

Returns
TypeDescription
boolean

Whether the precedingDateRange field is set.

hasReport()

public boolean hasReport()

Details of the completed report.

.google.cloud.channel.v1.Report report = 1;

Returns
TypeDescription
boolean

Whether the report field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDateRange(DateRange value)

public ReportResultsMetadata.Builder mergeDateRange(DateRange value)

The date range of reported usage.

.google.cloud.channel.v1.DateRange date_range = 3;

Parameter
NameDescription
valueDateRange
Returns
TypeDescription
ReportResultsMetadata.Builder

mergeFrom(ReportResultsMetadata other)

public ReportResultsMetadata.Builder mergeFrom(ReportResultsMetadata other)
Parameter
NameDescription
otherReportResultsMetadata
Returns
TypeDescription
ReportResultsMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReportResultsMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReportResultsMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides

mergePrecedingDateRange(DateRange value)

public ReportResultsMetadata.Builder mergePrecedingDateRange(DateRange value)

The usage dates immediately preceding date_range with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data. For example, if date_range is July 1-15, preceding_date_range will be June 16-30.

.google.cloud.channel.v1.DateRange preceding_date_range = 4;

Parameter
NameDescription
valueDateRange
Returns
TypeDescription
ReportResultsMetadata.Builder

mergeReport(Report value)

public ReportResultsMetadata.Builder mergeReport(Report value)

Details of the completed report.

.google.cloud.channel.v1.Report report = 1;

Parameter
NameDescription
valueReport
Returns
TypeDescription
ReportResultsMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReportResultsMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides

setDateRange(DateRange value)

public ReportResultsMetadata.Builder setDateRange(DateRange value)

The date range of reported usage.

.google.cloud.channel.v1.DateRange date_range = 3;

Parameter
NameDescription
valueDateRange
Returns
TypeDescription
ReportResultsMetadata.Builder

setDateRange(DateRange.Builder builderForValue)

public ReportResultsMetadata.Builder setDateRange(DateRange.Builder builderForValue)

The date range of reported usage.

.google.cloud.channel.v1.DateRange date_range = 3;

Parameter
NameDescription
builderForValueDateRange.Builder
Returns
TypeDescription
ReportResultsMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReportResultsMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides

setPrecedingDateRange(DateRange value)

public ReportResultsMetadata.Builder setPrecedingDateRange(DateRange value)

The usage dates immediately preceding date_range with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data. For example, if date_range is July 1-15, preceding_date_range will be June 16-30.

.google.cloud.channel.v1.DateRange preceding_date_range = 4;

Parameter
NameDescription
valueDateRange
Returns
TypeDescription
ReportResultsMetadata.Builder

setPrecedingDateRange(DateRange.Builder builderForValue)

public ReportResultsMetadata.Builder setPrecedingDateRange(DateRange.Builder builderForValue)

The usage dates immediately preceding date_range with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data. For example, if date_range is July 1-15, preceding_date_range will be June 16-30.

.google.cloud.channel.v1.DateRange preceding_date_range = 4;

Parameter
NameDescription
builderForValueDateRange.Builder
Returns
TypeDescription
ReportResultsMetadata.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReportResultsMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides

setReport(Report value)

public ReportResultsMetadata.Builder setReport(Report value)

Details of the completed report.

.google.cloud.channel.v1.Report report = 1;

Parameter
NameDescription
valueReport
Returns
TypeDescription
ReportResultsMetadata.Builder

setReport(Report.Builder builderForValue)

public ReportResultsMetadata.Builder setReport(Report.Builder builderForValue)

Details of the completed report.

.google.cloud.channel.v1.Report report = 1;

Parameter
NameDescription
builderForValueReport.Builder
Returns
TypeDescription
ReportResultsMetadata.Builder

setRowCount(long value)

public ReportResultsMetadata.Builder setRowCount(long value)

The total number of rows of data in the final report.

int64 row_count = 2;

Parameter
NameDescription
valuelong

The rowCount to set.

Returns
TypeDescription
ReportResultsMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ReportResultsMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReportResultsMetadata.Builder
Overrides