- 4.61.0 (latest)
- 4.60.0
- 4.59.0
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
public static final class WebhookRequest.Builder extends GeneratedMessageV3.Builder<WebhookRequest.Builder> implements WebhookRequestOrBuilder
The 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()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
build()
public WebhookRequest build()
Returns | |
---|---|
Type | Description |
WebhookRequest |
buildPartial()
public WebhookRequest buildPartial()
Returns | |
---|---|
Type | Description |
WebhookRequest |
clear()
public WebhookRequest.Builder clear()
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public WebhookRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public WebhookRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
This builder for chaining. |
clone()
public WebhookRequest.Builder clone()
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
getDefaultInstanceForType()
public WebhookRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
WebhookRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the queryResult field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(WebhookRequest other)
public WebhookRequest.Builder mergeFrom(WebhookRequest other)
Parameter | |
---|---|
Name | Description |
other |
WebhookRequest |
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WebhookRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public WebhookRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
OriginalDetectIntentRequest |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
QueryResult |
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public WebhookRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
OriginalDetectIntentRequest |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
builderForValue |
OriginalDetectIntentRequest.Builder |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
QueryResult |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
builderForValue |
QueryResult.Builder |
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WebhookRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
String The responseId to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for responseId to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
String The session to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for session to set. |
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final WebhookRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WebhookRequest.Builder |