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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<MetricValue.Builder> implements MetricValueOrBuilder
Represents a single metric value.
Protobuf typegoogle.api.servicecontrol.v1.MetricValue
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MetricValue.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MetricValue
build()
MetricValue
buildPartial()
MetricValue.Builder
clear()
MetricValue.Builder
clearBoolValue()
A boolean value.MetricValue.Builder
clearDistributionValue()
A distribution value.MetricValue.Builder
clearDoubleValue()
A double precision floating point value.MetricValue.Builder
clearEndTime()
The end of the time period over which this metric value's measurement applies.MetricValue.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MetricValue.Builder
clearInt64Value()
A signed 64-bit integer value.MetricValue.Builder
clearLabels()
MetricValue.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MetricValue.Builder
clearStartTime()
The start of the time period over which this metric value's measurement applies.MetricValue.Builder
clearStringValue()
A text string value.MetricValue.Builder
clearValue()
MetricValue.Builder
clone()
boolean
containsLabels(String key)
The labels describing the metric value.boolean
getBoolValue()
A boolean value.MetricValue
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Distribution
getDistributionValue()
A distribution value.Distribution.Builder
getDistributionValueBuilder()
A distribution value.DistributionOrBuilder
getDistributionValueOrBuilder()
A distribution value.double
getDoubleValue()
A double precision floating point value.com.google.protobuf.Timestamp
getEndTime()
The end of the time period over which this metric value's measurement applies.com.google.protobuf.Timestamp.Builder
getEndTimeBuilder()
The end of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuilder
getEndTimeOrBuilder()
The end of the time period over which this metric value's measurement applies.long
getInt64Value()
A signed 64-bit integer value.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
The labels describing the metric value.Map<String,String>
getLabelsMap()
The labels describing the metric value.String
getLabelsOrDefault(String key, String defaultValue)
The labels describing the metric value.String
getLabelsOrThrow(String key)
The labels describing the metric value.Map<String,String>
getMutableLabels()
Deprecated.com.google.protobuf.Timestamp
getStartTime()
The start of the time period over which this metric value's measurement applies.com.google.protobuf.Timestamp.Builder
getStartTimeBuilder()
The start of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
The start of the time period over which this metric value's measurement applies.String
getStringValue()
A text string value.com.google.protobuf.ByteString
getStringValueBytes()
A text string value.MetricValue.ValueCase
getValueCase()
boolean
hasBoolValue()
A boolean value.boolean
hasDistributionValue()
A distribution value.boolean
hasDoubleValue()
A double precision floating point value.boolean
hasEndTime()
The end of the time period over which this metric value's measurement applies.boolean
hasInt64Value()
A signed 64-bit integer value.boolean
hasStartTime()
The start of the time period over which this metric value's measurement applies.boolean
hasStringValue()
A text string value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
MetricValue.Builder
mergeDistributionValue(Distribution value)
A distribution value.MetricValue.Builder
mergeEndTime(com.google.protobuf.Timestamp value)
The end of the time period over which this metric value's measurement applies.MetricValue.Builder
mergeFrom(MetricValue other)
MetricValue.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MetricValue.Builder
mergeFrom(com.google.protobuf.Message other)
MetricValue.Builder
mergeStartTime(com.google.protobuf.Timestamp value)
The start of the time period over which this metric value's measurement applies.MetricValue.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MetricValue.Builder
putAllLabels(Map<String,String> values)
The labels describing the metric value.MetricValue.Builder
putLabels(String key, String value)
The labels describing the metric value.MetricValue.Builder
removeLabels(String key)
The labels describing the metric value.MetricValue.Builder
setBoolValue(boolean value)
A boolean value.MetricValue.Builder
setDistributionValue(Distribution value)
A distribution value.MetricValue.Builder
setDistributionValue(Distribution.Builder builderForValue)
A distribution value.MetricValue.Builder
setDoubleValue(double value)
A double precision floating point value.MetricValue.Builder
setEndTime(com.google.protobuf.Timestamp value)
The end of the time period over which this metric value's measurement applies.MetricValue.Builder
setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
The end of the time period over which this metric value's measurement applies.MetricValue.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MetricValue.Builder
setInt64Value(long value)
A signed 64-bit integer value.MetricValue.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MetricValue.Builder
setStartTime(com.google.protobuf.Timestamp value)
The start of the time period over which this metric value's measurement applies.MetricValue.Builder
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
The start of the time period over which this metric value's measurement applies.MetricValue.Builder
setStringValue(String value)
A text string value.MetricValue.Builder
setStringValueBytes(com.google.protobuf.ByteString value)
A text string value.MetricValue.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
clear
public MetricValue.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
getDefaultInstanceForType
public MetricValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MetricValue build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MetricValue buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MetricValue.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
setField
public MetricValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
clearField
public MetricValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
clearOneof
public MetricValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
setRepeatedField
public MetricValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
addRepeatedField
public MetricValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
mergeFrom
public MetricValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetricValue.Builder>
-
mergeFrom
public MetricValue.Builder mergeFrom(MetricValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
mergeFrom
public MetricValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetricValue.Builder>
- Throws:
IOException
-
getValueCase
public MetricValue.ValueCase getValueCase()
- Specified by:
getValueCase
in interfaceMetricValueOrBuilder
-
clearValue
public MetricValue.Builder clearValue()
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:MetricValueOrBuilder
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:
getLabelsCount
in interfaceMetricValueOrBuilder
-
containsLabels
public boolean containsLabels(String key)
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:
containsLabels
in interfaceMetricValueOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceMetricValueOrBuilder
-
getLabelsMap
public Map<String,String> 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:
getLabelsMap
in interfaceMetricValueOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
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:
getLabelsOrDefault
in interfaceMetricValueOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
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:
getLabelsOrThrow
in interfaceMetricValueOrBuilder
-
clearLabels
public MetricValue.Builder clearLabels()
-
removeLabels
public MetricValue.Builder removeLabels(String key)
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 public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public MetricValue.Builder putLabels(String key, String value)
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
public MetricValue.Builder putAllLabels(Map<String,String> values)
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:
hasStartTime
in 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:
getStartTime
in interfaceMetricValueOrBuilder
- Returns:
- The startTime.
-
setStartTime
public MetricValue.Builder setStartTime(com.google.protobuf.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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2;
-
setStartTime
public MetricValue.Builder setStartTime(com.google.protobuf.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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2;
-
mergeStartTime
public MetricValue.Builder mergeStartTime(com.google.protobuf.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][google.api.servicecontrol.v1.Operation.start_time] will be used.
.google.protobuf.Timestamp start_time = 2;
-
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][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:
getStartTimeOrBuilder
in 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:
hasEndTime
in 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:
getEndTime
in interfaceMetricValueOrBuilder
- Returns:
- The endTime.
-
setEndTime
public MetricValue.Builder setEndTime(com.google.protobuf.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][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3;
-
setEndTime
public MetricValue.Builder setEndTime(com.google.protobuf.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][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3;
-
mergeEndTime
public MetricValue.Builder mergeEndTime(com.google.protobuf.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][google.api.servicecontrol.v1.Operation.end_time] will be used.
.google.protobuf.Timestamp end_time = 3;
-
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][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:
getEndTimeOrBuilder
in interfaceMetricValueOrBuilder
-
hasBoolValue
public boolean hasBoolValue()
A boolean value.
bool bool_value = 4;
- Specified by:
hasBoolValue
in interfaceMetricValueOrBuilder
- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()
A boolean value.
bool bool_value = 4;
- Specified by:
getBoolValue
in interfaceMetricValueOrBuilder
- Returns:
- The boolValue.
-
setBoolValue
public MetricValue.Builder setBoolValue(boolean value)
A boolean value.
bool bool_value = 4;
- Parameters:
value
- The boolValue to set.- Returns:
- This builder for chaining.
-
clearBoolValue
public MetricValue.Builder 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:
hasInt64Value
in interfaceMetricValueOrBuilder
- Returns:
- Whether the int64Value field is set.
-
getInt64Value
public long getInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;
- Specified by:
getInt64Value
in interfaceMetricValueOrBuilder
- Returns:
- The int64Value.
-
setInt64Value
public MetricValue.Builder setInt64Value(long value)
A signed 64-bit integer value.
int64 int64_value = 5;
- Parameters:
value
- The int64Value to set.- Returns:
- This builder for chaining.
-
clearInt64Value
public MetricValue.Builder 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:
hasDoubleValue
in interfaceMetricValueOrBuilder
- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()
A double precision floating point value.
double double_value = 6;
- Specified by:
getDoubleValue
in interfaceMetricValueOrBuilder
- Returns:
- The doubleValue.
-
setDoubleValue
public MetricValue.Builder setDoubleValue(double value)
A double precision floating point value.
double double_value = 6;
- Parameters:
value
- The doubleValue to set.- Returns:
- This builder for chaining.
-
clearDoubleValue
public MetricValue.Builder 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:
hasStringValue
in interfaceMetricValueOrBuilder
- Returns:
- Whether the stringValue field is set.
-
getStringValue
public String getStringValue()
A text string value.
string string_value = 7;
- Specified by:
getStringValue
in interfaceMetricValueOrBuilder
- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()
A text string value.
string string_value = 7;
- Specified by:
getStringValueBytes
in interfaceMetricValueOrBuilder
- Returns:
- The bytes for stringValue.
-
setStringValue
public MetricValue.Builder setStringValue(String value)
A text string value.
string string_value = 7;
- Parameters:
value
- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
public MetricValue.Builder clearStringValue()
A text string value.
string string_value = 7;
- Returns:
- This builder for chaining.
-
setStringValueBytes
public MetricValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
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:
hasDistributionValue
in interfaceMetricValueOrBuilder
- Returns:
- Whether the distributionValue field is set.
-
getDistributionValue
public Distribution getDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
- Specified by:
getDistributionValue
in interfaceMetricValueOrBuilder
- Returns:
- The distributionValue.
-
setDistributionValue
public MetricValue.Builder setDistributionValue(Distribution value)
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
-
setDistributionValue
public MetricValue.Builder setDistributionValue(Distribution.Builder builderForValue)
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
-
mergeDistributionValue
public MetricValue.Builder mergeDistributionValue(Distribution value)
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
-
clearDistributionValue
public MetricValue.Builder clearDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
-
getDistributionValueBuilder
public Distribution.Builder getDistributionValueBuilder()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
-
getDistributionValueOrBuilder
public DistributionOrBuilder getDistributionValueOrBuilder()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
- Specified by:
getDistributionValueOrBuilder
in interfaceMetricValueOrBuilder
-
setUnknownFields
public final MetricValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
mergeUnknownFields
public final MetricValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
-