Package io.opencensus.proto.stats.v1
Class View
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.opencensus.proto.stats.v1.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 typeopencensus.proto.stats.v1.View- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classView.AggregationCasestatic classView.BuilderProtobuf typeopencensus.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
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLUMNS_FIELD_NUMBERstatic intCOUNT_AGGREGATION_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intDISTRIBUTION_AGGREGATION_FIELD_NUMBERstatic intLAST_VALUE_AGGREGATION_FIELD_NUMBERstatic intMEASURE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSUM_AGGREGATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)View.AggregationCasegetAggregationCase()StringgetColumns(int index)An array of tag keys.com.google.protobuf.ByteStringgetColumnsBytes(int index)An array of tag keys.intgetColumnsCount()An array of tag keys.com.google.protobuf.ProtocolStringListgetColumnsList()An array of tag keys.CountAggregationgetCountAggregation()Counts the number of measurements recorded.CountAggregationOrBuildergetCountAggregationOrBuilder()Counts the number of measurements recorded.static ViewgetDefaultInstance()ViewgetDefaultInstanceForType()StringgetDescription()Describes the view, e.g.com.google.protobuf.ByteStringgetDescriptionBytes()Describes the view, e.g.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DistributionAggregationgetDistributionAggregation()Indicates that the desired Aggregation is a histogram distribution.DistributionAggregationOrBuildergetDistributionAggregationOrBuilder()Indicates that the desired Aggregation is a histogram distribution.LastValueAggregationgetLastValueAggregation()Indicates that data collected and aggregated with this Aggregation will represent the last recorded value.LastValueAggregationOrBuildergetLastValueAggregationOrBuilder()Indicates that data collected and aggregated with this Aggregation will represent the last recorded value.MeasuregetMeasure()The Measure to which this view is applied.MeasureOrBuildergetMeasureOrBuilder()The Measure to which this view is applied.StringgetName()A string by which the View will be referred to, e.g.com.google.protobuf.ByteStringgetNameBytes()A string by which the View will be referred to, e.g.com.google.protobuf.Parser<View>getParserForType()intgetSerializedSize()SumAggregationgetSumAggregation()Indicates that data collected and aggregated with this Aggregation will be summed up.SumAggregationOrBuildergetSumAggregationOrBuilder()Indicates that data collected and aggregated with this Aggregation will be summed up.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasCountAggregation()Counts the number of measurements recorded.booleanhasDistributionAggregation()Indicates that the desired Aggregation is a histogram distribution.inthashCode()booleanhasLastValueAggregation()Indicates that data collected and aggregated with this Aggregation will represent the last recorded value.booleanhasMeasure()The Measure to which this view is applied.booleanhasSumAggregation()Indicates that data collected and aggregated with this Aggregation will be summed up.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static View.BuildernewBuilder()static View.BuildernewBuilder(View prototype)View.BuildernewBuilderForType()protected View.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ViewparseDelimitedFrom(InputStream input)static ViewparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ViewparseFrom(byte[] data)static ViewparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ViewparseFrom(com.google.protobuf.ByteString data)static ViewparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ViewparseFrom(com.google.protobuf.CodedInputStream input)static ViewparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ViewparseFrom(InputStream input)static ViewparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ViewparseFrom(ByteBuffer data)static ViewparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<View>parser()View.BuildertoBuilder()voidwriteTo(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
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEASURE_FIELD_NUMBER
public static final int MEASURE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COLUMNS_FIELD_NUMBER
public static final int COLUMNS_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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getAggregationCase
public View.AggregationCase getAggregationCase()
- Specified by:
getAggregationCasein interfaceViewOrBuilder
-
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:
getNamein interfaceViewOrBuilder- 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:
getNameBytesin interfaceViewOrBuilder- Returns:
- The bytes for name.
-
getDescription
public String getDescription()
Describes the view, e.g. "RPC latency distribution"
string description = 2;- Specified by:
getDescriptionin interfaceViewOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Describes the view, e.g. "RPC latency distribution"
string description = 2;- Specified by:
getDescriptionBytesin interfaceViewOrBuilder- 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:
hasMeasurein interfaceViewOrBuilder- 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:
getMeasurein interfaceViewOrBuilder- Returns:
- The measure.
-
getMeasureOrBuilder
public MeasureOrBuilder getMeasureOrBuilder()
The Measure to which this view is applied.
.opencensus.proto.stats.v1.Measure measure = 3;- Specified by:
getMeasureOrBuilderin interfaceViewOrBuilder
-
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:
getColumnsListin interfaceViewOrBuilder- 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:
getColumnsCountin interfaceViewOrBuilder- 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:
getColumnsin interfaceViewOrBuilder- 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:
getColumnsBytesin interfaceViewOrBuilder- 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:
hasCountAggregationin interfaceViewOrBuilder- 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:
getCountAggregationin interfaceViewOrBuilder- Returns:
- The countAggregation.
-
getCountAggregationOrBuilder
public CountAggregationOrBuilder getCountAggregationOrBuilder()
Counts the number of measurements recorded.
.opencensus.proto.stats.v1.CountAggregation count_aggregation = 5;- Specified by:
getCountAggregationOrBuilderin interfaceViewOrBuilder
-
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:
hasSumAggregationin interfaceViewOrBuilder- 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:
getSumAggregationin interfaceViewOrBuilder- Returns:
- The sumAggregation.
-
getSumAggregationOrBuilder
public SumAggregationOrBuilder getSumAggregationOrBuilder()
Indicates that data collected and aggregated with this Aggregation will be summed up.
.opencensus.proto.stats.v1.SumAggregation sum_aggregation = 6;- Specified by:
getSumAggregationOrBuilderin interfaceViewOrBuilder
-
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:
hasLastValueAggregationin interfaceViewOrBuilder- 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:
getLastValueAggregationin interfaceViewOrBuilder- 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:
getLastValueAggregationOrBuilderin interfaceViewOrBuilder
-
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:
hasDistributionAggregationin interfaceViewOrBuilder- 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:
getDistributionAggregationin interfaceViewOrBuilder- 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:
getDistributionAggregationOrBuilderin interfaceViewOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static View parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static View parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static View parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static View parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static View.Builder newBuilder()
-
newBuilder
public static View.Builder newBuilder(View prototype)
-
toBuilder
public View.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected View.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public View getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-