Class OptionQuestionsChunk.Builder (0.19.0)

public static final class OptionQuestionsChunk.Builder extends GeneratedMessage.Builder<OptionQuestionsChunk.Builder> implements OptionQuestionsChunkOrBuilder

Structured clarification options the assistant asks the user to choose among, transduced server-side out of the model's turn (the option block is stripped from the streamed and persisted text). The console renders a keyboard-navigable option list docked above the composer.

Protobuf type google.cloud.ces.v1beta.OptionQuestionsChunk

Static Methods

getDescriptor()

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

Methods

addAllQuestions(Iterable<? extends OptionQuestionsChunk.Question> values)

public OptionQuestionsChunk.Builder addAllQuestions(Iterable<? extends OptionQuestionsChunk.Question> values)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question>
Returns
Type Description
OptionQuestionsChunk.Builder

addQuestions(OptionQuestionsChunk.Question value)

public OptionQuestionsChunk.Builder addQuestions(OptionQuestionsChunk.Question value)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameter
Name Description
value OptionQuestionsChunk.Question
Returns
Type Description
OptionQuestionsChunk.Builder

addQuestions(OptionQuestionsChunk.Question.Builder builderForValue)

public OptionQuestionsChunk.Builder addQuestions(OptionQuestionsChunk.Question.Builder builderForValue)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameter
Name Description
builderForValue OptionQuestionsChunk.Question.Builder
Returns
Type Description
OptionQuestionsChunk.Builder

addQuestions(int index, OptionQuestionsChunk.Question value)

public OptionQuestionsChunk.Builder addQuestions(int index, OptionQuestionsChunk.Question value)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameters
Name Description
index int
value OptionQuestionsChunk.Question
Returns
Type Description
OptionQuestionsChunk.Builder

addQuestions(int index, OptionQuestionsChunk.Question.Builder builderForValue)

public OptionQuestionsChunk.Builder addQuestions(int index, OptionQuestionsChunk.Question.Builder builderForValue)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameters
Name Description
index int
builderForValue OptionQuestionsChunk.Question.Builder
Returns
Type Description
OptionQuestionsChunk.Builder

addQuestionsBuilder()

public OptionQuestionsChunk.Question.Builder addQuestionsBuilder()

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Returns
Type Description
OptionQuestionsChunk.Question.Builder

addQuestionsBuilder(int index)

public OptionQuestionsChunk.Question.Builder addQuestionsBuilder(int index)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameter
Name Description
index int
Returns
Type Description
OptionQuestionsChunk.Question.Builder

build()

public OptionQuestionsChunk build()
Returns
Type Description
OptionQuestionsChunk

buildPartial()

public OptionQuestionsChunk buildPartial()
Returns
Type Description
OptionQuestionsChunk

clear()

public OptionQuestionsChunk.Builder clear()
Returns
Type Description
OptionQuestionsChunk.Builder
Overrides

clearQuestions()

public OptionQuestionsChunk.Builder clearQuestions()

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Returns
Type Description
OptionQuestionsChunk.Builder

getDefaultInstanceForType()

public OptionQuestionsChunk getDefaultInstanceForType()
Returns
Type Description
OptionQuestionsChunk

getDescriptorForType()

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

getQuestions(int index)

public OptionQuestionsChunk.Question getQuestions(int index)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameter
Name Description
index int
Returns
Type Description
OptionQuestionsChunk.Question

getQuestionsBuilder(int index)

public OptionQuestionsChunk.Question.Builder getQuestionsBuilder(int index)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameter
Name Description
index int
Returns
Type Description
OptionQuestionsChunk.Question.Builder

getQuestionsBuilderList()

public List<OptionQuestionsChunk.Question.Builder> getQuestionsBuilderList()

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Returns
Type Description
List<Builder>

getQuestionsCount()

public int getQuestionsCount()

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Returns
Type Description
int

getQuestionsList()

public List<OptionQuestionsChunk.Question> getQuestionsList()

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Returns
Type Description
List<Question>

getQuestionsOrBuilder(int index)

public OptionQuestionsChunk.QuestionOrBuilder getQuestionsOrBuilder(int index)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameter
Name Description
index int
Returns
Type Description
OptionQuestionsChunk.QuestionOrBuilder

getQuestionsOrBuilderList()

public List<? extends OptionQuestionsChunk.QuestionOrBuilder> getQuestionsOrBuilderList()

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OptionQuestionsChunk other)

public OptionQuestionsChunk.Builder mergeFrom(OptionQuestionsChunk other)
Parameter
Name Description
other OptionQuestionsChunk
Returns
Type Description
OptionQuestionsChunk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public OptionQuestionsChunk.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OptionQuestionsChunk.Builder
Overrides

removeQuestions(int index)

public OptionQuestionsChunk.Builder removeQuestions(int index)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameter
Name Description
index int
Returns
Type Description
OptionQuestionsChunk.Builder

setQuestions(int index, OptionQuestionsChunk.Question value)

public OptionQuestionsChunk.Builder setQuestions(int index, OptionQuestionsChunk.Question value)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameters
Name Description
index int
value OptionQuestionsChunk.Question
Returns
Type Description
OptionQuestionsChunk.Builder

setQuestions(int index, OptionQuestionsChunk.Question.Builder builderForValue)

public OptionQuestionsChunk.Builder setQuestions(int index, OptionQuestionsChunk.Question.Builder builderForValue)

The questions asked this turn. More than one entry drives the console's "1 of N" pager.

repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 1;

Parameters
Name Description
index int
builderForValue OptionQuestionsChunk.Question.Builder
Returns
Type Description
OptionQuestionsChunk.Builder