Class View.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ViewOrBuilder, Cloneable
    Enclosing class:
    View

    public static final class View.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<View.Builder>
    implements ViewOrBuilder
    Protobuf type opencensus.proto.stats.v1.View
    • 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<View.Builder>
      • clear

        public View.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<View.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<View.Builder>
      • getDefaultInstanceForType

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

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

        public View buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public View.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<View.Builder>
      • setField

        public View.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<View.Builder>
      • clearField

        public View.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<View.Builder>
      • clearOneof

        public View.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<View.Builder>
      • setRepeatedField

        public View.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             int index,
                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<View.Builder>
      • addRepeatedField

        public View.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<View.Builder>
      • mergeFrom

        public View.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<View.Builder>
      • isInitialized

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

        public View.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<View.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         A string by which the View will be referred to, e.g. "rpc_latency". Names MUST be unique
         within the library.
         
        string name = 1;
        Specified by:
        getName in interface ViewOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         A string by which the View will be referred to, e.g. "rpc_latency". Names MUST be unique
         within the library.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ViewOrBuilder
        Returns:
        The bytes for name.
      • setName

        public View.Builder setName​(String value)
         A string by which the View will be referred to, e.g. "rpc_latency". Names MUST be unique
         within the library.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public View.Builder clearName()
         A string by which the View will be referred to, e.g. "rpc_latency". Names MUST be unique
         within the library.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public View.Builder setNameBytes​(com.google.protobuf.ByteString value)
         A string by which the View will be referred to, e.g. "rpc_latency". Names MUST be unique
         within the library.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         Describes the view, e.g. "RPC latency distribution"
         
        string description = 2;
        Specified by:
        getDescription in interface ViewOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Describes the view, e.g. "RPC latency distribution"
         
        string description = 2;
        Specified by:
        getDescriptionBytes in interface ViewOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public View.Builder setDescription​(String value)
         Describes the view, e.g. "RPC latency distribution"
         
        string description = 2;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public View.Builder clearDescription()
         Describes the view, e.g. "RPC latency distribution"
         
        string description = 2;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public View.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Describes the view, e.g. "RPC latency distribution"
         
        string description = 2;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasMeasure

        public boolean hasMeasure()
         The Measure to which this view is applied.
         
        .opencensus.proto.stats.v1.Measure measure = 3;
        Specified by:
        hasMeasure in interface ViewOrBuilder
        Returns:
        Whether the measure field is set.
      • getMeasure

        public Measure getMeasure()
         The Measure to which this view is applied.
         
        .opencensus.proto.stats.v1.Measure measure = 3;
        Specified by:
        getMeasure in interface ViewOrBuilder
        Returns:
        The measure.
      • setMeasure

        public View.Builder setMeasure​(Measure value)
         The Measure to which this view is applied.
         
        .opencensus.proto.stats.v1.Measure measure = 3;
      • setMeasure

        public View.Builder setMeasure​(Measure.Builder builderForValue)
         The Measure to which this view is applied.
         
        .opencensus.proto.stats.v1.Measure measure = 3;
      • mergeMeasure

        public View.Builder mergeMeasure​(Measure value)
         The Measure to which this view is applied.
         
        .opencensus.proto.stats.v1.Measure measure = 3;
      • clearMeasure

        public View.Builder clearMeasure()
         The Measure to which this view is applied.
         
        .opencensus.proto.stats.v1.Measure measure = 3;
      • getMeasureBuilder

        public Measure.Builder getMeasureBuilder()
         The Measure to which this view is applied.
         
        .opencensus.proto.stats.v1.Measure measure = 3;
      • getColumnsList

        public com.google.protobuf.ProtocolStringList getColumnsList()
         An array of tag keys. These values associated with tags of this name form the basis by which
         individual stats will be aggregated (one aggregation per unique tag value). If none are
         provided, then all data is recorded in a single aggregation.
         
        repeated string columns = 4;
        Specified by:
        getColumnsList in interface ViewOrBuilder
        Returns:
        A list containing the columns.
      • getColumnsCount

        public int getColumnsCount()
         An array of tag keys. These values associated with tags of this name form the basis by which
         individual stats will be aggregated (one aggregation per unique tag value). If none are
         provided, then all data is recorded in a single aggregation.
         
        repeated string columns = 4;
        Specified by:
        getColumnsCount in interface ViewOrBuilder
        Returns:
        The count of columns.
      • getColumns

        public String getColumns​(int index)
         An array of tag keys. These values associated with tags of this name form the basis by which
         individual stats will be aggregated (one aggregation per unique tag value). If none are
         provided, then all data is recorded in a single aggregation.
         
        repeated string columns = 4;
        Specified by:
        getColumns in interface ViewOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The columns at the given index.
      • getColumnsBytes

        public com.google.protobuf.ByteString getColumnsBytes​(int index)
         An array of tag keys. These values associated with tags of this name form the basis by which
         individual stats will be aggregated (one aggregation per unique tag value). If none are
         provided, then all data is recorded in a single aggregation.
         
        repeated string columns = 4;
        Specified by:
        getColumnsBytes in interface ViewOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the columns at the given index.
      • setColumns

        public View.Builder setColumns​(int index,
                                       String value)
         An array of tag keys. These values associated with tags of this name form the basis by which
         individual stats will be aggregated (one aggregation per unique tag value). If none are
         provided, then all data is recorded in a single aggregation.
         
        repeated string columns = 4;
        Parameters:
        index - The index to set the value at.
        value - The columns to set.
        Returns:
        This builder for chaining.
      • addColumns

        public View.Builder addColumns​(String value)
         An array of tag keys. These values associated with tags of this name form the basis by which
         individual stats will be aggregated (one aggregation per unique tag value). If none are
         provided, then all data is recorded in a single aggregation.
         
        repeated string columns = 4;
        Parameters:
        value - The columns to add.
        Returns:
        This builder for chaining.
      • addAllColumns

        public View.Builder addAllColumns​(Iterable<String> values)
         An array of tag keys. These values associated with tags of this name form the basis by which
         individual stats will be aggregated (one aggregation per unique tag value). If none are
         provided, then all data is recorded in a single aggregation.
         
        repeated string columns = 4;
        Parameters:
        values - The columns to add.
        Returns:
        This builder for chaining.
      • clearColumns

        public View.Builder clearColumns()
         An array of tag keys. These values associated with tags of this name form the basis by which
         individual stats will be aggregated (one aggregation per unique tag value). If none are
         provided, then all data is recorded in a single aggregation.
         
        repeated string columns = 4;
        Returns:
        This builder for chaining.
      • addColumnsBytes

        public View.Builder addColumnsBytes​(com.google.protobuf.ByteString value)
         An array of tag keys. These values associated with tags of this name form the basis by which
         individual stats will be aggregated (one aggregation per unique tag value). If none are
         provided, then all data is recorded in a single aggregation.
         
        repeated string columns = 4;
        Parameters:
        value - The bytes of the columns to add.
        Returns:
        This builder for chaining.
      • hasCountAggregation

        public boolean hasCountAggregation()
         Counts the number of measurements recorded.
         
        .opencensus.proto.stats.v1.CountAggregation count_aggregation = 5;
        Specified by:
        hasCountAggregation in interface ViewOrBuilder
        Returns:
        Whether the countAggregation field is set.
      • getCountAggregation

        public CountAggregation getCountAggregation()
         Counts the number of measurements recorded.
         
        .opencensus.proto.stats.v1.CountAggregation count_aggregation = 5;
        Specified by:
        getCountAggregation in interface ViewOrBuilder
        Returns:
        The countAggregation.
      • setCountAggregation

        public View.Builder setCountAggregation​(CountAggregation value)
         Counts the number of measurements recorded.
         
        .opencensus.proto.stats.v1.CountAggregation count_aggregation = 5;
      • setCountAggregation

        public View.Builder setCountAggregation​(CountAggregation.Builder builderForValue)
         Counts the number of measurements recorded.
         
        .opencensus.proto.stats.v1.CountAggregation count_aggregation = 5;
      • mergeCountAggregation

        public View.Builder mergeCountAggregation​(CountAggregation value)
         Counts the number of measurements recorded.
         
        .opencensus.proto.stats.v1.CountAggregation count_aggregation = 5;
      • clearCountAggregation

        public View.Builder clearCountAggregation()
         Counts the number of measurements recorded.
         
        .opencensus.proto.stats.v1.CountAggregation count_aggregation = 5;
      • getCountAggregationBuilder

        public CountAggregation.Builder getCountAggregationBuilder()
         Counts the number of measurements recorded.
         
        .opencensus.proto.stats.v1.CountAggregation count_aggregation = 5;
      • hasSumAggregation

        public boolean hasSumAggregation()
         Indicates that data collected and aggregated with this Aggregation will be summed up.
         
        .opencensus.proto.stats.v1.SumAggregation sum_aggregation = 6;
        Specified by:
        hasSumAggregation in interface ViewOrBuilder
        Returns:
        Whether the sumAggregation field is set.
      • getSumAggregation

        public SumAggregation getSumAggregation()
         Indicates that data collected and aggregated with this Aggregation will be summed up.
         
        .opencensus.proto.stats.v1.SumAggregation sum_aggregation = 6;
        Specified by:
        getSumAggregation in interface ViewOrBuilder
        Returns:
        The sumAggregation.
      • setSumAggregation

        public View.Builder setSumAggregation​(SumAggregation value)
         Indicates that data collected and aggregated with this Aggregation will be summed up.
         
        .opencensus.proto.stats.v1.SumAggregation sum_aggregation = 6;
      • setSumAggregation

        public View.Builder setSumAggregation​(SumAggregation.Builder builderForValue)
         Indicates that data collected and aggregated with this Aggregation will be summed up.
         
        .opencensus.proto.stats.v1.SumAggregation sum_aggregation = 6;
      • mergeSumAggregation

        public View.Builder mergeSumAggregation​(SumAggregation value)
         Indicates that data collected and aggregated with this Aggregation will be summed up.
         
        .opencensus.proto.stats.v1.SumAggregation sum_aggregation = 6;
      • clearSumAggregation

        public View.Builder clearSumAggregation()
         Indicates that data collected and aggregated with this Aggregation will be summed up.
         
        .opencensus.proto.stats.v1.SumAggregation sum_aggregation = 6;
      • getSumAggregationBuilder

        public SumAggregation.Builder getSumAggregationBuilder()
         Indicates that data collected and aggregated with this Aggregation will be summed up.
         
        .opencensus.proto.stats.v1.SumAggregation sum_aggregation = 6;
      • hasLastValueAggregation

        public boolean hasLastValueAggregation()
         Indicates that data collected and aggregated with this Aggregation will represent the last
         recorded value. This is useful to support Gauges.
         
        .opencensus.proto.stats.v1.LastValueAggregation last_value_aggregation = 7;
        Specified by:
        hasLastValueAggregation in interface ViewOrBuilder
        Returns:
        Whether the lastValueAggregation field is set.
      • getLastValueAggregation

        public LastValueAggregation getLastValueAggregation()
         Indicates that data collected and aggregated with this Aggregation will represent the last
         recorded value. This is useful to support Gauges.
         
        .opencensus.proto.stats.v1.LastValueAggregation last_value_aggregation = 7;
        Specified by:
        getLastValueAggregation in interface ViewOrBuilder
        Returns:
        The lastValueAggregation.
      • setLastValueAggregation

        public View.Builder setLastValueAggregation​(LastValueAggregation value)
         Indicates that data collected and aggregated with this Aggregation will represent the last
         recorded value. This is useful to support Gauges.
         
        .opencensus.proto.stats.v1.LastValueAggregation last_value_aggregation = 7;
      • setLastValueAggregation

        public View.Builder setLastValueAggregation​(LastValueAggregation.Builder builderForValue)
         Indicates that data collected and aggregated with this Aggregation will represent the last
         recorded value. This is useful to support Gauges.
         
        .opencensus.proto.stats.v1.LastValueAggregation last_value_aggregation = 7;
      • mergeLastValueAggregation

        public View.Builder mergeLastValueAggregation​(LastValueAggregation value)
         Indicates that data collected and aggregated with this Aggregation will represent the last
         recorded value. This is useful to support Gauges.
         
        .opencensus.proto.stats.v1.LastValueAggregation last_value_aggregation = 7;
      • clearLastValueAggregation

        public View.Builder clearLastValueAggregation()
         Indicates that data collected and aggregated with this Aggregation will represent the last
         recorded value. This is useful to support Gauges.
         
        .opencensus.proto.stats.v1.LastValueAggregation last_value_aggregation = 7;
      • getLastValueAggregationBuilder

        public LastValueAggregation.Builder getLastValueAggregationBuilder()
         Indicates that data collected and aggregated with this Aggregation will represent the last
         recorded value. This is useful to support Gauges.
         
        .opencensus.proto.stats.v1.LastValueAggregation last_value_aggregation = 7;
      • getLastValueAggregationOrBuilder

        public LastValueAggregationOrBuilder getLastValueAggregationOrBuilder()
         Indicates that data collected and aggregated with this Aggregation will represent the last
         recorded value. This is useful to support Gauges.
         
        .opencensus.proto.stats.v1.LastValueAggregation last_value_aggregation = 7;
        Specified by:
        getLastValueAggregationOrBuilder in interface ViewOrBuilder
      • hasDistributionAggregation

        public boolean hasDistributionAggregation()
         Indicates that the desired Aggregation is a histogram distribution. A distribution
         Aggregation may contain a histogram of the values in the population. User should define the
         bucket boundaries for that histogram (see DistributionAggregation).
         
        .opencensus.proto.stats.v1.DistributionAggregation distribution_aggregation = 8;
        Specified by:
        hasDistributionAggregation in interface ViewOrBuilder
        Returns:
        Whether the distributionAggregation field is set.
      • getDistributionAggregation

        public DistributionAggregation getDistributionAggregation()
         Indicates that the desired Aggregation is a histogram distribution. A distribution
         Aggregation may contain a histogram of the values in the population. User should define the
         bucket boundaries for that histogram (see DistributionAggregation).
         
        .opencensus.proto.stats.v1.DistributionAggregation distribution_aggregation = 8;
        Specified by:
        getDistributionAggregation in interface ViewOrBuilder
        Returns:
        The distributionAggregation.
      • setDistributionAggregation

        public View.Builder setDistributionAggregation​(DistributionAggregation value)
         Indicates that the desired Aggregation is a histogram distribution. A distribution
         Aggregation may contain a histogram of the values in the population. User should define the
         bucket boundaries for that histogram (see DistributionAggregation).
         
        .opencensus.proto.stats.v1.DistributionAggregation distribution_aggregation = 8;
      • setDistributionAggregation

        public View.Builder setDistributionAggregation​(DistributionAggregation.Builder builderForValue)
         Indicates that the desired Aggregation is a histogram distribution. A distribution
         Aggregation may contain a histogram of the values in the population. User should define the
         bucket boundaries for that histogram (see DistributionAggregation).
         
        .opencensus.proto.stats.v1.DistributionAggregation distribution_aggregation = 8;
      • mergeDistributionAggregation

        public View.Builder mergeDistributionAggregation​(DistributionAggregation value)
         Indicates that the desired Aggregation is a histogram distribution. A distribution
         Aggregation may contain a histogram of the values in the population. User should define the
         bucket boundaries for that histogram (see DistributionAggregation).
         
        .opencensus.proto.stats.v1.DistributionAggregation distribution_aggregation = 8;
      • clearDistributionAggregation

        public View.Builder clearDistributionAggregation()
         Indicates that the desired Aggregation is a histogram distribution. A distribution
         Aggregation may contain a histogram of the values in the population. User should define the
         bucket boundaries for that histogram (see DistributionAggregation).
         
        .opencensus.proto.stats.v1.DistributionAggregation distribution_aggregation = 8;
      • getDistributionAggregationBuilder

        public DistributionAggregation.Builder getDistributionAggregationBuilder()
         Indicates that the desired Aggregation is a histogram distribution. A distribution
         Aggregation may contain a histogram of the values in the population. User should define the
         bucket boundaries for that histogram (see DistributionAggregation).
         
        .opencensus.proto.stats.v1.DistributionAggregation distribution_aggregation = 8;
      • getDistributionAggregationOrBuilder

        public DistributionAggregationOrBuilder getDistributionAggregationOrBuilder()
         Indicates that the desired Aggregation is a histogram distribution. A distribution
         Aggregation may contain a histogram of the values in the population. User should define the
         bucket boundaries for that histogram (see DistributionAggregation).
         
        .opencensus.proto.stats.v1.DistributionAggregation distribution_aggregation = 8;
        Specified by:
        getDistributionAggregationOrBuilder in interface ViewOrBuilder
      • setUnknownFields

        public final View.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<View.Builder>
      • mergeUnknownFields

        public final View.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<View.Builder>