Class Report.Slice (0.11.0)

public static final class Report.Slice extends GeneratedMessageV3 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 Fields

DIMENSION_FIELD_NUMBER

public static final int DIMENSION_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Report.Slice getDefaultInstance()
Returns
Type Description
Report.Slice

getDescriptor()

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

newBuilder()

public static Report.Slice.Builder newBuilder()
Returns
Type Description
Report.Slice.Builder

newBuilder(Report.Slice prototype)

public static Report.Slice.Builder newBuilder(Report.Slice prototype)
Parameter
Name Description
prototype Report.Slice
Returns
Type Description
Report.Slice.Builder

parseDelimitedFrom(InputStream input)

public static Report.Slice parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Report.Slice
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Report.Slice parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.Slice
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Report.Slice parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Report.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Report.Slice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Report.Slice parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Report.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Report.Slice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Report.Slice parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Report.Slice
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Report.Slice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.Slice
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Report.Slice parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Report.Slice
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Report.Slice parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.Slice
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Report.Slice parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Report.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Report.Slice parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Report.Slice> parser()
Returns
Type Description
Parser<Slice>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<Report.Slice> getParserForType()
Returns
Type Description
Parser<Slice>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Report.Slice.Builder newBuilderForType()
Returns
Type Description
Report.Slice.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Report.Slice.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Report.Slice.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Report.Slice.Builder toBuilder()
Returns
Type Description
Report.Slice.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException