public final class OrderBy extends GeneratedMessageV3 implements OrderByOrBuilder
Order bys define how rows will be sorted in the response. For example,
ordering rows by descending event count is one ordering, and ordering rows by
the event name string is a different ordering.
Protobuf type google.analytics.data.v1beta.OrderBy
Static Fields
DESC_FIELD_NUMBER
public static final int DESC_FIELD_NUMBER
Field Value
DIMENSION_FIELD_NUMBER
public static final int DIMENSION_FIELD_NUMBER
Field Value
METRIC_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER
Field Value
PIVOT_FIELD_NUMBER
public static final int PIVOT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static OrderBy getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static OrderBy.Builder newBuilder()
Returns
newBuilder(OrderBy prototype)
public static OrderBy.Builder newBuilder(OrderBy prototype)
Parameter
Returns
public static OrderBy parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static OrderBy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static OrderBy parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OrderBy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static OrderBy parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OrderBy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OrderBy parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static OrderBy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OrderBy parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static OrderBy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static OrderBy parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OrderBy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<OrderBy> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public OrderBy getDefaultInstanceForType()
Returns
getDesc()
If true, sorts by descending order.
bool desc = 4;
Returns
getDimension()
public OrderBy.DimensionOrderBy getDimension()
Sorts results by a dimension's values.
.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;
Returns
getDimensionOrBuilder()
public OrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder()
Sorts results by a dimension's values.
.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;
Returns
getMetric()
public OrderBy.MetricOrderBy getMetric()
Sorts results by a metric's values.
.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;
Returns
getMetricOrBuilder()
public OrderBy.MetricOrderByOrBuilder getMetricOrBuilder()
Sorts results by a metric's values.
.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;
Returns
getOneOrderByCase()
public OrderBy.OneOrderByCase getOneOrderByCase()
Returns
getParserForType()
public Parser<OrderBy> getParserForType()
Returns
Overrides
getPivot()
public OrderBy.PivotOrderBy getPivot()
Sorts results by a metric's values within a pivot column group.
.google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3;
Returns
getPivotOrBuilder()
public OrderBy.PivotOrderByOrBuilder getPivotOrBuilder()
Sorts results by a metric's values within a pivot column group.
.google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasDimension()
public boolean hasDimension()
Sorts results by a dimension's values.
.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;
Returns
Type | Description |
boolean | Whether the dimension field is set.
|
hasMetric()
public boolean hasMetric()
Sorts results by a metric's values.
.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;
Returns
Type | Description |
boolean | Whether the metric field is set.
|
hasPivot()
public boolean hasPivot()
Sorts results by a metric's values within a pivot column group.
.google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3;
Returns
Type | Description |
boolean | Whether the pivot field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public OrderBy.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OrderBy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public OrderBy.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions