Class OrderBy.PivotOrderBy.PivotSelection (0.64.0)

public static final class OrderBy.PivotOrderBy.PivotSelection extends GeneratedMessageV3 implements OrderBy.PivotOrderBy.PivotSelectionOrBuilder

A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric's value.

For example if pivots = {{"browser", "Chrome"}} and metric_name = "Sessions", then the rows will be sorted based on Sessions in Chrome.

 ---------|----------|----------------|----------|----------------
          |  Chrome  |    Chrome      |  Safari  |     Safari
 ---------|----------|----------------|----------|----------------
  Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions
 ---------|----------|----------------|----------|----------------
     US   |    2     |       2        |     3    |        1
 ---------|----------|----------------|----------|----------------
   Canada |    3     |       1        |     4    |        1
 ---------|----------|----------------|----------|----------------

Protobuf type google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OrderBy.PivotOrderBy.PivotSelection

Static Fields

DIMENSION_NAME_FIELD_NUMBER

public static final int DIMENSION_NAME_FIELD_NUMBER
Field Value
Type Description
int

DIMENSION_VALUE_FIELD_NUMBER

public static final int DIMENSION_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OrderBy.PivotOrderBy.PivotSelection getDefaultInstance()
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static OrderBy.PivotOrderBy.PivotSelection.Builder newBuilder()
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection.Builder

newBuilder(OrderBy.PivotOrderBy.PivotSelection prototype)

public static OrderBy.PivotOrderBy.PivotSelection.Builder newBuilder(OrderBy.PivotOrderBy.PivotSelection prototype)
Parameter
Name Description
prototype OrderBy.PivotOrderBy.PivotSelection
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection.Builder

parseDelimitedFrom(InputStream input)

public static OrderBy.PivotOrderBy.PivotSelection parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrderBy.PivotOrderBy.PivotSelection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OrderBy.PivotOrderBy.PivotSelection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OrderBy.PivotOrderBy.PivotSelection> parser()
Returns
Type Description
Parser<PivotSelection>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public OrderBy.PivotOrderBy.PivotSelection getDefaultInstanceForType()
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection

getDimensionName()

public String getDimensionName()

Must be a dimension name from the request.

string dimension_name = 1;

Returns
Type Description
String

The dimensionName.

getDimensionNameBytes()

public ByteString getDimensionNameBytes()

Must be a dimension name from the request.

string dimension_name = 1;

Returns
Type Description
ByteString

The bytes for dimensionName.

getDimensionValue()

public String getDimensionValue()

Order by only when the named dimension is this value.

string dimension_value = 2;

Returns
Type Description
String

The dimensionValue.

getDimensionValueBytes()

public ByteString getDimensionValueBytes()

Order by only when the named dimension is this value.

string dimension_value = 2;

Returns
Type Description
ByteString

The bytes for dimensionValue.

getParserForType()

public Parser<OrderBy.PivotOrderBy.PivotSelection> getParserForType()
Returns
Type Description
Parser<PivotSelection>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OrderBy.PivotOrderBy.PivotSelection.Builder newBuilderForType()
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OrderBy.PivotOrderBy.PivotSelection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OrderBy.PivotOrderBy.PivotSelection.Builder toBuilder()
Returns
Type Description
OrderBy.PivotOrderBy.PivotSelection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException