Class OrderBy.PivotOrderBy.Builder (0.46.0)

public static final class OrderBy.PivotOrderBy.Builder extends GeneratedMessageV3.Builder<OrderBy.PivotOrderBy.Builder> implements OrderBy.PivotOrderByOrBuilder

Sorts by a pivot column group.

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

Static Methods

getDescriptor()

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

Methods

addAllPivotSelections(Iterable<? extends OrderBy.PivotOrderBy.PivotSelection> values)

public OrderBy.PivotOrderBy.Builder addAllPivotSelections(Iterable<? extends OrderBy.PivotOrderBy.PivotSelection> values)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection>
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

addPivotSelections(OrderBy.PivotOrderBy.PivotSelection value)

public OrderBy.PivotOrderBy.Builder addPivotSelections(OrderBy.PivotOrderBy.PivotSelection value)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameter
NameDescription
valueOrderBy.PivotOrderBy.PivotSelection
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

addPivotSelections(OrderBy.PivotOrderBy.PivotSelection.Builder builderForValue)

public OrderBy.PivotOrderBy.Builder addPivotSelections(OrderBy.PivotOrderBy.PivotSelection.Builder builderForValue)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameter
NameDescription
builderForValueOrderBy.PivotOrderBy.PivotSelection.Builder
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

addPivotSelections(int index, OrderBy.PivotOrderBy.PivotSelection value)

public OrderBy.PivotOrderBy.Builder addPivotSelections(int index, OrderBy.PivotOrderBy.PivotSelection value)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameters
NameDescription
indexint
valueOrderBy.PivotOrderBy.PivotSelection
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

addPivotSelections(int index, OrderBy.PivotOrderBy.PivotSelection.Builder builderForValue)

public OrderBy.PivotOrderBy.Builder addPivotSelections(int index, OrderBy.PivotOrderBy.PivotSelection.Builder builderForValue)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameters
NameDescription
indexint
builderForValueOrderBy.PivotOrderBy.PivotSelection.Builder
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

addPivotSelectionsBuilder()

public OrderBy.PivotOrderBy.PivotSelection.Builder addPivotSelectionsBuilder()

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Returns
TypeDescription
OrderBy.PivotOrderBy.PivotSelection.Builder

addPivotSelectionsBuilder(int index)

public OrderBy.PivotOrderBy.PivotSelection.Builder addPivotSelectionsBuilder(int index)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderBy.PivotOrderBy.PivotSelection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OrderBy.PivotOrderBy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides

build()

public OrderBy.PivotOrderBy build()
Returns
TypeDescription
OrderBy.PivotOrderBy

buildPartial()

public OrderBy.PivotOrderBy buildPartial()
Returns
TypeDescription
OrderBy.PivotOrderBy

clear()

public OrderBy.PivotOrderBy.Builder clear()
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OrderBy.PivotOrderBy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides

clearMetricName()

public OrderBy.PivotOrderBy.Builder clearMetricName()

In the response to order by, order rows by this column. Must be a metric name from the request.

string metric_name = 1;

Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OrderBy.PivotOrderBy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides

clearPivotSelections()

public OrderBy.PivotOrderBy.Builder clearPivotSelections()

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

clone()

public OrderBy.PivotOrderBy.Builder clone()
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetricName()

public String getMetricName()

In the response to order by, order rows by this column. Must be a metric name from the request.

string metric_name = 1;

Returns
TypeDescription
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

In the response to order by, order rows by this column. Must be a metric name from the request.

string metric_name = 1;

Returns
TypeDescription
ByteString

The bytes for metricName.

getPivotSelections(int index)

public OrderBy.PivotOrderBy.PivotSelection getPivotSelections(int index)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderBy.PivotOrderBy.PivotSelection

getPivotSelectionsBuilder(int index)

public OrderBy.PivotOrderBy.PivotSelection.Builder getPivotSelectionsBuilder(int index)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderBy.PivotOrderBy.PivotSelection.Builder

getPivotSelectionsBuilderList()

public List<OrderBy.PivotOrderBy.PivotSelection.Builder> getPivotSelectionsBuilderList()

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Returns
TypeDescription
List<Builder>

getPivotSelectionsCount()

public int getPivotSelectionsCount()

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Returns
TypeDescription
int

getPivotSelectionsList()

public List<OrderBy.PivotOrderBy.PivotSelection> getPivotSelectionsList()

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Returns
TypeDescription
List<PivotSelection>

getPivotSelectionsOrBuilder(int index)

public OrderBy.PivotOrderBy.PivotSelectionOrBuilder getPivotSelectionsOrBuilder(int index)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderBy.PivotOrderBy.PivotSelectionOrBuilder

getPivotSelectionsOrBuilderList()

public List<? extends OrderBy.PivotOrderBy.PivotSelectionOrBuilder> getPivotSelectionsOrBuilderList()

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Returns
TypeDescription
List<? extends com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelectionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OrderBy.PivotOrderBy other)

public OrderBy.PivotOrderBy.Builder mergeFrom(OrderBy.PivotOrderBy other)
Parameter
NameDescription
otherOrderBy.PivotOrderBy
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OrderBy.PivotOrderBy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OrderBy.PivotOrderBy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OrderBy.PivotOrderBy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides

removePivotSelections(int index)

public OrderBy.PivotOrderBy.Builder removePivotSelections(int index)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OrderBy.PivotOrderBy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides

setMetricName(String value)

public OrderBy.PivotOrderBy.Builder setMetricName(String value)

In the response to order by, order rows by this column. Must be a metric name from the request.

string metric_name = 1;

Parameter
NameDescription
valueString

The metricName to set.

Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

This builder for chaining.

setMetricNameBytes(ByteString value)

public OrderBy.PivotOrderBy.Builder setMetricNameBytes(ByteString value)

In the response to order by, order rows by this column. Must be a metric name from the request.

string metric_name = 1;

Parameter
NameDescription
valueByteString

The bytes for metricName to set.

Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

This builder for chaining.

setPivotSelections(int index, OrderBy.PivotOrderBy.PivotSelection value)

public OrderBy.PivotOrderBy.Builder setPivotSelections(int index, OrderBy.PivotOrderBy.PivotSelection value)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameters
NameDescription
indexint
valueOrderBy.PivotOrderBy.PivotSelection
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

setPivotSelections(int index, OrderBy.PivotOrderBy.PivotSelection.Builder builderForValue)

public OrderBy.PivotOrderBy.Builder setPivotSelections(int index, OrderBy.PivotOrderBy.PivotSelection.Builder builderForValue)

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2;

Parameters
NameDescription
indexint
builderForValueOrderBy.PivotOrderBy.PivotSelection.Builder
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OrderBy.PivotOrderBy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OrderBy.PivotOrderBy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OrderBy.PivotOrderBy.Builder
Overrides