Package com.google.api
Class MetricDescriptor.MetricDescriptorMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder
- All Implemented Interfaces:
MetricDescriptor.MetricDescriptorMetadataOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- MetricDescriptor.MetricDescriptorMetadata
public static final class MetricDescriptor.MetricDescriptorMetadata.Builder
extends com.google.protobuf.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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The delay of data points caused by ingestion.Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The sampling period of metric data points.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Duration
The delay of data points caused by ingestion.com.google.protobuf.Duration.Builder
The delay of data points caused by ingestion.com.google.protobuf.DurationOrBuilder
The delay of data points caused by ingestion.Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.int
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.com.google.protobuf.Duration
The sampling period of metric data points.com.google.protobuf.Duration.Builder
The sampling period of metric data points.com.google.protobuf.DurationOrBuilder
The sampling period of metric data points.boolean
The delay of data points caused by ingestion.boolean
The sampling period of metric data points.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeIngestDelay
(com.google.protobuf.Duration value) The delay of data points caused by ingestion.mergeSamplePeriod
(com.google.protobuf.Duration value) The sampling period of metric data points.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setIngestDelay
(com.google.protobuf.Duration value) The delay of data points caused by ingestion.setIngestDelay
(com.google.protobuf.Duration.Builder builderForValue) The delay of data points caused by ingestion.setLaunchStage
(LaunchStage value) Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.setLaunchStageValue
(int value) Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSamplePeriod
(com.google.protobuf.Duration value) The sampling period of metric data points.setSamplePeriod
(com.google.protobuf.Duration.Builder builderForValue) The sampling period of metric data points.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
setField
public MetricDescriptor.MetricDescriptorMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
clearField
public MetricDescriptor.MetricDescriptorMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
clearOneof
public MetricDescriptor.MetricDescriptorMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
setRepeatedField
public MetricDescriptor.MetricDescriptorMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
addRepeatedField
public MetricDescriptor.MetricDescriptorMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeFrom
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeFrom
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(MetricDescriptor.MetricDescriptorMetadata other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeFrom
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
- Throws:
IOException
-
getLaunchStageValue
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=85Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Specified by:
getLaunchStageValue
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- The enum numeric value on the wire for launchStage.
-
setLaunchStageValue
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=85Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Parameters:
value
- The enum numeric value on the wire for launchStage to set.- Returns:
- This builder for chaining.
-
getLaunchStage
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=85Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Specified by:
getLaunchStage
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- The launchStage.
-
setLaunchStage
@Deprecated public MetricDescriptor.MetricDescriptorMetadata.Builder setLaunchStage(LaunchStage value) Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=85Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Parameters:
value
- The launchStage to set.- Returns:
- This builder for chaining.
-
clearLaunchStage
Deprecated.google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage is deprecated. See google/api/metric.proto;l=85Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
.google.api.LaunchStage launch_stage = 1 [deprecated = true];
- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasSamplePeriod
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- Whether the samplePeriod field is set.
-
getSamplePeriod
public com.google.protobuf.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;
- Specified by:
getSamplePeriod
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- The samplePeriod.
-
setSamplePeriod
public MetricDescriptor.MetricDescriptorMetadata.Builder setSamplePeriod(com.google.protobuf.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;
-
setSamplePeriod
public MetricDescriptor.MetricDescriptorMetadata.Builder setSamplePeriod(com.google.protobuf.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;
-
mergeSamplePeriod
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeSamplePeriod(com.google.protobuf.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;
-
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;
-
getSamplePeriodBuilder
public com.google.protobuf.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;
-
getSamplePeriodOrBuilder
public com.google.protobuf.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;
- Specified by:
getSamplePeriodOrBuilder
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
-
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;
- Specified by:
hasIngestDelay
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- Whether the ingestDelay field is set.
-
getIngestDelay
public com.google.protobuf.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;
- Specified by:
getIngestDelay
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
- Returns:
- The ingestDelay.
-
setIngestDelay
public MetricDescriptor.MetricDescriptorMetadata.Builder setIngestDelay(com.google.protobuf.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;
-
setIngestDelay
public MetricDescriptor.MetricDescriptorMetadata.Builder setIngestDelay(com.google.protobuf.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;
-
mergeIngestDelay
public MetricDescriptor.MetricDescriptorMetadata.Builder mergeIngestDelay(com.google.protobuf.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;
-
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;
-
getIngestDelayBuilder
public com.google.protobuf.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;
-
getIngestDelayOrBuilder
public com.google.protobuf.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;
- Specified by:
getIngestDelayOrBuilder
in interfaceMetricDescriptor.MetricDescriptorMetadataOrBuilder
-
setUnknownFields
public final MetricDescriptor.MetricDescriptorMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-
mergeUnknownFields
public final MetricDescriptor.MetricDescriptorMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricDescriptor.MetricDescriptorMetadata.Builder>
-