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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public MetricDescriptor.MetricDescriptorMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public MetricDescriptor.MetricDescriptorMetadata build()
Returns
public MetricDescriptor.MetricDescriptorMetadata buildPartial()
Returns
public MetricDescriptor.MetricDescriptorMetadata.Builder clear()
Returns
Overrides
public MetricDescriptor.MetricDescriptorMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
public MetricDescriptor.MetricDescriptorMetadata.Builder clearLaunchStage()
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Returns
public MetricDescriptor.MetricDescriptorMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public MetricDescriptor.MetricDescriptorMetadata.Builder clone()
Returns
Overrides
public MetricDescriptor.MetricDescriptorMetadata getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
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
public LaunchStage getLaunchStage()
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Returns
public int getLaunchStageValue()
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Returns
Type | Description |
int | The enum numeric value on the wire for launchStage.
|
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
Type | Description |
Duration | The samplePeriod.
|
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
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
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
Type | Description |
boolean | Whether the ingestDelay field is set.
|
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
Type | Description |
boolean | Whether the samplePeriod field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(MetricDescriptor.MetricDescriptorMetadata other)
Parameter
Returns
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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
Returns
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
Returns
public final MetricDescriptor.MetricDescriptorMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public MetricDescriptor.MetricDescriptorMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Name | Description |
builderForValue | Builder
|
Returns
public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStage(LaunchStage value)
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Parameter
Returns
public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStageValue(int value)
Deprecated. Must use the MetricDescriptor.launch_stage instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
Parameter
Name | Description |
value | int
The enum numeric value on the wire for launchStage to set.
|
Returns
public MetricDescriptor.MetricDescriptorMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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
Returns
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
Name | Description |
builderForValue | Builder
|
Returns
public final MetricDescriptor.MetricDescriptorMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides