Class Intent.Message.SimpleResponses.Builder (4.5.11)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse>
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.SimpleResponses.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueIntent.Message.SimpleResponse
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.SimpleResponse.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueIntent.Message.SimpleResponse
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Message.SimpleResponse.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Intent.Message.SimpleResponse.Builder

build()

public Intent.Message.SimpleResponses build()
Returns
TypeDescription
Intent.Message.SimpleResponses

buildPartial()

public Intent.Message.SimpleResponses buildPartial()
Returns
TypeDescription
Intent.Message.SimpleResponses

clear()

public Intent.Message.SimpleResponses.Builder clear()
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.SimpleResponses.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.SimpleResponses.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Intent.Message.SimpleResponses.Builder

clone()

public Intent.Message.SimpleResponses.Builder clone()
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.SimpleResponses getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.SimpleResponses

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getSimpleResponsesCount()

public int getSimpleResponsesCount()

Required. The list of simple responses.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponseOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.SimpleResponses other)

public Intent.Message.SimpleResponses.Builder mergeFrom(Intent.Message.SimpleResponses other)
Parameter
NameDescription
otherIntent.Message.SimpleResponses
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Intent.Message.SimpleResponses.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Intent.Message.SimpleResponses.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.SimpleResponses.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.SimpleResponses.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueIntent.Message.SimpleResponse
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Message.SimpleResponse.Builder
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.SimpleResponses.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Intent.Message.SimpleResponses.Builder
Overrides