Class SummaryValue.Snapshot.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SummaryValue.SnapshotOrBuilder, Cloneable
    Enclosing class:
    SummaryValue.Snapshot

    public static final class SummaryValue.Snapshot.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
    implements SummaryValue.SnapshotOrBuilder
     The values in this message can be reset at arbitrary unknown times, with
     the requirement that all of them are reset at the same time.
     
    Protobuf type opencensus.proto.metrics.v1.SummaryValue.Snapshot
    • Method Detail

      • 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.Builder<SummaryValue.Snapshot.Builder>
      • clear

        public SummaryValue.Snapshot.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
      • getDefaultInstanceForType

        public SummaryValue.Snapshot getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SummaryValue.Snapshot build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SummaryValue.Snapshot buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public SummaryValue.Snapshot.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
      • clearField

        public SummaryValue.Snapshot.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
      • clearOneof

        public SummaryValue.Snapshot.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
      • setRepeatedField

        public SummaryValue.Snapshot.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
      • addRepeatedField

        public SummaryValue.Snapshot.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
      • mergeFrom

        public SummaryValue.Snapshot.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SummaryValue.Snapshot.Builder>
        Throws:
        IOException
      • hasCount

        public boolean hasCount()
         The number of values in the snapshot. Optional since some systems don't
         expose this.
         
        .google.protobuf.Int64Value count = 1;
        Specified by:
        hasCount in interface SummaryValue.SnapshotOrBuilder
        Returns:
        Whether the count field is set.
      • getCount

        public com.google.protobuf.Int64Value getCount()
         The number of values in the snapshot. Optional since some systems don't
         expose this.
         
        .google.protobuf.Int64Value count = 1;
        Specified by:
        getCount in interface SummaryValue.SnapshotOrBuilder
        Returns:
        The count.
      • setCount

        public SummaryValue.Snapshot.Builder setCount​(com.google.protobuf.Int64Value value)
         The number of values in the snapshot. Optional since some systems don't
         expose this.
         
        .google.protobuf.Int64Value count = 1;
      • setCount

        public SummaryValue.Snapshot.Builder setCount​(com.google.protobuf.Int64Value.Builder builderForValue)
         The number of values in the snapshot. Optional since some systems don't
         expose this.
         
        .google.protobuf.Int64Value count = 1;
      • mergeCount

        public SummaryValue.Snapshot.Builder mergeCount​(com.google.protobuf.Int64Value value)
         The number of values in the snapshot. Optional since some systems don't
         expose this.
         
        .google.protobuf.Int64Value count = 1;
      • clearCount

        public SummaryValue.Snapshot.Builder clearCount()
         The number of values in the snapshot. Optional since some systems don't
         expose this.
         
        .google.protobuf.Int64Value count = 1;
      • getCountBuilder

        public com.google.protobuf.Int64Value.Builder getCountBuilder()
         The number of values in the snapshot. Optional since some systems don't
         expose this.
         
        .google.protobuf.Int64Value count = 1;
      • getCountOrBuilder

        public com.google.protobuf.Int64ValueOrBuilder getCountOrBuilder()
         The number of values in the snapshot. Optional since some systems don't
         expose this.
         
        .google.protobuf.Int64Value count = 1;
        Specified by:
        getCountOrBuilder in interface SummaryValue.SnapshotOrBuilder
      • hasSum

        public boolean hasSum()
         The sum of values in the snapshot. Optional since some systems don't
         expose this. If count is zero then this field must be zero or not set
         (if not supported).
         
        .google.protobuf.DoubleValue sum = 2;
        Specified by:
        hasSum in interface SummaryValue.SnapshotOrBuilder
        Returns:
        Whether the sum field is set.
      • getSum

        public com.google.protobuf.DoubleValue getSum()
         The sum of values in the snapshot. Optional since some systems don't
         expose this. If count is zero then this field must be zero or not set
         (if not supported).
         
        .google.protobuf.DoubleValue sum = 2;
        Specified by:
        getSum in interface SummaryValue.SnapshotOrBuilder
        Returns:
        The sum.
      • setSum

        public SummaryValue.Snapshot.Builder setSum​(com.google.protobuf.DoubleValue value)
         The sum of values in the snapshot. Optional since some systems don't
         expose this. If count is zero then this field must be zero or not set
         (if not supported).
         
        .google.protobuf.DoubleValue sum = 2;
      • setSum

        public SummaryValue.Snapshot.Builder setSum​(com.google.protobuf.DoubleValue.Builder builderForValue)
         The sum of values in the snapshot. Optional since some systems don't
         expose this. If count is zero then this field must be zero or not set
         (if not supported).
         
        .google.protobuf.DoubleValue sum = 2;
      • mergeSum

        public SummaryValue.Snapshot.Builder mergeSum​(com.google.protobuf.DoubleValue value)
         The sum of values in the snapshot. Optional since some systems don't
         expose this. If count is zero then this field must be zero or not set
         (if not supported).
         
        .google.protobuf.DoubleValue sum = 2;
      • clearSum

        public SummaryValue.Snapshot.Builder clearSum()
         The sum of values in the snapshot. Optional since some systems don't
         expose this. If count is zero then this field must be zero or not set
         (if not supported).
         
        .google.protobuf.DoubleValue sum = 2;
      • getSumBuilder

        public com.google.protobuf.DoubleValue.Builder getSumBuilder()
         The sum of values in the snapshot. Optional since some systems don't
         expose this. If count is zero then this field must be zero or not set
         (if not supported).
         
        .google.protobuf.DoubleValue sum = 2;
      • getSumOrBuilder

        public com.google.protobuf.DoubleValueOrBuilder getSumOrBuilder()
         The sum of values in the snapshot. Optional since some systems don't
         expose this. If count is zero then this field must be zero or not set
         (if not supported).
         
        .google.protobuf.DoubleValue sum = 2;
        Specified by:
        getSumOrBuilder in interface SummaryValue.SnapshotOrBuilder
      • getPercentileValuesCount

        public int getPercentileValuesCount()
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
        Specified by:
        getPercentileValuesCount in interface SummaryValue.SnapshotOrBuilder
      • setPercentileValues

        public SummaryValue.Snapshot.Builder setPercentileValues​(int index,
                                                                 SummaryValue.Snapshot.ValueAtPercentile value)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • setPercentileValues

        public SummaryValue.Snapshot.Builder setPercentileValues​(int index,
                                                                 SummaryValue.Snapshot.ValueAtPercentile.Builder builderForValue)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • addPercentileValues

        public SummaryValue.Snapshot.Builder addPercentileValues​(SummaryValue.Snapshot.ValueAtPercentile value)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • addPercentileValues

        public SummaryValue.Snapshot.Builder addPercentileValues​(int index,
                                                                 SummaryValue.Snapshot.ValueAtPercentile value)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • addPercentileValues

        public SummaryValue.Snapshot.Builder addPercentileValues​(SummaryValue.Snapshot.ValueAtPercentile.Builder builderForValue)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • addPercentileValues

        public SummaryValue.Snapshot.Builder addPercentileValues​(int index,
                                                                 SummaryValue.Snapshot.ValueAtPercentile.Builder builderForValue)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • addAllPercentileValues

        public SummaryValue.Snapshot.Builder addAllPercentileValues​(Iterable<? extends SummaryValue.Snapshot.ValueAtPercentile> values)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • clearPercentileValues

        public SummaryValue.Snapshot.Builder clearPercentileValues()
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • removePercentileValues

        public SummaryValue.Snapshot.Builder removePercentileValues​(int index)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • getPercentileValuesBuilder

        public SummaryValue.Snapshot.ValueAtPercentile.Builder getPercentileValuesBuilder​(int index)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • addPercentileValuesBuilder

        public SummaryValue.Snapshot.ValueAtPercentile.Builder addPercentileValuesBuilder()
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • addPercentileValuesBuilder

        public SummaryValue.Snapshot.ValueAtPercentile.Builder addPercentileValuesBuilder​(int index)
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • getPercentileValuesBuilderList

        public List<SummaryValue.Snapshot.ValueAtPercentile.Builder> getPercentileValuesBuilderList()
         A list of values at different percentiles of the distribution calculated
         from the current snapshot. The percentiles must be strictly increasing.
         
        repeated .opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile percentile_values = 3;
      • setUnknownFields

        public final SummaryValue.Snapshot.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>
      • mergeUnknownFields

        public final SummaryValue.Snapshot.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SummaryValue.Snapshot.Builder>