You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

305 lines
13 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/dialogflow/v2/webhook.proto
  3. package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _struct "github.com/golang/protobuf/ptypes/struct"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // The request message for a webhook call.
  19. type WebhookRequest struct {
  20. // The unique identifier of detectIntent request session.
  21. // Can be used to identify end-user inside webhook implementation.
  22. // Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
  23. Session string `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"`
  24. // The unique identifier of the response. Contains the same value as
  25. // `[Streaming]DetectIntentResponse.response_id`.
  26. ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
  27. // The result of the conversational query or event processing. Contains the
  28. // same value as `[Streaming]DetectIntentResponse.query_result`.
  29. QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
  30. // Optional. The contents of the original request that was passed to
  31. // `[Streaming]DetectIntent` call.
  32. OriginalDetectIntentRequest *OriginalDetectIntentRequest `protobuf:"bytes,3,opt,name=original_detect_intent_request,json=originalDetectIntentRequest,proto3" json:"original_detect_intent_request,omitempty"`
  33. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  34. XXX_unrecognized []byte `json:"-"`
  35. XXX_sizecache int32 `json:"-"`
  36. }
  37. func (m *WebhookRequest) Reset() { *m = WebhookRequest{} }
  38. func (m *WebhookRequest) String() string { return proto.CompactTextString(m) }
  39. func (*WebhookRequest) ProtoMessage() {}
  40. func (*WebhookRequest) Descriptor() ([]byte, []int) {
  41. return fileDescriptor_webhook_20ed083b708a05f3, []int{0}
  42. }
  43. func (m *WebhookRequest) XXX_Unmarshal(b []byte) error {
  44. return xxx_messageInfo_WebhookRequest.Unmarshal(m, b)
  45. }
  46. func (m *WebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  47. return xxx_messageInfo_WebhookRequest.Marshal(b, m, deterministic)
  48. }
  49. func (dst *WebhookRequest) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_WebhookRequest.Merge(dst, src)
  51. }
  52. func (m *WebhookRequest) XXX_Size() int {
  53. return xxx_messageInfo_WebhookRequest.Size(m)
  54. }
  55. func (m *WebhookRequest) XXX_DiscardUnknown() {
  56. xxx_messageInfo_WebhookRequest.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_WebhookRequest proto.InternalMessageInfo
  59. func (m *WebhookRequest) GetSession() string {
  60. if m != nil {
  61. return m.Session
  62. }
  63. return ""
  64. }
  65. func (m *WebhookRequest) GetResponseId() string {
  66. if m != nil {
  67. return m.ResponseId
  68. }
  69. return ""
  70. }
  71. func (m *WebhookRequest) GetQueryResult() *QueryResult {
  72. if m != nil {
  73. return m.QueryResult
  74. }
  75. return nil
  76. }
  77. func (m *WebhookRequest) GetOriginalDetectIntentRequest() *OriginalDetectIntentRequest {
  78. if m != nil {
  79. return m.OriginalDetectIntentRequest
  80. }
  81. return nil
  82. }
  83. // The response message for a webhook call.
  84. type WebhookResponse struct {
  85. // Optional. The text to be shown on the screen. This value is passed directly
  86. // to `QueryResult.fulfillment_text`.
  87. FulfillmentText string `protobuf:"bytes,1,opt,name=fulfillment_text,json=fulfillmentText,proto3" json:"fulfillment_text,omitempty"`
  88. // Optional. The collection of rich messages to present to the user. This
  89. // value is passed directly to `QueryResult.fulfillment_messages`.
  90. FulfillmentMessages []*Intent_Message `protobuf:"bytes,2,rep,name=fulfillment_messages,json=fulfillmentMessages,proto3" json:"fulfillment_messages,omitempty"`
  91. // Optional. This value is passed directly to `QueryResult.webhook_source`.
  92. Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
  93. // Optional. This value is passed directly to `QueryResult.webhook_payload`.
  94. // See the related `fulfillment_messages[i].payload field`, which may be used
  95. // as an alternative to this field.
  96. //
  97. // This field can be used for Actions on Google responses.
  98. // It should have a structure similar to the JSON message shown here. For more
  99. // information, see
  100. // [Actions on Google Webhook
  101. // Format](https://developers.google.com/actions/dialogflow/webhook)
  102. // <pre>{
  103. // "google": {
  104. // "expectUserResponse": true,
  105. // "richResponse": {
  106. // "items": [
  107. // {
  108. // "simpleResponse": {
  109. // "textToSpeech": "this is a simple response"
  110. // }
  111. // }
  112. // ]
  113. // }
  114. // }
  115. // }</pre>
  116. Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
  117. // Optional. The collection of output contexts. This value is passed directly
  118. // to `QueryResult.output_contexts`.
  119. OutputContexts []*Context `protobuf:"bytes,5,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
  120. // Optional. Makes the platform immediately invoke another `DetectIntent` call
  121. // internally with the specified event as input.
  122. FollowupEventInput *EventInput `protobuf:"bytes,6,opt,name=followup_event_input,json=followupEventInput,proto3" json:"followup_event_input,omitempty"`
  123. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  124. XXX_unrecognized []byte `json:"-"`
  125. XXX_sizecache int32 `json:"-"`
  126. }
  127. func (m *WebhookResponse) Reset() { *m = WebhookResponse{} }
  128. func (m *WebhookResponse) String() string { return proto.CompactTextString(m) }
  129. func (*WebhookResponse) ProtoMessage() {}
  130. func (*WebhookResponse) Descriptor() ([]byte, []int) {
  131. return fileDescriptor_webhook_20ed083b708a05f3, []int{1}
  132. }
  133. func (m *WebhookResponse) XXX_Unmarshal(b []byte) error {
  134. return xxx_messageInfo_WebhookResponse.Unmarshal(m, b)
  135. }
  136. func (m *WebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  137. return xxx_messageInfo_WebhookResponse.Marshal(b, m, deterministic)
  138. }
  139. func (dst *WebhookResponse) XXX_Merge(src proto.Message) {
  140. xxx_messageInfo_WebhookResponse.Merge(dst, src)
  141. }
  142. func (m *WebhookResponse) XXX_Size() int {
  143. return xxx_messageInfo_WebhookResponse.Size(m)
  144. }
  145. func (m *WebhookResponse) XXX_DiscardUnknown() {
  146. xxx_messageInfo_WebhookResponse.DiscardUnknown(m)
  147. }
  148. var xxx_messageInfo_WebhookResponse proto.InternalMessageInfo
  149. func (m *WebhookResponse) GetFulfillmentText() string {
  150. if m != nil {
  151. return m.FulfillmentText
  152. }
  153. return ""
  154. }
  155. func (m *WebhookResponse) GetFulfillmentMessages() []*Intent_Message {
  156. if m != nil {
  157. return m.FulfillmentMessages
  158. }
  159. return nil
  160. }
  161. func (m *WebhookResponse) GetSource() string {
  162. if m != nil {
  163. return m.Source
  164. }
  165. return ""
  166. }
  167. func (m *WebhookResponse) GetPayload() *_struct.Struct {
  168. if m != nil {
  169. return m.Payload
  170. }
  171. return nil
  172. }
  173. func (m *WebhookResponse) GetOutputContexts() []*Context {
  174. if m != nil {
  175. return m.OutputContexts
  176. }
  177. return nil
  178. }
  179. func (m *WebhookResponse) GetFollowupEventInput() *EventInput {
  180. if m != nil {
  181. return m.FollowupEventInput
  182. }
  183. return nil
  184. }
  185. // Represents the contents of the original request that was passed to
  186. // the `[Streaming]DetectIntent` call.
  187. type OriginalDetectIntentRequest struct {
  188. // The source of this request, e.g., `google`, `facebook`, `slack`. It is set
  189. // by Dialogflow-owned servers.
  190. Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
  191. // Optional. This field is set to the value of `QueryParameters.payload` field
  192. // passed in the request.
  193. Payload *_struct.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
  194. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  195. XXX_unrecognized []byte `json:"-"`
  196. XXX_sizecache int32 `json:"-"`
  197. }
  198. func (m *OriginalDetectIntentRequest) Reset() { *m = OriginalDetectIntentRequest{} }
  199. func (m *OriginalDetectIntentRequest) String() string { return proto.CompactTextString(m) }
  200. func (*OriginalDetectIntentRequest) ProtoMessage() {}
  201. func (*OriginalDetectIntentRequest) Descriptor() ([]byte, []int) {
  202. return fileDescriptor_webhook_20ed083b708a05f3, []int{2}
  203. }
  204. func (m *OriginalDetectIntentRequest) XXX_Unmarshal(b []byte) error {
  205. return xxx_messageInfo_OriginalDetectIntentRequest.Unmarshal(m, b)
  206. }
  207. func (m *OriginalDetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  208. return xxx_messageInfo_OriginalDetectIntentRequest.Marshal(b, m, deterministic)
  209. }
  210. func (dst *OriginalDetectIntentRequest) XXX_Merge(src proto.Message) {
  211. xxx_messageInfo_OriginalDetectIntentRequest.Merge(dst, src)
  212. }
  213. func (m *OriginalDetectIntentRequest) XXX_Size() int {
  214. return xxx_messageInfo_OriginalDetectIntentRequest.Size(m)
  215. }
  216. func (m *OriginalDetectIntentRequest) XXX_DiscardUnknown() {
  217. xxx_messageInfo_OriginalDetectIntentRequest.DiscardUnknown(m)
  218. }
  219. var xxx_messageInfo_OriginalDetectIntentRequest proto.InternalMessageInfo
  220. func (m *OriginalDetectIntentRequest) GetSource() string {
  221. if m != nil {
  222. return m.Source
  223. }
  224. return ""
  225. }
  226. func (m *OriginalDetectIntentRequest) GetPayload() *_struct.Struct {
  227. if m != nil {
  228. return m.Payload
  229. }
  230. return nil
  231. }
  232. func init() {
  233. proto.RegisterType((*WebhookRequest)(nil), "google.cloud.dialogflow.v2.WebhookRequest")
  234. proto.RegisterType((*WebhookResponse)(nil), "google.cloud.dialogflow.v2.WebhookResponse")
  235. proto.RegisterType((*OriginalDetectIntentRequest)(nil), "google.cloud.dialogflow.v2.OriginalDetectIntentRequest")
  236. }
  237. func init() {
  238. proto.RegisterFile("google/cloud/dialogflow/v2/webhook.proto", fileDescriptor_webhook_20ed083b708a05f3)
  239. }
  240. var fileDescriptor_webhook_20ed083b708a05f3 = []byte{
  241. // 536 bytes of a gzipped FileDescriptorProto
  242. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6f, 0xd3, 0x30,
  243. 0x14, 0xc6, 0x95, 0x14, 0x3a, 0xcd, 0x9d, 0x56, 0x64, 0x26, 0x88, 0x3a, 0x34, 0xaa, 0x22, 0xb1,
  244. 0xc2, 0x21, 0x11, 0xe1, 0xc0, 0x81, 0xdb, 0x56, 0x40, 0x45, 0x20, 0x46, 0x40, 0x80, 0x90, 0x50,
  245. 0x94, 0x26, 0x6e, 0x66, 0xe1, 0xfa, 0xa5, 0xb1, 0xdd, 0x6e, 0x12, 0x7f, 0x03, 0x37, 0x4e, 0xdc,
  246. 0x38, 0xf2, 0x17, 0x72, 0x44, 0xb1, 0x1d, 0xd2, 0x03, 0x8d, 0x76, 0x7c, 0xf6, 0xe7, 0xdf, 0xfb,
  247. 0xde, 0xf7, 0x12, 0x34, 0xce, 0x01, 0x72, 0x46, 0x82, 0x94, 0x81, 0xca, 0x82, 0x8c, 0x26, 0x0c,
  248. 0xf2, 0x39, 0x83, 0x75, 0xb0, 0x0a, 0x83, 0x35, 0x99, 0x9d, 0x03, 0x7c, 0xf5, 0x8b, 0x12, 0x24,
  249. 0xe0, 0x81, 0x51, 0xfa, 0x5a, 0xe9, 0x37, 0x4a, 0x7f, 0x15, 0x0e, 0xee, 0x58, 0x4a, 0x52, 0xd0,
  250. 0x20, 0xe1, 0x1c, 0x64, 0x22, 0x29, 0x70, 0x61, 0x5e, 0x0e, 0xda, 0x7a, 0xa4, 0xc0, 0x25, 0xb9,
  251. 0x90, 0x56, 0x79, 0xdc, 0xa2, 0xa4, 0x5c, 0x12, 0x2e, 0xaf, 0x80, 0x14, 0x44, 0x08, 0x0a, 0xdc,
  252. 0x2a, 0x6b, 0x6b, 0xba, 0x9a, 0xa9, 0x79, 0x20, 0x64, 0xa9, 0x52, 0xcb, 0x19, 0xfd, 0x70, 0xd1,
  253. 0xfe, 0x47, 0x33, 0x66, 0x44, 0x96, 0x8a, 0x08, 0x89, 0x3d, 0xb4, 0x63, 0x09, 0xde, 0xb5, 0xa1,
  254. 0x33, 0xde, 0x8d, 0xea, 0x12, 0xdf, 0x45, 0xbd, 0x92, 0x88, 0x02, 0xb8, 0x20, 0x31, 0xcd, 0x3c,
  255. 0x47, 0xdf, 0xa2, 0xfa, 0x68, 0x9a, 0xe1, 0x97, 0x68, 0x6f, 0xa9, 0x48, 0x79, 0x19, 0x97, 0x44,
  256. 0x28, 0x26, 0x3d, 0x77, 0xe8, 0x8c, 0x7b, 0xe1, 0xb1, 0xbf, 0x3d, 0x39, 0xff, 0x6d, 0xa5, 0x8f,
  257. 0xb4, 0x3c, 0xea, 0x2d, 0x9b, 0x02, 0x7f, 0x43, 0x47, 0x50, 0xd2, 0x9c, 0xf2, 0x84, 0xc5, 0x19,
  258. 0x91, 0x24, 0x95, 0xb1, 0x49, 0x20, 0x2e, 0x8d, 0x51, 0xaf, 0xa3, 0xe9, 0x4f, 0xda, 0xe8, 0x6f,
  259. 0x2c, 0x61, 0xa2, 0x01, 0x53, 0xfd, 0xde, 0xce, 0x19, 0x1d, 0xc2, 0xf6, 0xcb, 0xd1, 0xf7, 0x0e,
  260. 0xea, 0xff, 0xcb, 0xc5, 0xcc, 0x87, 0x1f, 0xa0, 0x1b, 0x73, 0xc5, 0xe6, 0x94, 0xb1, 0x45, 0x65,
  261. 0xa3, 0x5a, 0x9b, 0xcd, 0xa0, 0xbf, 0x71, 0xfe, 0x9e, 0x5c, 0x48, 0xfc, 0x05, 0x1d, 0x6c, 0x4a,
  262. 0x17, 0x44, 0x88, 0x24, 0x27, 0xc2, 0x73, 0x87, 0x9d, 0x71, 0x2f, 0x7c, 0xd8, 0x66, 0xd9, 0xf8,
  263. 0xf0, 0x5f, 0x9b, 0x27, 0xd1, 0xcd, 0x0d, 0x8e, 0x3d, 0x13, 0xf8, 0x16, 0xea, 0x0a, 0x50, 0x65,
  264. 0x4a, 0x74, 0x06, 0xbb, 0x91, 0xad, 0xf0, 0x23, 0xb4, 0x53, 0x24, 0x97, 0x0c, 0x92, 0x4c, 0xaf,
  265. 0xae, 0x17, 0xde, 0xae, 0x3b, 0xd5, 0xdb, 0xf7, 0xdf, 0xe9, 0xed, 0x47, 0xb5, 0x0e, 0xbf, 0x42,
  266. 0x7d, 0x50, 0xb2, 0x50, 0x32, 0xb6, 0x5f, 0xa2, 0xf0, 0xae, 0x6b, 0x93, 0xf7, 0xda, 0x4c, 0x9e,
  267. 0x1a, 0x6d, 0xb4, 0x6f, 0xde, 0xda, 0x52, 0xe0, 0x4f, 0xe8, 0x60, 0x0e, 0x8c, 0xc1, 0x5a, 0x15,
  268. 0x31, 0x59, 0x55, 0xa3, 0x53, 0x5e, 0x28, 0xe9, 0x75, 0xb5, 0x9b, 0xfb, 0x6d, 0xc8, 0x67, 0x95,
  269. 0x7c, 0x5a, 0xa9, 0x23, 0x5c, 0x33, 0x9a, 0xb3, 0xd1, 0x39, 0x3a, 0x6c, 0x59, 0xe6, 0x46, 0x22,
  270. 0xce, 0xb6, 0x44, 0x3a, 0x57, 0x4b, 0xe4, 0xe4, 0xa7, 0x83, 0x8e, 0x52, 0x58, 0xb4, 0x78, 0x3d,
  271. 0xd9, 0xb3, 0x9f, 0xc6, 0x59, 0xc5, 0x38, 0x73, 0x3e, 0x4f, 0xac, 0x36, 0x07, 0x96, 0xf0, 0xdc,
  272. 0x87, 0x32, 0x0f, 0x72, 0xc2, 0x75, 0x87, 0xc0, 0x5c, 0x25, 0x05, 0x15, 0xff, 0xfb, 0x59, 0x9f,
  273. 0x36, 0xd5, 0x1f, 0xc7, 0xf9, 0xe5, 0xba, 0x93, 0xe7, 0xbf, 0xdd, 0xc1, 0x0b, 0x83, 0x3b, 0xd5,
  274. 0xad, 0x27, 0x4d, 0xeb, 0x0f, 0xe1, 0xac, 0xab, 0xa9, 0x8f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff,
  275. 0x75, 0x98, 0x13, 0x07, 0xb8, 0x04, 0x00, 0x00,
  276. }