Class Intent.Message.SimpleResponses.Builder (4.57.0)

public static final class Intent.Message.SimpleResponses.Builder extends GeneratedMessageV3.Builder<Intent.Message.SimpleResponses.Builder> implements Intent.Message.SimpleResponsesOrBuilder

The collection of simple response candidates. This message in QueryResult.fulfillment_messages and WebhookResponse.fulfillment_messages should contain only one SimpleResponse.

Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses

Static Methods

getDescriptor()

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

Methods

addAllSimpleResponses(Iterable<? extends Intent.Message.SimpleResponse> values)

public Intent.Message.SimpleResponses.Builder addAllSimpleResponses(Iterable<? extends Intent.Message.SimpleResponse> values)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse>
Returns
Type Description
Intent.Message.SimpleResponses.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.SimpleResponses.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Message.SimpleResponses.Builder
Overrides

addSimpleResponses(Intent.Message.SimpleResponse value)

public Intent.Message.SimpleResponses.Builder addSimpleResponses(Intent.Message.SimpleResponse value)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameter
Name Description
value Intent.Message.SimpleResponse
Returns
Type Description
Intent.Message.SimpleResponses.Builder

addSimpleResponses(Intent.Message.SimpleResponse.Builder builderForValue)

public Intent.Message.SimpleResponses.Builder addSimpleResponses(Intent.Message.SimpleResponse.Builder builderForValue)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameter
Name Description
builderForValue Intent.Message.SimpleResponse.Builder
Returns
Type Description
Intent.Message.SimpleResponses.Builder

addSimpleResponses(int index, Intent.Message.SimpleResponse value)

public Intent.Message.SimpleResponses.Builder addSimpleResponses(int index, Intent.Message.SimpleResponse value)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameters
Name Description
index int
value Intent.Message.SimpleResponse
Returns
Type Description
Intent.Message.SimpleResponses.Builder

addSimpleResponses(int index, Intent.Message.SimpleResponse.Builder builderForValue)

public Intent.Message.SimpleResponses.Builder addSimpleResponses(int index, Intent.Message.SimpleResponse.Builder builderForValue)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameters
Name Description
index int
builderForValue Intent.Message.SimpleResponse.Builder
Returns
Type Description
Intent.Message.SimpleResponses.Builder

addSimpleResponsesBuilder()

public Intent.Message.SimpleResponse.Builder addSimpleResponsesBuilder()

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Returns
Type Description
Intent.Message.SimpleResponse.Builder

addSimpleResponsesBuilder(int index)

public Intent.Message.SimpleResponse.Builder addSimpleResponsesBuilder(int index)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.SimpleResponse.Builder

build()

public Intent.Message.SimpleResponses build()
Returns
Type Description
Intent.Message.SimpleResponses

buildPartial()

public Intent.Message.SimpleResponses buildPartial()
Returns
Type Description
Intent.Message.SimpleResponses

clear()

public Intent.Message.SimpleResponses.Builder clear()
Returns
Type Description
Intent.Message.SimpleResponses.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.SimpleResponses.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Intent.Message.SimpleResponses.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.SimpleResponses.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Intent.Message.SimpleResponses.Builder
Overrides

clearSimpleResponses()

public Intent.Message.SimpleResponses.Builder clearSimpleResponses()

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Returns
Type Description
Intent.Message.SimpleResponses.Builder

clone()

public Intent.Message.SimpleResponses.Builder clone()
Returns
Type Description
Intent.Message.SimpleResponses.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.SimpleResponses getDefaultInstanceForType()
Returns
Type Description
Intent.Message.SimpleResponses

getDescriptorForType()

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

getSimpleResponses(int index)

public Intent.Message.SimpleResponse getSimpleResponses(int index)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.SimpleResponse

getSimpleResponsesBuilder(int index)

public Intent.Message.SimpleResponse.Builder getSimpleResponsesBuilder(int index)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.SimpleResponse.Builder

getSimpleResponsesBuilderList()

public List<Intent.Message.SimpleResponse.Builder> getSimpleResponsesBuilderList()

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Returns
Type Description
List<Builder>

getSimpleResponsesCount()

public int getSimpleResponsesCount()

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Returns
Type Description
int

getSimpleResponsesList()

public List<Intent.Message.SimpleResponse> getSimpleResponsesList()

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Returns
Type Description
List<SimpleResponse>

getSimpleResponsesOrBuilder(int index)

public Intent.Message.SimpleResponseOrBuilder getSimpleResponsesOrBuilder(int index)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.SimpleResponseOrBuilder

getSimpleResponsesOrBuilderList()

public List<? extends Intent.Message.SimpleResponseOrBuilder> getSimpleResponsesOrBuilderList()

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.SimpleResponses other)

public Intent.Message.SimpleResponses.Builder mergeFrom(Intent.Message.SimpleResponses other)
Parameter
Name Description
other Intent.Message.SimpleResponses
Returns
Type Description
Intent.Message.SimpleResponses.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.SimpleResponses.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.SimpleResponses.Builder
Overrides

removeSimpleResponses(int index)

public Intent.Message.SimpleResponses.Builder removeSimpleResponses(int index)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.SimpleResponses.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.SimpleResponses.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Message.SimpleResponses.Builder
Overrides

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

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

setSimpleResponses(int index, Intent.Message.SimpleResponse value)

public Intent.Message.SimpleResponses.Builder setSimpleResponses(int index, Intent.Message.SimpleResponse value)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameters
Name Description
index int
value Intent.Message.SimpleResponse
Returns
Type Description
Intent.Message.SimpleResponses.Builder

setSimpleResponses(int index, Intent.Message.SimpleResponse.Builder builderForValue)

public Intent.Message.SimpleResponses.Builder setSimpleResponses(int index, Intent.Message.SimpleResponse.Builder builderForValue)

Required. The list of simple responses.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse simple_responses = 1;

Parameters
Name Description
index int
builderForValue Intent.Message.SimpleResponse.Builder
Returns
Type Description
Intent.Message.SimpleResponses.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.SimpleResponses.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.SimpleResponses.Builder
Overrides