Class OrderBy.Builder (0.22.0)

public static final class OrderBy.Builder extends GeneratedMessageV3.Builder<OrderBy.Builder> 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

Implements

OrderByOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrderBy build()
Returns
TypeDescription
OrderBy

buildPartial()

public OrderBy buildPartial()
Returns
TypeDescription
OrderBy

clear()

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

clearDesc()

public OrderBy.Builder clearDesc()

If true, sorts by descending order.

bool desc = 4;

Returns
TypeDescription
OrderBy.Builder

This builder for chaining.

clearDimension()

public OrderBy.Builder clearDimension()

Sorts results by a dimension's values.

.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;

Returns
TypeDescription
OrderBy.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetric()

public OrderBy.Builder clearMetric()

Sorts results by a metric's values.

.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;

Returns
TypeDescription
OrderBy.Builder

clearOneOrderBy()

public OrderBy.Builder clearOneOrderBy()
Returns
TypeDescription
OrderBy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPivot()

public OrderBy.Builder clearPivot()

Sorts results by a metric's values within a pivot column group.

.google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3;

Returns
TypeDescription
OrderBy.Builder

clone()

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

getDefaultInstanceForType()

public OrderBy getDefaultInstanceForType()
Returns
TypeDescription
OrderBy

getDesc()

public boolean getDesc()

If true, sorts by descending order.

bool desc = 4;

Returns
TypeDescription
boolean

The desc.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDimension()

public OrderBy.DimensionOrderBy getDimension()

Sorts results by a dimension's values.

.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;

Returns
TypeDescription
OrderBy.DimensionOrderBy

The dimension.

getDimensionBuilder()

public OrderBy.DimensionOrderBy.Builder getDimensionBuilder()

Sorts results by a dimension's values.

.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;

Returns
TypeDescription
OrderBy.DimensionOrderBy.Builder

getDimensionOrBuilder()

public OrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder()

Sorts results by a dimension's values.

.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;

Returns
TypeDescription
OrderBy.DimensionOrderByOrBuilder

getMetric()

public OrderBy.MetricOrderBy getMetric()

Sorts results by a metric's values.

.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;

Returns
TypeDescription
OrderBy.MetricOrderBy

The metric.

getMetricBuilder()

public OrderBy.MetricOrderBy.Builder getMetricBuilder()

Sorts results by a metric's values.

.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;

Returns
TypeDescription
OrderBy.MetricOrderBy.Builder

getMetricOrBuilder()

public OrderBy.MetricOrderByOrBuilder getMetricOrBuilder()

Sorts results by a metric's values.

.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;

Returns
TypeDescription
OrderBy.MetricOrderByOrBuilder

getOneOrderByCase()

public OrderBy.OneOrderByCase getOneOrderByCase()
Returns
TypeDescription
OrderBy.OneOrderByCase

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
TypeDescription
OrderBy.PivotOrderBy

The pivot.

getPivotBuilder()

public OrderBy.PivotOrderBy.Builder getPivotBuilder()

Sorts results by a metric's values within a pivot column group.

.google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3;

Returns
TypeDescription
OrderBy.PivotOrderBy.Builder

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
TypeDescription
OrderBy.PivotOrderByOrBuilder

hasDimension()

public boolean hasDimension()

Sorts results by a dimension's values.

.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the pivot field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDimension(OrderBy.DimensionOrderBy value)

public OrderBy.Builder mergeDimension(OrderBy.DimensionOrderBy value)

Sorts results by a dimension's values.

.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;

Parameter
NameDescription
valueOrderBy.DimensionOrderBy
Returns
TypeDescription
OrderBy.Builder

mergeFrom(OrderBy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetric(OrderBy.MetricOrderBy value)

public OrderBy.Builder mergeMetric(OrderBy.MetricOrderBy value)

Sorts results by a metric's values.

.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;

Parameter
NameDescription
valueOrderBy.MetricOrderBy
Returns
TypeDescription
OrderBy.Builder

mergePivot(OrderBy.PivotOrderBy value)

public OrderBy.Builder mergePivot(OrderBy.PivotOrderBy value)

Sorts results by a metric's values within a pivot column group.

.google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3;

Parameter
NameDescription
valueOrderBy.PivotOrderBy
Returns
TypeDescription
OrderBy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDesc(boolean value)

public OrderBy.Builder setDesc(boolean value)

If true, sorts by descending order.

bool desc = 4;

Parameter
NameDescription
valueboolean

The desc to set.

Returns
TypeDescription
OrderBy.Builder

This builder for chaining.

setDimension(OrderBy.DimensionOrderBy value)

public OrderBy.Builder setDimension(OrderBy.DimensionOrderBy value)

Sorts results by a dimension's values.

.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;

Parameter
NameDescription
valueOrderBy.DimensionOrderBy
Returns
TypeDescription
OrderBy.Builder

setDimension(OrderBy.DimensionOrderBy.Builder builderForValue)

public OrderBy.Builder setDimension(OrderBy.DimensionOrderBy.Builder builderForValue)

Sorts results by a dimension's values.

.google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2;

Parameter
NameDescription
builderForValueOrderBy.DimensionOrderBy.Builder
Returns
TypeDescription
OrderBy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetric(OrderBy.MetricOrderBy value)

public OrderBy.Builder setMetric(OrderBy.MetricOrderBy value)

Sorts results by a metric's values.

.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;

Parameter
NameDescription
valueOrderBy.MetricOrderBy
Returns
TypeDescription
OrderBy.Builder

setMetric(OrderBy.MetricOrderBy.Builder builderForValue)

public OrderBy.Builder setMetric(OrderBy.MetricOrderBy.Builder builderForValue)

Sorts results by a metric's values.

.google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1;

Parameter
NameDescription
builderForValueOrderBy.MetricOrderBy.Builder
Returns
TypeDescription
OrderBy.Builder

setPivot(OrderBy.PivotOrderBy value)

public OrderBy.Builder setPivot(OrderBy.PivotOrderBy value)

Sorts results by a metric's values within a pivot column group.

.google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3;

Parameter
NameDescription
valueOrderBy.PivotOrderBy
Returns
TypeDescription
OrderBy.Builder

setPivot(OrderBy.PivotOrderBy.Builder builderForValue)

public OrderBy.Builder setPivot(OrderBy.PivotOrderBy.Builder builderForValue)

Sorts results by a metric's values within a pivot column group.

.google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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