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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.SimpleResponses.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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];
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];
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];
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 |
Name |
Description |
index |
int
|
build()
public Intent.Message.SimpleResponses build()
buildPartial()
public Intent.Message.SimpleResponses buildPartial()
clear()
public Intent.Message.SimpleResponses.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Intent.Message.SimpleResponses.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Intent.Message.SimpleResponses.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public Intent.Message.SimpleResponses.Builder clone()
Overrides
getDefaultInstanceForType()
public Intent.Message.SimpleResponses getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Name |
Description |
index |
int
|
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 |
Name |
Description |
index |
int
|
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];
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 |
Type |
Description |
int |
|
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];
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 |
Name |
Description |
index |
int
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Intent.Message.SimpleResponses other)
public Intent.Message.SimpleResponses.Builder mergeFrom(Intent.Message.SimpleResponses other)
public Intent.Message.SimpleResponses.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Intent.Message.SimpleResponses.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.SimpleResponses.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.SimpleResponses.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Intent.Message.SimpleResponses.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.SimpleResponses.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides