Class DoubleRange.Builder (2.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DoubleRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DoubleRange.Builder
Overrides

build()

public DoubleRange build()
Returns
TypeDescription
DoubleRange

buildPartial()

public DoubleRange buildPartial()
Returns
TypeDescription
DoubleRange

clear()

public DoubleRange.Builder clear()
Returns
TypeDescription
DoubleRange.Builder
Overrides

clearEnd()

public DoubleRange.Builder clearEnd()

End of the range, exclusive.

double end = 2;

Returns
TypeDescription
DoubleRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DoubleRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DoubleRange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DoubleRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DoubleRange.Builder
Overrides

clearStart()

public DoubleRange.Builder clearStart()

Start of the range, inclusive.

double start = 1;

Returns
TypeDescription
DoubleRange.Builder

This builder for chaining.

clone()

public DoubleRange.Builder clone()
Returns
TypeDescription
DoubleRange.Builder
Overrides

getDefaultInstanceForType()

public DoubleRange getDefaultInstanceForType()
Returns
TypeDescription
DoubleRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnd()

public double getEnd()

End of the range, exclusive.

double end = 2;

Returns
TypeDescription
double

The end.

getStart()

public double getStart()

Start of the range, inclusive.

double start = 1;

Returns
TypeDescription
double

The start.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DoubleRange other)

public DoubleRange.Builder mergeFrom(DoubleRange other)
Parameter
NameDescription
otherDoubleRange
Returns
TypeDescription
DoubleRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DoubleRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DoubleRange.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DoubleRange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DoubleRange.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DoubleRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DoubleRange.Builder
Overrides

setEnd(double value)

public DoubleRange.Builder setEnd(double value)

End of the range, exclusive.

double end = 2;

Parameter
NameDescription
valuedouble

The end to set.

Returns
TypeDescription
DoubleRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DoubleRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DoubleRange.Builder
Overrides

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

public DoubleRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DoubleRange.Builder
Overrides

setStart(double value)

public DoubleRange.Builder setStart(double value)

Start of the range, inclusive.

double start = 1;

Parameter
NameDescription
valuedouble

The start to set.

Returns
TypeDescription
DoubleRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DoubleRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DoubleRange.Builder
Overrides