public static final class ReportDefinition.Slice.Builder extends GeneratedMessage.Builder<ReportDefinition.Slice.Builder> implements ReportDefinition.SliceOrBuilderUse to specify a slice of data.
For example, in a report, to focus on just data from the US, specify
COUNTRY_NAME for dimension and value: "United States".
Protobuf type google.ads.admanager.v1.ReportDefinition.Slice
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ReportDefinition.Slice.BuilderImplements
ReportDefinition.SliceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ReportDefinition.Slice build()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
buildPartial()
public ReportDefinition.Slice buildPartial()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
clear()
public ReportDefinition.Slice.Builder clear()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
clearDimension()
public ReportDefinition.Slice.Builder clearDimension()Required. The dimension to slice on.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
This builder for chaining. |
clearValue()
public ReportDefinition.Slice.Builder clearValue()Required. The value of the dimension.
.google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
getDefaultInstanceForType()
public ReportDefinition.Slice getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDimension()
public ReportDefinition.Dimension getDimension()Required. The dimension to slice on.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Dimension |
The dimension. |
getDimensionValue()
public int getDimensionValue()Required. The dimension to slice on.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for dimension. |
getValue()
public ReportValue getValue()Required. The value of the dimension.
.google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReportValue |
The value. |
getValueBuilder()
public ReportValue.Builder getValueBuilder()Required. The value of the dimension.
.google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReportValue.Builder |
|
getValueOrBuilder()
public ReportValueOrBuilder getValueOrBuilder()Required. The value of the dimension.
.google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReportValueOrBuilder |
|
hasValue()
public boolean hasValue()Required. The value of the dimension.
.google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ReportDefinition.Slice other)
public ReportDefinition.Slice.Builder mergeFrom(ReportDefinition.Slice other)| Parameter | |
|---|---|
| Name | Description |
other |
ReportDefinition.Slice |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReportDefinition.Slice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ReportDefinition.Slice.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
mergeValue(ReportValue value)
public ReportDefinition.Slice.Builder mergeValue(ReportValue value)Required. The value of the dimension.
.google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ReportValue |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
setDimension(ReportDefinition.Dimension value)
public ReportDefinition.Slice.Builder setDimension(ReportDefinition.Dimension value)Required. The dimension to slice on.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ReportDefinition.DimensionThe dimension to set. |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
This builder for chaining. |
setDimensionValue(int value)
public ReportDefinition.Slice.Builder setDimensionValue(int value)Required. The dimension to slice on.
.google.ads.admanager.v1.ReportDefinition.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for dimension to set. |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
This builder for chaining. |
setValue(ReportValue value)
public ReportDefinition.Slice.Builder setValue(ReportValue value)Required. The value of the dimension.
.google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ReportValue |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
setValue(ReportValue.Builder builderForValue)
public ReportDefinition.Slice.Builder setValue(ReportValue.Builder builderForValue)Required. The value of the dimension.
.google.ads.admanager.v1.ReportValue value = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ReportValue.Builder |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|