public static final class WebhookResponse.Builder extends GeneratedMessageV3.Builder<WebhookResponse.Builder> implements WebhookResponseOrBuilder
The response message for a webhook call.Protobuf type
google.cloud.dialogflow.v2beta1.WebhookResponse
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public WebhookResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public WebhookResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public WebhookResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder mergeFrom(WebhookResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<WebhookResponse.Builder>
java.io.IOException
public java.lang.String getFulfillmentText()
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;
getFulfillmentText
in interface WebhookResponseOrBuilder
public ByteString getFulfillmentTextBytes()
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;
getFulfillmentTextBytes
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setFulfillmentText(java.lang.String value)
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;
public WebhookResponse.Builder clearFulfillmentText()
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;
public WebhookResponse.Builder setFulfillmentTextBytes(ByteString value)
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;
public java.util.List<Intent.Message> getFulfillmentMessagesList()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
getFulfillmentMessagesList
in interface WebhookResponseOrBuilder
public int getFulfillmentMessagesCount()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
getFulfillmentMessagesCount
in interface WebhookResponseOrBuilder
public Intent.Message getFulfillmentMessages(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
getFulfillmentMessages
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setFulfillmentMessages(int index, Intent.Message value)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public WebhookResponse.Builder setFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public WebhookResponse.Builder addFulfillmentMessages(Intent.Message value)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public WebhookResponse.Builder addFulfillmentMessages(int index, Intent.Message value)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public WebhookResponse.Builder addFulfillmentMessages(Intent.Message.Builder builderForValue)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public WebhookResponse.Builder addFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public WebhookResponse.Builder addAllFulfillmentMessages(java.lang.Iterable<? extends Intent.Message> values)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public WebhookResponse.Builder clearFulfillmentMessages()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public WebhookResponse.Builder removeFulfillmentMessages(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public Intent.Message.Builder getFulfillmentMessagesBuilder(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public Intent.MessageOrBuilder getFulfillmentMessagesOrBuilder(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
getFulfillmentMessagesOrBuilder
in interface WebhookResponseOrBuilder
public java.util.List<? extends Intent.MessageOrBuilder> getFulfillmentMessagesOrBuilderList()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
getFulfillmentMessagesOrBuilderList
in interface WebhookResponseOrBuilder
public Intent.Message.Builder addFulfillmentMessagesBuilder()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public Intent.Message.Builder addFulfillmentMessagesBuilder(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public java.util.List<Intent.Message.Builder> getFulfillmentMessagesBuilderList()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
public java.lang.String getSource()
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;
getSource
in interface WebhookResponseOrBuilder
public ByteString getSourceBytes()
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;
getSourceBytes
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setSource(java.lang.String value)
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;
public WebhookResponse.Builder clearSource()
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;
public WebhookResponse.Builder setSourceBytes(ByteString value)
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;
public boolean hasPayload()
Optional. This value is passed directly to `QueryResult.webhook_payload`. See the related `fulfillment_messages[i].payload field`, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } }</pre>
.google.protobuf.Struct payload = 4;
hasPayload
in interface WebhookResponseOrBuilder
public Struct getPayload()
Optional. This value is passed directly to `QueryResult.webhook_payload`. See the related `fulfillment_messages[i].payload field`, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } }</pre>
.google.protobuf.Struct payload = 4;
getPayload
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setPayload(Struct value)
Optional. This value is passed directly to `QueryResult.webhook_payload`. See the related `fulfillment_messages[i].payload field`, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } }</pre>
.google.protobuf.Struct payload = 4;
public WebhookResponse.Builder setPayload(Struct.Builder builderForValue)
Optional. This value is passed directly to `QueryResult.webhook_payload`. See the related `fulfillment_messages[i].payload field`, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } }</pre>
.google.protobuf.Struct payload = 4;
public WebhookResponse.Builder mergePayload(Struct value)
Optional. This value is passed directly to `QueryResult.webhook_payload`. See the related `fulfillment_messages[i].payload field`, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } }</pre>
.google.protobuf.Struct payload = 4;
public WebhookResponse.Builder clearPayload()
Optional. This value is passed directly to `QueryResult.webhook_payload`. See the related `fulfillment_messages[i].payload field`, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } }</pre>
.google.protobuf.Struct payload = 4;
public Struct.Builder getPayloadBuilder()
Optional. This value is passed directly to `QueryResult.webhook_payload`. See the related `fulfillment_messages[i].payload field`, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } }</pre>
.google.protobuf.Struct payload = 4;
public StructOrBuilder getPayloadOrBuilder()
Optional. This value is passed directly to `QueryResult.webhook_payload`. See the related `fulfillment_messages[i].payload field`, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "this is a simple response" } } ] } } }</pre>
.google.protobuf.Struct payload = 4;
getPayloadOrBuilder
in interface WebhookResponseOrBuilder
public java.util.List<Context> getOutputContextsList()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
getOutputContextsList
in interface WebhookResponseOrBuilder
public int getOutputContextsCount()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
getOutputContextsCount
in interface WebhookResponseOrBuilder
public Context getOutputContexts(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
getOutputContexts
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setOutputContexts(int index, Context value)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public WebhookResponse.Builder setOutputContexts(int index, Context.Builder builderForValue)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public WebhookResponse.Builder addOutputContexts(Context value)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public WebhookResponse.Builder addOutputContexts(int index, Context value)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public WebhookResponse.Builder addOutputContexts(Context.Builder builderForValue)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public WebhookResponse.Builder addOutputContexts(int index, Context.Builder builderForValue)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public WebhookResponse.Builder addAllOutputContexts(java.lang.Iterable<? extends Context> values)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public WebhookResponse.Builder clearOutputContexts()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public WebhookResponse.Builder removeOutputContexts(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public Context.Builder getOutputContextsBuilder(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public ContextOrBuilder getOutputContextsOrBuilder(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
getOutputContextsOrBuilder
in interface WebhookResponseOrBuilder
public java.util.List<? extends ContextOrBuilder> getOutputContextsOrBuilderList()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
getOutputContextsOrBuilderList
in interface WebhookResponseOrBuilder
public Context.Builder addOutputContextsBuilder()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public Context.Builder addOutputContextsBuilder(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public java.util.List<Context.Builder> getOutputContextsBuilderList()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
public boolean hasFollowupEventInput()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;
hasFollowupEventInput
in interface WebhookResponseOrBuilder
public EventInput getFollowupEventInput()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;
getFollowupEventInput
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setFollowupEventInput(EventInput value)
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;
public WebhookResponse.Builder setFollowupEventInput(EventInput.Builder builderForValue)
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;
public WebhookResponse.Builder mergeFollowupEventInput(EventInput value)
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;
public WebhookResponse.Builder clearFollowupEventInput()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;
public EventInput.Builder getFollowupEventInputBuilder()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;
public EventInputOrBuilder getFollowupEventInputOrBuilder()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;
getFollowupEventInputOrBuilder
in interface WebhookResponseOrBuilder
public final WebhookResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public final WebhookResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>