Class WebhookResponse.FulfillmentResponse.Builder (0.66.0)

See more code actions.
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

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()
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>

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

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

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

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

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
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()
Overrides

clearField(Descriptors.FieldDescriptor field)

public WebhookResponse.FulfillmentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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;

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public WebhookResponse.FulfillmentResponse.Builder clone()
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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WebhookResponse.FulfillmentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public WebhookResponse.FulfillmentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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

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

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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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