Class Interval.Builder (0.36.0)

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

A floating point interval.

Protobuf type google.cloud.discoveryengine.v1.Interval

Implements

IntervalOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Interval build()
Returns
TypeDescription
Interval

buildPartial()

public Interval buildPartial()
Returns
TypeDescription
Interval

clear()

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

clearExclusiveMaximum()

public Interval.Builder clearExclusiveMaximum()

Exclusive upper bound.

double exclusive_maximum = 4;

Returns
TypeDescription
Interval.Builder

This builder for chaining.

clearExclusiveMinimum()

public Interval.Builder clearExclusiveMinimum()

Exclusive lower bound.

double exclusive_minimum = 2;

Returns
TypeDescription
Interval.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMax()

public Interval.Builder clearMax()
Returns
TypeDescription
Interval.Builder

clearMaximum()

public Interval.Builder clearMaximum()

Inclusive upper bound.

double maximum = 3;

Returns
TypeDescription
Interval.Builder

This builder for chaining.

clearMin()

public Interval.Builder clearMin()
Returns
TypeDescription
Interval.Builder

clearMinimum()

public Interval.Builder clearMinimum()

Inclusive lower bound.

double minimum = 1;

Returns
TypeDescription
Interval.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Interval getDefaultInstanceForType()
Returns
TypeDescription
Interval

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExclusiveMaximum()

public double getExclusiveMaximum()

Exclusive upper bound.

double exclusive_maximum = 4;

Returns
TypeDescription
double

The exclusiveMaximum.

getExclusiveMinimum()

public double getExclusiveMinimum()

Exclusive lower bound.

double exclusive_minimum = 2;

Returns
TypeDescription
double

The exclusiveMinimum.

getMaxCase()

public Interval.MaxCase getMaxCase()
Returns
TypeDescription
Interval.MaxCase

getMaximum()

public double getMaximum()

Inclusive upper bound.

double maximum = 3;

Returns
TypeDescription
double

The maximum.

getMinCase()

public Interval.MinCase getMinCase()
Returns
TypeDescription
Interval.MinCase

getMinimum()

public double getMinimum()

Inclusive lower bound.

double minimum = 1;

Returns
TypeDescription
double

The minimum.

hasExclusiveMaximum()

public boolean hasExclusiveMaximum()

Exclusive upper bound.

double exclusive_maximum = 4;

Returns
TypeDescription
boolean

Whether the exclusiveMaximum field is set.

hasExclusiveMinimum()

public boolean hasExclusiveMinimum()

Exclusive lower bound.

double exclusive_minimum = 2;

Returns
TypeDescription
boolean

Whether the exclusiveMinimum field is set.

hasMaximum()

public boolean hasMaximum()

Inclusive upper bound.

double maximum = 3;

Returns
TypeDescription
boolean

Whether the maximum field is set.

hasMinimum()

public boolean hasMinimum()

Inclusive lower bound.

double minimum = 1;

Returns
TypeDescription
boolean

Whether the minimum field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Interval other)

public Interval.Builder mergeFrom(Interval other)
Parameter
NameDescription
otherInterval
Returns
TypeDescription
Interval.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExclusiveMaximum(double value)

public Interval.Builder setExclusiveMaximum(double value)

Exclusive upper bound.

double exclusive_maximum = 4;

Parameter
NameDescription
valuedouble

The exclusiveMaximum to set.

Returns
TypeDescription
Interval.Builder

This builder for chaining.

setExclusiveMinimum(double value)

public Interval.Builder setExclusiveMinimum(double value)

Exclusive lower bound.

double exclusive_minimum = 2;

Parameter
NameDescription
valuedouble

The exclusiveMinimum to set.

Returns
TypeDescription
Interval.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaximum(double value)

public Interval.Builder setMaximum(double value)

Inclusive upper bound.

double maximum = 3;

Parameter
NameDescription
valuedouble

The maximum to set.

Returns
TypeDescription
Interval.Builder

This builder for chaining.

setMinimum(double value)

public Interval.Builder setMinimum(double value)

Inclusive lower bound.

double minimum = 1;

Parameter
NameDescription
valuedouble

The minimum to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Interval.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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