public static final class WebhookRequest.Builder extends GeneratedMessageV3.Builder<WebhookRequest.Builder> implements WebhookRequestOrBuilderThe request message for a webhook call.
Protobuf type google.cloud.dialogflow.v2.WebhookRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WebhookRequest.BuilderImplements
WebhookRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Type | Description |
WebhookRequest.Builder |
build()
public WebhookRequest build()| Type | Description |
WebhookRequest |
buildPartial()
public WebhookRequest buildPartial()| Type | Description |
WebhookRequest |
clear()
public WebhookRequest.Builder clear()| Type | Description |
WebhookRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public WebhookRequest.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
field |
FieldDescriptor |
| Type | Description |
WebhookRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public WebhookRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
oneof |
OneofDescriptor |
| Type | Description |
WebhookRequest.Builder |
clearOriginalDetectIntentRequest()
public WebhookRequest.Builder clearOriginalDetectIntentRequest() Optional. The contents of the original request that was passed to
[Streaming]DetectIntent call.
.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;
| Type | Description |
WebhookRequest.Builder |
clearQueryResult()
public WebhookRequest.Builder clearQueryResult() The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result.
.google.cloud.dialogflow.v2.QueryResult query_result = 2;
| Type | Description |
WebhookRequest.Builder |
clearResponseId()
public WebhookRequest.Builder clearResponseId() The unique identifier of the response. Contains the same value as
[Streaming]DetectIntentResponse.response_id.
string response_id = 1;
| Type | Description |
WebhookRequest.Builder |
This builder for chaining. |
clearSession()
public WebhookRequest.Builder clearSession() The unique identifier of detectIntent request session.
Can be used to identify end-user inside webhook implementation.
Format: projects/<Project ID>/agent/sessions/<Session ID>, or
projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>.
string session = 4;
| Type | Description |
WebhookRequest.Builder |
This builder for chaining. |
clone()
public WebhookRequest.Builder clone()| Type | Description |
WebhookRequest.Builder |
getDefaultInstanceForType()
public WebhookRequest getDefaultInstanceForType()| Type | Description |
WebhookRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
Descriptor |
getOriginalDetectIntentRequest()
public OriginalDetectIntentRequest getOriginalDetectIntentRequest() Optional. The contents of the original request that was passed to
[Streaming]DetectIntent call.
.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;
| Type | Description |
OriginalDetectIntentRequest |
The originalDetectIntentRequest. |
getOriginalDetectIntentRequestBuilder()
public OriginalDetectIntentRequest.Builder getOriginalDetectIntentRequestBuilder() Optional. The contents of the original request that was passed to
[Streaming]DetectIntent call.
.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;
| Type | Description |
OriginalDetectIntentRequest.Builder |
getOriginalDetectIntentRequestOrBuilder()
public OriginalDetectIntentRequestOrBuilder getOriginalDetectIntentRequestOrBuilder() Optional. The contents of the original request that was passed to
[Streaming]DetectIntent call.
.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;
| Type | Description |
OriginalDetectIntentRequestOrBuilder |
getQueryResult()
public QueryResult getQueryResult() The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result.
.google.cloud.dialogflow.v2.QueryResult query_result = 2;
| Type | Description |
QueryResult |
The queryResult. |
getQueryResultBuilder()
public QueryResult.Builder getQueryResultBuilder() The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result.
.google.cloud.dialogflow.v2.QueryResult query_result = 2;
| Type | Description |
QueryResult.Builder |
getQueryResultOrBuilder()
public QueryResultOrBuilder getQueryResultOrBuilder() The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result.
.google.cloud.dialogflow.v2.QueryResult query_result = 2;
| Type | Description |
QueryResultOrBuilder |
getResponseId()
public String getResponseId() The unique identifier of the response. Contains the same value as
[Streaming]DetectIntentResponse.response_id.
string response_id = 1;
| Type | Description |
String |
The responseId. |
getResponseIdBytes()
public ByteString getResponseIdBytes() The unique identifier of the response. Contains the same value as
[Streaming]DetectIntentResponse.response_id.
string response_id = 1;
| Type | Description |
ByteString |
The bytes for responseId. |
getSession()
public String getSession() The unique identifier of detectIntent request session.
Can be used to identify end-user inside webhook implementation.
Format: projects/<Project ID>/agent/sessions/<Session ID>, or
projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>.
string session = 4;
| Type | Description |
String |
The session. |
getSessionBytes()
public ByteString getSessionBytes() The unique identifier of detectIntent request session.
Can be used to identify end-user inside webhook implementation.
Format: projects/<Project ID>/agent/sessions/<Session ID>, or
projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>.
string session = 4;
| Type | Description |
ByteString |
The bytes for session. |
hasOriginalDetectIntentRequest()
public boolean hasOriginalDetectIntentRequest() Optional. The contents of the original request that was passed to
[Streaming]DetectIntent call.
.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;
| Type | Description |
boolean |
Whether the originalDetectIntentRequest field is set. |
hasQueryResult()
public boolean hasQueryResult() The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result.
.google.cloud.dialogflow.v2.QueryResult query_result = 2;
| Type | Description |
boolean |
Whether the queryResult field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
boolean |
mergeFrom(WebhookRequest other)
public WebhookRequest.Builder mergeFrom(WebhookRequest other)| Name | Description |
other |
WebhookRequest |
| Type | Description |
WebhookRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WebhookRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Type | Description |
WebhookRequest.Builder |
| Type | Description |
IOException |
mergeFrom(Message other)
public WebhookRequest.Builder mergeFrom(Message other)| Name | Description |
other |
Message |
| Type | Description |
WebhookRequest.Builder |
mergeOriginalDetectIntentRequest(OriginalDetectIntentRequest value)
public WebhookRequest.Builder mergeOriginalDetectIntentRequest(OriginalDetectIntentRequest value) Optional. The contents of the original request that was passed to
[Streaming]DetectIntent call.
.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;
| Name | Description |
value |
OriginalDetectIntentRequest |
| Type | Description |
WebhookRequest.Builder |
mergeQueryResult(QueryResult value)
public WebhookRequest.Builder mergeQueryResult(QueryResult value) The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result.
.google.cloud.dialogflow.v2.QueryResult query_result = 2;
| Name | Description |
value |
QueryResult |
| Type | Description |
WebhookRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
unknownFields |
UnknownFieldSet |
| Type | Description |
WebhookRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Type | Description |
WebhookRequest.Builder |
setOriginalDetectIntentRequest(OriginalDetectIntentRequest value)
public WebhookRequest.Builder setOriginalDetectIntentRequest(OriginalDetectIntentRequest value) Optional. The contents of the original request that was passed to
[Streaming]DetectIntent call.
.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;
| Name | Description |
value |
OriginalDetectIntentRequest |
| Type | Description |
WebhookRequest.Builder |
setOriginalDetectIntentRequest(OriginalDetectIntentRequest.Builder builderForValue)
public WebhookRequest.Builder setOriginalDetectIntentRequest(OriginalDetectIntentRequest.Builder builderForValue) Optional. The contents of the original request that was passed to
[Streaming]DetectIntent call.
.google.cloud.dialogflow.v2.OriginalDetectIntentRequest original_detect_intent_request = 3;
| Name | Description |
builderForValue |
OriginalDetectIntentRequest.Builder |
| Type | Description |
WebhookRequest.Builder |
setQueryResult(QueryResult value)
public WebhookRequest.Builder setQueryResult(QueryResult value) The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result.
.google.cloud.dialogflow.v2.QueryResult query_result = 2;
| Name | Description |
value |
QueryResult |
| Type | Description |
WebhookRequest.Builder |
setQueryResult(QueryResult.Builder builderForValue)
public WebhookRequest.Builder setQueryResult(QueryResult.Builder builderForValue) The result of the conversational query or event processing. Contains the
same value as [Streaming]DetectIntentResponse.query_result.
.google.cloud.dialogflow.v2.QueryResult query_result = 2;
| Name | Description |
builderForValue |
QueryResult.Builder |
| Type | Description |
WebhookRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WebhookRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Type | Description |
WebhookRequest.Builder |
setResponseId(String value)
public WebhookRequest.Builder setResponseId(String value) The unique identifier of the response. Contains the same value as
[Streaming]DetectIntentResponse.response_id.
string response_id = 1;
| Name | Description |
value |
StringThe responseId to set. |
| Type | Description |
WebhookRequest.Builder |
This builder for chaining. |
setResponseIdBytes(ByteString value)
public WebhookRequest.Builder setResponseIdBytes(ByteString value) The unique identifier of the response. Contains the same value as
[Streaming]DetectIntentResponse.response_id.
string response_id = 1;
| Name | Description |
value |
ByteStringThe bytes for responseId to set. |
| Type | Description |
WebhookRequest.Builder |
This builder for chaining. |
setSession(String value)
public WebhookRequest.Builder setSession(String value) The unique identifier of detectIntent request session.
Can be used to identify end-user inside webhook implementation.
Format: projects/<Project ID>/agent/sessions/<Session ID>, or
projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>.
string session = 4;
| Name | Description |
value |
StringThe session to set. |
| Type | Description |
WebhookRequest.Builder |
This builder for chaining. |
setSessionBytes(ByteString value)
public WebhookRequest.Builder setSessionBytes(ByteString value) The unique identifier of detectIntent request session.
Can be used to identify end-user inside webhook implementation.
Format: projects/<Project ID>/agent/sessions/<Session ID>, or
projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>.
string session = 4;
| Name | Description |
value |
ByteStringThe bytes for session to set. |
| Type | Description |
WebhookRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
unknownFields |
UnknownFieldSet |
| Type | Description |
WebhookRequest.Builder |