Package io.opencensus.proto.metrics.v1
Class SummaryValue.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Builder>
-
- io.opencensus.proto.metrics.v1.SummaryValue.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SummaryValueOrBuilder,Cloneable
- Enclosing class:
- SummaryValue
public static final class SummaryValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Builder> implements SummaryValueOrBuilder
The start_timestamp only applies to the count and sum in the SummaryValue.
Protobuf typeopencensus.proto.metrics.v1.SummaryValue
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SummaryValue.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SummaryValuebuild()SummaryValuebuildPartial()SummaryValue.Builderclear()SummaryValue.BuilderclearCount()The total number of recorded values since start_time.SummaryValue.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SummaryValue.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SummaryValue.BuilderclearSnapshot()Values calculated over an arbitrary time window.SummaryValue.BuilderclearSum()The total sum of recorded values since start_time.SummaryValue.Builderclone()com.google.protobuf.Int64ValuegetCount()The total number of recorded values since start_time.com.google.protobuf.Int64Value.BuildergetCountBuilder()The total number of recorded values since start_time.com.google.protobuf.Int64ValueOrBuildergetCountOrBuilder()The total number of recorded values since start_time.SummaryValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()SummaryValue.SnapshotgetSnapshot()Values calculated over an arbitrary time window.SummaryValue.Snapshot.BuildergetSnapshotBuilder()Values calculated over an arbitrary time window.SummaryValue.SnapshotOrBuildergetSnapshotOrBuilder()Values calculated over an arbitrary time window.com.google.protobuf.DoubleValuegetSum()The total sum of recorded values since start_time.com.google.protobuf.DoubleValue.BuildergetSumBuilder()The total sum of recorded values since start_time.com.google.protobuf.DoubleValueOrBuildergetSumOrBuilder()The total sum of recorded values since start_time.booleanhasCount()The total number of recorded values since start_time.booleanhasSnapshot()Values calculated over an arbitrary time window.booleanhasSum()The total sum of recorded values since start_time.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SummaryValue.BuildermergeCount(com.google.protobuf.Int64Value value)The total number of recorded values since start_time.SummaryValue.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SummaryValue.BuildermergeFrom(com.google.protobuf.Message other)SummaryValue.BuildermergeFrom(SummaryValue other)SummaryValue.BuildermergeSnapshot(SummaryValue.Snapshot value)Values calculated over an arbitrary time window.SummaryValue.BuildermergeSum(com.google.protobuf.DoubleValue value)The total sum of recorded values since start_time.SummaryValue.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SummaryValue.BuildersetCount(com.google.protobuf.Int64Value value)The total number of recorded values since start_time.SummaryValue.BuildersetCount(com.google.protobuf.Int64Value.Builder builderForValue)The total number of recorded values since start_time.SummaryValue.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SummaryValue.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SummaryValue.BuildersetSnapshot(SummaryValue.Snapshot value)Values calculated over an arbitrary time window.SummaryValue.BuildersetSnapshot(SummaryValue.Snapshot.Builder builderForValue)Values calculated over an arbitrary time window.SummaryValue.BuildersetSum(com.google.protobuf.DoubleValue value)The total sum of recorded values since start_time.SummaryValue.BuildersetSum(com.google.protobuf.DoubleValue.Builder builderForValue)The total sum of recorded values since start_time.SummaryValue.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<SummaryValue.Builder>
-
clear
public SummaryValue.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<SummaryValue.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<SummaryValue.Builder>
-
getDefaultInstanceForType
public SummaryValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SummaryValue build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SummaryValue buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SummaryValue.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<SummaryValue.Builder>
-
setField
public SummaryValue.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<SummaryValue.Builder>
-
clearField
public SummaryValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Builder>
-
clearOneof
public SummaryValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Builder>
-
setRepeatedField
public SummaryValue.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<SummaryValue.Builder>
-
addRepeatedField
public SummaryValue.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<SummaryValue.Builder>
-
mergeFrom
public SummaryValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SummaryValue.Builder>
-
mergeFrom
public SummaryValue.Builder mergeFrom(SummaryValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Builder>
-
mergeFrom
public SummaryValue.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<SummaryValue.Builder>- Throws:
IOException
-
hasCount
public boolean hasCount()
The total number of recorded values since start_time. Optional since some systems don't expose this.
.google.protobuf.Int64Value count = 1;- Specified by:
hasCountin interfaceSummaryValueOrBuilder- Returns:
- Whether the count field is set.
-
getCount
public com.google.protobuf.Int64Value getCount()
The total number of recorded values since start_time. Optional since some systems don't expose this.
.google.protobuf.Int64Value count = 1;- Specified by:
getCountin interfaceSummaryValueOrBuilder- Returns:
- The count.
-
setCount
public SummaryValue.Builder setCount(com.google.protobuf.Int64Value value)
The total number of recorded values since start_time. Optional since some systems don't expose this.
.google.protobuf.Int64Value count = 1;
-
setCount
public SummaryValue.Builder setCount(com.google.protobuf.Int64Value.Builder builderForValue)
The total number of recorded values since start_time. Optional since some systems don't expose this.
.google.protobuf.Int64Value count = 1;
-
mergeCount
public SummaryValue.Builder mergeCount(com.google.protobuf.Int64Value value)
The total number of recorded values since start_time. Optional since some systems don't expose this.
.google.protobuf.Int64Value count = 1;
-
clearCount
public SummaryValue.Builder clearCount()
The total number of recorded values since start_time. Optional since some systems don't expose this.
.google.protobuf.Int64Value count = 1;
-
getCountBuilder
public com.google.protobuf.Int64Value.Builder getCountBuilder()
The total number of recorded values since start_time. Optional since some systems don't expose this.
.google.protobuf.Int64Value count = 1;
-
getCountOrBuilder
public com.google.protobuf.Int64ValueOrBuilder getCountOrBuilder()
The total number of recorded values since start_time. Optional since some systems don't expose this.
.google.protobuf.Int64Value count = 1;- Specified by:
getCountOrBuilderin interfaceSummaryValueOrBuilder
-
hasSum
public boolean hasSum()
The total sum of recorded values since start_time. Optional since some systems don't expose this. If count is zero then this field must be zero. This field must be unset if the sum is not available.
.google.protobuf.DoubleValue sum = 2;- Specified by:
hasSumin interfaceSummaryValueOrBuilder- Returns:
- Whether the sum field is set.
-
getSum
public com.google.protobuf.DoubleValue getSum()
The total sum of recorded values since start_time. Optional since some systems don't expose this. If count is zero then this field must be zero. This field must be unset if the sum is not available.
.google.protobuf.DoubleValue sum = 2;- Specified by:
getSumin interfaceSummaryValueOrBuilder- Returns:
- The sum.
-
setSum
public SummaryValue.Builder setSum(com.google.protobuf.DoubleValue value)
The total sum of recorded values since start_time. Optional since some systems don't expose this. If count is zero then this field must be zero. This field must be unset if the sum is not available.
.google.protobuf.DoubleValue sum = 2;
-
setSum
public SummaryValue.Builder setSum(com.google.protobuf.DoubleValue.Builder builderForValue)
The total sum of recorded values since start_time. Optional since some systems don't expose this. If count is zero then this field must be zero. This field must be unset if the sum is not available.
.google.protobuf.DoubleValue sum = 2;
-
mergeSum
public SummaryValue.Builder mergeSum(com.google.protobuf.DoubleValue value)
The total sum of recorded values since start_time. Optional since some systems don't expose this. If count is zero then this field must be zero. This field must be unset if the sum is not available.
.google.protobuf.DoubleValue sum = 2;
-
clearSum
public SummaryValue.Builder clearSum()
The total sum of recorded values since start_time. Optional since some systems don't expose this. If count is zero then this field must be zero. This field must be unset if the sum is not available.
.google.protobuf.DoubleValue sum = 2;
-
getSumBuilder
public com.google.protobuf.DoubleValue.Builder getSumBuilder()
The total sum of recorded values since start_time. Optional since some systems don't expose this. If count is zero then this field must be zero. This field must be unset if the sum is not available.
.google.protobuf.DoubleValue sum = 2;
-
getSumOrBuilder
public com.google.protobuf.DoubleValueOrBuilder getSumOrBuilder()
The total sum of recorded values since start_time. Optional since some systems don't expose this. If count is zero then this field must be zero. This field must be unset if the sum is not available.
.google.protobuf.DoubleValue sum = 2;- Specified by:
getSumOrBuilderin interfaceSummaryValueOrBuilder
-
hasSnapshot
public boolean hasSnapshot()
Values calculated over an arbitrary time window.
.opencensus.proto.metrics.v1.SummaryValue.Snapshot snapshot = 3;- Specified by:
hasSnapshotin interfaceSummaryValueOrBuilder- Returns:
- Whether the snapshot field is set.
-
getSnapshot
public SummaryValue.Snapshot getSnapshot()
Values calculated over an arbitrary time window.
.opencensus.proto.metrics.v1.SummaryValue.Snapshot snapshot = 3;- Specified by:
getSnapshotin interfaceSummaryValueOrBuilder- Returns:
- The snapshot.
-
setSnapshot
public SummaryValue.Builder setSnapshot(SummaryValue.Snapshot value)
Values calculated over an arbitrary time window.
.opencensus.proto.metrics.v1.SummaryValue.Snapshot snapshot = 3;
-
setSnapshot
public SummaryValue.Builder setSnapshot(SummaryValue.Snapshot.Builder builderForValue)
Values calculated over an arbitrary time window.
.opencensus.proto.metrics.v1.SummaryValue.Snapshot snapshot = 3;
-
mergeSnapshot
public SummaryValue.Builder mergeSnapshot(SummaryValue.Snapshot value)
Values calculated over an arbitrary time window.
.opencensus.proto.metrics.v1.SummaryValue.Snapshot snapshot = 3;
-
clearSnapshot
public SummaryValue.Builder clearSnapshot()
Values calculated over an arbitrary time window.
.opencensus.proto.metrics.v1.SummaryValue.Snapshot snapshot = 3;
-
getSnapshotBuilder
public SummaryValue.Snapshot.Builder getSnapshotBuilder()
Values calculated over an arbitrary time window.
.opencensus.proto.metrics.v1.SummaryValue.Snapshot snapshot = 3;
-
getSnapshotOrBuilder
public SummaryValue.SnapshotOrBuilder getSnapshotOrBuilder()
Values calculated over an arbitrary time window.
.opencensus.proto.metrics.v1.SummaryValue.Snapshot snapshot = 3;- Specified by:
getSnapshotOrBuilderin interfaceSummaryValueOrBuilder
-
setUnknownFields
public final SummaryValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Builder>
-
mergeUnknownFields
public final SummaryValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Builder>
-
-