Class Point.Builder

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

    public static final class Point.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
    implements PointOrBuilder
     A single data point in a time series.
     
    Protobuf type google.cloud.bigquery.migration.v2alpha.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
      • hasInterval

        public boolean hasInterval()
         The time interval to which the data point applies.  For `GAUGE` metrics,
         the start time does not need to be supplied, but if it is supplied, it must
         equal the end time.  For `DELTA` metrics, the start and end time should
         specify a non-zero interval, with subsequent points specifying contiguous
         and non-overlapping intervals.  For `CUMULATIVE` metrics, the start and end
         time should specify a non-zero interval, with subsequent points specifying
         the same start time and increasing end times, until an event resets the
         cumulative value to zero and sets a new start time for the following
         points.
         
        .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
        Specified by:
        hasInterval in interface PointOrBuilder
        Returns:
        Whether the interval field is set.
      • getInterval

        public TimeInterval getInterval()
         The time interval to which the data point applies.  For `GAUGE` metrics,
         the start time does not need to be supplied, but if it is supplied, it must
         equal the end time.  For `DELTA` metrics, the start and end time should
         specify a non-zero interval, with subsequent points specifying contiguous
         and non-overlapping intervals.  For `CUMULATIVE` metrics, the start and end
         time should specify a non-zero interval, with subsequent points specifying
         the same start time and increasing end times, until an event resets the
         cumulative value to zero and sets a new start time for the following
         points.
         
        .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
        Specified by:
        getInterval in interface PointOrBuilder
        Returns:
        The interval.
      • setInterval

        public Point.Builder setInterval​(TimeInterval value)
         The time interval to which the data point applies.  For `GAUGE` metrics,
         the start time does not need to be supplied, but if it is supplied, it must
         equal the end time.  For `DELTA` metrics, the start and end time should
         specify a non-zero interval, with subsequent points specifying contiguous
         and non-overlapping intervals.  For `CUMULATIVE` metrics, the start and end
         time should specify a non-zero interval, with subsequent points specifying
         the same start time and increasing end times, until an event resets the
         cumulative value to zero and sets a new start time for the following
         points.
         
        .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
      • setInterval

        public Point.Builder setInterval​(TimeInterval.Builder builderForValue)
         The time interval to which the data point applies.  For `GAUGE` metrics,
         the start time does not need to be supplied, but if it is supplied, it must
         equal the end time.  For `DELTA` metrics, the start and end time should
         specify a non-zero interval, with subsequent points specifying contiguous
         and non-overlapping intervals.  For `CUMULATIVE` metrics, the start and end
         time should specify a non-zero interval, with subsequent points specifying
         the same start time and increasing end times, until an event resets the
         cumulative value to zero and sets a new start time for the following
         points.
         
        .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
      • mergeInterval

        public Point.Builder mergeInterval​(TimeInterval value)
         The time interval to which the data point applies.  For `GAUGE` metrics,
         the start time does not need to be supplied, but if it is supplied, it must
         equal the end time.  For `DELTA` metrics, the start and end time should
         specify a non-zero interval, with subsequent points specifying contiguous
         and non-overlapping intervals.  For `CUMULATIVE` metrics, the start and end
         time should specify a non-zero interval, with subsequent points specifying
         the same start time and increasing end times, until an event resets the
         cumulative value to zero and sets a new start time for the following
         points.
         
        .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
      • clearInterval

        public Point.Builder clearInterval()
         The time interval to which the data point applies.  For `GAUGE` metrics,
         the start time does not need to be supplied, but if it is supplied, it must
         equal the end time.  For `DELTA` metrics, the start and end time should
         specify a non-zero interval, with subsequent points specifying contiguous
         and non-overlapping intervals.  For `CUMULATIVE` metrics, the start and end
         time should specify a non-zero interval, with subsequent points specifying
         the same start time and increasing end times, until an event resets the
         cumulative value to zero and sets a new start time for the following
         points.
         
        .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
      • getIntervalBuilder

        public TimeInterval.Builder getIntervalBuilder()
         The time interval to which the data point applies.  For `GAUGE` metrics,
         the start time does not need to be supplied, but if it is supplied, it must
         equal the end time.  For `DELTA` metrics, the start and end time should
         specify a non-zero interval, with subsequent points specifying contiguous
         and non-overlapping intervals.  For `CUMULATIVE` metrics, the start and end
         time should specify a non-zero interval, with subsequent points specifying
         the same start time and increasing end times, until an event resets the
         cumulative value to zero and sets a new start time for the following
         points.
         
        .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
      • getIntervalOrBuilder

        public TimeIntervalOrBuilder getIntervalOrBuilder()
         The time interval to which the data point applies.  For `GAUGE` metrics,
         the start time does not need to be supplied, but if it is supplied, it must
         equal the end time.  For `DELTA` metrics, the start and end time should
         specify a non-zero interval, with subsequent points specifying contiguous
         and non-overlapping intervals.  For `CUMULATIVE` metrics, the start and end
         time should specify a non-zero interval, with subsequent points specifying
         the same start time and increasing end times, until an event resets the
         cumulative value to zero and sets a new start time for the following
         points.
         
        .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
        Specified by:
        getIntervalOrBuilder in interface PointOrBuilder
      • hasValue

        public boolean hasValue()
         The value of the data point.
         
        .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2;
        Specified by:
        hasValue in interface PointOrBuilder
        Returns:
        Whether the value field is set.
      • getValue

        public TypedValue getValue()
         The value of the data point.
         
        .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2;
        Specified by:
        getValue in interface PointOrBuilder
        Returns:
        The value.
      • setValue

        public Point.Builder setValue​(TypedValue value)
         The value of the data point.
         
        .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2;
      • setValue

        public Point.Builder setValue​(TypedValue.Builder builderForValue)
         The value of the data point.
         
        .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2;
      • mergeValue

        public Point.Builder mergeValue​(TypedValue value)
         The value of the data point.
         
        .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2;
      • clearValue

        public Point.Builder clearValue()
         The value of the data point.
         
        .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2;
      • getValueBuilder

        public TypedValue.Builder getValueBuilder()
         The value of the data point.
         
        .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2;
      • 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>