public static final class WebhookResponse.FulfillmentResponse.Builder extends GeneratedMessageV3.Builder<WebhookResponse.FulfillmentResponse.Builder> implements WebhookResponse.FulfillmentResponseOrBuilder
Represents a fulfillment response to the user.
Protobuf type google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllMessages(Iterable<? extends ResponseMessage> values)
public WebhookResponse.FulfillmentResponse.Builder addAllMessages(Iterable<? extends ResponseMessage> values)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameter
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage>
|
Returns
addMessages(ResponseMessage value)
public WebhookResponse.FulfillmentResponse.Builder addMessages(ResponseMessage value)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameter
Returns
addMessages(ResponseMessage.Builder builderForValue)
public WebhookResponse.FulfillmentResponse.Builder addMessages(ResponseMessage.Builder builderForValue)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameter
Returns
addMessages(int index, ResponseMessage value)
public WebhookResponse.FulfillmentResponse.Builder addMessages(int index, ResponseMessage value)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameters
Returns
addMessages(int index, ResponseMessage.Builder builderForValue)
public WebhookResponse.FulfillmentResponse.Builder addMessages(int index, ResponseMessage.Builder builderForValue)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameters
Returns
addMessagesBuilder()
public ResponseMessage.Builder addMessagesBuilder()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Returns
addMessagesBuilder(int index)
public ResponseMessage.Builder addMessagesBuilder(int index)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WebhookResponse.FulfillmentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public WebhookResponse.FulfillmentResponse build()
Returns
buildPartial()
public WebhookResponse.FulfillmentResponse buildPartial()
Returns
clear()
public WebhookResponse.FulfillmentResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public WebhookResponse.FulfillmentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMergeBehavior()
public WebhookResponse.FulfillmentResponse.Builder clearMergeBehavior()
Merge behavior for messages
.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior merge_behavior = 2;
Returns
clearMessages()
public WebhookResponse.FulfillmentResponse.Builder clearMessages()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public WebhookResponse.FulfillmentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public WebhookResponse.FulfillmentResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public WebhookResponse.FulfillmentResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMergeBehavior()
public WebhookResponse.FulfillmentResponse.MergeBehavior getMergeBehavior()
Merge behavior for messages
.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior merge_behavior = 2;
Returns
getMergeBehaviorValue()
public int getMergeBehaviorValue()
Merge behavior for messages
.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior merge_behavior = 2;
Returns
Type |
Description |
int |
The enum numeric value on the wire for mergeBehavior.
|
getMessages(int index)
public ResponseMessage getMessages(int index)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getMessagesBuilder(int index)
public ResponseMessage.Builder getMessagesBuilder(int index)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getMessagesBuilderList()
public List<ResponseMessage.Builder> getMessagesBuilderList()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Returns
getMessagesCount()
public int getMessagesCount()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Returns
getMessagesList()
public List<ResponseMessage> getMessagesList()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Returns
getMessagesOrBuilder(int index)
public ResponseMessageOrBuilder getMessagesOrBuilder(int index)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getMessagesOrBuilderList()
public List<? extends ResponseMessageOrBuilder> getMessagesOrBuilderList()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Returns
Type |
Description |
List<? extends com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(WebhookResponse.FulfillmentResponse other)
public WebhookResponse.FulfillmentResponse.Builder mergeFrom(WebhookResponse.FulfillmentResponse other)
Parameter
Returns
public WebhookResponse.FulfillmentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public WebhookResponse.FulfillmentResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WebhookResponse.FulfillmentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeMessages(int index)
public WebhookResponse.FulfillmentResponse.Builder removeMessages(int index)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameter
Name |
Description |
index |
int
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public WebhookResponse.FulfillmentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMergeBehavior(WebhookResponse.FulfillmentResponse.MergeBehavior value)
public WebhookResponse.FulfillmentResponse.Builder setMergeBehavior(WebhookResponse.FulfillmentResponse.MergeBehavior value)
Merge behavior for messages
.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior merge_behavior = 2;
Parameter
Returns
setMergeBehaviorValue(int value)
public WebhookResponse.FulfillmentResponse.Builder setMergeBehaviorValue(int value)
Merge behavior for messages
.
.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior merge_behavior = 2;
Parameter
Name |
Description |
value |
int
The enum numeric value on the wire for mergeBehavior to set.
|
Returns
setMessages(int index, ResponseMessage value)
public WebhookResponse.FulfillmentResponse.Builder setMessages(int index, ResponseMessage value)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameters
Returns
setMessages(int index, ResponseMessage.Builder builderForValue)
public WebhookResponse.FulfillmentResponse.Builder setMessages(int index, ResponseMessage.Builder builderForValue)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WebhookResponse.FulfillmentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final WebhookResponse.FulfillmentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides