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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Report.Slice.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Report.Slice build()
buildPartial()
public Report.Slice buildPartial()
clear()
public Report.Slice.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public Report.Slice.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Report.Slice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public Report.Slice.Builder clone()
Overrides
getDefaultInstanceForType()
public Report.Slice getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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];
getValueOrBuilder()
public Report.ValueOrBuilder getValueOrBuilder()
Required. The value of the dimension.
.google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Report.Slice other)
public Report.Slice.Builder mergeFrom(Report.Slice other)
public Report.Slice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Report.Slice.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Report.Slice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Report.Slice.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Report.Slice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Report.Slice.Builder setUnknownFields(UnknownFieldSet unknownFields)
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];
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];