Class WebhookResponse.FulfillmentResponse.Builder (0.13.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage>
Returns
TypeDescription
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
NameDescription
valueResponseMessage
Returns
TypeDescription
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
NameDescription
builderForValueResponseMessage.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WebhookResponse.FulfillmentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder
Overrides

build()

public WebhookResponse.FulfillmentResponse build()
Returns
TypeDescription
WebhookResponse.FulfillmentResponse

buildPartial()

public WebhookResponse.FulfillmentResponse buildPartial()
Returns
TypeDescription
WebhookResponse.FulfillmentResponse

clear()

public WebhookResponse.FulfillmentResponse.Builder clear()
Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WebhookResponse.FulfillmentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
WebhookResponse.FulfillmentResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WebhookResponse.FulfillmentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder
Overrides

clone()

public WebhookResponse.FulfillmentResponse.Builder clone()
Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder
Overrides

getDefaultInstanceForType()

public WebhookResponse.FulfillmentResponse getDefaultInstanceForType()
Returns
TypeDescription
WebhookResponse.FulfillmentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMergeBehavior()

public WebhookResponse.FulfillmentResponse.MergeBehavior getMergeBehavior()

Merge behavior for messages.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WebhookResponse.FulfillmentResponse other)

public WebhookResponse.FulfillmentResponse.Builder mergeFrom(WebhookResponse.FulfillmentResponse other)
Parameter
NameDescription
otherWebhookResponse.FulfillmentResponse
Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WebhookResponse.FulfillmentResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WebhookResponse.FulfillmentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWebhookResponse.FulfillmentResponse.MergeBehavior

The mergeBehavior to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder

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

public WebhookResponse.FulfillmentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WebhookResponse.FulfillmentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WebhookResponse.FulfillmentResponse.Builder
Overrides