Class WebhookResponse.FulfillmentResponse.Builder (0.29.0)

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.v3.WebhookResponse.FulfillmentResponse

Static Methods

getDescriptor()

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

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.v3.ResponseMessage messages = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage>
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

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.v3.ResponseMessage messages = 1;

Parameter
Name Description
value ResponseMessage
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

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.v3.ResponseMessage messages = 1;

Parameter
Name Description
builderForValue ResponseMessage.Builder
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

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.v3.ResponseMessage messages = 1;

Parameters
Name Description
index int
value ResponseMessage
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

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.v3.ResponseMessage messages = 1;

Parameters
Name Description
index int
builderForValue ResponseMessage.Builder
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

addMessagesBuilder()

public ResponseMessage.Builder addMessagesBuilder()

The list of rich message responses to present to the user.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;

Returns
Type Description
ResponseMessage.Builder

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.v3.ResponseMessage messages = 1;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WebhookResponse.FulfillmentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
Overrides

build()

public WebhookResponse.FulfillmentResponse build()
Returns
Type Description
WebhookResponse.FulfillmentResponse

buildPartial()

public WebhookResponse.FulfillmentResponse buildPartial()
Returns
Type Description
WebhookResponse.FulfillmentResponse

clear()

public WebhookResponse.FulfillmentResponse.Builder clear()
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WebhookResponse.FulfillmentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
Overrides

clearMergeBehavior()

public WebhookResponse.FulfillmentResponse.Builder clearMergeBehavior()

Merge behavior for messages.

.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior merge_behavior = 2;

Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

This builder for chaining.

clearMessages()

public WebhookResponse.FulfillmentResponse.Builder clearMessages()

The list of rich message responses to present to the user.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;

Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WebhookResponse.FulfillmentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
Overrides

clone()

public WebhookResponse.FulfillmentResponse.Builder clone()
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
Overrides

getDefaultInstanceForType()

public WebhookResponse.FulfillmentResponse getDefaultInstanceForType()
Returns
Type Description
WebhookResponse.FulfillmentResponse

getDescriptorForType()

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

getMergeBehavior()

public WebhookResponse.FulfillmentResponse.MergeBehavior getMergeBehavior()

Merge behavior for messages.

.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior merge_behavior = 2;

Returns
Type Description
WebhookResponse.FulfillmentResponse.MergeBehavior

The mergeBehavior.

getMergeBehaviorValue()

public int getMergeBehaviorValue()

Merge behavior for messages.

.google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage messages = 1;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage

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.v3.ResponseMessage messages = 1;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.Builder

getMessagesBuilderList()

public List<ResponseMessage.Builder> getMessagesBuilderList()

The list of rich message responses to present to the user.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;

Returns
Type Description
List<Builder>

getMessagesCount()

public int getMessagesCount()

The list of rich message responses to present to the user.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;

Returns
Type Description
int

getMessagesList()

public List<ResponseMessage> getMessagesList()

The list of rich message responses to present to the user.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;

Returns
Type Description
List<ResponseMessage>

getMessagesOrBuilder(int index)

public ResponseMessageOrBuilder getMessagesOrBuilder(int index)

The list of rich message responses to present to the user.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessageOrBuilder

getMessagesOrBuilderList()

public List<? extends ResponseMessageOrBuilder> getMessagesOrBuilderList()

The list of rich message responses to present to the user.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WebhookResponse.FulfillmentResponse other)

public WebhookResponse.FulfillmentResponse.Builder mergeFrom(WebhookResponse.FulfillmentResponse other)
Parameter
Name Description
other WebhookResponse.FulfillmentResponse
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WebhookResponse.FulfillmentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WebhookResponse.FulfillmentResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WebhookResponse.FulfillmentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
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.v3.ResponseMessage messages = 1;

Parameter
Name Description
index int
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WebhookResponse.FulfillmentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
Overrides

setMergeBehavior(WebhookResponse.FulfillmentResponse.MergeBehavior value)

public WebhookResponse.FulfillmentResponse.Builder setMergeBehavior(WebhookResponse.FulfillmentResponse.MergeBehavior value)

Merge behavior for messages.

.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior merge_behavior = 2;

Parameter
Name Description
value WebhookResponse.FulfillmentResponse.MergeBehavior

The mergeBehavior to set.

Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

This builder for chaining.

setMergeBehaviorValue(int value)

public WebhookResponse.FulfillmentResponse.Builder setMergeBehaviorValue(int value)

Merge behavior for messages.

.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior merge_behavior = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for mergeBehavior to set.

Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

This builder for chaining.

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.v3.ResponseMessage messages = 1;

Parameters
Name Description
index int
value ResponseMessage
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

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.v3.ResponseMessage messages = 1;

Parameters
Name Description
index int
builderForValue ResponseMessage.Builder
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final WebhookResponse.FulfillmentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WebhookResponse.FulfillmentResponse.Builder
Overrides