Class Answer.Step.Builder (0.42.0)

public static final class Answer.Step.Builder extends GeneratedMessageV3.Builder<Answer.Step.Builder> implements Answer.StepOrBuilder

Step information.

Protobuf type google.cloud.discoveryengine.v1alpha.Answer.Step

Static Methods

getDescriptor()

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

Methods

addActions(Answer.Step.Action value)

public Answer.Step.Builder addActions(Answer.Step.Action value)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameter
Name Description
value Answer.Step.Action
Returns
Type Description
Answer.Step.Builder

addActions(Answer.Step.Action.Builder builderForValue)

public Answer.Step.Builder addActions(Answer.Step.Action.Builder builderForValue)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameter
Name Description
builderForValue Answer.Step.Action.Builder
Returns
Type Description
Answer.Step.Builder

addActions(int index, Answer.Step.Action value)

public Answer.Step.Builder addActions(int index, Answer.Step.Action value)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameters
Name Description
index int
value Answer.Step.Action
Returns
Type Description
Answer.Step.Builder

addActions(int index, Answer.Step.Action.Builder builderForValue)

public Answer.Step.Builder addActions(int index, Answer.Step.Action.Builder builderForValue)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameters
Name Description
index int
builderForValue Answer.Step.Action.Builder
Returns
Type Description
Answer.Step.Builder

addActionsBuilder()

public Answer.Step.Action.Builder addActionsBuilder()

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Returns
Type Description
Answer.Step.Action.Builder

addActionsBuilder(int index)

public Answer.Step.Action.Builder addActionsBuilder(int index)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.Action.Builder

addAllActions(Iterable<? extends Answer.Step.Action> values)

public Answer.Step.Builder addAllActions(Iterable<? extends Answer.Step.Action> values)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1alpha.Answer.Step.Action>
Returns
Type Description
Answer.Step.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Answer.Step.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.Step.Builder
Overrides

build()

public Answer.Step build()
Returns
Type Description
Answer.Step

buildPartial()

public Answer.Step buildPartial()
Returns
Type Description
Answer.Step

clear()

public Answer.Step.Builder clear()
Returns
Type Description
Answer.Step.Builder
Overrides

clearActions()

public Answer.Step.Builder clearActions()

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Returns
Type Description
Answer.Step.Builder

clearDescription()

public Answer.Step.Builder clearDescription()

The description of the step.

string description = 2;

Returns
Type Description
Answer.Step.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Answer.Step.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Answer.Step.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Answer.Step.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Answer.Step.Builder
Overrides

clearState()

public Answer.Step.Builder clearState()

The state of the step.

.google.cloud.discoveryengine.v1alpha.Answer.Step.State state = 1;

Returns
Type Description
Answer.Step.Builder

This builder for chaining.

clearThought()

public Answer.Step.Builder clearThought()

The thought of the step.

string thought = 3;

Returns
Type Description
Answer.Step.Builder

This builder for chaining.

clone()

public Answer.Step.Builder clone()
Returns
Type Description
Answer.Step.Builder
Overrides

getActions(int index)

public Answer.Step.Action getActions(int index)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.Action

getActionsBuilder(int index)

public Answer.Step.Action.Builder getActionsBuilder(int index)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.Action.Builder

getActionsBuilderList()

public List<Answer.Step.Action.Builder> getActionsBuilderList()

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Returns
Type Description
List<Builder>

getActionsCount()

public int getActionsCount()

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Returns
Type Description
int

getActionsList()

public List<Answer.Step.Action> getActionsList()

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Returns
Type Description
List<Action>

getActionsOrBuilder(int index)

public Answer.Step.ActionOrBuilder getActionsOrBuilder(int index)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.ActionOrBuilder

getActionsOrBuilderList()

public List<? extends Answer.Step.ActionOrBuilder> getActionsOrBuilderList()

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1alpha.Answer.Step.ActionOrBuilder>

getDefaultInstanceForType()

public Answer.Step getDefaultInstanceForType()
Returns
Type Description
Answer.Step

getDescription()

public String getDescription()

The description of the step.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the step.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getState()

public Answer.Step.State getState()

The state of the step.

.google.cloud.discoveryengine.v1alpha.Answer.Step.State state = 1;

Returns
Type Description
Answer.Step.State

The state.

getStateValue()

public int getStateValue()

The state of the step.

.google.cloud.discoveryengine.v1alpha.Answer.Step.State state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

getThought()

public String getThought()

The thought of the step.

string thought = 3;

Returns
Type Description
String

The thought.

getThoughtBytes()

public ByteString getThoughtBytes()

The thought of the step.

string thought = 3;

Returns
Type Description
ByteString

The bytes for thought.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Answer.Step other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Answer.Step.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.Step.Builder
Overrides

removeActions(int index)

public Answer.Step.Builder removeActions(int index)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.Builder

setActions(int index, Answer.Step.Action value)

public Answer.Step.Builder setActions(int index, Answer.Step.Action value)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameters
Name Description
index int
value Answer.Step.Action
Returns
Type Description
Answer.Step.Builder

setActions(int index, Answer.Step.Action.Builder builderForValue)

public Answer.Step.Builder setActions(int index, Answer.Step.Action.Builder builderForValue)

Actions.

repeated .google.cloud.discoveryengine.v1alpha.Answer.Step.Action actions = 4;

Parameters
Name Description
index int
builderForValue Answer.Step.Action.Builder
Returns
Type Description
Answer.Step.Builder

setDescription(String value)

public Answer.Step.Builder setDescription(String value)

The description of the step.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Answer.Step.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Answer.Step.Builder setDescriptionBytes(ByteString value)

The description of the step.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Answer.Step.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Answer.Step.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.Step.Builder
Overrides

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

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

setState(Answer.Step.State value)

public Answer.Step.Builder setState(Answer.Step.State value)

The state of the step.

.google.cloud.discoveryengine.v1alpha.Answer.Step.State state = 1;

Parameter
Name Description
value Answer.Step.State

The state to set.

Returns
Type Description
Answer.Step.Builder

This builder for chaining.

setStateValue(int value)

public Answer.Step.Builder setStateValue(int value)

The state of the step.

.google.cloud.discoveryengine.v1alpha.Answer.Step.State state = 1;

Parameter
Name Description
value int

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

Returns
Type Description
Answer.Step.Builder

This builder for chaining.

setThought(String value)

public Answer.Step.Builder setThought(String value)

The thought of the step.

string thought = 3;

Parameter
Name Description
value String

The thought to set.

Returns
Type Description
Answer.Step.Builder

This builder for chaining.

setThoughtBytes(ByteString value)

public Answer.Step.Builder setThoughtBytes(ByteString value)

The thought of the step.

string thought = 3;

Parameter
Name Description
value ByteString

The bytes for thought to set.

Returns
Type Description
Answer.Step.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Answer.Step.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.Step.Builder
Overrides