Class FloatRange.Builder (0.40.0)

public static final class FloatRange.Builder extends GeneratedMessage.Builder<FloatRange.Builder> implements FloatRangeOrBuilder

Float range type.

Protobuf type google.cloud.visionai.v1.FloatRange

Implements

FloatRangeOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public FloatRange build()
Returns
Type Description
FloatRange

buildPartial()

public FloatRange buildPartial()
Returns
Type Description
FloatRange

clear()

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

clearEnd()

public FloatRange.Builder clearEnd()

End of the float range.

optional float end = 2;

Returns
Type Description
FloatRange.Builder

This builder for chaining.

clearStart()

public FloatRange.Builder clearStart()

Start of the float range.

optional float start = 1;

Returns
Type Description
FloatRange.Builder

This builder for chaining.

getDefaultInstanceForType()

public FloatRange getDefaultInstanceForType()
Returns
Type Description
FloatRange

getDescriptorForType()

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

getEnd()

public float getEnd()

End of the float range.

optional float end = 2;

Returns
Type Description
float

The end.

getStart()

public float getStart()

Start of the float range.

optional float start = 1;

Returns
Type Description
float

The start.

hasEnd()

public boolean hasEnd()

End of the float range.

optional float end = 2;

Returns
Type Description
boolean

Whether the end field is set.

hasStart()

public boolean hasStart()

Start of the float range.

optional float start = 1;

Returns
Type Description
boolean

Whether the start field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FloatRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEnd(float value)

public FloatRange.Builder setEnd(float value)

End of the float range.

optional float end = 2;

Parameter
Name Description
value float

The end to set.

Returns
Type Description
FloatRange.Builder

This builder for chaining.

setStart(float value)

public FloatRange.Builder setStart(float value)

Start of the float range.

optional float start = 1;

Parameter
Name Description
value float

The start to set.

Returns
Type Description
FloatRange.Builder

This builder for chaining.