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.v2beta1.WebhookRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public WebhookRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public WebhookRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public WebhookRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public WebhookRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public WebhookRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public WebhookRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public WebhookRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public WebhookRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public WebhookRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public WebhookRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public WebhookRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<WebhookRequest.Builder>
public WebhookRequest.Builder mergeFrom(WebhookRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public WebhookRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<WebhookRequest.Builder>
IOException
public String getSession()
The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>, - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>`, - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`, - `projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`,
string session = 4;
getSession
in interface WebhookRequestOrBuilder
public ByteString getSessionBytes()
The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>, - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>`, - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`, - `projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`,
string session = 4;
getSessionBytes
in interface WebhookRequestOrBuilder
public WebhookRequest.Builder setSession(String value)
The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>, - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>`, - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`, - `projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`,
string session = 4;
value
- The session to set.public WebhookRequest.Builder clearSession()
The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>, - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>`, - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`, - `projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`,
string session = 4;
public WebhookRequest.Builder setSessionBytes(ByteString value)
The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Supported formats: - `projects/<Project ID>/agent/sessions/<Session ID>, - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>`, - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`, - `projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>`,
string session = 4;
value
- The bytes for session to set.public String getResponseId()
The unique identifier of the response. Contains the same value as `[Streaming]DetectIntentResponse.response_id`.
string response_id = 1;
getResponseId
in interface WebhookRequestOrBuilder
public ByteString getResponseIdBytes()
The unique identifier of the response. Contains the same value as `[Streaming]DetectIntentResponse.response_id`.
string response_id = 1;
getResponseIdBytes
in interface WebhookRequestOrBuilder
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;
value
- The responseId to set.public WebhookRequest.Builder clearResponseId()
The unique identifier of the response. Contains the same value as `[Streaming]DetectIntentResponse.response_id`.
string response_id = 1;
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;
value
- The bytes for responseId to set.public boolean hasQueryResult()
The result of the conversational query or event processing. Contains the same value as `[Streaming]DetectIntentResponse.query_result`.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
hasQueryResult
in interface WebhookRequestOrBuilder
public QueryResult getQueryResult()
The result of the conversational query or event processing. Contains the same value as `[Streaming]DetectIntentResponse.query_result`.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
getQueryResult
in interface WebhookRequestOrBuilder
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.v2beta1.QueryResult query_result = 2;
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.v2beta1.QueryResult query_result = 2;
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.v2beta1.QueryResult query_result = 2;
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.v2beta1.QueryResult query_result = 2;
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.v2beta1.QueryResult query_result = 2;
public QueryResultOrBuilder getQueryResultOrBuilder()
The result of the conversational query or event processing. Contains the same value as `[Streaming]DetectIntentResponse.query_result`.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
getQueryResultOrBuilder
in interface WebhookRequestOrBuilder
public List<QueryResult> getAlternativeQueryResultsList()
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
getAlternativeQueryResultsList
in interface WebhookRequestOrBuilder
public int getAlternativeQueryResultsCount()
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
getAlternativeQueryResultsCount
in interface WebhookRequestOrBuilder
public QueryResult getAlternativeQueryResults(int index)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
getAlternativeQueryResults
in interface WebhookRequestOrBuilder
public WebhookRequest.Builder setAlternativeQueryResults(int index, QueryResult value)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public WebhookRequest.Builder setAlternativeQueryResults(int index, QueryResult.Builder builderForValue)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public WebhookRequest.Builder addAlternativeQueryResults(QueryResult value)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public WebhookRequest.Builder addAlternativeQueryResults(int index, QueryResult value)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public WebhookRequest.Builder addAlternativeQueryResults(QueryResult.Builder builderForValue)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public WebhookRequest.Builder addAlternativeQueryResults(int index, QueryResult.Builder builderForValue)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public WebhookRequest.Builder addAllAlternativeQueryResults(Iterable<? extends QueryResult> values)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public WebhookRequest.Builder clearAlternativeQueryResults()
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public WebhookRequest.Builder removeAlternativeQueryResults(int index)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public QueryResult.Builder getAlternativeQueryResultsBuilder(int index)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public QueryResultOrBuilder getAlternativeQueryResultsOrBuilder(int index)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
getAlternativeQueryResultsOrBuilder
in interface WebhookRequestOrBuilder
public List<? extends QueryResultOrBuilder> getAlternativeQueryResultsOrBuilderList()
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
getAlternativeQueryResultsOrBuilderList
in interface WebhookRequestOrBuilder
public QueryResult.Builder addAlternativeQueryResultsBuilder()
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public QueryResult.Builder addAlternativeQueryResultsBuilder(int index)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public List<QueryResult.Builder> getAlternativeQueryResultsBuilderList()
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
public boolean hasOriginalDetectIntentRequest()
Optional. The contents of the original request that was passed to `[Streaming]DetectIntent` call.
.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest original_detect_intent_request = 3;
hasOriginalDetectIntentRequest
in interface WebhookRequestOrBuilder
public OriginalDetectIntentRequest getOriginalDetectIntentRequest()
Optional. The contents of the original request that was passed to `[Streaming]DetectIntent` call.
.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest original_detect_intent_request = 3;
getOriginalDetectIntentRequest
in interface WebhookRequestOrBuilder
public WebhookRequest.Builder setOriginalDetectIntentRequest(OriginalDetectIntentRequest value)
Optional. The contents of the original request that was passed to `[Streaming]DetectIntent` call.
.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest original_detect_intent_request = 3;
public WebhookRequest.Builder setOriginalDetectIntentRequest(OriginalDetectIntentRequest.Builder builderForValue)
Optional. The contents of the original request that was passed to `[Streaming]DetectIntent` call.
.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest original_detect_intent_request = 3;
public WebhookRequest.Builder mergeOriginalDetectIntentRequest(OriginalDetectIntentRequest value)
Optional. The contents of the original request that was passed to `[Streaming]DetectIntent` call.
.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest original_detect_intent_request = 3;
public WebhookRequest.Builder clearOriginalDetectIntentRequest()
Optional. The contents of the original request that was passed to `[Streaming]DetectIntent` call.
.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest original_detect_intent_request = 3;
public OriginalDetectIntentRequest.Builder getOriginalDetectIntentRequestBuilder()
Optional. The contents of the original request that was passed to `[Streaming]DetectIntent` call.
.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest original_detect_intent_request = 3;
public OriginalDetectIntentRequestOrBuilder getOriginalDetectIntentRequestOrBuilder()
Optional. The contents of the original request that was passed to `[Streaming]DetectIntent` call.
.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest original_detect_intent_request = 3;
getOriginalDetectIntentRequestOrBuilder
in interface WebhookRequestOrBuilder
public final WebhookRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
public final WebhookRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<WebhookRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.