public final class Comparison extends GeneratedMessageV3 implements ComparisonOrBuilder
Defines an individual comparison. Most requests will include multiple
comparisons so that the report compares between the comparisons.
Protobuf type google.analytics.data.v1beta.Comparison
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
COMPARISON_FIELD_NUMBER
public static final int COMPARISON_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DIMENSION_FILTER_FIELD_NUMBER
public static final int DIMENSION_FILTER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Comparison getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Comparison.Builder newBuilder()
newBuilder(Comparison prototype)
public static Comparison.Builder newBuilder(Comparison prototype)
public static Comparison parseDelimitedFrom(InputStream input)
public static Comparison parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Comparison parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Comparison parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Comparison parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Comparison parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Comparison parseFrom(CodedInputStream input)
public static Comparison parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Comparison parseFrom(InputStream input)
public static Comparison parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Comparison parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Comparison parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Comparison> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getComparison()
public String getComparison()
A saved comparison identified by the comparison's resource name.
For example, 'comparisons/1234'.
string comparison = 3;
Returns |
Type |
Description |
String |
The comparison.
|
getComparisonBytes()
public ByteString getComparisonBytes()
A saved comparison identified by the comparison's resource name.
For example, 'comparisons/1234'.
string comparison = 3;
Returns |
Type |
Description |
ByteString |
The bytes for comparison.
|
getDefaultInstanceForType()
public Comparison getDefaultInstanceForType()
getDimensionFilter()
public FilterExpression getDimensionFilter()
A basic comparison.
.google.analytics.data.v1beta.FilterExpression dimension_filter = 2;
getDimensionFilterOrBuilder()
public FilterExpressionOrBuilder getDimensionFilterOrBuilder()
A basic comparison.
.google.analytics.data.v1beta.FilterExpression dimension_filter = 2;
getName()
Each comparison produces separate rows in the response. In the response,
this comparison is identified by this name. If name is unspecified, we will
use the saved comparisons display name.
optional string name = 1;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Each comparison produces separate rows in the response. In the response,
this comparison is identified by this name. If name is unspecified, we will
use the saved comparisons display name.
optional string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getOneComparisonCase()
public Comparison.OneComparisonCase getOneComparisonCase()
getParserForType()
public Parser<Comparison> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasComparison()
public boolean hasComparison()
A saved comparison identified by the comparison's resource name.
For example, 'comparisons/1234'.
string comparison = 3;
Returns |
Type |
Description |
boolean |
Whether the comparison field is set.
|
hasDimensionFilter()
public boolean hasDimensionFilter()
A basic comparison.
.google.analytics.data.v1beta.FilterExpression dimension_filter = 2;
Returns |
Type |
Description |
boolean |
Whether the dimensionFilter field is set.
|
hasName()
Each comparison produces separate rows in the response. In the response,
this comparison is identified by this name. If name is unspecified, we will
use the saved comparisons display name.
optional string name = 1;
Returns |
Type |
Description |
boolean |
Whether the name field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Comparison.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Comparison.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Comparison.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides