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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
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>
|
addMetricValues(MetricValue value)
public MetricValueSet.Builder addMetricValues(MetricValue value)
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
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;
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;
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;
addMetricValuesBuilder()
public MetricValue.Builder addMetricValuesBuilder()
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MetricValueSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public MetricValueSet build()
buildPartial()
public MetricValueSet buildPartial()
clear()
public MetricValueSet.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public MetricValueSet.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMetricName()
public MetricValueSet.Builder clearMetricName()
The metric name defined in the service configuration.
string metric_name = 1;
clearMetricValues()
public MetricValueSet.Builder clearMetricValues()
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public MetricValueSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public MetricValueSet.Builder clone()
Overrides
getDefaultInstanceForType()
public MetricValueSet getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
getMetricValuesBuilderList()
public List<MetricValue.Builder> getMetricValuesBuilderList()
The values in this metric.
repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MetricValueSet other)
public MetricValueSet.Builder mergeFrom(MetricValueSet other)
public MetricValueSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MetricValueSet.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MetricValueSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public MetricValueSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MetricValueSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MetricValueSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides