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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MetricValuebuild()MetricValuebuildPartial()MetricValue.Builderclear()MetricValue.BuilderclearBoolValue()A boolean value.MetricValue.BuilderclearDistributionValue()A distribution value.MetricValue.BuilderclearDoubleValue()A double precision floating point value.MetricValue.BuilderclearEndTime()The end of the time period over which this metric value's measurement applies.MetricValue.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MetricValue.BuilderclearInt64Value()A signed 64-bit integer value.MetricValue.BuilderclearLabels()MetricValue.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MetricValue.BuilderclearStartTime()The start of the time period over which this metric value's measurement applies.MetricValue.BuilderclearStringValue()A text string value.MetricValue.BuilderclearValue()MetricValue.Builderclone()booleancontainsLabels(String key)The labels describing the metric value.booleangetBoolValue()A boolean value.MetricValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DistributiongetDistributionValue()A distribution value.Distribution.BuildergetDistributionValueBuilder()A distribution value.DistributionOrBuildergetDistributionValueOrBuilder()A distribution value.doublegetDoubleValue()A double precision floating point value.com.google.protobuf.TimestampgetEndTime()The end of the time period over which this metric value's measurement applies.com.google.protobuf.Timestamp.BuildergetEndTimeBuilder()The end of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()The end of the time period over which this metric value's measurement applies.longgetInt64Value()A signed 64-bit integer value.Map<String,String>getLabels()Deprecated.intgetLabelsCount()The labels describing the metric value.Map<String,String>getLabelsMap()The labels describing the metric value.StringgetLabelsOrDefault(String key, String defaultValue)The labels describing the metric value.StringgetLabelsOrThrow(String key)The labels describing the metric value.Map<String,String>getMutableLabels()Deprecated.com.google.protobuf.TimestampgetStartTime()The start of the time period over which this metric value's measurement applies.com.google.protobuf.Timestamp.BuildergetStartTimeBuilder()The start of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()The start of the time period over which this metric value's measurement applies.StringgetStringValue()A text string value.com.google.protobuf.ByteStringgetStringValueBytes()A text string value.MetricValue.ValueCasegetValueCase()booleanhasBoolValue()A boolean value.booleanhasDistributionValue()A distribution value.booleanhasDoubleValue()A double precision floating point value.booleanhasEndTime()The end of the time period over which this metric value's measurement applies.booleanhasInt64Value()A signed 64-bit integer value.booleanhasStartTime()The start of the time period over which this metric value's measurement applies.booleanhasStringValue()A text string value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()MetricValue.BuildermergeDistributionValue(Distribution value)A distribution value.MetricValue.BuildermergeEndTime(com.google.protobuf.Timestamp value)The end of the time period over which this metric value's measurement applies.MetricValue.BuildermergeFrom(MetricValue other)MetricValue.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MetricValue.BuildermergeFrom(com.google.protobuf.Message other)MetricValue.BuildermergeStartTime(com.google.protobuf.Timestamp value)The start of the time period over which this metric value's measurement applies.MetricValue.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MetricValue.BuilderputAllLabels(Map<String,String> values)The labels describing the metric value.MetricValue.BuilderputLabels(String key, String value)The labels describing the metric value.MetricValue.BuilderremoveLabels(String key)The labels describing the metric value.MetricValue.BuildersetBoolValue(boolean value)A boolean value.MetricValue.BuildersetDistributionValue(Distribution value)A distribution value.MetricValue.BuildersetDistributionValue(Distribution.Builder builderForValue)A distribution value.MetricValue.BuildersetDoubleValue(double value)A double precision floating point value.MetricValue.BuildersetEndTime(com.google.protobuf.Timestamp value)The end of the time period over which this metric value's measurement applies.MetricValue.BuildersetEndTime(com.google.protobuf.Timestamp.Builder builderForValue)The end of the time period over which this metric value's measurement applies.MetricValue.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MetricValue.BuildersetInt64Value(long value)A signed 64-bit integer value.MetricValue.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MetricValue.BuildersetStartTime(com.google.protobuf.Timestamp value)The start of the time period over which this metric value's measurement applies.MetricValue.BuildersetStartTime(com.google.protobuf.Timestamp.Builder builderForValue)The start of the time period over which this metric value's measurement applies.MetricValue.BuildersetStringValue(String value)A text string value.MetricValue.BuildersetStringValueBytes(com.google.protobuf.ByteString value)A text string value.MetricValue.BuildersetUnknownFields(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:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
clear
public MetricValue.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<MetricValue.Builder>
-
getDefaultInstanceForType
public MetricValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MetricValue build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MetricValue buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MetricValue.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
setField
public MetricValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
clearField
public MetricValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
clearOneof
public MetricValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
setRepeatedField
public MetricValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
addRepeatedField
public MetricValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
mergeFrom
public MetricValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricValue.Builder>
-
mergeFrom
public MetricValue.Builder mergeFrom(MetricValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
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
public MetricValue.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceMetricValueOrBuilder
-
clearValue
public MetricValue.Builder 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
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:
containsLabelsin interfaceMetricValueOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin 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:
getLabelsMapin 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:
getLabelsOrDefaultin 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:
getLabelsOrThrowin 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:
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
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:
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
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:
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
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:
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
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:
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
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:
hasStringValuein interfaceMetricValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
public String 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
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:
hasDistributionValuein 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:
getDistributionValuein 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:
getDistributionValueOrBuilderin interfaceMetricValueOrBuilder
-
setUnknownFields
public final MetricValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
mergeUnknownFields
public final MetricValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
-
-