public static final class MetricDescriptor.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.Builder> implements MetricDescriptorOrBuilder
Defines a metric type and its schema.Protobuf type
google.api.MetricDescriptor| Modifier and Type | Method and Description |
|---|---|
MetricDescriptor.Builder |
addAllLabels(java.lang.Iterable<? extends LabelDescriptor> values)
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.Builder |
addLabels(int index,
LabelDescriptor.Builder builderForValue)
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.Builder |
addLabels(int index,
LabelDescriptor value)
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.Builder |
addLabels(LabelDescriptor.Builder builderForValue)
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.Builder |
addLabels(LabelDescriptor value)
The set of labels that can be used to describe a specific instance of this
metric type.
|
LabelDescriptor.Builder |
addLabelsBuilder()
The set of labels that can be used to describe a specific instance of this
metric type.
|
LabelDescriptor.Builder |
addLabelsBuilder(int index)
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
MetricDescriptor |
build() |
MetricDescriptor |
buildPartial() |
MetricDescriptor.Builder |
clear() |
MetricDescriptor.Builder |
clearDescription()
A detailed description of the metric, which can be used in documentation.
|
MetricDescriptor.Builder |
clearDisplayName()
A concise name for the metric, which can be displayed in user interfaces.
|
MetricDescriptor.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MetricDescriptor.Builder |
clearLabels()
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.Builder |
clearMetricKind()
Whether the metric records instantaneous values, changes to a value, etc.
|
MetricDescriptor.Builder |
clearName()
Resource name.
|
MetricDescriptor.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MetricDescriptor.Builder |
clearType()
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`.
|
MetricDescriptor.Builder |
clearUnit()
The unit in which the metric value is reported.
|
MetricDescriptor.Builder |
clearValueType()
Whether the measurement is an integer, a floating-point number, etc.
|
MetricDescriptor.Builder |
clone() |
MetricDescriptor |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
A detailed description of the metric, which can be used in documentation.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A detailed description of the metric, which can be used in documentation.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getDisplayName()
A concise name for the metric, which can be displayed in user interfaces.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
A concise name for the metric, which can be displayed in user interfaces.
|
LabelDescriptor |
getLabels(int index)
The set of labels that can be used to describe a specific instance of this
metric type.
|
LabelDescriptor.Builder |
getLabelsBuilder(int index)
The set of labels that can be used to describe a specific instance of this
metric type.
|
java.util.List<LabelDescriptor.Builder> |
getLabelsBuilderList()
The set of labels that can be used to describe a specific instance of this
metric type.
|
int |
getLabelsCount()
The set of labels that can be used to describe a specific instance of this
metric type.
|
java.util.List<LabelDescriptor> |
getLabelsList()
The set of labels that can be used to describe a specific instance of this
metric type.
|
LabelDescriptorOrBuilder |
getLabelsOrBuilder(int index)
The set of labels that can be used to describe a specific instance of this
metric type.
|
java.util.List<? extends LabelDescriptorOrBuilder> |
getLabelsOrBuilderList()
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.MetricKind |
getMetricKind()
Whether the metric records instantaneous values, changes to a value, etc.
|
int |
getMetricKindValue()
Whether the metric records instantaneous values, changes to a value, etc.
|
java.lang.String |
getName()
Resource name.
|
com.google.protobuf.ByteString |
getNameBytes()
Resource name.
|
java.lang.String |
getType()
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`.
|
com.google.protobuf.ByteString |
getTypeBytes()
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`.
|
java.lang.String |
getUnit()
The unit in which the metric value is reported.
|
com.google.protobuf.ByteString |
getUnitBytes()
The unit in which the metric value is reported.
|
MetricDescriptor.ValueType |
getValueType()
Whether the measurement is an integer, a floating-point number, etc.
|
int |
getValueTypeValue()
Whether the measurement is an integer, a floating-point number, etc.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MetricDescriptor.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MetricDescriptor.Builder |
mergeFrom(com.google.protobuf.Message other) |
MetricDescriptor.Builder |
mergeFrom(MetricDescriptor other) |
MetricDescriptor.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MetricDescriptor.Builder |
removeLabels(int index)
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.Builder |
setDescription(java.lang.String value)
A detailed description of the metric, which can be used in documentation.
|
MetricDescriptor.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A detailed description of the metric, which can be used in documentation.
|
MetricDescriptor.Builder |
setDisplayName(java.lang.String value)
A concise name for the metric, which can be displayed in user interfaces.
|
MetricDescriptor.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
A concise name for the metric, which can be displayed in user interfaces.
|
MetricDescriptor.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
MetricDescriptor.Builder |
setLabels(int index,
LabelDescriptor.Builder builderForValue)
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.Builder |
setLabels(int index,
LabelDescriptor value)
The set of labels that can be used to describe a specific instance of this
metric type.
|
MetricDescriptor.Builder |
setMetricKind(MetricDescriptor.MetricKind value)
Whether the metric records instantaneous values, changes to a value, etc.
|
MetricDescriptor.Builder |
setMetricKindValue(int value)
Whether the metric records instantaneous values, changes to a value, etc.
|
MetricDescriptor.Builder |
setName(java.lang.String value)
Resource name.
|
MetricDescriptor.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Resource name.
|
MetricDescriptor.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
MetricDescriptor.Builder |
setType(java.lang.String value)
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`.
|
MetricDescriptor.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`.
|
MetricDescriptor.Builder |
setUnit(java.lang.String value)
The unit in which the metric value is reported.
|
MetricDescriptor.Builder |
setUnitBytes(com.google.protobuf.ByteString value)
The unit in which the metric value is reported.
|
MetricDescriptor.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MetricDescriptor.Builder |
setValueType(MetricDescriptor.ValueType value)
Whether the measurement is an integer, a floating-point number, etc.
|
MetricDescriptor.Builder |
setValueTypeValue(int value)
Whether the measurement is an integer, a floating-point number, etc.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.Builder>public MetricDescriptor.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.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<MetricDescriptor.Builder>public MetricDescriptor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MetricDescriptor build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MetricDescriptor buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MetricDescriptor.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.Builder>public MetricDescriptor.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<MetricDescriptor.Builder>public MetricDescriptor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.Builder>public MetricDescriptor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.Builder>public MetricDescriptor.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<MetricDescriptor.Builder>public MetricDescriptor.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<MetricDescriptor.Builder>public MetricDescriptor.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetricDescriptor.Builder>public MetricDescriptor.Builder mergeFrom(MetricDescriptor other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.Builder>public MetricDescriptor.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<MetricDescriptor.Builder>java.io.IOExceptionpublic java.lang.String getName()
Resource name. The format of the name may vary between different
implementations. For examples:
projects/{project_id}/metricDescriptors/{type=**}
metricDescriptors/{type=**}
optional string name = 1;getName in interface MetricDescriptorOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Resource name. The format of the name may vary between different
implementations. For examples:
projects/{project_id}/metricDescriptors/{type=**}
metricDescriptors/{type=**}
optional string name = 1;getNameBytes in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setName(java.lang.String value)
Resource name. The format of the name may vary between different
implementations. For examples:
projects/{project_id}/metricDescriptors/{type=**}
metricDescriptors/{type=**}
optional string name = 1;public MetricDescriptor.Builder clearName()
Resource name. The format of the name may vary between different
implementations. For examples:
projects/{project_id}/metricDescriptors/{type=**}
metricDescriptors/{type=**}
optional string name = 1;public MetricDescriptor.Builder setNameBytes(com.google.protobuf.ByteString value)
Resource name. The format of the name may vary between different
implementations. For examples:
projects/{project_id}/metricDescriptors/{type=**}
metricDescriptors/{type=**}
optional string name = 1;public java.lang.String getType()
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`. Metric types
should use a natural hierarchical grouping such as the following:
compute.googleapis.com/instance/cpu/utilization
compute.googleapis.com/instance/disk/read_ops_count
compute.googleapis.com/instance/network/received_bytes_count
Note that if the metric type changes, the monitoring data will be
discontinued, and anything depends on it will break, such as monitoring
dashboards, alerting rules and quota limits. Therefore, once a metric has
been published, its type should be immutable.
optional string type = 8;getType in interface MetricDescriptorOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`. Metric types
should use a natural hierarchical grouping such as the following:
compute.googleapis.com/instance/cpu/utilization
compute.googleapis.com/instance/disk/read_ops_count
compute.googleapis.com/instance/network/received_bytes_count
Note that if the metric type changes, the monitoring data will be
discontinued, and anything depends on it will break, such as monitoring
dashboards, alerting rules and quota limits. Therefore, once a metric has
been published, its type should be immutable.
optional string type = 8;getTypeBytes in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setType(java.lang.String value)
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`. Metric types
should use a natural hierarchical grouping such as the following:
compute.googleapis.com/instance/cpu/utilization
compute.googleapis.com/instance/disk/read_ops_count
compute.googleapis.com/instance/network/received_bytes_count
Note that if the metric type changes, the monitoring data will be
discontinued, and anything depends on it will break, such as monitoring
dashboards, alerting rules and quota limits. Therefore, once a metric has
been published, its type should be immutable.
optional string type = 8;public MetricDescriptor.Builder clearType()
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`. Metric types
should use a natural hierarchical grouping such as the following:
compute.googleapis.com/instance/cpu/utilization
compute.googleapis.com/instance/disk/read_ops_count
compute.googleapis.com/instance/network/received_bytes_count
Note that if the metric type changes, the monitoring data will be
discontinued, and anything depends on it will break, such as monitoring
dashboards, alerting rules and quota limits. Therefore, once a metric has
been published, its type should be immutable.
optional string type = 8;public MetricDescriptor.Builder setTypeBytes(com.google.protobuf.ByteString value)
The metric type including a DNS name prefix, for example
`"compute.googleapis.com/instance/cpu/utilization"`. Metric types
should use a natural hierarchical grouping such as the following:
compute.googleapis.com/instance/cpu/utilization
compute.googleapis.com/instance/disk/read_ops_count
compute.googleapis.com/instance/network/received_bytes_count
Note that if the metric type changes, the monitoring data will be
discontinued, and anything depends on it will break, such as monitoring
dashboards, alerting rules and quota limits. Therefore, once a metric has
been published, its type should be immutable.
optional string type = 8;public java.util.List<LabelDescriptor> getLabelsList()
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;getLabelsList in interface MetricDescriptorOrBuilderpublic int getLabelsCount()
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;getLabelsCount in interface MetricDescriptorOrBuilderpublic LabelDescriptor getLabels(int index)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;getLabels in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setLabels(int index, LabelDescriptor value)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public MetricDescriptor.Builder setLabels(int index, LabelDescriptor.Builder builderForValue)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public MetricDescriptor.Builder addLabels(LabelDescriptor value)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public MetricDescriptor.Builder addLabels(int index, LabelDescriptor value)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public MetricDescriptor.Builder addLabels(LabelDescriptor.Builder builderForValue)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public MetricDescriptor.Builder addLabels(int index, LabelDescriptor.Builder builderForValue)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public MetricDescriptor.Builder addAllLabels(java.lang.Iterable<? extends LabelDescriptor> values)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public MetricDescriptor.Builder clearLabels()
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public MetricDescriptor.Builder removeLabels(int index)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public LabelDescriptor.Builder getLabelsBuilder(int index)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public LabelDescriptorOrBuilder getLabelsOrBuilder(int index)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;getLabelsOrBuilder in interface MetricDescriptorOrBuilderpublic java.util.List<? extends LabelDescriptorOrBuilder> getLabelsOrBuilderList()
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;getLabelsOrBuilderList in interface MetricDescriptorOrBuilderpublic LabelDescriptor.Builder addLabelsBuilder()
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public LabelDescriptor.Builder addLabelsBuilder(int index)
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public java.util.List<LabelDescriptor.Builder> getLabelsBuilderList()
The set of labels that can be used to describe a specific instance of this metric type. For example, the `compute.googleapis.com/instance/network/received_bytes_count` metric type has a label, `loadbalanced`, that specifies whether the traffic was received through a load balanced IP address.
repeated .google.api.LabelDescriptor labels = 2;public int getMetricKindValue()
Whether the metric records instantaneous values, changes to a value, etc.
optional .google.api.MetricDescriptor.MetricKind metric_kind = 3;getMetricKindValue in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setMetricKindValue(int value)
Whether the metric records instantaneous values, changes to a value, etc.
optional .google.api.MetricDescriptor.MetricKind metric_kind = 3;public MetricDescriptor.MetricKind getMetricKind()
Whether the metric records instantaneous values, changes to a value, etc.
optional .google.api.MetricDescriptor.MetricKind metric_kind = 3;getMetricKind in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setMetricKind(MetricDescriptor.MetricKind value)
Whether the metric records instantaneous values, changes to a value, etc.
optional .google.api.MetricDescriptor.MetricKind metric_kind = 3;public MetricDescriptor.Builder clearMetricKind()
Whether the metric records instantaneous values, changes to a value, etc.
optional .google.api.MetricDescriptor.MetricKind metric_kind = 3;public int getValueTypeValue()
Whether the measurement is an integer, a floating-point number, etc.
optional .google.api.MetricDescriptor.ValueType value_type = 4;getValueTypeValue in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setValueTypeValue(int value)
Whether the measurement is an integer, a floating-point number, etc.
optional .google.api.MetricDescriptor.ValueType value_type = 4;public MetricDescriptor.ValueType getValueType()
Whether the measurement is an integer, a floating-point number, etc.
optional .google.api.MetricDescriptor.ValueType value_type = 4;getValueType in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setValueType(MetricDescriptor.ValueType value)
Whether the measurement is an integer, a floating-point number, etc.
optional .google.api.MetricDescriptor.ValueType value_type = 4;public MetricDescriptor.Builder clearValueType()
Whether the measurement is an integer, a floating-point number, etc.
optional .google.api.MetricDescriptor.ValueType value_type = 4;public java.lang.String getUnit()
The unit in which the metric value is reported. It is only applicable
if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
supported units are a subset of [The Unified Code for Units of
Measure](http://unitsofmeasure.org/ucum.html) standard:
**Basic units (UNIT)**
* `bit` bit
* `By` byte
* `s` second
* `min` minute
* `h` hour
* `d` day
**Prefixes (PREFIX)**
* `k` kilo (10**3)
* `M` mega (10**6)
* `G` giga (10**9)
* `T` tera (10**12)
* `P` peta (10**15)
* `E` exa (10**18)
* `Z` zetta (10**21)
* `Y` yotta (10**24)
* `m` milli (10**-3)
* `u` micro (10**-6)
* `n` nano (10**-9)
* `p` pico (10**-12)
* `f` femto (10**-15)
* `a` atto (10**-18)
* `z` zepto (10**-21)
* `y` yocto (10**-24)
* `Ki` kibi (2**10)
* `Mi` mebi (2**20)
* `Gi` gibi (2**30)
* `Ti` tebi (2**40)
**Grammar**
The grammar includes the dimensionless unit `1`, such as `1/s`.
The grammar also includes these connectors:
* `/` division (as an infix operator, e.g. `1/s`).
* `.` multiplication (as an infix operator, e.g. `GBy.d`)
The grammar for a unit is as follows:
Expression = Component { "." Component } { "/" Component } ;
Component = [ PREFIX ] UNIT [ Annotation ]
| Annotation
| "1"
;
Annotation = "{" NAME "}" ;
Notes:
* `Annotation` is just a comment if it follows a `UNIT` and is
equivalent to `1` if it is used alone. For examples,
`{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
* `NAME` is a sequence of non-blank printable ASCII characters not
containing '{' or '}'.
optional string unit = 5;getUnit in interface MetricDescriptorOrBuilderpublic com.google.protobuf.ByteString getUnitBytes()
The unit in which the metric value is reported. It is only applicable
if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
supported units are a subset of [The Unified Code for Units of
Measure](http://unitsofmeasure.org/ucum.html) standard:
**Basic units (UNIT)**
* `bit` bit
* `By` byte
* `s` second
* `min` minute
* `h` hour
* `d` day
**Prefixes (PREFIX)**
* `k` kilo (10**3)
* `M` mega (10**6)
* `G` giga (10**9)
* `T` tera (10**12)
* `P` peta (10**15)
* `E` exa (10**18)
* `Z` zetta (10**21)
* `Y` yotta (10**24)
* `m` milli (10**-3)
* `u` micro (10**-6)
* `n` nano (10**-9)
* `p` pico (10**-12)
* `f` femto (10**-15)
* `a` atto (10**-18)
* `z` zepto (10**-21)
* `y` yocto (10**-24)
* `Ki` kibi (2**10)
* `Mi` mebi (2**20)
* `Gi` gibi (2**30)
* `Ti` tebi (2**40)
**Grammar**
The grammar includes the dimensionless unit `1`, such as `1/s`.
The grammar also includes these connectors:
* `/` division (as an infix operator, e.g. `1/s`).
* `.` multiplication (as an infix operator, e.g. `GBy.d`)
The grammar for a unit is as follows:
Expression = Component { "." Component } { "/" Component } ;
Component = [ PREFIX ] UNIT [ Annotation ]
| Annotation
| "1"
;
Annotation = "{" NAME "}" ;
Notes:
* `Annotation` is just a comment if it follows a `UNIT` and is
equivalent to `1` if it is used alone. For examples,
`{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
* `NAME` is a sequence of non-blank printable ASCII characters not
containing '{' or '}'.
optional string unit = 5;getUnitBytes in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setUnit(java.lang.String value)
The unit in which the metric value is reported. It is only applicable
if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
supported units are a subset of [The Unified Code for Units of
Measure](http://unitsofmeasure.org/ucum.html) standard:
**Basic units (UNIT)**
* `bit` bit
* `By` byte
* `s` second
* `min` minute
* `h` hour
* `d` day
**Prefixes (PREFIX)**
* `k` kilo (10**3)
* `M` mega (10**6)
* `G` giga (10**9)
* `T` tera (10**12)
* `P` peta (10**15)
* `E` exa (10**18)
* `Z` zetta (10**21)
* `Y` yotta (10**24)
* `m` milli (10**-3)
* `u` micro (10**-6)
* `n` nano (10**-9)
* `p` pico (10**-12)
* `f` femto (10**-15)
* `a` atto (10**-18)
* `z` zepto (10**-21)
* `y` yocto (10**-24)
* `Ki` kibi (2**10)
* `Mi` mebi (2**20)
* `Gi` gibi (2**30)
* `Ti` tebi (2**40)
**Grammar**
The grammar includes the dimensionless unit `1`, such as `1/s`.
The grammar also includes these connectors:
* `/` division (as an infix operator, e.g. `1/s`).
* `.` multiplication (as an infix operator, e.g. `GBy.d`)
The grammar for a unit is as follows:
Expression = Component { "." Component } { "/" Component } ;
Component = [ PREFIX ] UNIT [ Annotation ]
| Annotation
| "1"
;
Annotation = "{" NAME "}" ;
Notes:
* `Annotation` is just a comment if it follows a `UNIT` and is
equivalent to `1` if it is used alone. For examples,
`{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
* `NAME` is a sequence of non-blank printable ASCII characters not
containing '{' or '}'.
optional string unit = 5;public MetricDescriptor.Builder clearUnit()
The unit in which the metric value is reported. It is only applicable
if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
supported units are a subset of [The Unified Code for Units of
Measure](http://unitsofmeasure.org/ucum.html) standard:
**Basic units (UNIT)**
* `bit` bit
* `By` byte
* `s` second
* `min` minute
* `h` hour
* `d` day
**Prefixes (PREFIX)**
* `k` kilo (10**3)
* `M` mega (10**6)
* `G` giga (10**9)
* `T` tera (10**12)
* `P` peta (10**15)
* `E` exa (10**18)
* `Z` zetta (10**21)
* `Y` yotta (10**24)
* `m` milli (10**-3)
* `u` micro (10**-6)
* `n` nano (10**-9)
* `p` pico (10**-12)
* `f` femto (10**-15)
* `a` atto (10**-18)
* `z` zepto (10**-21)
* `y` yocto (10**-24)
* `Ki` kibi (2**10)
* `Mi` mebi (2**20)
* `Gi` gibi (2**30)
* `Ti` tebi (2**40)
**Grammar**
The grammar includes the dimensionless unit `1`, such as `1/s`.
The grammar also includes these connectors:
* `/` division (as an infix operator, e.g. `1/s`).
* `.` multiplication (as an infix operator, e.g. `GBy.d`)
The grammar for a unit is as follows:
Expression = Component { "." Component } { "/" Component } ;
Component = [ PREFIX ] UNIT [ Annotation ]
| Annotation
| "1"
;
Annotation = "{" NAME "}" ;
Notes:
* `Annotation` is just a comment if it follows a `UNIT` and is
equivalent to `1` if it is used alone. For examples,
`{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
* `NAME` is a sequence of non-blank printable ASCII characters not
containing '{' or '}'.
optional string unit = 5;public MetricDescriptor.Builder setUnitBytes(com.google.protobuf.ByteString value)
The unit in which the metric value is reported. It is only applicable
if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
supported units are a subset of [The Unified Code for Units of
Measure](http://unitsofmeasure.org/ucum.html) standard:
**Basic units (UNIT)**
* `bit` bit
* `By` byte
* `s` second
* `min` minute
* `h` hour
* `d` day
**Prefixes (PREFIX)**
* `k` kilo (10**3)
* `M` mega (10**6)
* `G` giga (10**9)
* `T` tera (10**12)
* `P` peta (10**15)
* `E` exa (10**18)
* `Z` zetta (10**21)
* `Y` yotta (10**24)
* `m` milli (10**-3)
* `u` micro (10**-6)
* `n` nano (10**-9)
* `p` pico (10**-12)
* `f` femto (10**-15)
* `a` atto (10**-18)
* `z` zepto (10**-21)
* `y` yocto (10**-24)
* `Ki` kibi (2**10)
* `Mi` mebi (2**20)
* `Gi` gibi (2**30)
* `Ti` tebi (2**40)
**Grammar**
The grammar includes the dimensionless unit `1`, such as `1/s`.
The grammar also includes these connectors:
* `/` division (as an infix operator, e.g. `1/s`).
* `.` multiplication (as an infix operator, e.g. `GBy.d`)
The grammar for a unit is as follows:
Expression = Component { "." Component } { "/" Component } ;
Component = [ PREFIX ] UNIT [ Annotation ]
| Annotation
| "1"
;
Annotation = "{" NAME "}" ;
Notes:
* `Annotation` is just a comment if it follows a `UNIT` and is
equivalent to `1` if it is used alone. For examples,
`{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
* `NAME` is a sequence of non-blank printable ASCII characters not
containing '{' or '}'.
optional string unit = 5;public java.lang.String getDescription()
A detailed description of the metric, which can be used in documentation.
optional string description = 6;getDescription in interface MetricDescriptorOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A detailed description of the metric, which can be used in documentation.
optional string description = 6;getDescriptionBytes in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setDescription(java.lang.String value)
A detailed description of the metric, which can be used in documentation.
optional string description = 6;public MetricDescriptor.Builder clearDescription()
A detailed description of the metric, which can be used in documentation.
optional string description = 6;public MetricDescriptor.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A detailed description of the metric, which can be used in documentation.
optional string description = 6;public java.lang.String getDisplayName()
A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count".
optional string display_name = 7;getDisplayName in interface MetricDescriptorOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count".
optional string display_name = 7;getDisplayNameBytes in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Builder setDisplayName(java.lang.String value)
A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count".
optional string display_name = 7;public MetricDescriptor.Builder clearDisplayName()
A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count".
optional string display_name = 7;public MetricDescriptor.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count".
optional string display_name = 7;public final MetricDescriptor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.Builder>public final MetricDescriptor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.Builder>