public static final class ReportDefinition.Field.Builder extends GeneratedMessage.Builder<ReportDefinition.Field.Builder> implements ReportDefinition.FieldOrBuilderA dimension or a metric in a report.
Protobuf type google.ads.admanager.v1.ReportDefinition.Field
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ReportDefinition.Field.BuilderImplements
ReportDefinition.FieldOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ReportDefinition.Field build()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field |
|
buildPartial()
public ReportDefinition.Field buildPartial()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field |
|
clear()
public ReportDefinition.Field.Builder clear()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
|
clearDimension()
public ReportDefinition.Field.Builder clearDimension()The dimension this field represents.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1;
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
This builder for chaining. |
clearField()
public ReportDefinition.Field.Builder clearField()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
|
clearMetric()
public ReportDefinition.Field.Builder clearMetric()The metric this field represents.
.google.ads.admanager.v1.ReportDefinition.Metric metric = 2;
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ReportDefinition.Field getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDimension()
public ReportDefinition.Dimension getDimension()The dimension this field represents.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1;
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Dimension |
The dimension. |
getDimensionValue()
public int getDimensionValue()The dimension this field represents.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for dimension. |
getFieldCase()
public ReportDefinition.Field.FieldCase getFieldCase()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.FieldCase |
|
getMetric()
public ReportDefinition.Metric getMetric()The metric this field represents.
.google.ads.admanager.v1.ReportDefinition.Metric metric = 2;
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Metric |
The metric. |
getMetricValue()
public int getMetricValue()The metric this field represents.
.google.ads.admanager.v1.ReportDefinition.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.ReportDefinition.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.ReportDefinition.Metric metric = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the metric field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ReportDefinition.Field other)
public ReportDefinition.Field.Builder mergeFrom(ReportDefinition.Field other)| Parameter | |
|---|---|
| Name | Description |
other |
ReportDefinition.Field |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReportDefinition.Field.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ReportDefinition.Field.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
|
setDimension(ReportDefinition.Dimension value)
public ReportDefinition.Field.Builder setDimension(ReportDefinition.Dimension value)The dimension this field represents.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ReportDefinition.DimensionThe dimension to set. |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
This builder for chaining. |
setDimensionValue(int value)
public ReportDefinition.Field.Builder setDimensionValue(int value)The dimension this field represents.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for dimension to set. |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
This builder for chaining. |
setMetric(ReportDefinition.Metric value)
public ReportDefinition.Field.Builder setMetric(ReportDefinition.Metric value)The metric this field represents.
.google.ads.admanager.v1.ReportDefinition.Metric metric = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ReportDefinition.MetricThe metric to set. |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
This builder for chaining. |
setMetricValue(int value)
public ReportDefinition.Field.Builder setMetricValue(int value)The metric this field represents.
.google.ads.admanager.v1.ReportDefinition.Metric metric = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for metric to set. |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Field.Builder |
This builder for chaining. |