public static final class MetricValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder> implements MetricValueOrBuilder
Represents a single metric value.Protobuf type
google.api.servicecontrol.v1.MetricValue| Modifier and Type | Method and Description |
|---|---|
MetricValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.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(java.lang.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.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The labels describing the metric value.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
The labels describing the metric value.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
The labels describing the metric value.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
The labels describing the metric value.
|
java.util.Map<java.lang.String,java.lang.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.
|
java.lang.String |
getStringValue()
A text string value.
|
com.google.protobuf.ByteString |
getStringValueBytes()
A text string value.
|
MetricValue.ValueCase |
getValueCase() |
boolean |
hasEndTime()
The end of the time period over which this metric value's measurement
applies.
|
boolean |
hasStartTime()
The start of the time period over which this metric value's measurement
applies.
|
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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MetricValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
MetricValue.Builder |
mergeFrom(MetricValue 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(java.util.Map<java.lang.String,java.lang.String> values)
The labels describing the metric value.
|
MetricValue.Builder |
putLabels(java.lang.String key,
java.lang.String value)
The labels describing the metric value.
|
MetricValue.Builder |
removeLabels(java.lang.String key)
The labels describing the metric value.
|
MetricValue.Builder |
setBoolValue(boolean value)
A boolean value.
|
MetricValue.Builder |
setDistributionValue(Distribution.Builder builderForValue)
A distribution value.
|
MetricValue.Builder |
setDistributionValue(Distribution value)
A distribution value.
|
MetricValue.Builder |
setDoubleValue(double value)
A double precision floating point value.
|
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 |
setEndTime(com.google.protobuf.Timestamp value)
The end of the time period over which this metric value's measurement
applies.
|
MetricValue.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
MetricValue.Builder |
setInt64Value(long value)
A signed 64-bit integer value.
|
MetricValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
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 |
setStartTime(com.google.protobuf.Timestamp value)
The start of the time period over which this metric value's measurement
applies.
|
MetricValue.Builder |
setStringValue(java.lang.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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public MetricValue.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public MetricValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MetricValue build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MetricValue buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MetricValue.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public MetricValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public MetricValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public MetricValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public MetricValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public MetricValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public MetricValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetricValue.Builder>public MetricValue.Builder mergeFrom(MetricValue other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public MetricValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetricValue.Builder>java.io.IOExceptionpublic MetricValue.ValueCase getValueCase()
getValueCase in interface MetricValueOrBuilderpublic MetricValue.Builder clearValue()
public int getLabelsCount()
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.
map<string, string> labels = 1;getLabelsCount in interface MetricValueOrBuilderpublic boolean containsLabels(java.lang.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.
map<string, string> labels = 1;containsLabels in interface MetricValueOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels in interface MetricValueOrBuilderpublic java.util.Map<java.lang.String,java.lang.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.
map<string, string> labels = 1;getLabelsMap in interface MetricValueOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.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.
map<string, string> labels = 1;getLabelsOrDefault in interface MetricValueOrBuilderpublic java.lang.String getLabelsOrThrow(java.lang.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.
map<string, string> labels = 1;getLabelsOrThrow in interface MetricValueOrBuilderpublic MetricValue.Builder clearLabels()
public MetricValue.Builder removeLabels(java.lang.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.
map<string, string> labels = 1;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public MetricValue.Builder putLabels(java.lang.String key, java.lang.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.
map<string, string> labels = 1;public MetricValue.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.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.
map<string, string> labels = 1;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.
.google.protobuf.Timestamp start_time = 2;hasStartTime in interface MetricValueOrBuilderpublic 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.
.google.protobuf.Timestamp start_time = 2;getStartTime in interface MetricValueOrBuilderpublic 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.
.google.protobuf.Timestamp start_time = 2;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.
.google.protobuf.Timestamp start_time = 2;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.
.google.protobuf.Timestamp start_time = 2;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.
.google.protobuf.Timestamp start_time = 2;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.
.google.protobuf.Timestamp start_time = 2;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.
.google.protobuf.Timestamp start_time = 2;getStartTimeOrBuilder in interface MetricValueOrBuilderpublic boolean hasEndTime()
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;hasEndTime in interface MetricValueOrBuilderpublic com.google.protobuf.Timestamp getEndTime()
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;getEndTime in interface MetricValueOrBuilderpublic MetricValue.Builder setEndTime(com.google.protobuf.Timestamp value)
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;public MetricValue.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;public MetricValue.Builder mergeEndTime(com.google.protobuf.Timestamp value)
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;public MetricValue.Builder clearEndTime()
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;getEndTimeOrBuilder in interface MetricValueOrBuilderpublic boolean getBoolValue()
A boolean value.
bool bool_value = 4;getBoolValue in interface MetricValueOrBuilderpublic MetricValue.Builder setBoolValue(boolean value)
A boolean value.
bool bool_value = 4;public MetricValue.Builder clearBoolValue()
A boolean value.
bool bool_value = 4;public long getInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;getInt64Value in interface MetricValueOrBuilderpublic MetricValue.Builder setInt64Value(long value)
A signed 64-bit integer value.
int64 int64_value = 5;public MetricValue.Builder clearInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;public double getDoubleValue()
A double precision floating point value.
double double_value = 6;getDoubleValue in interface MetricValueOrBuilderpublic MetricValue.Builder setDoubleValue(double value)
A double precision floating point value.
double double_value = 6;public MetricValue.Builder clearDoubleValue()
A double precision floating point value.
double double_value = 6;public java.lang.String getStringValue()
A text string value.
string string_value = 7;getStringValue in interface MetricValueOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
A text string value.
string string_value = 7;getStringValueBytes in interface MetricValueOrBuilderpublic MetricValue.Builder setStringValue(java.lang.String value)
A text string value.
string string_value = 7;public MetricValue.Builder clearStringValue()
A text string value.
string string_value = 7;public MetricValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
A text string value.
string string_value = 7;public Distribution getDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;getDistributionValue in interface MetricValueOrBuilderpublic MetricValue.Builder setDistributionValue(Distribution value)
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;public MetricValue.Builder setDistributionValue(Distribution.Builder builderForValue)
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;public MetricValue.Builder mergeDistributionValue(Distribution value)
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;public MetricValue.Builder clearDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;public Distribution.Builder getDistributionValueBuilder()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;public DistributionOrBuilder getDistributionValueOrBuilder()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;getDistributionValueOrBuilder in interface MetricValueOrBuilderpublic final MetricValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>public final MetricValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>