Class Point.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PointOrBuilder, Cloneable
    Enclosing class:
    Point

    public static final class Point.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
    implements PointOrBuilder
     A timestamped measurement.
     
    Protobuf type opencensus.proto.metrics.v1.Point
    • 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<Point.Builder>
      • clear

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

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

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

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

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

        public Point.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<Point.Builder>
      • clearField

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

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

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

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

        public Point.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<Point.Builder>
      • isInitialized

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

        public Point.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<Point.Builder>
        Throws:
        IOException
      • hasTimestamp

        public boolean hasTimestamp()
         The moment when this point was recorded. Inclusive.
         If not specified, the timestamp will be decided by the backend.
         
        .google.protobuf.Timestamp timestamp = 1;
        Specified by:
        hasTimestamp in interface PointOrBuilder
        Returns:
        Whether the timestamp field is set.
      • getTimestamp

        public com.google.protobuf.Timestamp getTimestamp()
         The moment when this point was recorded. Inclusive.
         If not specified, the timestamp will be decided by the backend.
         
        .google.protobuf.Timestamp timestamp = 1;
        Specified by:
        getTimestamp in interface PointOrBuilder
        Returns:
        The timestamp.
      • setTimestamp

        public Point.Builder setTimestamp​(com.google.protobuf.Timestamp value)
         The moment when this point was recorded. Inclusive.
         If not specified, the timestamp will be decided by the backend.
         
        .google.protobuf.Timestamp timestamp = 1;
      • setTimestamp

        public Point.Builder setTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
         The moment when this point was recorded. Inclusive.
         If not specified, the timestamp will be decided by the backend.
         
        .google.protobuf.Timestamp timestamp = 1;
      • mergeTimestamp

        public Point.Builder mergeTimestamp​(com.google.protobuf.Timestamp value)
         The moment when this point was recorded. Inclusive.
         If not specified, the timestamp will be decided by the backend.
         
        .google.protobuf.Timestamp timestamp = 1;
      • clearTimestamp

        public Point.Builder clearTimestamp()
         The moment when this point was recorded. Inclusive.
         If not specified, the timestamp will be decided by the backend.
         
        .google.protobuf.Timestamp timestamp = 1;
      • getTimestampBuilder

        public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
         The moment when this point was recorded. Inclusive.
         If not specified, the timestamp will be decided by the backend.
         
        .google.protobuf.Timestamp timestamp = 1;
      • getTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
         The moment when this point was recorded. Inclusive.
         If not specified, the timestamp will be decided by the backend.
         
        .google.protobuf.Timestamp timestamp = 1;
        Specified by:
        getTimestampOrBuilder in interface PointOrBuilder
      • hasInt64Value

        public boolean hasInt64Value()
         A 64-bit integer.
         
        int64 int64_value = 2;
        Specified by:
        hasInt64Value in interface PointOrBuilder
        Returns:
        Whether the int64Value field is set.
      • getInt64Value

        public long getInt64Value()
         A 64-bit integer.
         
        int64 int64_value = 2;
        Specified by:
        getInt64Value in interface PointOrBuilder
        Returns:
        The int64Value.
      • setInt64Value

        public Point.Builder setInt64Value​(long value)
         A 64-bit integer.
         
        int64 int64_value = 2;
        Parameters:
        value - The int64Value to set.
        Returns:
        This builder for chaining.
      • clearInt64Value

        public Point.Builder clearInt64Value()
         A 64-bit integer.
         
        int64 int64_value = 2;
        Returns:
        This builder for chaining.
      • hasDoubleValue

        public boolean hasDoubleValue()
         A 64-bit double-precision floating-point number.
         
        double double_value = 3;
        Specified by:
        hasDoubleValue in interface PointOrBuilder
        Returns:
        Whether the doubleValue field is set.
      • getDoubleValue

        public double getDoubleValue()
         A 64-bit double-precision floating-point number.
         
        double double_value = 3;
        Specified by:
        getDoubleValue in interface PointOrBuilder
        Returns:
        The doubleValue.
      • setDoubleValue

        public Point.Builder setDoubleValue​(double value)
         A 64-bit double-precision floating-point number.
         
        double double_value = 3;
        Parameters:
        value - The doubleValue to set.
        Returns:
        This builder for chaining.
      • clearDoubleValue

        public Point.Builder clearDoubleValue()
         A 64-bit double-precision floating-point number.
         
        double double_value = 3;
        Returns:
        This builder for chaining.
      • hasDistributionValue

        public boolean hasDistributionValue()
         A distribution value.
         
        .opencensus.proto.metrics.v1.DistributionValue distribution_value = 4;
        Specified by:
        hasDistributionValue in interface PointOrBuilder
        Returns:
        Whether the distributionValue field is set.
      • getDistributionValue

        public DistributionValue getDistributionValue()
         A distribution value.
         
        .opencensus.proto.metrics.v1.DistributionValue distribution_value = 4;
        Specified by:
        getDistributionValue in interface PointOrBuilder
        Returns:
        The distributionValue.
      • setDistributionValue

        public Point.Builder setDistributionValue​(DistributionValue value)
         A distribution value.
         
        .opencensus.proto.metrics.v1.DistributionValue distribution_value = 4;
      • setDistributionValue

        public Point.Builder setDistributionValue​(DistributionValue.Builder builderForValue)
         A distribution value.
         
        .opencensus.proto.metrics.v1.DistributionValue distribution_value = 4;
      • mergeDistributionValue

        public Point.Builder mergeDistributionValue​(DistributionValue value)
         A distribution value.
         
        .opencensus.proto.metrics.v1.DistributionValue distribution_value = 4;
      • clearDistributionValue

        public Point.Builder clearDistributionValue()
         A distribution value.
         
        .opencensus.proto.metrics.v1.DistributionValue distribution_value = 4;
      • getDistributionValueBuilder

        public DistributionValue.Builder getDistributionValueBuilder()
         A distribution value.
         
        .opencensus.proto.metrics.v1.DistributionValue distribution_value = 4;
      • hasSummaryValue

        public boolean hasSummaryValue()
         A summary value. This is not recommended, since it cannot be aggregated.
         
        .opencensus.proto.metrics.v1.SummaryValue summary_value = 5;
        Specified by:
        hasSummaryValue in interface PointOrBuilder
        Returns:
        Whether the summaryValue field is set.
      • getSummaryValue

        public SummaryValue getSummaryValue()
         A summary value. This is not recommended, since it cannot be aggregated.
         
        .opencensus.proto.metrics.v1.SummaryValue summary_value = 5;
        Specified by:
        getSummaryValue in interface PointOrBuilder
        Returns:
        The summaryValue.
      • setSummaryValue

        public Point.Builder setSummaryValue​(SummaryValue value)
         A summary value. This is not recommended, since it cannot be aggregated.
         
        .opencensus.proto.metrics.v1.SummaryValue summary_value = 5;
      • setSummaryValue

        public Point.Builder setSummaryValue​(SummaryValue.Builder builderForValue)
         A summary value. This is not recommended, since it cannot be aggregated.
         
        .opencensus.proto.metrics.v1.SummaryValue summary_value = 5;
      • mergeSummaryValue

        public Point.Builder mergeSummaryValue​(SummaryValue value)
         A summary value. This is not recommended, since it cannot be aggregated.
         
        .opencensus.proto.metrics.v1.SummaryValue summary_value = 5;
      • clearSummaryValue

        public Point.Builder clearSummaryValue()
         A summary value. This is not recommended, since it cannot be aggregated.
         
        .opencensus.proto.metrics.v1.SummaryValue summary_value = 5;
      • getSummaryValueBuilder

        public SummaryValue.Builder getSummaryValueBuilder()
         A summary value. This is not recommended, since it cannot be aggregated.
         
        .opencensus.proto.metrics.v1.SummaryValue summary_value = 5;
      • setUnknownFields

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

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