public final class WebhookRequest extends GeneratedMessageV3 implements WebhookRequestOrBuilder
The request message for a webhook call.Protobuf type
google.cloud.dialogflow.v2.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, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, 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, 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 ORIGINAL_DETECT_INTENT_REQUEST_FIELD_NUMBER
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 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 WebhookRequestOrBuilder
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>`.
string session = 4;
getSessionBytes
in interface WebhookRequestOrBuilder
public 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 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.v2.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.v2.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.v2.QueryResult query_result = 2;
getQueryResultOrBuilder
in interface WebhookRequestOrBuilder
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;
hasOriginalDetectIntentRequest
in interface WebhookRequestOrBuilder
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;
getOriginalDetectIntentRequest
in interface WebhookRequestOrBuilder
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;
getOriginalDetectIntentRequestOrBuilder
in interface WebhookRequestOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.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(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookRequest parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static WebhookRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static WebhookRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static WebhookRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static WebhookRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static WebhookRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.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