Class 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 type opencensus.proto.metrics.v1.SummaryValue
    • 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.Builder>
      • clear

        public SummaryValue.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.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.Builder>
      • getDefaultInstanceForType

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

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

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

        public SummaryValue.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.Builder>
      • setField

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

        public SummaryValue.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.Builder>
      • clearOneof

        public SummaryValue.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.Builder>
      • setRepeatedField

        public SummaryValue.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.Builder>
      • addRepeatedField

        public SummaryValue.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.Builder>
      • mergeFrom

        public SummaryValue.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SummaryValue.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.Builder>
      • mergeFrom

        public SummaryValue.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.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:
        hasCount in interface SummaryValueOrBuilder
        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:
        getCount in interface SummaryValueOrBuilder
        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:
        getCountOrBuilder in interface SummaryValueOrBuilder
      • 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:
        hasSum in interface SummaryValueOrBuilder
        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:
        getSum in interface SummaryValueOrBuilder
        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:
        getSumOrBuilder in interface SummaryValueOrBuilder
      • hasSnapshot

        public boolean hasSnapshot()
         Values calculated over an arbitrary time window.
         
        .opencensus.proto.metrics.v1.SummaryValue.Snapshot snapshot = 3;
        Specified by:
        hasSnapshot in interface SummaryValueOrBuilder
        Returns:
        Whether the snapshot field is set.
      • 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;
      • setUnknownFields

        public final SummaryValue.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.Builder>
      • mergeUnknownFields

        public final SummaryValue.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.Builder>