Class NaturalLanguageQueryUnderstandingConfig.Builder (0.50.0)

public static final class NaturalLanguageQueryUnderstandingConfig.Builder extends GeneratedMessageV3.Builder<NaturalLanguageQueryUnderstandingConfig.Builder> implements NaturalLanguageQueryUnderstandingConfigOrBuilder

Configuration for Natural Language Query Understanding.

Protobuf type google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NaturalLanguageQueryUnderstandingConfig build()
Returns
Type Description
NaturalLanguageQueryUnderstandingConfig

buildPartial()

public NaturalLanguageQueryUnderstandingConfig buildPartial()
Returns
Type Description
NaturalLanguageQueryUnderstandingConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public NaturalLanguageQueryUnderstandingConfig.Builder clearMode()

Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.

.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1;

Returns
Type Description
NaturalLanguageQueryUnderstandingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NaturalLanguageQueryUnderstandingConfig getDefaultInstanceForType()
Returns
Type Description
NaturalLanguageQueryUnderstandingConfig

getDescriptorForType()

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

getMode()

public NaturalLanguageQueryUnderstandingConfig.Mode getMode()

Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.

.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1;

Returns
Type Description
NaturalLanguageQueryUnderstandingConfig.Mode

The mode.

getModeValue()

public int getModeValue()

Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.

.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1;

Returns
Type Description
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NaturalLanguageQueryUnderstandingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(NaturalLanguageQueryUnderstandingConfig.Mode value)

public NaturalLanguageQueryUnderstandingConfig.Builder setMode(NaturalLanguageQueryUnderstandingConfig.Mode value)

Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.

.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1;

Parameter
Name Description
value NaturalLanguageQueryUnderstandingConfig.Mode

The mode to set.

Returns
Type Description
NaturalLanguageQueryUnderstandingConfig.Builder

This builder for chaining.

setModeValue(int value)

public NaturalLanguageQueryUnderstandingConfig.Builder setModeValue(int value)

Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.

.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1;

Parameter
Name Description
value int

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

Returns
Type Description
NaturalLanguageQueryUnderstandingConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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