Send feedback
Class Report.Slice (0.18.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.18.0keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Report . Slice . Builder newBuilder ()
newBuilder(Report.Slice prototype)
public static Report . Slice . Builder newBuilder ( Report . Slice prototype )
public static Report . Slice parseDelimitedFrom ( InputStream input )
public static Report . Slice parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Report . Slice parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Report . Slice parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Report . Slice parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Report . Slice parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Report . Slice parseFrom ( CodedInputStream input )
public static Report . Slice parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Report . Slice parseFrom ( InputStream input )
public static Report . Slice parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Report . Slice parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Report . Slice parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Report . Slice > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public Report . Slice getDefaultInstanceForType ()
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.
getParserForType()
public Parser<Report . Slice > getParserForType ()
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];
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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Report . Slice . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Report . Slice . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Report . Slice . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-17 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-17 UTC."],[[["This webpage provides documentation for the `Report.Slice` class within the Google Ad Manager API, specifically in Java, with version 0.18.0 being the focus."],["`Report.Slice` is designed to specify a segment of data within a report, allowing users to focus on specific subsets, such as data from a particular country."],["The documentation covers various versions of the API, ranging from 0.1.0 to the latest 0.19.0, and contains information regarding the class's inheritance and implemented interfaces, as well as members from the inherited classes."],["It details static fields like `DIMENSION_FIELD_NUMBER` and `VALUE_FIELD_NUMBER`, alongside static methods for creating instances, parsing data, and obtaining default instances, providing a complete guide for working with `Report.Slice`."],["The `Report.Slice` class requires a `dimension` and a `value` to specify the slice, which are further detailed within the methods `getDimension`, `getDimensionValue`, `getValue`, `getValueOrBuilder`, and `hasValue`."]]],[]]