Class DynamicRetrievalConfig.Builder (3.54.0)

public static final class DynamicRetrievalConfig.Builder extends GeneratedMessageV3.Builder<DynamicRetrievalConfig.Builder> implements DynamicRetrievalConfigOrBuilder

Describes the options to customize dynamic retrieval.

Protobuf type google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DynamicRetrievalConfig build()
Returns
Type Description
DynamicRetrievalConfig

buildPartial()

public DynamicRetrievalConfig buildPartial()
Returns
Type Description
DynamicRetrievalConfig

clear()

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

clearDynamicThreshold()

public DynamicRetrievalConfig.Builder clearDynamicThreshold()

Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.

optional float dynamic_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DynamicRetrievalConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public DynamicRetrievalConfig.Builder clearMode()

The mode of the predictor to be used in dynamic retrieval.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig.Mode mode = 1;

Returns
Type Description
DynamicRetrievalConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DynamicRetrievalConfig getDefaultInstanceForType()
Returns
Type Description
DynamicRetrievalConfig

getDescriptorForType()

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

getDynamicThreshold()

public float getDynamicThreshold()

Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.

optional float dynamic_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The dynamicThreshold.

getMode()

public DynamicRetrievalConfig.Mode getMode()

The mode of the predictor to be used in dynamic retrieval.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig.Mode mode = 1;

Returns
Type Description
DynamicRetrievalConfig.Mode

The mode.

getModeValue()

public int getModeValue()

The mode of the predictor to be used in dynamic retrieval.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig.Mode mode = 1;

Returns
Type Description
int

The enum numeric value on the wire for mode.

hasDynamicThreshold()

public boolean hasDynamicThreshold()

Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.

optional float dynamic_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the dynamicThreshold field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DynamicRetrievalConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDynamicThreshold(float value)

public DynamicRetrievalConfig.Builder setDynamicThreshold(float value)

Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.

optional float dynamic_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value float

The dynamicThreshold to set.

Returns
Type Description
DynamicRetrievalConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(DynamicRetrievalConfig.Mode value)

public DynamicRetrievalConfig.Builder setMode(DynamicRetrievalConfig.Mode value)

The mode of the predictor to be used in dynamic retrieval.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig.Mode mode = 1;

Parameter
Name Description
value DynamicRetrievalConfig.Mode

The mode to set.

Returns
Type Description
DynamicRetrievalConfig.Builder

This builder for chaining.

setModeValue(int value)

public DynamicRetrievalConfig.Builder setModeValue(int value)

The mode of the predictor to be used in dynamic retrieval.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig.Mode mode = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for mode to set.

Returns
Type Description
DynamicRetrievalConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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