public final class WebhookRequest extends GeneratedMessageV3 implements WebhookRequestOrBuilder
The request message for a webhook call.Protobuf type
google.cloud.dialogflow.v2beta1.WebhookRequest
Modifier and Type | Class and Description |
---|---|
static class |
WebhookRequest.Builder
The request message for a webhook call.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ALTERNATIVE_QUERY_RESULTS_FIELD_NUMBER |
static int |
ORIGINAL_DETECT_INTENT_REQUEST_FIELD_NUMBER |
static int |
QUERY_RESULT_FIELD_NUMBER |
static int |
RESPONSE_ID_FIELD_NUMBER |
static int |
SESSION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SESSION_FIELD_NUMBER
public static final int RESPONSE_ID_FIELD_NUMBER
public static final int QUERY_RESULT_FIELD_NUMBER
public static final int ALTERNATIVE_QUERY_RESULTS_FIELD_NUMBER
public static final int ORIGINAL_DETECT_INTENT_REQUEST_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 List<? extends QueryResultOrBuilder> getAlternativeQueryResultsOrBuilderList()
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
getAlternativeQueryResultsOrBuilderList
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 QueryResultOrBuilder getAlternativeQueryResultsOrBuilder(int index)
Alternative query results from KnowledgeService.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
getAlternativeQueryResultsOrBuilder
in interface WebhookRequestOrBuilder
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 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 boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static WebhookRequest parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookRequest parseFrom(InputStream input) throws IOException
IOException
public static WebhookRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static WebhookRequest parseDelimitedFrom(InputStream input) throws IOException
IOException
public static WebhookRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static WebhookRequest parseFrom(CodedInputStream input) throws IOException
IOException
public static WebhookRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public WebhookRequest.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static WebhookRequest.Builder newBuilder()
public static WebhookRequest.Builder newBuilder(WebhookRequest prototype)
public WebhookRequest.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected WebhookRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static WebhookRequest getDefaultInstance()
public static Parser<WebhookRequest> parser()
public Parser<WebhookRequest> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public WebhookRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.