Package com.google.api.servicecontrol.v1
Class MetricValue.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetricValue.Builder>
com.google.api.servicecontrol.v1.MetricValue.Builder
- All Implemented Interfaces:
MetricValueOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MetricValue
public static final class MetricValue.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetricValue.Builder>
implements MetricValueOrBuilder
Represents a single metric value.Protobuf type
google.api.servicecontrol.v1.MetricValue-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A boolean value.A distribution value.A double precision floating point value.The end of the time period over which this metric value's measurement applies.A signed 64-bit integer value.The start of the time period over which this metric value's measurement applies.A text string value.booleancontainsLabels(String key) The labels describing the metric value.booleanA boolean value.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA distribution value.A distribution value.A distribution value.doubleA double precision floating point value.com.google.protobuf.TimestampThe end of the time period over which this metric value's measurement applies.com.google.protobuf.Timestamp.BuilderThe end of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuilderThe end of the time period over which this metric value's measurement applies.longA signed 64-bit integer value.Deprecated.intThe labels describing the metric value.The labels describing the metric value.getLabelsOrDefault(String key, String defaultValue) The labels describing the metric value.getLabelsOrThrow(String key) The labels describing the metric value.Deprecated.com.google.protobuf.TimestampThe start of the time period over which this metric value's measurement applies.com.google.protobuf.Timestamp.BuilderThe start of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuilderThe start of the time period over which this metric value's measurement applies.A text string value.com.google.protobuf.ByteStringA text string value.booleanA boolean value.booleanA distribution value.booleanA double precision floating point value.booleanThe end of the time period over which this metric value's measurement applies.booleanA signed 64-bit integer value.booleanThe start of the time period over which this metric value's measurement applies.booleanA text string value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanA distribution value.mergeEndTime(com.google.protobuf.Timestamp value) The end of the time period over which this metric value's measurement applies.mergeFrom(MetricValue other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) The start of the time period over which this metric value's measurement applies.putAllLabels(Map<String, String> values) The labels describing the metric value.The labels describing the metric value.removeLabels(String key) The labels describing the metric value.setBoolValue(boolean value) A boolean value.setDistributionValue(Distribution value) A distribution value.setDistributionValue(Distribution.Builder builderForValue) A distribution value.setDoubleValue(double value) A double precision floating point value.setEndTime(com.google.protobuf.Timestamp value) The end of the time period over which this metric value's measurement applies.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) The end of the time period over which this metric value's measurement applies.setInt64Value(long value) A signed 64-bit integer value.setStartTime(com.google.protobuf.Timestamp value) The start of the time period over which this metric value's measurement applies.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The start of the time period over which this metric value's measurement applies.setStringValue(String value) A text string value.setStringValueBytes(com.google.protobuf.ByteString value) A text string value.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MetricValue.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MetricValue.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MetricValue.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MetricValue.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MetricValue.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricValue.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetricValue.Builder>
-
mergeFrom
public MetricValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricValue.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceMetricValueOrBuilder
-
clearValue
-
getLabelsCount
public int getLabelsCount()Description copied from interface:MetricValueOrBuilderThe labels describing the metric value. See comments on [google.api.servicecontrol.v1.Operation.labels][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;- Specified by:
getLabelsCountin interfaceMetricValueOrBuilder
-
containsLabels
The labels describing the metric value. See comments on [google.api.servicecontrol.v1.Operation.labels][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;- Specified by:
containsLabelsin interfaceMetricValueOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceMetricValueOrBuilder
-
getLabelsMap
The labels describing the metric value. See comments on [google.api.servicecontrol.v1.Operation.labels][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;- Specified by:
getLabelsMapin interfaceMetricValueOrBuilder
-
getLabelsOrDefault
The labels describing the metric value. See comments on [google.api.servicecontrol.v1.Operation.labels][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;- Specified by:
getLabelsOrDefaultin interfaceMetricValueOrBuilder
-
getLabelsOrThrow
The labels describing the metric value. See comments on [google.api.servicecontrol.v1.Operation.labels][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;- Specified by:
getLabelsOrThrowin interfaceMetricValueOrBuilder
-
clearLabels
-
removeLabels
The labels describing the metric value. See comments on [google.api.servicecontrol.v1.Operation.labels][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; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
The labels describing the metric value. See comments on [google.api.servicecontrol.v1.Operation.labels][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; -
putAllLabels
The labels describing the metric value. See comments on [google.api.servicecontrol.v1.Operation.labels][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; -
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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2;- Specified by:
hasStartTimein interfaceMetricValueOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2;- Specified by:
getStartTimein interfaceMetricValueOrBuilder- Returns:
- The startTime.
-
setStartTime
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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2; -
setStartTime
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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2; -
mergeStartTime
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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2; -
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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2; -
getStartTimeBuilder
public com.google.protobuf.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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2; -
getStartTimeOrBuilder
public com.google.protobuf.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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2;- Specified by:
getStartTimeOrBuilderin interfaceMetricValueOrBuilder
-
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][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3;- Specified by:
hasEndTimein interfaceMetricValueOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.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][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3;- Specified by:
getEndTimein interfaceMetricValueOrBuilder- Returns:
- The endTime.
-
setEndTime
The end of the time period over which this metric value's measurement applies. If not specified, [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3; -
setEndTime
The end of the time period over which this metric value's measurement applies. If not specified, [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3; -
mergeEndTime
The end of the time period over which this metric value's measurement applies. If not specified, [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3; -
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][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3; -
getEndTimeBuilder
public com.google.protobuf.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][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3; -
getEndTimeOrBuilder
public com.google.protobuf.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][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3;- Specified by:
getEndTimeOrBuilderin interfaceMetricValueOrBuilder
-
hasBoolValue
public boolean hasBoolValue()A boolean value.
bool bool_value = 4;- Specified by:
hasBoolValuein interfaceMetricValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()A boolean value.
bool bool_value = 4;- Specified by:
getBoolValuein interfaceMetricValueOrBuilder- Returns:
- The boolValue.
-
setBoolValue
A boolean value.
bool bool_value = 4;- Parameters:
value- The boolValue to set.- Returns:
- This builder for chaining.
-
clearBoolValue
A boolean value.
bool bool_value = 4;- Returns:
- This builder for chaining.
-
hasInt64Value
public boolean hasInt64Value()A signed 64-bit integer value.
int64 int64_value = 5;- Specified by:
hasInt64Valuein interfaceMetricValueOrBuilder- Returns:
- Whether the int64Value field is set.
-
getInt64Value
public long getInt64Value()A signed 64-bit integer value.
int64 int64_value = 5;- Specified by:
getInt64Valuein interfaceMetricValueOrBuilder- Returns:
- The int64Value.
-
setInt64Value
A signed 64-bit integer value.
int64 int64_value = 5;- Parameters:
value- The int64Value to set.- Returns:
- This builder for chaining.
-
clearInt64Value
A signed 64-bit integer value.
int64 int64_value = 5;- Returns:
- This builder for chaining.
-
hasDoubleValue
public boolean hasDoubleValue()A double precision floating point value.
double double_value = 6;- Specified by:
hasDoubleValuein interfaceMetricValueOrBuilder- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()A double precision floating point value.
double double_value = 6;- Specified by:
getDoubleValuein interfaceMetricValueOrBuilder- Returns:
- The doubleValue.
-
setDoubleValue
A double precision floating point value.
double double_value = 6;- Parameters:
value- The doubleValue to set.- Returns:
- This builder for chaining.
-
clearDoubleValue
A double precision floating point value.
double double_value = 6;- Returns:
- This builder for chaining.
-
hasStringValue
public boolean hasStringValue()A text string value.
string string_value = 7;- Specified by:
hasStringValuein interfaceMetricValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
A text string value.
string string_value = 7;- Specified by:
getStringValuein interfaceMetricValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()A text string value.
string string_value = 7;- Specified by:
getStringValueBytesin interfaceMetricValueOrBuilder- Returns:
- The bytes for stringValue.
-
setStringValue
A text string value.
string string_value = 7;- Parameters:
value- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
A text string value.
string string_value = 7;- Returns:
- This builder for chaining.
-
setStringValueBytes
A text string value.
string string_value = 7;- Parameters:
value- The bytes for stringValue to set.- Returns:
- This builder for chaining.
-
hasDistributionValue
public boolean hasDistributionValue()A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;- Specified by:
hasDistributionValuein interfaceMetricValueOrBuilder- Returns:
- Whether the distributionValue field is set.
-
getDistributionValue
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;- Specified by:
getDistributionValuein interfaceMetricValueOrBuilder- Returns:
- The distributionValue.
-
setDistributionValue
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8; -
setDistributionValue
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8; -
mergeDistributionValue
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8; -
clearDistributionValue
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8; -
getDistributionValueBuilder
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8; -
getDistributionValueOrBuilder
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;- Specified by:
getDistributionValueOrBuilderin interfaceMetricValueOrBuilder
-