Class View

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

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

      Nested Classes 
      Modifier and Type Class Description
      static class  View.AggregationCase  
      static class  View.Builder
      Protobuf type opencensus.proto.stats.v1.View
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      View.AggregationCase getAggregationCase()  
      java.lang.String getColumns​(int index)
      An array of tag keys.
      com.google.protobuf.ByteString getColumnsBytes​(int index)
      An array of tag keys.
      int getColumnsCount()
      An array of tag keys.
      com.google.protobuf.ProtocolStringList getColumnsList()
      An array of tag keys.
      CountAggregation getCountAggregation()
      Counts the number of measurements recorded.
      CountAggregationOrBuilder getCountAggregationOrBuilder()
      Counts the number of measurements recorded.
      static View getDefaultInstance()  
      View getDefaultInstanceForType()  
      java.lang.String getDescription()
      Describes the view, e.g.
      com.google.protobuf.ByteString getDescriptionBytes()
      Describes the view, e.g.
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      DistributionAggregation getDistributionAggregation()
      Indicates that the desired Aggregation is a histogram distribution.
      DistributionAggregationOrBuilder getDistributionAggregationOrBuilder()
      Indicates that the desired Aggregation is a histogram distribution.
      LastValueAggregation getLastValueAggregation()
      Indicates that data collected and aggregated with this Aggregation will represent the last recorded value.
      LastValueAggregationOrBuilder getLastValueAggregationOrBuilder()
      Indicates that data collected and aggregated with this Aggregation will represent the last recorded value.
      Measure getMeasure()
      The Measure to which this view is applied.
      MeasureOrBuilder getMeasureOrBuilder()
      The Measure to which this view is applied.
      java.lang.String getName()
      A string by which the View will be referred to, e.g.
      com.google.protobuf.ByteString getNameBytes()
      A string by which the View will be referred to, e.g.
      com.google.protobuf.Parser<View> getParserForType()  
      int getSerializedSize()  
      SumAggregation getSumAggregation()
      Indicates that data collected and aggregated with this Aggregation will be summed up.
      SumAggregationOrBuilder getSumAggregationOrBuilder()
      Indicates that data collected and aggregated with this Aggregation will be summed up.
      com.google.protobuf.UnknownFieldSet getUnknownFields()  
      boolean hasCountAggregation()
      Counts the number of measurements recorded.
      boolean hasDistributionAggregation()
      Indicates that the desired Aggregation is a histogram distribution.
      int hashCode()  
      boolean hasLastValueAggregation()
      Indicates that data collected and aggregated with this Aggregation will represent the last recorded value.
      boolean hasMeasure()
      The Measure to which this view is applied.
      boolean hasSumAggregation()
      Indicates that data collected and aggregated with this Aggregation will be summed up.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static View.Builder newBuilder()  
      static View.Builder newBuilder​(View prototype)  
      View.Builder newBuilderForType()  
      protected View.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static View parseDelimitedFrom​(java.io.InputStream input)  
      static View parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static View parseFrom​(byte[] data)  
      static View parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static View parseFrom​(com.google.protobuf.ByteString data)  
      static View parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static View parseFrom​(com.google.protobuf.CodedInputStream input)  
      static View parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static View parseFrom​(java.io.InputStream input)  
      static View parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static View parseFrom​(java.nio.ByteBuffer data)  
      static View parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<View> parser()  
      View.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
    • 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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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​(java.nio.ByteBuffer data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static View parseFrom​(java.nio.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​(java.io.InputStream input)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static View parseFrom​(java.io.InputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static View parseDelimitedFrom​(java.io.InputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static View parseDelimitedFrom​(java.io.InputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static View parseFrom​(com.google.protobuf.CodedInputStream input)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static View parseFrom​(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws java.io.IOException
        Throws:
        java.io.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