Class AnswerQueryRequest.QueryUnderstandingSpec.Builder (0.44.0)

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

Query understanding specification.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQueryClassificationSpec()

public AnswerQueryRequest.QueryUnderstandingSpec.Builder clearQueryClassificationSpec()

Query classification specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

clearQueryRephraserSpec()

public AnswerQueryRequest.QueryUnderstandingSpec.Builder clearQueryRephraserSpec()

Query rephraser specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getQueryClassificationSpec()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec getQueryClassificationSpec()

Query classification specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec

The queryClassificationSpec.

getQueryClassificationSpecBuilder()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder getQueryClassificationSpecBuilder()

Query classification specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder

getQueryClassificationSpecOrBuilder()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpecOrBuilder getQueryClassificationSpecOrBuilder()

Query classification specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpecOrBuilder

getQueryRephraserSpec()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec getQueryRephraserSpec()

Query rephraser specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec

The queryRephraserSpec.

getQueryRephraserSpecBuilder()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder getQueryRephraserSpecBuilder()

Query rephraser specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder

getQueryRephraserSpecOrBuilder()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpecOrBuilder getQueryRephraserSpecOrBuilder()

Query rephraser specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpecOrBuilder

hasQueryClassificationSpec()

public boolean hasQueryClassificationSpec()

Query classification specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1;

Returns
Type Description
boolean

Whether the queryClassificationSpec field is set.

hasQueryRephraserSpec()

public boolean hasQueryRephraserSpec()

Query rephraser specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Returns
Type Description
boolean

Whether the queryRephraserSpec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerQueryRequest.QueryUnderstandingSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQueryClassificationSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec value)

public AnswerQueryRequest.QueryUnderstandingSpec.Builder mergeQueryClassificationSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec value)

Query classification specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1;

Parameter
Name Description
value AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

mergeQueryRephraserSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec value)

public AnswerQueryRequest.QueryUnderstandingSpec.Builder mergeQueryRephraserSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec value)

Query rephraser specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Parameter
Name Description
value AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setQueryClassificationSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec value)

public AnswerQueryRequest.QueryUnderstandingSpec.Builder setQueryClassificationSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec value)

Query classification specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1;

Parameter
Name Description
value AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

setQueryClassificationSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder builderForValue)

public AnswerQueryRequest.QueryUnderstandingSpec.Builder setQueryClassificationSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder builderForValue)

Query classification specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1;

Parameter
Name Description
builderForValue AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

setQueryRephraserSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec value)

public AnswerQueryRequest.QueryUnderstandingSpec.Builder setQueryRephraserSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec value)

Query rephraser specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Parameter
Name Description
value AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

setQueryRephraserSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder builderForValue)

public AnswerQueryRequest.QueryUnderstandingSpec.Builder setQueryRephraserSpec(AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder builderForValue)

Query rephraser specification.

.google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Parameter
Name Description
builderForValue AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.Builder
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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