Class MetricValueSet.Builder (1.45.0)

public static final class MetricValueSet.Builder extends GeneratedMessageV3.Builder<MetricValueSet.Builder> implements MetricValueSetOrBuilder

Represents a set of metric values in the same metric. Each metric value in the set should have a unique combination of start time, end time, and label values.

Protobuf type google.api.servicecontrol.v1.MetricValueSet

Static Methods

getDescriptor()

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

Methods

addAllMetricValues(Iterable<? extends MetricValue> values)

public MetricValueSet.Builder addAllMetricValues(Iterable<? extends MetricValue> values)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameter
Name Description
values Iterable<? extends com.google.api.servicecontrol.v1.MetricValue>
Returns
Type Description
MetricValueSet.Builder

addMetricValues(MetricValue value)

public MetricValueSet.Builder addMetricValues(MetricValue value)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameter
Name Description
value MetricValue
Returns
Type Description
MetricValueSet.Builder

addMetricValues(MetricValue.Builder builderForValue)

public MetricValueSet.Builder addMetricValues(MetricValue.Builder builderForValue)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameter
Name Description
builderForValue MetricValue.Builder
Returns
Type Description
MetricValueSet.Builder

addMetricValues(int index, MetricValue value)

public MetricValueSet.Builder addMetricValues(int index, MetricValue value)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameters
Name Description
index int
value MetricValue
Returns
Type Description
MetricValueSet.Builder

addMetricValues(int index, MetricValue.Builder builderForValue)

public MetricValueSet.Builder addMetricValues(int index, MetricValue.Builder builderForValue)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameters
Name Description
index int
builderForValue MetricValue.Builder
Returns
Type Description
MetricValueSet.Builder

addMetricValuesBuilder()

public MetricValue.Builder addMetricValuesBuilder()

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Returns
Type Description
MetricValue.Builder

addMetricValuesBuilder(int index)

public MetricValue.Builder addMetricValuesBuilder(int index)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricValue.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetricValueSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MetricValueSet.Builder
Overrides

build()

public MetricValueSet build()
Returns
Type Description
MetricValueSet

buildPartial()

public MetricValueSet buildPartial()
Returns
Type Description
MetricValueSet

clear()

public MetricValueSet.Builder clear()
Returns
Type Description
MetricValueSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MetricValueSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MetricValueSet.Builder
Overrides

clearMetricName()

public MetricValueSet.Builder clearMetricName()

The metric name defined in the service configuration.

string metric_name = 1;

Returns
Type Description
MetricValueSet.Builder

This builder for chaining.

clearMetricValues()

public MetricValueSet.Builder clearMetricValues()

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Returns
Type Description
MetricValueSet.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MetricValueSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MetricValueSet.Builder
Overrides

clone()

public MetricValueSet.Builder clone()
Returns
Type Description
MetricValueSet.Builder
Overrides

getDefaultInstanceForType()

public MetricValueSet getDefaultInstanceForType()
Returns
Type Description
MetricValueSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMetricName()

public String getMetricName()

The metric name defined in the service configuration.

string metric_name = 1;

Returns
Type Description
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

The metric name defined in the service configuration.

string metric_name = 1;

Returns
Type Description
ByteString

The bytes for metricName.

getMetricValues(int index)

public MetricValue getMetricValues(int index)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricValue

getMetricValuesBuilder(int index)

public MetricValue.Builder getMetricValuesBuilder(int index)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricValue.Builder

getMetricValuesBuilderList()

public List<MetricValue.Builder> getMetricValuesBuilderList()

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Returns
Type Description
List<Builder>

getMetricValuesCount()

public int getMetricValuesCount()

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Returns
Type Description
int

getMetricValuesList()

public List<MetricValue> getMetricValuesList()

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Returns
Type Description
List<MetricValue>

getMetricValuesOrBuilder(int index)

public MetricValueOrBuilder getMetricValuesOrBuilder(int index)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricValueOrBuilder

getMetricValuesOrBuilderList()

public List<? extends MetricValueOrBuilder> getMetricValuesOrBuilderList()

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Returns
Type Description
List<? extends com.google.api.servicecontrol.v1.MetricValueOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MetricValueSet other)

public MetricValueSet.Builder mergeFrom(MetricValueSet other)
Parameter
Name Description
other MetricValueSet
Returns
Type Description
MetricValueSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetricValueSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetricValueSet.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MetricValueSet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MetricValueSet.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetricValueSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MetricValueSet.Builder
Overrides

removeMetricValues(int index)

public MetricValueSet.Builder removeMetricValues(int index)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricValueSet.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MetricValueSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MetricValueSet.Builder
Overrides

setMetricName(String value)

public MetricValueSet.Builder setMetricName(String value)

The metric name defined in the service configuration.

string metric_name = 1;

Parameter
Name Description
value String

The metricName to set.

Returns
Type Description
MetricValueSet.Builder

This builder for chaining.

setMetricNameBytes(ByteString value)

public MetricValueSet.Builder setMetricNameBytes(ByteString value)

The metric name defined in the service configuration.

string metric_name = 1;

Parameter
Name Description
value ByteString

The bytes for metricName to set.

Returns
Type Description
MetricValueSet.Builder

This builder for chaining.

setMetricValues(int index, MetricValue value)

public MetricValueSet.Builder setMetricValues(int index, MetricValue value)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameters
Name Description
index int
value MetricValue
Returns
Type Description
MetricValueSet.Builder

setMetricValues(int index, MetricValue.Builder builderForValue)

public MetricValueSet.Builder setMetricValues(int index, MetricValue.Builder builderForValue)

The values in this metric.

repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;

Parameters
Name Description
index int
builderForValue MetricValue.Builder
Returns
Type Description
MetricValueSet.Builder

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

public MetricValueSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MetricValueSet.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MetricValueSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MetricValueSet.Builder
Overrides