Class AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder (0.50.0)

public static final class AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder> implements AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpecOrBuilder

Query rephraser specification.

Protobuf type google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec build()
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec

buildPartial()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec buildPartial()
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec

clear()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder clear()
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder
Overrides

clearDisable()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder clearDisable()

Disable query rephraser.

bool disable = 1;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder
Overrides

clearMaxRephraseSteps()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder clearMaxRephraseSteps()

Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default.

int32 max_rephrase_steps = 2;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder
Overrides

clone()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder clone()
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder
Overrides

getDefaultInstanceForType()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec getDefaultInstanceForType()
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec

getDescriptorForType()

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

getDisable()

public boolean getDisable()

Disable query rephraser.

bool disable = 1;

Returns
Type Description
boolean

The disable.

getMaxRephraseSteps()

public int getMaxRephraseSteps()

Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default.

int32 max_rephrase_steps = 2;

Returns
Type Description
int

The maxRephraseSteps.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec other)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder mergeFrom(AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec other)
Parameter
Name Description
other AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder
Overrides

setDisable(boolean value)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder setDisable(boolean value)

Disable query rephraser.

bool disable = 1;

Parameter
Name Description
value boolean

The disable to set.

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxRephraseSteps(int value)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder setMaxRephraseSteps(int value)

Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default.

int32 max_rephrase_steps = 2;

Parameter
Name Description
value int

The maxRephraseSteps to set.

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder
Overrides