Class AnswerQueryRequest.QueryUnderstandingSpec (0.45.0)

public static final class AnswerQueryRequest.QueryUnderstandingSpec extends GeneratedMessageV3 implements AnswerQueryRequest.QueryUnderstandingSpecOrBuilder

Query understanding specification.

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

Inheritance

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

Static Fields

QUERY_CLASSIFICATION_SPEC_FIELD_NUMBER

public static final int QUERY_CLASSIFICATION_SPEC_FIELD_NUMBER
Field Value
Type Description
int

QUERY_REPHRASER_SPEC_FIELD_NUMBER

public static final int QUERY_REPHRASER_SPEC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AnswerQueryRequest.QueryUnderstandingSpec getDefaultInstance()
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec

getDescriptor()

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

newBuilder()

public static AnswerQueryRequest.QueryUnderstandingSpec.Builder newBuilder()
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

newBuilder(AnswerQueryRequest.QueryUnderstandingSpec prototype)

public static AnswerQueryRequest.QueryUnderstandingSpec.Builder newBuilder(AnswerQueryRequest.QueryUnderstandingSpec prototype)
Parameter
Name Description
prototype AnswerQueryRequest.QueryUnderstandingSpec
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

parseDelimitedFrom(InputStream input)

public static AnswerQueryRequest.QueryUnderstandingSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnswerQueryRequest.QueryUnderstandingSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnswerQueryRequest.QueryUnderstandingSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AnswerQueryRequest.QueryUnderstandingSpec> parser()
Returns
Type Description
Parser<QueryUnderstandingSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<AnswerQueryRequest.QueryUnderstandingSpec> getParserForType()
Returns
Type Description
Parser<QueryUnderstandingSpec>
Overrides

getQueryClassificationSpec()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec getQueryClassificationSpec()

Query classification specification.

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

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec

The queryClassificationSpec.

getQueryClassificationSpecOrBuilder()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpecOrBuilder getQueryClassificationSpecOrBuilder()

Query classification specification.

.google.cloud.discoveryengine.v1alpha.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.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec

The queryRephraserSpec.

getQueryRephraserSpecOrBuilder()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpecOrBuilder getQueryRephraserSpecOrBuilder()

Query rephraser specification.

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

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpecOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasQueryClassificationSpec()

public boolean hasQueryClassificationSpec()

Query classification specification.

.google.cloud.discoveryengine.v1alpha.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.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2;

Returns
Type Description
boolean

Whether the queryRephraserSpec field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AnswerQueryRequest.QueryUnderstandingSpec.Builder newBuilderForType()
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnswerQueryRequest.QueryUnderstandingSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AnswerQueryRequest.QueryUnderstandingSpec.Builder toBuilder()
Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException