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.v2.Intent.Message.SimpleResponses
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponse>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.SimpleResponses.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
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.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
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.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
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.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
addSimpleResponsesBuilder()
public Intent.Message.SimpleResponse.Builder addSimpleResponsesBuilder()
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
addSimpleResponsesBuilder(int index)
public Intent.Message.SimpleResponse.Builder addSimpleResponsesBuilder(int index)
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
build()
public Intent.Message.SimpleResponses build()
Returns
buildPartial()
public Intent.Message.SimpleResponses buildPartial()
Returns
clear()
public Intent.Message.SimpleResponses.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Intent.Message.SimpleResponses.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Intent.Message.SimpleResponses.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSimpleResponses()
public Intent.Message.SimpleResponses.Builder clearSimpleResponses()
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public Intent.Message.SimpleResponses.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Intent.Message.SimpleResponses getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSimpleResponses(int index)
public Intent.Message.SimpleResponse getSimpleResponses(int index)
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getSimpleResponsesBuilder(int index)
public Intent.Message.SimpleResponse.Builder getSimpleResponsesBuilder(int index)
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getSimpleResponsesBuilderList()
public List<Intent.Message.SimpleResponse.Builder> getSimpleResponsesBuilderList()
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getSimpleResponsesCount()
public int getSimpleResponsesCount()
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getSimpleResponsesList()
public List<Intent.Message.SimpleResponse> getSimpleResponsesList()
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getSimpleResponsesOrBuilder(int index)
public Intent.Message.SimpleResponseOrBuilder getSimpleResponsesOrBuilder(int index)
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getSimpleResponsesOrBuilderList()
public List<? extends Intent.Message.SimpleResponseOrBuilder> getSimpleResponsesOrBuilderList()
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
List<? extends com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponseOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Intent.Message.SimpleResponses other)
public Intent.Message.SimpleResponses.Builder mergeFrom(Intent.Message.SimpleResponses other)
Parameter
Returns
public Intent.Message.SimpleResponses.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Intent.Message.SimpleResponses.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.SimpleResponses.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeSimpleResponses(int index)
public Intent.Message.SimpleResponses.Builder removeSimpleResponses(int index)
Required. The list of simple responses.
repeated .google.cloud.dialogflow.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.SimpleResponses.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Intent.Message.SimpleResponses.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
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.v2.Intent.Message.SimpleResponse simple_responses = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.SimpleResponses.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides