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| Modifier and Type | Field and Description |
|---|---|
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, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 ORIGINAL_DETECT_INTENT_REQUEST_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.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>`.
string session = 4;getSession in interface WebhookRequestOrBuilderpublic 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>`.
string session = 4;getSessionBytes in interface WebhookRequestOrBuilderpublic java.lang.String getResponseId()
The unique identifier of the response. Contains the same value as `[Streaming]DetectIntentResponse.response_id`.
string response_id = 1;getResponseId in interface WebhookRequestOrBuilderpublic ByteString getResponseIdBytes()
The unique identifier of the response. Contains the same value as `[Streaming]DetectIntentResponse.response_id`.
string response_id = 1;getResponseIdBytes in interface WebhookRequestOrBuilderpublic 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 WebhookRequestOrBuilderpublic 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 WebhookRequestOrBuilderpublic 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 WebhookRequestOrBuilderpublic 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 WebhookRequestOrBuilderpublic 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 WebhookRequestOrBuilderpublic 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 WebhookRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static WebhookRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static WebhookRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static WebhookRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static WebhookRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static WebhookRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static WebhookRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic WebhookRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static WebhookRequest.Builder newBuilder()
public static WebhookRequest.Builder newBuilder(WebhookRequest prototype)
public WebhookRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected WebhookRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static WebhookRequest getDefaultInstance()
public static Parser<WebhookRequest> parser()
public Parser<WebhookRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public WebhookRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder