Class MetricValueSet.Builder (1.27.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.servicecontrol.v1.MetricValue>
Returns
TypeDescription
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
NameDescription
valueMetricValue
Returns
TypeDescription
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
NameDescription
builderForValueMetricValue.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMetricValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMetricValue.Builder
Returns
TypeDescription
MetricValueSet.Builder

addMetricValuesBuilder()

public MetricValue.Builder addMetricValuesBuilder()

The values in this metric.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MetricValue.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MetricValueSet build()
Returns
TypeDescription
MetricValueSet

buildPartial()

public MetricValueSet buildPartial()
Returns
TypeDescription
MetricValueSet

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetricName()

public MetricValueSet.Builder clearMetricName()

The metric name defined in the service configuration.

string metric_name = 1;

Returns
TypeDescription
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
TypeDescription
MetricValueSet.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MetricValueSet getDefaultInstanceForType()
Returns
TypeDescription
MetricValueSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetricName()

public String getMetricName()

The metric name defined in the service configuration.

string metric_name = 1;

Returns
TypeDescription
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

The metric name defined in the service configuration.

string metric_name = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MetricValue.Builder

getMetricValuesBuilderList()

public List<MetricValue.Builder> getMetricValuesBuilderList()

The values in this metric.

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

Returns
TypeDescription
List<Builder>

getMetricValuesCount()

public int getMetricValuesCount()

The values in this metric.

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

Returns
TypeDescription
int

getMetricValuesList()

public List<MetricValue> getMetricValuesList()

The values in this metric.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MetricValueOrBuilder

getMetricValuesOrBuilderList()

public List<? extends MetricValueOrBuilder> getMetricValuesOrBuilderList()

The values in this metric.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MetricValueSet other)

public MetricValueSet.Builder mergeFrom(MetricValueSet other)
Parameter
NameDescription
otherMetricValueSet
Returns
TypeDescription
MetricValueSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetricValueSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MetricValueSet.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MetricValueSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The metricName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for metricName to set.

Returns
TypeDescription
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
NameDescription
indexint
valueMetricValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMetricValue.Builder
Returns
TypeDescription
MetricValueSet.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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