Class NormalizedCoordinate.Builder (0.85.0)

public static final class NormalizedCoordinate.Builder extends GeneratedMessage.Builder<NormalizedCoordinate.Builder> implements NormalizedCoordinateOrBuilder

2D normalized coordinates.

Protobuf type google.cloud.video.livestream.v1.NormalizedCoordinate

Static Methods

getDescriptor()

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

Methods

build()

public NormalizedCoordinate build()
Returns
Type Description
NormalizedCoordinate

buildPartial()

public NormalizedCoordinate buildPartial()
Returns
Type Description
NormalizedCoordinate

clear()

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

clearX()

public NormalizedCoordinate.Builder clearX()

Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.

double x = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NormalizedCoordinate.Builder

This builder for chaining.

clearY()

public NormalizedCoordinate.Builder clearY()

Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0.

double y = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NormalizedCoordinate.Builder

This builder for chaining.

getDefaultInstanceForType()

public NormalizedCoordinate getDefaultInstanceForType()
Returns
Type Description
NormalizedCoordinate

getDescriptorForType()

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

getX()

public double getX()

Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.

double x = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The x.

getY()

public double getY()

Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0.

double y = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The y.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NormalizedCoordinate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setX(double value)

public NormalizedCoordinate.Builder setX(double value)

Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.

double x = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The x to set.

Returns
Type Description
NormalizedCoordinate.Builder

This builder for chaining.

setY(double value)

public NormalizedCoordinate.Builder setY(double value)

Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0.

double y = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The y to set.

Returns
Type Description
NormalizedCoordinate.Builder

This builder for chaining.