public static final class ReportDefinition.Slice extends GeneratedMessage 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
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ReportDefinition.SliceImplements
ReportDefinition.SliceOrBuilderStatic 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 ReportDefinition.Slice getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ReportDefinition.Slice.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
newBuilder(ReportDefinition.Slice prototype)
public static ReportDefinition.Slice.Builder newBuilder(ReportDefinition.Slice prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ReportDefinition.Slice |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
parseDelimitedFrom(InputStream input)
public static ReportDefinition.Slice parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ReportDefinition.Slice parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ReportDefinition.Slice parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ReportDefinition.Slice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ReportDefinition.Slice parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReportDefinition.Slice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ReportDefinition.Slice parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ReportDefinition.Slice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ReportDefinition.Slice parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ReportDefinition.Slice parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ReportDefinition.Slice parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ReportDefinition.Slice parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ReportDefinition.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 |
|
getDefaultInstanceForType()
public ReportDefinition.Slice getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice |
|
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. |
getParserForType()
public Parser<ReportDefinition.Slice> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Slice> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ReportDefinition.Slice.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ReportDefinition.Slice.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
toBuilder()
public ReportDefinition.Slice.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ReportDefinition.Slice.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|