Class FloatRange.Builder (0.12.0)

public static final class FloatRange.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FloatRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FloatRange.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public FloatRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FloatRange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FloatRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FloatRange.Builder
Overrides

clearStart()

public FloatRange.Builder clearStart()

Start of the float range.

optional float start = 1;

Returns
Type Description
FloatRange.Builder

This builder for chaining.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FloatRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public FloatRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FloatRange.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FloatRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FloatRange.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final FloatRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FloatRange.Builder
Overrides