Class AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder (0.50.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.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.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.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.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.v1.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
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.v1.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.v1.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()

buildPartial()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec buildPartial()

clear()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTypes()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder clearTypes()

Enabled query classification types.

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

Returns
Type Description
AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder

This builder for chaining.

clone()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder clone()
Overrides

getDefaultInstanceForType()

public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec getDefaultInstanceForType()

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.v1.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.v1.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.v1.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.v1.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.v1.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)

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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
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
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.v1.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.v1.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
Overrides