Class Report.Slice.Builder (0.13.0)

public static final class Report.Slice.Builder extends GeneratedMessageV3.Builder<Report.Slice.Builder> implements Report.SliceOrBuilder

Use 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.Report.Slice

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearDimension()

public Report.Slice.Builder clearDimension()

Required. The dimension to slice on.

.google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Report.Slice.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public Report.Slice.Builder clearValue()

Required. The value of the dimension.

.google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Report.Slice.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDimension()

public Report.Dimension getDimension()

Required. The dimension to slice on.

.google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Report.Dimension

The dimension.

getDimensionValue()

public int getDimensionValue()

Required. The dimension to slice on.

.google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for dimension.

getValue()

public Report.Value getValue()

Required. The value of the dimension.

.google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Report.Value

The value.

getValueBuilder()

public Report.Value.Builder getValueBuilder()

Required. The value of the dimension.

.google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Report.Value.Builder

getValueOrBuilder()

public Report.ValueOrBuilder getValueOrBuilder()

Required. The value of the dimension.

.google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Report.ValueOrBuilder

hasValue()

public boolean hasValue()

Required. The value of the dimension.

.google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the value 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.Slice other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeValue(Report.Value value)

public Report.Slice.Builder mergeValue(Report.Value value)

Required. The value of the dimension.

.google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Report.Value
Returns
Type Description
Report.Slice.Builder

setDimension(Report.Dimension value)

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

Required. The dimension to slice on.

.google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Report.Dimension

The dimension to set.

Returns
Type Description
Report.Slice.Builder

This builder for chaining.

setDimensionValue(int value)

public Report.Slice.Builder setDimensionValue(int value)

Required. The dimension to slice on.

.google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
Report.Slice.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(Report.Value value)

public Report.Slice.Builder setValue(Report.Value value)

Required. The value of the dimension.

.google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Report.Value
Returns
Type Description
Report.Slice.Builder

setValue(Report.Value.Builder builderForValue)

public Report.Slice.Builder setValue(Report.Value.Builder builderForValue)

Required. The value of the dimension.

.google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Report.Value.Builder
Returns
Type Description
Report.Slice.Builder