public static final class ClarificationQuestion.Builder extends GeneratedMessage.Builder<ClarificationQuestion.Builder> implements ClarificationQuestionOrBuilderRepresents a single question to the user to help clarify their query.
Protobuf type google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ClarificationQuestion.BuilderImplements
ClarificationQuestionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllOptions(Iterable<String> values)
public ClarificationQuestion.Builder addAllOptions(Iterable<String> values)Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The options to add. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
addOptions(String value)
public ClarificationQuestion.Builder addOptions(String value)Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe options to add. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
addOptionsBytes(ByteString value)
public ClarificationQuestion.Builder addOptionsBytes(ByteString value)Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the options to add. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
build()
public ClarificationQuestion build()| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion |
|
buildPartial()
public ClarificationQuestion buildPartial()| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion |
|
clear()
public ClarificationQuestion.Builder clear()| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
|
clearClarificationQuestionType()
public ClarificationQuestion.Builder clearClarificationQuestionType()Optional. The type of clarification question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
clearOptions()
public ClarificationQuestion.Builder clearOptions()Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
clearQuestion()
public ClarificationQuestion.Builder clearQuestion()Required. The natural language question to ask the user.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
clearSelectionMode()
public ClarificationQuestion.Builder clearSelectionMode()Required. The selection mode for this question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
getClarificationQuestionType()
public ClarificationQuestion.ClarificationQuestionType getClarificationQuestionType()Optional. The type of clarification question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.ClarificationQuestionType |
The clarificationQuestionType. |
getClarificationQuestionTypeValue()
public int getClarificationQuestionTypeValue()Optional. The type of clarification question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for clarificationQuestionType. |
getDefaultInstanceForType()
public ClarificationQuestion getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOptions(int index)
public String getOptions(int index)Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The options at the given index. |
getOptionsBytes(int index)
public ByteString getOptionsBytes(int index)Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the options at the given index. |
getOptionsCount()
public int getOptionsCount()Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of options. |
getOptionsList()
public ProtocolStringList getOptionsList()Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the options. |
getQuestion()
public String getQuestion()Required. The natural language question to ask the user.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The question. |
getQuestionBytes()
public ByteString getQuestionBytes()Required. The natural language question to ask the user.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for question. |
getSelectionMode()
public ClarificationQuestion.SelectionMode getSelectionMode()Required. The selection mode for this question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.SelectionMode |
The selectionMode. |
getSelectionModeValue()
public int getSelectionModeValue()Required. The selection mode for this question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for selectionMode. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ClarificationQuestion other)
public ClarificationQuestion.Builder mergeFrom(ClarificationQuestion other)| Parameter | |
|---|---|
| Name | Description |
other |
ClarificationQuestion |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ClarificationQuestion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ClarificationQuestion.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
|
setClarificationQuestionType(ClarificationQuestion.ClarificationQuestionType value)
public ClarificationQuestion.Builder setClarificationQuestionType(ClarificationQuestion.ClarificationQuestionType value)Optional. The type of clarification question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ClarificationQuestion.ClarificationQuestionTypeThe clarificationQuestionType to set. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
setClarificationQuestionTypeValue(int value)
public ClarificationQuestion.Builder setClarificationQuestionTypeValue(int value)Optional. The type of clarification question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for clarificationQuestionType to set. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
setOptions(int index, String value)
public ClarificationQuestion.Builder setOptions(int index, String value)Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe options to set. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
setQuestion(String value)
public ClarificationQuestion.Builder setQuestion(String value)Required. The natural language question to ask the user.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe question to set. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
setQuestionBytes(ByteString value)
public ClarificationQuestion.Builder setQuestionBytes(ByteString value)Required. The natural language question to ask the user.
string question = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for question to set. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
setSelectionMode(ClarificationQuestion.SelectionMode value)
public ClarificationQuestion.Builder setSelectionMode(ClarificationQuestion.SelectionMode value)Required. The selection mode for this question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ClarificationQuestion.SelectionModeThe selectionMode to set. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |
setSelectionModeValue(int value)
public ClarificationQuestion.Builder setSelectionModeValue(int value)Required. The selection mode for this question.
.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for selectionMode to set. |
| Returns | |
|---|---|
| Type | Description |
ClarificationQuestion.Builder |
This builder for chaining. |