Class OrderBy.MetricOrderBy (0.44.0)

public static final class OrderBy.MetricOrderBy extends GeneratedMessageV3 implements OrderBy.MetricOrderByOrBuilder

Sorts by metric values.

Protobuf type google.analytics.data.v1beta.OrderBy.MetricOrderBy

Static Fields

METRIC_NAME_FIELD_NUMBER

public static final int METRIC_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OrderBy.MetricOrderBy getDefaultInstance()
Returns
TypeDescription
OrderBy.MetricOrderBy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static OrderBy.MetricOrderBy.Builder newBuilder()
Returns
TypeDescription
OrderBy.MetricOrderBy.Builder

newBuilder(OrderBy.MetricOrderBy prototype)

public static OrderBy.MetricOrderBy.Builder newBuilder(OrderBy.MetricOrderBy prototype)
Parameter
NameDescription
prototypeOrderBy.MetricOrderBy
Returns
TypeDescription
OrderBy.MetricOrderBy.Builder

parseDelimitedFrom(InputStream input)

public static OrderBy.MetricOrderBy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrderBy.MetricOrderBy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OrderBy.MetricOrderBy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OrderBy.MetricOrderBy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OrderBy.MetricOrderBy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OrderBy.MetricOrderBy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OrderBy.MetricOrderBy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OrderBy.MetricOrderBy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OrderBy.MetricOrderBy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrderBy.MetricOrderBy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OrderBy.MetricOrderBy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OrderBy.MetricOrderBy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrderBy.MetricOrderBy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OrderBy.MetricOrderBy> parser()
Returns
TypeDescription
Parser<MetricOrderBy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public OrderBy.MetricOrderBy getDefaultInstanceForType()
Returns
TypeDescription
OrderBy.MetricOrderBy

getMetricName()

public String getMetricName()

A metric name in the request to order by.

string metric_name = 1;

Returns
TypeDescription
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

A metric name in the request to order by.

string metric_name = 1;

Returns
TypeDescription
ByteString

The bytes for metricName.

getParserForType()

public Parser<OrderBy.MetricOrderBy> getParserForType()
Returns
TypeDescription
Parser<MetricOrderBy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OrderBy.MetricOrderBy.Builder newBuilderForType()
Returns
TypeDescription
OrderBy.MetricOrderBy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OrderBy.MetricOrderBy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OrderBy.MetricOrderBy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OrderBy.MetricOrderBy.Builder toBuilder()
Returns
TypeDescription
OrderBy.MetricOrderBy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException