- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.1.10
public static final class MetricValue.Builder extends GeneratedMessageV3.Builder<MetricValue.Builder> implements MetricValueOrBuilder
Represents a single metric value.
Protobuf type google.api.servicecontrol.v1.MetricValue
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MetricValue.BuilderImplements
MetricValueOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MetricValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MetricValue.Builder |
build()
public MetricValue build()
Type | Description |
MetricValue |
buildPartial()
public MetricValue buildPartial()
Type | Description |
MetricValue |
clear()
public MetricValue.Builder clear()
Type | Description |
MetricValue.Builder |
clearBoolValue()
public MetricValue.Builder clearBoolValue()
A boolean value.
bool bool_value = 4;
Type | Description |
MetricValue.Builder | This builder for chaining. |
clearDistributionValue()
public MetricValue.Builder clearDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
Type | Description |
MetricValue.Builder |
clearDoubleValue()
public MetricValue.Builder clearDoubleValue()
A double precision floating point value.
double double_value = 6;
Type | Description |
MetricValue.Builder | This builder for chaining. |
clearEndTime()
public MetricValue.Builder clearEndTime()
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
.google.protobuf.Timestamp end_time = 3;
Type | Description |
MetricValue.Builder |
clearField(Descriptors.FieldDescriptor field)
public MetricValue.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
MetricValue.Builder |
clearInt64Value()
public MetricValue.Builder clearInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;
Type | Description |
MetricValue.Builder | This builder for chaining. |
clearLabels()
public MetricValue.Builder clearLabels()
Type | Description |
MetricValue.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public MetricValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
MetricValue.Builder |
clearStartTime()
public MetricValue.Builder clearStartTime()
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
.google.protobuf.Timestamp start_time = 2;
Type | Description |
MetricValue.Builder |
clearStringValue()
public MetricValue.Builder clearStringValue()
A text string value.
string string_value = 7;
Type | Description |
MetricValue.Builder | This builder for chaining. |
clearValue()
public MetricValue.Builder clearValue()
Type | Description |
MetricValue.Builder |
clone()
public MetricValue.Builder clone()
Type | Description |
MetricValue.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
map<string, string> labels = 1;
Name | Description |
key | String |
Type | Description |
boolean |
getBoolValue()
public boolean getBoolValue()
A boolean value.
bool bool_value = 4;
Type | Description |
boolean | The boolValue. |
getDefaultInstanceForType()
public MetricValue getDefaultInstanceForType()
Type | Description |
MetricValue |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDistributionValue()
public Distribution getDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
Type | Description |
Distribution | The distributionValue. |
getDistributionValueBuilder()
public Distribution.Builder getDistributionValueBuilder()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
Type | Description |
Distribution.Builder |
getDistributionValueOrBuilder()
public DistributionOrBuilder getDistributionValueOrBuilder()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
Type | Description |
DistributionOrBuilder |
getDoubleValue()
public double getDoubleValue()
A double precision floating point value.
double double_value = 6;
Type | Description |
double | The doubleValue. |
getEndTime()
public Timestamp getEndTime()
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
.google.protobuf.Timestamp end_time = 3;
Type | Description |
Timestamp | The endTime. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
.google.protobuf.Timestamp end_time = 3;
Type | Description |
Builder |
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
.google.protobuf.Timestamp end_time = 3;
Type | Description |
TimestampOrBuilder |
getInt64Value()
public long getInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;
Type | Description |
long | The int64Value. |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
map<string, string> labels = 1;
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
map<string, string> labels = 1;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
map<string, string> labels = 1;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
map<string, string> labels = 1;
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getStartTime()
public Timestamp getStartTime()
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
.google.protobuf.Timestamp start_time = 2;
Type | Description |
Timestamp | The startTime. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
.google.protobuf.Timestamp start_time = 2;
Type | Description |
Builder |
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
.google.protobuf.Timestamp start_time = 2;
Type | Description |
TimestampOrBuilder |
getStringValue()
public String getStringValue()
A text string value.
string string_value = 7;
Type | Description |
String | The stringValue. |
getStringValueBytes()
public ByteString getStringValueBytes()
A text string value.
string string_value = 7;
Type | Description |
ByteString | The bytes for stringValue. |
getValueCase()
public MetricValue.ValueCase getValueCase()
Type | Description |
MetricValue.ValueCase |
hasBoolValue()
public boolean hasBoolValue()
A boolean value.
bool bool_value = 4;
Type | Description |
boolean | Whether the boolValue field is set. |
hasDistributionValue()
public boolean hasDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
Type | Description |
boolean | Whether the distributionValue field is set. |
hasDoubleValue()
public boolean hasDoubleValue()
A double precision floating point value.
double double_value = 6;
Type | Description |
boolean | Whether the doubleValue field is set. |
hasEndTime()
public boolean hasEndTime()
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
.google.protobuf.Timestamp end_time = 3;
Type | Description |
boolean | Whether the endTime field is set. |
hasInt64Value()
public boolean hasInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;
Type | Description |
boolean | Whether the int64Value field is set. |
hasStartTime()
public boolean hasStartTime()
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
.google.protobuf.Timestamp start_time = 2;
Type | Description |
boolean | Whether the startTime field is set. |
hasStringValue()
public boolean hasStringValue()
A text string value.
string string_value = 7;
Type | Description |
boolean | Whether the stringValue field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeDistributionValue(Distribution value)
public MetricValue.Builder mergeDistributionValue(Distribution value)
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
Name | Description |
value | Distribution |
Type | Description |
MetricValue.Builder |
mergeEndTime(Timestamp value)
public MetricValue.Builder mergeEndTime(Timestamp value)
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
.google.protobuf.Timestamp end_time = 3;
Name | Description |
value | Timestamp |
Type | Description |
MetricValue.Builder |
mergeFrom(MetricValue other)
public MetricValue.Builder mergeFrom(MetricValue other)
Name | Description |
other | MetricValue |
Type | Description |
MetricValue.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MetricValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MetricValue.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public MetricValue.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
MetricValue.Builder |
mergeStartTime(Timestamp value)
public MetricValue.Builder mergeStartTime(Timestamp value)
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
.google.protobuf.Timestamp start_time = 2;
Name | Description |
value | Timestamp |
Type | Description |
MetricValue.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MetricValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MetricValue.Builder |
putAllLabels(Map<String,String> values)
public MetricValue.Builder putAllLabels(Map<String,String> values)
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
map<string, string> labels = 1;
Name | Description |
values | Map<String,String> |
Type | Description |
MetricValue.Builder |
putLabels(String key, String value)
public MetricValue.Builder putLabels(String key, String value)
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
map<string, string> labels = 1;
Name | Description |
key | String |
value | String |
Type | Description |
MetricValue.Builder |
removeLabels(String key)
public MetricValue.Builder removeLabels(String key)
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
map<string, string> labels = 1;
Name | Description |
key | String |
Type | Description |
MetricValue.Builder |
setBoolValue(boolean value)
public MetricValue.Builder setBoolValue(boolean value)
A boolean value.
bool bool_value = 4;
Name | Description |
value | boolean The boolValue to set. |
Type | Description |
MetricValue.Builder | This builder for chaining. |
setDistributionValue(Distribution value)
public MetricValue.Builder setDistributionValue(Distribution value)
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
Name | Description |
value | Distribution |
Type | Description |
MetricValue.Builder |
setDistributionValue(Distribution.Builder builderForValue)
public MetricValue.Builder setDistributionValue(Distribution.Builder builderForValue)
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
Name | Description |
builderForValue | Distribution.Builder |
Type | Description |
MetricValue.Builder |
setDoubleValue(double value)
public MetricValue.Builder setDoubleValue(double value)
A double precision floating point value.
double double_value = 6;
Name | Description |
value | double The doubleValue to set. |
Type | Description |
MetricValue.Builder | This builder for chaining. |
setEndTime(Timestamp value)
public MetricValue.Builder setEndTime(Timestamp value)
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
.google.protobuf.Timestamp end_time = 3;
Name | Description |
value | Timestamp |
Type | Description |
MetricValue.Builder |
setEndTime(Timestamp.Builder builderForValue)
public MetricValue.Builder setEndTime(Timestamp.Builder builderForValue)
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
.google.protobuf.Timestamp end_time = 3;
Name | Description |
builderForValue | Builder |
Type | Description |
MetricValue.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public MetricValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MetricValue.Builder |
setInt64Value(long value)
public MetricValue.Builder setInt64Value(long value)
A signed 64-bit integer value.
int64 int64_value = 5;
Name | Description |
value | long The int64Value to set. |
Type | Description |
MetricValue.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MetricValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
MetricValue.Builder |
setStartTime(Timestamp value)
public MetricValue.Builder setStartTime(Timestamp value)
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
.google.protobuf.Timestamp start_time = 2;
Name | Description |
value | Timestamp |
Type | Description |
MetricValue.Builder |
setStartTime(Timestamp.Builder builderForValue)
public MetricValue.Builder setStartTime(Timestamp.Builder builderForValue)
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
.google.protobuf.Timestamp start_time = 2;
Name | Description |
builderForValue | Builder |
Type | Description |
MetricValue.Builder |
setStringValue(String value)
public MetricValue.Builder setStringValue(String value)
A text string value.
string string_value = 7;
Name | Description |
value | String The stringValue to set. |
Type | Description |
MetricValue.Builder | This builder for chaining. |
setStringValueBytes(ByteString value)
public MetricValue.Builder setStringValueBytes(ByteString value)
A text string value.
string string_value = 7;
Name | Description |
value | ByteString The bytes for stringValue to set. |
Type | Description |
MetricValue.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final MetricValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MetricValue.Builder |