Class MetricConfigResponse.Schedule.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MetricConfigResponse.ScheduleOrBuilder, Cloneable
    Enclosing class:
    MetricConfigResponse.Schedule

    public static final class MetricConfigResponse.Schedule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MetricConfigResponse.Schedule.Builder>
    implements MetricConfigResponse.ScheduleOrBuilder
     A Schedule is used to apply a particular scheduling configuration to
     a metric. If a metric name matches a schedule's patterns, then the metric
     adopts the configuration specified by the schedule.
     
    Protobuf type opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MetricConfigResponse.Schedule.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MetricConfigResponse.Schedule.Builder>
      • getDefaultInstanceForType

        public MetricConfigResponse.Schedule getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MetricConfigResponse.Schedule build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MetricConfigResponse.Schedule buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MetricConfigResponse.Schedule.Builder>
      • mergeFrom

        public MetricConfigResponse.Schedule.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetricConfigResponse.Schedule.Builder>
        Throws:
        IOException
      • getExclusionPatternsList

        public List<MetricConfigResponse.Schedule.Pattern> getExclusionPatternsList()
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
        Specified by:
        getExclusionPatternsList in interface MetricConfigResponse.ScheduleOrBuilder
      • getExclusionPatternsCount

        public int getExclusionPatternsCount()
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
        Specified by:
        getExclusionPatternsCount in interface MetricConfigResponse.ScheduleOrBuilder
      • getExclusionPatterns

        public MetricConfigResponse.Schedule.Pattern getExclusionPatterns​(int index)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
        Specified by:
        getExclusionPatterns in interface MetricConfigResponse.ScheduleOrBuilder
      • setExclusionPatterns

        public MetricConfigResponse.Schedule.Builder setExclusionPatterns​(int index,
                                                                          MetricConfigResponse.Schedule.Pattern value)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • setExclusionPatterns

        public MetricConfigResponse.Schedule.Builder setExclusionPatterns​(int index,
                                                                          MetricConfigResponse.Schedule.Pattern.Builder builderForValue)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • addExclusionPatterns

        public MetricConfigResponse.Schedule.Builder addExclusionPatterns​(MetricConfigResponse.Schedule.Pattern value)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • addExclusionPatterns

        public MetricConfigResponse.Schedule.Builder addExclusionPatterns​(int index,
                                                                          MetricConfigResponse.Schedule.Pattern value)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • addExclusionPatterns

        public MetricConfigResponse.Schedule.Builder addExclusionPatterns​(MetricConfigResponse.Schedule.Pattern.Builder builderForValue)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • addExclusionPatterns

        public MetricConfigResponse.Schedule.Builder addExclusionPatterns​(int index,
                                                                          MetricConfigResponse.Schedule.Pattern.Builder builderForValue)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • addAllExclusionPatterns

        public MetricConfigResponse.Schedule.Builder addAllExclusionPatterns​(Iterable<? extends MetricConfigResponse.Schedule.Pattern> values)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • clearExclusionPatterns

        public MetricConfigResponse.Schedule.Builder clearExclusionPatterns()
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • removeExclusionPatterns

        public MetricConfigResponse.Schedule.Builder removeExclusionPatterns​(int index)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • getExclusionPatternsBuilder

        public MetricConfigResponse.Schedule.Pattern.Builder getExclusionPatternsBuilder​(int index)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • addExclusionPatternsBuilder

        public MetricConfigResponse.Schedule.Pattern.Builder addExclusionPatternsBuilder()
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • addExclusionPatternsBuilder

        public MetricConfigResponse.Schedule.Pattern.Builder addExclusionPatternsBuilder​(int index)
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • getExclusionPatternsBuilderList

        public List<MetricConfigResponse.Schedule.Pattern.Builder> getExclusionPatternsBuilderList()
         Metrics with names that match a rule in the inclusion_patterns are
         targeted by this schedule. Metrics that match the exclusion_patterns
         are not targeted for this schedule, even if they match an inclusion
         pattern.
         
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern exclusion_patterns = 1;
      • clearInclusionPatterns

        public MetricConfigResponse.Schedule.Builder clearInclusionPatterns()
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern inclusion_patterns = 2;
      • removeInclusionPatterns

        public MetricConfigResponse.Schedule.Builder removeInclusionPatterns​(int index)
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern inclusion_patterns = 2;
      • getInclusionPatternsBuilder

        public MetricConfigResponse.Schedule.Pattern.Builder getInclusionPatternsBuilder​(int index)
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern inclusion_patterns = 2;
      • addInclusionPatternsBuilder

        public MetricConfigResponse.Schedule.Pattern.Builder addInclusionPatternsBuilder()
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern inclusion_patterns = 2;
      • addInclusionPatternsBuilder

        public MetricConfigResponse.Schedule.Pattern.Builder addInclusionPatternsBuilder​(int index)
        repeated .opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern inclusion_patterns = 2;
      • setPeriodSec

        public MetricConfigResponse.Schedule.Builder setPeriodSec​(int value)
         Describes the collection period for each metric in seconds.
         A period of 0 means to not export.
         
        int32 period_sec = 3;
      • clearPeriodSec

        public MetricConfigResponse.Schedule.Builder clearPeriodSec()
         Describes the collection period for each metric in seconds.
         A period of 0 means to not export.
         
        int32 period_sec = 3;