Class Interval.Builder (2.49.0)

public static final class Interval.Builder extends GeneratedMessageV3.Builder<Interval.Builder> implements IntervalOrBuilder

A floating point interval.

Protobuf type google.cloud.retail.v2beta.Interval

Implements

IntervalOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Interval build()
Returns
Type Description
Interval

buildPartial()

public Interval buildPartial()
Returns
Type Description
Interval

clear()

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

clearExclusiveMaximum()

public Interval.Builder clearExclusiveMaximum()

Exclusive upper bound.

double exclusive_maximum = 4;

Returns
Type Description
Interval.Builder

This builder for chaining.

clearExclusiveMinimum()

public Interval.Builder clearExclusiveMinimum()

Exclusive lower bound.

double exclusive_minimum = 2;

Returns
Type Description
Interval.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMax()

public Interval.Builder clearMax()
Returns
Type Description
Interval.Builder

clearMaximum()

public Interval.Builder clearMaximum()

Inclusive upper bound.

double maximum = 3;

Returns
Type Description
Interval.Builder

This builder for chaining.

clearMin()

public Interval.Builder clearMin()
Returns
Type Description
Interval.Builder

clearMinimum()

public Interval.Builder clearMinimum()

Inclusive lower bound.

double minimum = 1;

Returns
Type Description
Interval.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Interval getDefaultInstanceForType()
Returns
Type Description
Interval

getDescriptorForType()

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

getExclusiveMaximum()

public double getExclusiveMaximum()

Exclusive upper bound.

double exclusive_maximum = 4;

Returns
Type Description
double

The exclusiveMaximum.

getExclusiveMinimum()

public double getExclusiveMinimum()

Exclusive lower bound.

double exclusive_minimum = 2;

Returns
Type Description
double

The exclusiveMinimum.

getMaxCase()

public Interval.MaxCase getMaxCase()
Returns
Type Description
Interval.MaxCase

getMaximum()

public double getMaximum()

Inclusive upper bound.

double maximum = 3;

Returns
Type Description
double

The maximum.

getMinCase()

public Interval.MinCase getMinCase()
Returns
Type Description
Interval.MinCase

getMinimum()

public double getMinimum()

Inclusive lower bound.

double minimum = 1;

Returns
Type Description
double

The minimum.

hasExclusiveMaximum()

public boolean hasExclusiveMaximum()

Exclusive upper bound.

double exclusive_maximum = 4;

Returns
Type Description
boolean

Whether the exclusiveMaximum field is set.

hasExclusiveMinimum()

public boolean hasExclusiveMinimum()

Exclusive lower bound.

double exclusive_minimum = 2;

Returns
Type Description
boolean

Whether the exclusiveMinimum field is set.

hasMaximum()

public boolean hasMaximum()

Inclusive upper bound.

double maximum = 3;

Returns
Type Description
boolean

Whether the maximum field is set.

hasMinimum()

public boolean hasMinimum()

Inclusive lower bound.

double minimum = 1;

Returns
Type Description
boolean

Whether the minimum field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Interval other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExclusiveMaximum(double value)

public Interval.Builder setExclusiveMaximum(double value)

Exclusive upper bound.

double exclusive_maximum = 4;

Parameter
Name Description
value double

The exclusiveMaximum to set.

Returns
Type Description
Interval.Builder

This builder for chaining.

setExclusiveMinimum(double value)

public Interval.Builder setExclusiveMinimum(double value)

Exclusive lower bound.

double exclusive_minimum = 2;

Parameter
Name Description
value double

The exclusiveMinimum to set.

Returns
Type Description
Interval.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaximum(double value)

public Interval.Builder setMaximum(double value)

Inclusive upper bound.

double maximum = 3;

Parameter
Name Description
value double

The maximum to set.

Returns
Type Description
Interval.Builder

This builder for chaining.

setMinimum(double value)

public Interval.Builder setMinimum(double value)

Inclusive lower bound.

double minimum = 1;

Parameter
Name Description
value double

The minimum to set.

Returns
Type Description
Interval.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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