Class AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder (0.39.0)

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

Query classification specification.

Protobuf type google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addAllTypes(Iterable<? extends AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type> values)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder addAllTypes(Iterable<? extends AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type> values)

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type>

The types to add.

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder

This builder for chaining.

addAllTypesValue(Iterable<Integer> values)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder addAllTypesValue(Iterable<Integer> values)

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for types to add.

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTypes(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type value)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder addTypes(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type value)

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Parameter
Name Description
value AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type

The types to add.

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder

This builder for chaining.

addTypesValue(int value)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder addTypesValue(int value)

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for types to add.

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTypes()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder clearTypes()

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getTypes(int index)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type getTypes(int index)

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type

The types at the given index.

getTypesCount()

public int getTypesCount()

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Returns
Type Description
int

The count of types.

getTypesList()

public List<AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type> getTypesList()

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Returns
Type Description
List<Type>

A list containing the types.

getTypesValue(int index)

public int getTypesValue(int index)

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of types at the given index.

getTypesValueList()

public List<Integer> getTypesValueList()

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for types.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTypes(int index, AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type value)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder setTypes(int index, AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type value)

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Parameters
Name Description
index int

The index to set the value at.

value AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type

The types to set.

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder

This builder for chaining.

setTypesValue(int index, int value)

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder setTypesValue(int index, int value)

Enabled query classification types.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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