Package io.opencensus.proto.metrics.v1
Class DistributionValue.Bucket.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
- io.opencensus.proto.metrics.v1.DistributionValue.Bucket.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DistributionValue.BucketOrBuilder,Cloneable
- Enclosing class:
- DistributionValue.Bucket
public static final class DistributionValue.Bucket.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder> implements DistributionValue.BucketOrBuilder
Protobuf typeopencensus.proto.metrics.v1.DistributionValue.Bucket
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributionValue.Bucket.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DistributionValue.Bucketbuild()DistributionValue.BucketbuildPartial()DistributionValue.Bucket.Builderclear()DistributionValue.Bucket.BuilderclearCount()The number of values in each bucket of the histogram, as described in bucket_bounds.DistributionValue.Bucket.BuilderclearExemplar()If the distribution does not have a histogram, then omit this field.DistributionValue.Bucket.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DistributionValue.Bucket.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DistributionValue.Bucket.Builderclone()longgetCount()The number of values in each bucket of the histogram, as described in bucket_bounds.DistributionValue.BucketgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DistributionValue.ExemplargetExemplar()If the distribution does not have a histogram, then omit this field.DistributionValue.Exemplar.BuildergetExemplarBuilder()If the distribution does not have a histogram, then omit this field.DistributionValue.ExemplarOrBuildergetExemplarOrBuilder()If the distribution does not have a histogram, then omit this field.booleanhasExemplar()If the distribution does not have a histogram, then omit this field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DistributionValue.Bucket.BuildermergeExemplar(DistributionValue.Exemplar value)If the distribution does not have a histogram, then omit this field.DistributionValue.Bucket.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DistributionValue.Bucket.BuildermergeFrom(com.google.protobuf.Message other)DistributionValue.Bucket.BuildermergeFrom(DistributionValue.Bucket other)DistributionValue.Bucket.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DistributionValue.Bucket.BuildersetCount(long value)The number of values in each bucket of the histogram, as described in bucket_bounds.DistributionValue.Bucket.BuildersetExemplar(DistributionValue.Exemplar value)If the distribution does not have a histogram, then omit this field.DistributionValue.Bucket.BuildersetExemplar(DistributionValue.Exemplar.Builder builderForValue)If the distribution does not have a histogram, then omit this field.DistributionValue.Bucket.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DistributionValue.Bucket.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DistributionValue.Bucket.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<DistributionValue.Bucket.Builder>
-
clear
public DistributionValue.Bucket.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
getDefaultInstanceForType
public DistributionValue.Bucket getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DistributionValue.Bucket build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DistributionValue.Bucket buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DistributionValue.Bucket.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
setField
public DistributionValue.Bucket.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
clearField
public DistributionValue.Bucket.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
clearOneof
public DistributionValue.Bucket.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
setRepeatedField
public DistributionValue.Bucket.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
addRepeatedField
public DistributionValue.Bucket.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
mergeFrom
public DistributionValue.Bucket.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DistributionValue.Bucket.Builder>
-
mergeFrom
public DistributionValue.Bucket.Builder mergeFrom(DistributionValue.Bucket other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
mergeFrom
public DistributionValue.Bucket.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DistributionValue.Bucket.Builder>- Throws:
IOException
-
getCount
public long getCount()
The number of values in each bucket of the histogram, as described in bucket_bounds.
int64 count = 1;- Specified by:
getCountin interfaceDistributionValue.BucketOrBuilder- Returns:
- The count.
-
setCount
public DistributionValue.Bucket.Builder setCount(long value)
The number of values in each bucket of the histogram, as described in bucket_bounds.
int64 count = 1;- Parameters:
value- The count to set.- Returns:
- This builder for chaining.
-
clearCount
public DistributionValue.Bucket.Builder clearCount()
The number of values in each bucket of the histogram, as described in bucket_bounds.
int64 count = 1;- Returns:
- This builder for chaining.
-
hasExemplar
public boolean hasExemplar()
If the distribution does not have a histogram, then omit this field.
.opencensus.proto.metrics.v1.DistributionValue.Exemplar exemplar = 2;- Specified by:
hasExemplarin interfaceDistributionValue.BucketOrBuilder- Returns:
- Whether the exemplar field is set.
-
getExemplar
public DistributionValue.Exemplar getExemplar()
If the distribution does not have a histogram, then omit this field.
.opencensus.proto.metrics.v1.DistributionValue.Exemplar exemplar = 2;- Specified by:
getExemplarin interfaceDistributionValue.BucketOrBuilder- Returns:
- The exemplar.
-
setExemplar
public DistributionValue.Bucket.Builder setExemplar(DistributionValue.Exemplar value)
If the distribution does not have a histogram, then omit this field.
.opencensus.proto.metrics.v1.DistributionValue.Exemplar exemplar = 2;
-
setExemplar
public DistributionValue.Bucket.Builder setExemplar(DistributionValue.Exemplar.Builder builderForValue)
If the distribution does not have a histogram, then omit this field.
.opencensus.proto.metrics.v1.DistributionValue.Exemplar exemplar = 2;
-
mergeExemplar
public DistributionValue.Bucket.Builder mergeExemplar(DistributionValue.Exemplar value)
If the distribution does not have a histogram, then omit this field.
.opencensus.proto.metrics.v1.DistributionValue.Exemplar exemplar = 2;
-
clearExemplar
public DistributionValue.Bucket.Builder clearExemplar()
If the distribution does not have a histogram, then omit this field.
.opencensus.proto.metrics.v1.DistributionValue.Exemplar exemplar = 2;
-
getExemplarBuilder
public DistributionValue.Exemplar.Builder getExemplarBuilder()
If the distribution does not have a histogram, then omit this field.
.opencensus.proto.metrics.v1.DistributionValue.Exemplar exemplar = 2;
-
getExemplarOrBuilder
public DistributionValue.ExemplarOrBuilder getExemplarOrBuilder()
If the distribution does not have a histogram, then omit this field.
.opencensus.proto.metrics.v1.DistributionValue.Exemplar exemplar = 2;- Specified by:
getExemplarOrBuilderin interfaceDistributionValue.BucketOrBuilder
-
setUnknownFields
public final DistributionValue.Bucket.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
mergeUnknownFields
public final DistributionValue.Bucket.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Bucket.Builder>
-
-