public static final class MetricDescriptor.MetricDescriptorMetadata.Builder extends GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder> implements MetricDescriptor.MetricDescriptorMetadataOrBuilder
Additional annotations that can be used to guide the usage of a metric.
Protobuf type google.api.MetricDescriptor.MetricDescriptorMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MetricDescriptor.MetricDescriptorMetadata.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MetricDescriptor.MetricDescriptorMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
build()
public MetricDescriptor.MetricDescriptorMetadata build()
Type | Description |
MetricDescriptor.MetricDescriptorMetadata |
buildPartial()
public MetricDescriptor.MetricDescriptorMetadata buildPartial()
Type | Description |
MetricDescriptor.MetricDescriptorMetadata |
clear()
public MetricDescriptor.MetricDescriptorMetadata.Builder clear()
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
clearField(Descriptors.FieldDescriptor field)
public MetricDescriptor.MetricDescriptorMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
clearIngestDelay()
public MetricDescriptor.MetricDescriptorMetadata.Builder clearIngestDelay()
The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
clearLaunchStage() (deprecated)
public MetricDescriptor.MetricDescriptorMetadata.Builder clearLaunchStage()
Deprecated. google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=83
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public MetricDescriptor.MetricDescriptorMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
clearSamplePeriod()
public MetricDescriptor.MetricDescriptorMetadata.Builder clearSamplePeriod()
The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
clone()
public MetricDescriptor.MetricDescriptorMetadata.Builder clone()
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
getDefaultInstanceForType()
public MetricDescriptor.MetricDescriptorMetadata getDefaultInstanceForType()
Type | Description |
MetricDescriptor.MetricDescriptorMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getIngestDelay()
public Duration getIngestDelay()
The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
Type | Description |
Duration | The ingestDelay. |
getIngestDelayBuilder()
public Duration.Builder getIngestDelayBuilder()
The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
Type | Description |
Builder |
getIngestDelayOrBuilder()
public DurationOrBuilder getIngestDelayOrBuilder()
The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
Type | Description |
DurationOrBuilder |
getLaunchStage() (deprecated)
public LaunchStage getLaunchStage()
Deprecated. google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=83
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Type | Description |
LaunchStage | The launchStage. |
getLaunchStageValue() (deprecated)
public int getLaunchStageValue()
Deprecated. google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=83
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Type | Description |
int | The enum numeric value on the wire for launchStage. |
getSamplePeriod()
public Duration getSamplePeriod()
The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
Type | Description |
Duration | The samplePeriod. |
getSamplePeriodBuilder()
public Duration.Builder getSamplePeriodBuilder()
The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
Type | Description |
Builder |
getSamplePeriodOrBuilder()
public DurationOrBuilder getSamplePeriodOrBuilder()
The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
Type | Description |
DurationOrBuilder |
hasIngestDelay()
public boolean hasIngestDelay()
The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
Type | Description |
boolean | Whether the ingestDelay field is set. |
hasSamplePeriod()
public boolean hasSamplePeriod()
The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
Type | Description |
boolean | Whether the samplePeriod field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(MetricDescriptor.MetricDescriptorMetadata other)
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(MetricDescriptor.MetricDescriptorMetadata other)
Name | Description |
other | MetricDescriptor.MetricDescriptorMetadata |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
mergeIngestDelay(Duration value)
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeIngestDelay(Duration value)
The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
Name | Description |
value | Duration |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
mergeSamplePeriod(Duration value)
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeSamplePeriod(Duration value)
The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
Name | Description |
value | Duration |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MetricDescriptor.MetricDescriptorMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public MetricDescriptor.MetricDescriptorMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
setIngestDelay(Duration value)
public MetricDescriptor.MetricDescriptorMetadata.Builder setIngestDelay(Duration value)
The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
Name | Description |
value | Duration |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
setIngestDelay(Duration.Builder builderForValue)
public MetricDescriptor.MetricDescriptorMetadata.Builder setIngestDelay(Duration.Builder builderForValue)
The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
.google.protobuf.Duration ingest_delay = 3;
Name | Description |
builderForValue | Builder |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
setLaunchStage(LaunchStage value) (deprecated)
public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStage(LaunchStage value)
Deprecated. google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=83
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Name | Description |
value | LaunchStage The launchStage to set. |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder | This builder for chaining. |
setLaunchStageValue(int value) (deprecated)
public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStageValue(int value)
Deprecated. google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=83
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Name | Description |
value | int The enum numeric value on the wire for launchStage to set. |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MetricDescriptor.MetricDescriptorMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
setSamplePeriod(Duration value)
public MetricDescriptor.MetricDescriptorMetadata.Builder setSamplePeriod(Duration value)
The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
Name | Description |
value | Duration |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
setSamplePeriod(Duration.Builder builderForValue)
public MetricDescriptor.MetricDescriptorMetadata.Builder setSamplePeriod(Duration.Builder builderForValue)
The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
.google.protobuf.Duration sample_period = 2;
Name | Description |
builderForValue | Builder |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MetricDescriptor.MetricDescriptorMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MetricDescriptor.MetricDescriptorMetadata.Builder |