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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
addMetricValues(MetricValue value)
public MetricValueSet.Builder addMetricValues(MetricValue value)
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
Parameter
Returns
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
Returns
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
Returns
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
Returns
addMetricValuesBuilder()
public MetricValue.Builder addMetricValuesBuilder()
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
Returns
addMetricValuesBuilder(int index)
public MetricValue.Builder addMetricValuesBuilder(int index)
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MetricValueSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MetricValueSet build()
Returns
buildPartial()
public MetricValueSet buildPartial()
Returns
clear()
public MetricValueSet.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public MetricValueSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMetricName()
public MetricValueSet.Builder clearMetricName()
The metric name defined in the service configuration.
string metric_name = 1;
Returns
clearMetricValues()
public MetricValueSet.Builder clearMetricValues()
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MetricValueSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public MetricValueSet.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public MetricValueSet getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
getMetricValuesBuilder(int index)
public MetricValue.Builder getMetricValuesBuilder(int index)
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
Parameter
Returns
getMetricValuesBuilderList()
public List<MetricValue.Builder> getMetricValuesBuilderList()
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
Returns
getMetricValuesCount()
public int getMetricValuesCount()
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
Returns
getMetricValuesList()
public List<MetricValue> getMetricValuesList()
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
Returns
getMetricValuesOrBuilder(int index)
public MetricValueOrBuilder getMetricValuesOrBuilder(int index)
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
Parameter
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MetricValueSet other)
public MetricValueSet.Builder mergeFrom(MetricValueSet other)
Parameter
Returns
public MetricValueSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MetricValueSet.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MetricValueSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public MetricValueSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MetricValueSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MetricValueSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides