Class MetricDescriptor.MetricDescriptorMetadata.Builder (2.8.3)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetricDescriptor.MetricDescriptorMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

build()

public MetricDescriptor.MetricDescriptorMetadata build()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata

buildPartial()

public MetricDescriptor.MetricDescriptorMetadata buildPartial()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata

clear()

public MetricDescriptor.MetricDescriptorMetadata.Builder clear()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MetricDescriptor.MetricDescriptorMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

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;

Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

clearLaunchStage()

public MetricDescriptor.MetricDescriptorMetadata.Builder clearLaunchStage()

Deprecated. Must use the MetricDescriptor.launch_stage instead.

.google.api.LaunchStage launch_stage = 1 [deprecated = true];

Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MetricDescriptor.MetricDescriptorMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

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;

Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

clone()

public MetricDescriptor.MetricDescriptorMetadata.Builder clone()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

getDefaultInstanceForType()

public MetricDescriptor.MetricDescriptorMetadata getDefaultInstanceForType()
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
DurationOrBuilder

getLaunchStage()

public LaunchStage getLaunchStage()

Deprecated. Must use the MetricDescriptor.launch_stage instead.

.google.api.LaunchStage launch_stage = 1 [deprecated = true];

Returns
TypeDescription
LaunchStage

The launchStage.

getLaunchStageValue()

public int getLaunchStageValue()

Deprecated. Must use the MetricDescriptor.launch_stage instead.

.google.api.LaunchStage launch_stage = 1 [deprecated = true];

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
boolean

Whether the samplePeriod field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MetricDescriptor.MetricDescriptorMetadata other)

public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(MetricDescriptor.MetricDescriptorMetadata other)
Parameter
NameDescription
otherMetricDescriptor.MetricDescriptorMetadata
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetricDescriptor.MetricDescriptorMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MetricDescriptor.MetricDescriptorMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

setLaunchStage(LaunchStage value)

public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStage(LaunchStage value)

Deprecated. Must use the MetricDescriptor.launch_stage instead.

.google.api.LaunchStage launch_stage = 1 [deprecated = true];

Parameter
NameDescription
valueLaunchStage

The launchStage to set.

Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

This builder for chaining.

setLaunchStageValue(int value)

public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStageValue(int value)

Deprecated. Must use the MetricDescriptor.launch_stage instead.

.google.api.LaunchStage launch_stage = 1 [deprecated = true];

Parameter
NameDescription
valueint

The enum numeric value on the wire for launchStage to set.

Returns
TypeDescription
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)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MetricDescriptor.MetricDescriptorMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MetricDescriptor.MetricDescriptorMetadata.Builder
Overrides