Class Point.Builder (0.6.0)

public static final class Point.Builder extends GeneratedMessage.Builder<Point.Builder> implements PointOrBuilder

A single data point in a time series.

Protobuf type google.cloud.capacityplanner.v1beta.Point

Implements

PointOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Point build()
Returns
Type Description
Point

buildPartial()

public Point buildPartial()
Returns
Type Description
Point

clear()

public Point.Builder clear()
Returns
Type Description
Point.Builder
Overrides

clearEventTime()

public Point.Builder clearEventTime()

The time which the data point applies.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
Point.Builder

clearValue()

public Point.Builder clearValue()

The value of the data point.

double value = 2;

Returns
Type Description
Point.Builder

This builder for chaining.

getDefaultInstanceForType()

public Point getDefaultInstanceForType()
Returns
Type Description
Point

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEventTime()

public Timestamp getEventTime()

The time which the data point applies.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
Timestamp

The eventTime.

getEventTimeBuilder()

public Timestamp.Builder getEventTimeBuilder()

The time which the data point applies.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
Builder

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

The time which the data point applies.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
TimestampOrBuilder

getValue()

public double getValue()

The value of the data point.

double value = 2;

Returns
Type Description
double

The value.

hasEventTime()

public boolean hasEventTime()

The time which the data point applies.

.google.protobuf.Timestamp event_time = 1;

Returns
Type Description
boolean

Whether the eventTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEventTime(Timestamp value)

public Point.Builder mergeEventTime(Timestamp value)

The time which the data point applies.

.google.protobuf.Timestamp event_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
Point.Builder

mergeFrom(Point other)

public Point.Builder mergeFrom(Point other)
Parameter
Name Description
other Point
Returns
Type Description
Point.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Point.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Point.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Point.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Point.Builder
Overrides

setEventTime(Timestamp value)

public Point.Builder setEventTime(Timestamp value)

The time which the data point applies.

.google.protobuf.Timestamp event_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
Point.Builder

setEventTime(Timestamp.Builder builderForValue)

public Point.Builder setEventTime(Timestamp.Builder builderForValue)

The time which the data point applies.

.google.protobuf.Timestamp event_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Point.Builder

setValue(double value)

public Point.Builder setValue(double value)

The value of the data point.

double value = 2;

Parameter
Name Description
value double

The value to set.

Returns
Type Description
Point.Builder

This builder for chaining.