Class View

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ViewOrBuilder, Serializable

    public final class View
    extends com.google.protobuf.GeneratedMessageV3
    implements ViewOrBuilder
    Protobuf type opencensus.proto.stats.v1.View
    See Also:
    Serialized Form
    • Field Detail

      • DESCRIPTION_FIELD_NUMBER

        public static final int DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COUNT_AGGREGATION_FIELD_NUMBER

        public static final int COUNT_AGGREGATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SUM_AGGREGATION_FIELD_NUMBER

        public static final int SUM_AGGREGATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_VALUE_AGGREGATION_FIELD_NUMBER

        public static final int LAST_VALUE_AGGREGATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DISTRIBUTION_AGGREGATION_FIELD_NUMBER

        public static final int DISTRIBUTION_AGGREGATION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static View parseFrom​(ByteBuffer data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static View parseFrom​(ByteBuffer data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static View parseFrom​(com.google.protobuf.ByteString data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static View parseFrom​(com.google.protobuf.ByteString data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static View parseFrom​(byte[] data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static View parseFrom​(byte[] data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static View parseFrom​(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected View.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static View getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<View> parser()
      • getParserForType

        public com.google.protobuf.Parser<View> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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