Class OrderBy.MetricOrderBy.Builder (0.24.0)

public static final class OrderBy.MetricOrderBy.Builder extends GeneratedMessageV3.Builder<OrderBy.MetricOrderBy.Builder> implements OrderBy.MetricOrderByOrBuilder

Sorts by metric values.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetricName()

public OrderBy.MetricOrderBy.Builder clearMetricName()

A metric name in the request to order by.

string metric_name = 1;

Returns
TypeDescription
OrderBy.MetricOrderBy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OrderBy.MetricOrderBy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetricName(String value)

public OrderBy.MetricOrderBy.Builder setMetricName(String value)

A metric name in the request to order by.

string metric_name = 1;

Parameter
NameDescription
valueString

The metricName to set.

Returns
TypeDescription
OrderBy.MetricOrderBy.Builder

This builder for chaining.

setMetricNameBytes(ByteString value)

public OrderBy.MetricOrderBy.Builder setMetricNameBytes(ByteString value)

A metric name in the request to order by.

string metric_name = 1;

Parameter
NameDescription
valueByteString

The bytes for metricName to set.

Returns
TypeDescription
OrderBy.MetricOrderBy.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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