Class Report.Field.Builder (0.13.0)

public static final class Report.Field.Builder extends GeneratedMessageV3.Builder<Report.Field.Builder> implements Report.FieldOrBuilder

A dimension or a metric in a report.

Protobuf type google.ads.admanager.v1.Report.Field

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Report.Field.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Report.Field.Builder
Overrides

build()

public Report.Field build()
Returns
Type Description
Report.Field

buildPartial()

public Report.Field buildPartial()
Returns
Type Description
Report.Field

clear()

public Report.Field.Builder clear()
Returns
Type Description
Report.Field.Builder
Overrides

clearDimension()

public Report.Field.Builder clearDimension()

The dimension this field represents.

.google.ads.admanager.v1.Report.Dimension dimension = 1;

Returns
Type Description
Report.Field.Builder

This builder for chaining.

clearField()

public Report.Field.Builder clearField()
Returns
Type Description
Report.Field.Builder

clearField(Descriptors.FieldDescriptor field)

public Report.Field.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Report.Field.Builder
Overrides

clearMetric()

public Report.Field.Builder clearMetric()

The metric this field represents.

.google.ads.admanager.v1.Report.Metric metric = 2;

Returns
Type Description
Report.Field.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Report.Field.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Report.Field.Builder
Overrides

clone()

public Report.Field.Builder clone()
Returns
Type Description
Report.Field.Builder
Overrides

getDefaultInstanceForType()

public Report.Field getDefaultInstanceForType()
Returns
Type Description
Report.Field

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDimension()

public Report.Dimension getDimension()

The dimension this field represents.

.google.ads.admanager.v1.Report.Dimension dimension = 1;

Returns
Type Description
Report.Dimension

The dimension.

getDimensionValue()

public int getDimensionValue()

The dimension this field represents.

.google.ads.admanager.v1.Report.Dimension dimension = 1;

Returns
Type Description
int

The enum numeric value on the wire for dimension.

getFieldCase()

public Report.Field.FieldCase getFieldCase()
Returns
Type Description
Report.Field.FieldCase

getMetric()

public Report.Metric getMetric()

The metric this field represents.

.google.ads.admanager.v1.Report.Metric metric = 2;

Returns
Type Description
Report.Metric

The metric.

getMetricValue()

public int getMetricValue()

The metric this field represents.

.google.ads.admanager.v1.Report.Metric metric = 2;

Returns
Type Description
int

The enum numeric value on the wire for metric.

hasDimension()

public boolean hasDimension()

The dimension this field represents.

.google.ads.admanager.v1.Report.Dimension dimension = 1;

Returns
Type Description
boolean

Whether the dimension field is set.

hasMetric()

public boolean hasMetric()

The metric this field represents.

.google.ads.admanager.v1.Report.Metric metric = 2;

Returns
Type Description
boolean

Whether the metric field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Report.Field other)

public Report.Field.Builder mergeFrom(Report.Field other)
Parameter
Name Description
other Report.Field
Returns
Type Description
Report.Field.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Report.Field.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.Field.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Report.Field.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Report.Field.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Report.Field.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Report.Field.Builder
Overrides

setDimension(Report.Dimension value)

public Report.Field.Builder setDimension(Report.Dimension value)

The dimension this field represents.

.google.ads.admanager.v1.Report.Dimension dimension = 1;

Parameter
Name Description
value Report.Dimension

The dimension to set.

Returns
Type Description
Report.Field.Builder

This builder for chaining.

setDimensionValue(int value)

public Report.Field.Builder setDimensionValue(int value)

The dimension this field represents.

.google.ads.admanager.v1.Report.Dimension dimension = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for dimension to set.

Returns
Type Description
Report.Field.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Report.Field.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Report.Field.Builder
Overrides

setMetric(Report.Metric value)

public Report.Field.Builder setMetric(Report.Metric value)

The metric this field represents.

.google.ads.admanager.v1.Report.Metric metric = 2;

Parameter
Name Description
value Report.Metric

The metric to set.

Returns
Type Description
Report.Field.Builder

This builder for chaining.

setMetricValue(int value)

public Report.Field.Builder setMetricValue(int value)

The metric this field represents.

.google.ads.admanager.v1.Report.Metric metric = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for metric to set.

Returns
Type Description
Report.Field.Builder

This builder for chaining.

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

public Report.Field.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Report.Field.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Report.Field.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Report.Field.Builder
Overrides