Class DoubleRange.Builder (2.49.0)

public static final class DoubleRange.Builder extends GeneratedMessageV3.Builder<DoubleRange.Builder> implements DoubleRangeOrBuilder

A range between two double numbers.

Protobuf type google.cloud.automl.v1beta1.DoubleRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DoubleRange build()
Returns
Type Description
DoubleRange

buildPartial()

public DoubleRange buildPartial()
Returns
Type Description
DoubleRange

clear()

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

clearEnd()

public DoubleRange.Builder clearEnd()

End of the range, exclusive.

double end = 2;

Returns
Type Description
DoubleRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStart()

public DoubleRange.Builder clearStart()

Start of the range, inclusive.

double start = 1;

Returns
Type Description
DoubleRange.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DoubleRange getDefaultInstanceForType()
Returns
Type Description
DoubleRange

getDescriptorForType()

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

getEnd()

public double getEnd()

End of the range, exclusive.

double end = 2;

Returns
Type Description
double

The end.

getStart()

public double getStart()

Start of the range, inclusive.

double start = 1;

Returns
Type Description
double

The start.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DoubleRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DoubleRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DoubleRange.Builder
Overrides

setEnd(double value)

public DoubleRange.Builder setEnd(double value)

End of the range, exclusive.

double end = 2;

Parameter
Name Description
value double

The end to set.

Returns
Type Description
DoubleRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStart(double value)

public DoubleRange.Builder setStart(double value)

Start of the range, inclusive.

double start = 1;

Parameter
Name Description
value double

The start to set.

Returns
Type Description
DoubleRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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