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.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec
Inherited Members
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()
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.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type>
The types to add.
|
addAllTypesValue(Iterable<Integer> values)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder addAllTypesValue(Iterable<Integer> values)
Enabled query classification types.
repeated .google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
Parameter |
Name |
Description |
values |
Iterable<Integer>
The enum numeric values on the wire for types to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
addTypesValue(int value)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder addTypesValue(int value)
Enabled query classification types.
repeated .google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for types to add.
|
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)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTypes()
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder clearTypes()
Enabled query classification types.
repeated .google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
clone()
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder clone()
Overrides
getDefaultInstanceForType()
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTypes(int index)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type getTypes(int index)
Enabled query classification types.
repeated .google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
getTypesCount()
public int getTypesCount()
Enabled query classification types.
repeated .google.cloud.discoveryengine.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec other)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder mergeFrom(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec other)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
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)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
setTypesValue(int index, int value)
public AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder setTypesValue(int index, int value)
Enabled query classification types.
repeated .google.cloud.discoveryengine.v1alpha.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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides