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.
 
 
 

1918 lines
76 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/pubsub/v1beta2/pubsub.proto
  3. package pubsub // import "google.golang.org/genproto/googleapis/pubsub/v1beta2"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import empty "github.com/golang/protobuf/ptypes/empty"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  21. // A topic resource.
  22. type Topic struct {
  23. // Name of the topic.
  24. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  25. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  26. XXX_unrecognized []byte `json:"-"`
  27. XXX_sizecache int32 `json:"-"`
  28. }
  29. func (m *Topic) Reset() { *m = Topic{} }
  30. func (m *Topic) String() string { return proto.CompactTextString(m) }
  31. func (*Topic) ProtoMessage() {}
  32. func (*Topic) Descriptor() ([]byte, []int) {
  33. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{0}
  34. }
  35. func (m *Topic) XXX_Unmarshal(b []byte) error {
  36. return xxx_messageInfo_Topic.Unmarshal(m, b)
  37. }
  38. func (m *Topic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  39. return xxx_messageInfo_Topic.Marshal(b, m, deterministic)
  40. }
  41. func (dst *Topic) XXX_Merge(src proto.Message) {
  42. xxx_messageInfo_Topic.Merge(dst, src)
  43. }
  44. func (m *Topic) XXX_Size() int {
  45. return xxx_messageInfo_Topic.Size(m)
  46. }
  47. func (m *Topic) XXX_DiscardUnknown() {
  48. xxx_messageInfo_Topic.DiscardUnknown(m)
  49. }
  50. var xxx_messageInfo_Topic proto.InternalMessageInfo
  51. func (m *Topic) GetName() string {
  52. if m != nil {
  53. return m.Name
  54. }
  55. return ""
  56. }
  57. // A message data and its attributes.
  58. type PubsubMessage struct {
  59. // The message payload. For JSON requests, the value of this field must be
  60. // base64-encoded.
  61. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  62. // Optional attributes for this message.
  63. Attributes map[string]string `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  64. // ID of this message assigned by the server at publication time. Guaranteed
  65. // to be unique within the topic. This value may be read by a subscriber
  66. // that receives a PubsubMessage via a Pull call or a push delivery. It must
  67. // not be populated by a publisher in a Publish call.
  68. MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
  69. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  70. XXX_unrecognized []byte `json:"-"`
  71. XXX_sizecache int32 `json:"-"`
  72. }
  73. func (m *PubsubMessage) Reset() { *m = PubsubMessage{} }
  74. func (m *PubsubMessage) String() string { return proto.CompactTextString(m) }
  75. func (*PubsubMessage) ProtoMessage() {}
  76. func (*PubsubMessage) Descriptor() ([]byte, []int) {
  77. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{1}
  78. }
  79. func (m *PubsubMessage) XXX_Unmarshal(b []byte) error {
  80. return xxx_messageInfo_PubsubMessage.Unmarshal(m, b)
  81. }
  82. func (m *PubsubMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  83. return xxx_messageInfo_PubsubMessage.Marshal(b, m, deterministic)
  84. }
  85. func (dst *PubsubMessage) XXX_Merge(src proto.Message) {
  86. xxx_messageInfo_PubsubMessage.Merge(dst, src)
  87. }
  88. func (m *PubsubMessage) XXX_Size() int {
  89. return xxx_messageInfo_PubsubMessage.Size(m)
  90. }
  91. func (m *PubsubMessage) XXX_DiscardUnknown() {
  92. xxx_messageInfo_PubsubMessage.DiscardUnknown(m)
  93. }
  94. var xxx_messageInfo_PubsubMessage proto.InternalMessageInfo
  95. func (m *PubsubMessage) GetData() []byte {
  96. if m != nil {
  97. return m.Data
  98. }
  99. return nil
  100. }
  101. func (m *PubsubMessage) GetAttributes() map[string]string {
  102. if m != nil {
  103. return m.Attributes
  104. }
  105. return nil
  106. }
  107. func (m *PubsubMessage) GetMessageId() string {
  108. if m != nil {
  109. return m.MessageId
  110. }
  111. return ""
  112. }
  113. // Request for the GetTopic method.
  114. type GetTopicRequest struct {
  115. // The name of the topic to get.
  116. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  117. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  118. XXX_unrecognized []byte `json:"-"`
  119. XXX_sizecache int32 `json:"-"`
  120. }
  121. func (m *GetTopicRequest) Reset() { *m = GetTopicRequest{} }
  122. func (m *GetTopicRequest) String() string { return proto.CompactTextString(m) }
  123. func (*GetTopicRequest) ProtoMessage() {}
  124. func (*GetTopicRequest) Descriptor() ([]byte, []int) {
  125. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{2}
  126. }
  127. func (m *GetTopicRequest) XXX_Unmarshal(b []byte) error {
  128. return xxx_messageInfo_GetTopicRequest.Unmarshal(m, b)
  129. }
  130. func (m *GetTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  131. return xxx_messageInfo_GetTopicRequest.Marshal(b, m, deterministic)
  132. }
  133. func (dst *GetTopicRequest) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_GetTopicRequest.Merge(dst, src)
  135. }
  136. func (m *GetTopicRequest) XXX_Size() int {
  137. return xxx_messageInfo_GetTopicRequest.Size(m)
  138. }
  139. func (m *GetTopicRequest) XXX_DiscardUnknown() {
  140. xxx_messageInfo_GetTopicRequest.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_GetTopicRequest proto.InternalMessageInfo
  143. func (m *GetTopicRequest) GetTopic() string {
  144. if m != nil {
  145. return m.Topic
  146. }
  147. return ""
  148. }
  149. // Request for the Publish method.
  150. type PublishRequest struct {
  151. // The messages in the request will be published on this topic.
  152. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  153. // The messages to publish.
  154. Messages []*PubsubMessage `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
  155. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  156. XXX_unrecognized []byte `json:"-"`
  157. XXX_sizecache int32 `json:"-"`
  158. }
  159. func (m *PublishRequest) Reset() { *m = PublishRequest{} }
  160. func (m *PublishRequest) String() string { return proto.CompactTextString(m) }
  161. func (*PublishRequest) ProtoMessage() {}
  162. func (*PublishRequest) Descriptor() ([]byte, []int) {
  163. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{3}
  164. }
  165. func (m *PublishRequest) XXX_Unmarshal(b []byte) error {
  166. return xxx_messageInfo_PublishRequest.Unmarshal(m, b)
  167. }
  168. func (m *PublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  169. return xxx_messageInfo_PublishRequest.Marshal(b, m, deterministic)
  170. }
  171. func (dst *PublishRequest) XXX_Merge(src proto.Message) {
  172. xxx_messageInfo_PublishRequest.Merge(dst, src)
  173. }
  174. func (m *PublishRequest) XXX_Size() int {
  175. return xxx_messageInfo_PublishRequest.Size(m)
  176. }
  177. func (m *PublishRequest) XXX_DiscardUnknown() {
  178. xxx_messageInfo_PublishRequest.DiscardUnknown(m)
  179. }
  180. var xxx_messageInfo_PublishRequest proto.InternalMessageInfo
  181. func (m *PublishRequest) GetTopic() string {
  182. if m != nil {
  183. return m.Topic
  184. }
  185. return ""
  186. }
  187. func (m *PublishRequest) GetMessages() []*PubsubMessage {
  188. if m != nil {
  189. return m.Messages
  190. }
  191. return nil
  192. }
  193. // Response for the Publish method.
  194. type PublishResponse struct {
  195. // The server-assigned ID of each published message, in the same order as
  196. // the messages in the request. IDs are guaranteed to be unique within
  197. // the topic.
  198. MessageIds []string `protobuf:"bytes,1,rep,name=message_ids,json=messageIds,proto3" json:"message_ids,omitempty"`
  199. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  200. XXX_unrecognized []byte `json:"-"`
  201. XXX_sizecache int32 `json:"-"`
  202. }
  203. func (m *PublishResponse) Reset() { *m = PublishResponse{} }
  204. func (m *PublishResponse) String() string { return proto.CompactTextString(m) }
  205. func (*PublishResponse) ProtoMessage() {}
  206. func (*PublishResponse) Descriptor() ([]byte, []int) {
  207. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{4}
  208. }
  209. func (m *PublishResponse) XXX_Unmarshal(b []byte) error {
  210. return xxx_messageInfo_PublishResponse.Unmarshal(m, b)
  211. }
  212. func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  213. return xxx_messageInfo_PublishResponse.Marshal(b, m, deterministic)
  214. }
  215. func (dst *PublishResponse) XXX_Merge(src proto.Message) {
  216. xxx_messageInfo_PublishResponse.Merge(dst, src)
  217. }
  218. func (m *PublishResponse) XXX_Size() int {
  219. return xxx_messageInfo_PublishResponse.Size(m)
  220. }
  221. func (m *PublishResponse) XXX_DiscardUnknown() {
  222. xxx_messageInfo_PublishResponse.DiscardUnknown(m)
  223. }
  224. var xxx_messageInfo_PublishResponse proto.InternalMessageInfo
  225. func (m *PublishResponse) GetMessageIds() []string {
  226. if m != nil {
  227. return m.MessageIds
  228. }
  229. return nil
  230. }
  231. // Request for the ListTopics method.
  232. type ListTopicsRequest struct {
  233. // The name of the cloud project that topics belong to.
  234. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
  235. // Maximum number of topics to return.
  236. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  237. // The value returned by the last ListTopicsResponse; indicates that this is
  238. // a continuation of a prior ListTopics call, and that the system should
  239. // return the next page of data.
  240. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  241. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  242. XXX_unrecognized []byte `json:"-"`
  243. XXX_sizecache int32 `json:"-"`
  244. }
  245. func (m *ListTopicsRequest) Reset() { *m = ListTopicsRequest{} }
  246. func (m *ListTopicsRequest) String() string { return proto.CompactTextString(m) }
  247. func (*ListTopicsRequest) ProtoMessage() {}
  248. func (*ListTopicsRequest) Descriptor() ([]byte, []int) {
  249. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{5}
  250. }
  251. func (m *ListTopicsRequest) XXX_Unmarshal(b []byte) error {
  252. return xxx_messageInfo_ListTopicsRequest.Unmarshal(m, b)
  253. }
  254. func (m *ListTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  255. return xxx_messageInfo_ListTopicsRequest.Marshal(b, m, deterministic)
  256. }
  257. func (dst *ListTopicsRequest) XXX_Merge(src proto.Message) {
  258. xxx_messageInfo_ListTopicsRequest.Merge(dst, src)
  259. }
  260. func (m *ListTopicsRequest) XXX_Size() int {
  261. return xxx_messageInfo_ListTopicsRequest.Size(m)
  262. }
  263. func (m *ListTopicsRequest) XXX_DiscardUnknown() {
  264. xxx_messageInfo_ListTopicsRequest.DiscardUnknown(m)
  265. }
  266. var xxx_messageInfo_ListTopicsRequest proto.InternalMessageInfo
  267. func (m *ListTopicsRequest) GetProject() string {
  268. if m != nil {
  269. return m.Project
  270. }
  271. return ""
  272. }
  273. func (m *ListTopicsRequest) GetPageSize() int32 {
  274. if m != nil {
  275. return m.PageSize
  276. }
  277. return 0
  278. }
  279. func (m *ListTopicsRequest) GetPageToken() string {
  280. if m != nil {
  281. return m.PageToken
  282. }
  283. return ""
  284. }
  285. // Response for the ListTopics method.
  286. type ListTopicsResponse struct {
  287. // The resulting topics.
  288. Topics []*Topic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"`
  289. // If not empty, indicates that there may be more topics that match the
  290. // request; this value should be passed in a new ListTopicsRequest.
  291. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  292. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  293. XXX_unrecognized []byte `json:"-"`
  294. XXX_sizecache int32 `json:"-"`
  295. }
  296. func (m *ListTopicsResponse) Reset() { *m = ListTopicsResponse{} }
  297. func (m *ListTopicsResponse) String() string { return proto.CompactTextString(m) }
  298. func (*ListTopicsResponse) ProtoMessage() {}
  299. func (*ListTopicsResponse) Descriptor() ([]byte, []int) {
  300. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{6}
  301. }
  302. func (m *ListTopicsResponse) XXX_Unmarshal(b []byte) error {
  303. return xxx_messageInfo_ListTopicsResponse.Unmarshal(m, b)
  304. }
  305. func (m *ListTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  306. return xxx_messageInfo_ListTopicsResponse.Marshal(b, m, deterministic)
  307. }
  308. func (dst *ListTopicsResponse) XXX_Merge(src proto.Message) {
  309. xxx_messageInfo_ListTopicsResponse.Merge(dst, src)
  310. }
  311. func (m *ListTopicsResponse) XXX_Size() int {
  312. return xxx_messageInfo_ListTopicsResponse.Size(m)
  313. }
  314. func (m *ListTopicsResponse) XXX_DiscardUnknown() {
  315. xxx_messageInfo_ListTopicsResponse.DiscardUnknown(m)
  316. }
  317. var xxx_messageInfo_ListTopicsResponse proto.InternalMessageInfo
  318. func (m *ListTopicsResponse) GetTopics() []*Topic {
  319. if m != nil {
  320. return m.Topics
  321. }
  322. return nil
  323. }
  324. func (m *ListTopicsResponse) GetNextPageToken() string {
  325. if m != nil {
  326. return m.NextPageToken
  327. }
  328. return ""
  329. }
  330. // Request for the ListTopicSubscriptions method.
  331. type ListTopicSubscriptionsRequest struct {
  332. // The name of the topic that subscriptions are attached to.
  333. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  334. // Maximum number of subscription names to return.
  335. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  336. // The value returned by the last ListTopicSubscriptionsResponse; indicates
  337. // that this is a continuation of a prior ListTopicSubscriptions call, and
  338. // that the system should return the next page of data.
  339. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  340. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  341. XXX_unrecognized []byte `json:"-"`
  342. XXX_sizecache int32 `json:"-"`
  343. }
  344. func (m *ListTopicSubscriptionsRequest) Reset() { *m = ListTopicSubscriptionsRequest{} }
  345. func (m *ListTopicSubscriptionsRequest) String() string { return proto.CompactTextString(m) }
  346. func (*ListTopicSubscriptionsRequest) ProtoMessage() {}
  347. func (*ListTopicSubscriptionsRequest) Descriptor() ([]byte, []int) {
  348. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{7}
  349. }
  350. func (m *ListTopicSubscriptionsRequest) XXX_Unmarshal(b []byte) error {
  351. return xxx_messageInfo_ListTopicSubscriptionsRequest.Unmarshal(m, b)
  352. }
  353. func (m *ListTopicSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  354. return xxx_messageInfo_ListTopicSubscriptionsRequest.Marshal(b, m, deterministic)
  355. }
  356. func (dst *ListTopicSubscriptionsRequest) XXX_Merge(src proto.Message) {
  357. xxx_messageInfo_ListTopicSubscriptionsRequest.Merge(dst, src)
  358. }
  359. func (m *ListTopicSubscriptionsRequest) XXX_Size() int {
  360. return xxx_messageInfo_ListTopicSubscriptionsRequest.Size(m)
  361. }
  362. func (m *ListTopicSubscriptionsRequest) XXX_DiscardUnknown() {
  363. xxx_messageInfo_ListTopicSubscriptionsRequest.DiscardUnknown(m)
  364. }
  365. var xxx_messageInfo_ListTopicSubscriptionsRequest proto.InternalMessageInfo
  366. func (m *ListTopicSubscriptionsRequest) GetTopic() string {
  367. if m != nil {
  368. return m.Topic
  369. }
  370. return ""
  371. }
  372. func (m *ListTopicSubscriptionsRequest) GetPageSize() int32 {
  373. if m != nil {
  374. return m.PageSize
  375. }
  376. return 0
  377. }
  378. func (m *ListTopicSubscriptionsRequest) GetPageToken() string {
  379. if m != nil {
  380. return m.PageToken
  381. }
  382. return ""
  383. }
  384. // Response for the ListTopicSubscriptions method.
  385. type ListTopicSubscriptionsResponse struct {
  386. // The names of the subscriptions that match the request.
  387. Subscriptions []string `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
  388. // If not empty, indicates that there may be more subscriptions that match
  389. // the request; this value should be passed in a new
  390. // ListTopicSubscriptionsRequest to get more subscriptions.
  391. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  392. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  393. XXX_unrecognized []byte `json:"-"`
  394. XXX_sizecache int32 `json:"-"`
  395. }
  396. func (m *ListTopicSubscriptionsResponse) Reset() { *m = ListTopicSubscriptionsResponse{} }
  397. func (m *ListTopicSubscriptionsResponse) String() string { return proto.CompactTextString(m) }
  398. func (*ListTopicSubscriptionsResponse) ProtoMessage() {}
  399. func (*ListTopicSubscriptionsResponse) Descriptor() ([]byte, []int) {
  400. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{8}
  401. }
  402. func (m *ListTopicSubscriptionsResponse) XXX_Unmarshal(b []byte) error {
  403. return xxx_messageInfo_ListTopicSubscriptionsResponse.Unmarshal(m, b)
  404. }
  405. func (m *ListTopicSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  406. return xxx_messageInfo_ListTopicSubscriptionsResponse.Marshal(b, m, deterministic)
  407. }
  408. func (dst *ListTopicSubscriptionsResponse) XXX_Merge(src proto.Message) {
  409. xxx_messageInfo_ListTopicSubscriptionsResponse.Merge(dst, src)
  410. }
  411. func (m *ListTopicSubscriptionsResponse) XXX_Size() int {
  412. return xxx_messageInfo_ListTopicSubscriptionsResponse.Size(m)
  413. }
  414. func (m *ListTopicSubscriptionsResponse) XXX_DiscardUnknown() {
  415. xxx_messageInfo_ListTopicSubscriptionsResponse.DiscardUnknown(m)
  416. }
  417. var xxx_messageInfo_ListTopicSubscriptionsResponse proto.InternalMessageInfo
  418. func (m *ListTopicSubscriptionsResponse) GetSubscriptions() []string {
  419. if m != nil {
  420. return m.Subscriptions
  421. }
  422. return nil
  423. }
  424. func (m *ListTopicSubscriptionsResponse) GetNextPageToken() string {
  425. if m != nil {
  426. return m.NextPageToken
  427. }
  428. return ""
  429. }
  430. // Request for the DeleteTopic method.
  431. type DeleteTopicRequest struct {
  432. // Name of the topic to delete.
  433. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  434. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  435. XXX_unrecognized []byte `json:"-"`
  436. XXX_sizecache int32 `json:"-"`
  437. }
  438. func (m *DeleteTopicRequest) Reset() { *m = DeleteTopicRequest{} }
  439. func (m *DeleteTopicRequest) String() string { return proto.CompactTextString(m) }
  440. func (*DeleteTopicRequest) ProtoMessage() {}
  441. func (*DeleteTopicRequest) Descriptor() ([]byte, []int) {
  442. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{9}
  443. }
  444. func (m *DeleteTopicRequest) XXX_Unmarshal(b []byte) error {
  445. return xxx_messageInfo_DeleteTopicRequest.Unmarshal(m, b)
  446. }
  447. func (m *DeleteTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  448. return xxx_messageInfo_DeleteTopicRequest.Marshal(b, m, deterministic)
  449. }
  450. func (dst *DeleteTopicRequest) XXX_Merge(src proto.Message) {
  451. xxx_messageInfo_DeleteTopicRequest.Merge(dst, src)
  452. }
  453. func (m *DeleteTopicRequest) XXX_Size() int {
  454. return xxx_messageInfo_DeleteTopicRequest.Size(m)
  455. }
  456. func (m *DeleteTopicRequest) XXX_DiscardUnknown() {
  457. xxx_messageInfo_DeleteTopicRequest.DiscardUnknown(m)
  458. }
  459. var xxx_messageInfo_DeleteTopicRequest proto.InternalMessageInfo
  460. func (m *DeleteTopicRequest) GetTopic() string {
  461. if m != nil {
  462. return m.Topic
  463. }
  464. return ""
  465. }
  466. // A subscription resource.
  467. type Subscription struct {
  468. // Name of the subscription.
  469. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  470. // The name of the topic from which this subscription is receiving messages.
  471. // This will be present if and only if the subscription has not been detached
  472. // from its topic.
  473. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  474. // If push delivery is used with this subscription, this field is
  475. // used to configure it. An empty pushConfig signifies that the subscriber
  476. // will pull and ack messages using API methods.
  477. PushConfig *PushConfig `protobuf:"bytes,4,opt,name=push_config,json=pushConfig,proto3" json:"push_config,omitempty"`
  478. // This value is the maximum time after a subscriber receives a message
  479. // before the subscriber should acknowledge the message. After message
  480. // delivery but before the ack deadline expires and before the message is
  481. // acknowledged, it is an outstanding message and will not be delivered
  482. // again during that time (on a best-effort basis).
  483. //
  484. // For pull delivery this value
  485. // is used as the initial value for the ack deadline. It may be overridden
  486. // for a specific message by calling ModifyAckDeadline.
  487. //
  488. // For push delivery, this value is also used to set the request timeout for
  489. // the call to the push endpoint.
  490. //
  491. // If the subscriber never acknowledges the message, the Pub/Sub
  492. // system will eventually redeliver the message.
  493. AckDeadlineSeconds int32 `protobuf:"varint,5,opt,name=ack_deadline_seconds,json=ackDeadlineSeconds,proto3" json:"ack_deadline_seconds,omitempty"`
  494. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  495. XXX_unrecognized []byte `json:"-"`
  496. XXX_sizecache int32 `json:"-"`
  497. }
  498. func (m *Subscription) Reset() { *m = Subscription{} }
  499. func (m *Subscription) String() string { return proto.CompactTextString(m) }
  500. func (*Subscription) ProtoMessage() {}
  501. func (*Subscription) Descriptor() ([]byte, []int) {
  502. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{10}
  503. }
  504. func (m *Subscription) XXX_Unmarshal(b []byte) error {
  505. return xxx_messageInfo_Subscription.Unmarshal(m, b)
  506. }
  507. func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  508. return xxx_messageInfo_Subscription.Marshal(b, m, deterministic)
  509. }
  510. func (dst *Subscription) XXX_Merge(src proto.Message) {
  511. xxx_messageInfo_Subscription.Merge(dst, src)
  512. }
  513. func (m *Subscription) XXX_Size() int {
  514. return xxx_messageInfo_Subscription.Size(m)
  515. }
  516. func (m *Subscription) XXX_DiscardUnknown() {
  517. xxx_messageInfo_Subscription.DiscardUnknown(m)
  518. }
  519. var xxx_messageInfo_Subscription proto.InternalMessageInfo
  520. func (m *Subscription) GetName() string {
  521. if m != nil {
  522. return m.Name
  523. }
  524. return ""
  525. }
  526. func (m *Subscription) GetTopic() string {
  527. if m != nil {
  528. return m.Topic
  529. }
  530. return ""
  531. }
  532. func (m *Subscription) GetPushConfig() *PushConfig {
  533. if m != nil {
  534. return m.PushConfig
  535. }
  536. return nil
  537. }
  538. func (m *Subscription) GetAckDeadlineSeconds() int32 {
  539. if m != nil {
  540. return m.AckDeadlineSeconds
  541. }
  542. return 0
  543. }
  544. // Configuration for a push delivery endpoint.
  545. type PushConfig struct {
  546. // A URL locating the endpoint to which messages should be pushed.
  547. // For example, a Webhook endpoint might use "https://example.com/push".
  548. PushEndpoint string `protobuf:"bytes,1,opt,name=push_endpoint,json=pushEndpoint,proto3" json:"push_endpoint,omitempty"`
  549. // Endpoint configuration attributes.
  550. //
  551. // Every endpoint has a set of API supported attributes that can be used to
  552. // control different aspects of the message delivery.
  553. //
  554. // The currently supported attribute is `x-goog-version`, which you can
  555. // use to change the format of the push message. This attribute
  556. // indicates the version of the data expected by the endpoint. This
  557. // controls the shape of the envelope (i.e. its fields and metadata).
  558. // The endpoint version is based on the version of the Pub/Sub
  559. // API.
  560. //
  561. // If not present during the CreateSubscription call, it will default to
  562. // the version of the API used to make such call. If not present during a
  563. // ModifyPushConfig call, its value will not be changed. GetSubscription
  564. // calls will always return a valid version, even if the subscription was
  565. // created without this attribute.
  566. //
  567. // The possible values for this attribute are:
  568. //
  569. // * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
  570. // * `v1beta2`: uses the push format defined in the v1beta2 Pub/Sub API.
  571. //
  572. Attributes map[string]string `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  573. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  574. XXX_unrecognized []byte `json:"-"`
  575. XXX_sizecache int32 `json:"-"`
  576. }
  577. func (m *PushConfig) Reset() { *m = PushConfig{} }
  578. func (m *PushConfig) String() string { return proto.CompactTextString(m) }
  579. func (*PushConfig) ProtoMessage() {}
  580. func (*PushConfig) Descriptor() ([]byte, []int) {
  581. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{11}
  582. }
  583. func (m *PushConfig) XXX_Unmarshal(b []byte) error {
  584. return xxx_messageInfo_PushConfig.Unmarshal(m, b)
  585. }
  586. func (m *PushConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  587. return xxx_messageInfo_PushConfig.Marshal(b, m, deterministic)
  588. }
  589. func (dst *PushConfig) XXX_Merge(src proto.Message) {
  590. xxx_messageInfo_PushConfig.Merge(dst, src)
  591. }
  592. func (m *PushConfig) XXX_Size() int {
  593. return xxx_messageInfo_PushConfig.Size(m)
  594. }
  595. func (m *PushConfig) XXX_DiscardUnknown() {
  596. xxx_messageInfo_PushConfig.DiscardUnknown(m)
  597. }
  598. var xxx_messageInfo_PushConfig proto.InternalMessageInfo
  599. func (m *PushConfig) GetPushEndpoint() string {
  600. if m != nil {
  601. return m.PushEndpoint
  602. }
  603. return ""
  604. }
  605. func (m *PushConfig) GetAttributes() map[string]string {
  606. if m != nil {
  607. return m.Attributes
  608. }
  609. return nil
  610. }
  611. // A message and its corresponding acknowledgment ID.
  612. type ReceivedMessage struct {
  613. // This ID can be used to acknowledge the received message.
  614. AckId string `protobuf:"bytes,1,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"`
  615. // The message.
  616. Message *PubsubMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  617. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  618. XXX_unrecognized []byte `json:"-"`
  619. XXX_sizecache int32 `json:"-"`
  620. }
  621. func (m *ReceivedMessage) Reset() { *m = ReceivedMessage{} }
  622. func (m *ReceivedMessage) String() string { return proto.CompactTextString(m) }
  623. func (*ReceivedMessage) ProtoMessage() {}
  624. func (*ReceivedMessage) Descriptor() ([]byte, []int) {
  625. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{12}
  626. }
  627. func (m *ReceivedMessage) XXX_Unmarshal(b []byte) error {
  628. return xxx_messageInfo_ReceivedMessage.Unmarshal(m, b)
  629. }
  630. func (m *ReceivedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  631. return xxx_messageInfo_ReceivedMessage.Marshal(b, m, deterministic)
  632. }
  633. func (dst *ReceivedMessage) XXX_Merge(src proto.Message) {
  634. xxx_messageInfo_ReceivedMessage.Merge(dst, src)
  635. }
  636. func (m *ReceivedMessage) XXX_Size() int {
  637. return xxx_messageInfo_ReceivedMessage.Size(m)
  638. }
  639. func (m *ReceivedMessage) XXX_DiscardUnknown() {
  640. xxx_messageInfo_ReceivedMessage.DiscardUnknown(m)
  641. }
  642. var xxx_messageInfo_ReceivedMessage proto.InternalMessageInfo
  643. func (m *ReceivedMessage) GetAckId() string {
  644. if m != nil {
  645. return m.AckId
  646. }
  647. return ""
  648. }
  649. func (m *ReceivedMessage) GetMessage() *PubsubMessage {
  650. if m != nil {
  651. return m.Message
  652. }
  653. return nil
  654. }
  655. // Request for the GetSubscription method.
  656. type GetSubscriptionRequest struct {
  657. // The name of the subscription to get.
  658. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  659. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  660. XXX_unrecognized []byte `json:"-"`
  661. XXX_sizecache int32 `json:"-"`
  662. }
  663. func (m *GetSubscriptionRequest) Reset() { *m = GetSubscriptionRequest{} }
  664. func (m *GetSubscriptionRequest) String() string { return proto.CompactTextString(m) }
  665. func (*GetSubscriptionRequest) ProtoMessage() {}
  666. func (*GetSubscriptionRequest) Descriptor() ([]byte, []int) {
  667. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{13}
  668. }
  669. func (m *GetSubscriptionRequest) XXX_Unmarshal(b []byte) error {
  670. return xxx_messageInfo_GetSubscriptionRequest.Unmarshal(m, b)
  671. }
  672. func (m *GetSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  673. return xxx_messageInfo_GetSubscriptionRequest.Marshal(b, m, deterministic)
  674. }
  675. func (dst *GetSubscriptionRequest) XXX_Merge(src proto.Message) {
  676. xxx_messageInfo_GetSubscriptionRequest.Merge(dst, src)
  677. }
  678. func (m *GetSubscriptionRequest) XXX_Size() int {
  679. return xxx_messageInfo_GetSubscriptionRequest.Size(m)
  680. }
  681. func (m *GetSubscriptionRequest) XXX_DiscardUnknown() {
  682. xxx_messageInfo_GetSubscriptionRequest.DiscardUnknown(m)
  683. }
  684. var xxx_messageInfo_GetSubscriptionRequest proto.InternalMessageInfo
  685. func (m *GetSubscriptionRequest) GetSubscription() string {
  686. if m != nil {
  687. return m.Subscription
  688. }
  689. return ""
  690. }
  691. // Request for the ListSubscriptions method.
  692. type ListSubscriptionsRequest struct {
  693. // The name of the cloud project that subscriptions belong to.
  694. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
  695. // Maximum number of subscriptions to return.
  696. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  697. // The value returned by the last ListSubscriptionsResponse; indicates that
  698. // this is a continuation of a prior ListSubscriptions call, and that the
  699. // system should return the next page of data.
  700. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  701. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  702. XXX_unrecognized []byte `json:"-"`
  703. XXX_sizecache int32 `json:"-"`
  704. }
  705. func (m *ListSubscriptionsRequest) Reset() { *m = ListSubscriptionsRequest{} }
  706. func (m *ListSubscriptionsRequest) String() string { return proto.CompactTextString(m) }
  707. func (*ListSubscriptionsRequest) ProtoMessage() {}
  708. func (*ListSubscriptionsRequest) Descriptor() ([]byte, []int) {
  709. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{14}
  710. }
  711. func (m *ListSubscriptionsRequest) XXX_Unmarshal(b []byte) error {
  712. return xxx_messageInfo_ListSubscriptionsRequest.Unmarshal(m, b)
  713. }
  714. func (m *ListSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  715. return xxx_messageInfo_ListSubscriptionsRequest.Marshal(b, m, deterministic)
  716. }
  717. func (dst *ListSubscriptionsRequest) XXX_Merge(src proto.Message) {
  718. xxx_messageInfo_ListSubscriptionsRequest.Merge(dst, src)
  719. }
  720. func (m *ListSubscriptionsRequest) XXX_Size() int {
  721. return xxx_messageInfo_ListSubscriptionsRequest.Size(m)
  722. }
  723. func (m *ListSubscriptionsRequest) XXX_DiscardUnknown() {
  724. xxx_messageInfo_ListSubscriptionsRequest.DiscardUnknown(m)
  725. }
  726. var xxx_messageInfo_ListSubscriptionsRequest proto.InternalMessageInfo
  727. func (m *ListSubscriptionsRequest) GetProject() string {
  728. if m != nil {
  729. return m.Project
  730. }
  731. return ""
  732. }
  733. func (m *ListSubscriptionsRequest) GetPageSize() int32 {
  734. if m != nil {
  735. return m.PageSize
  736. }
  737. return 0
  738. }
  739. func (m *ListSubscriptionsRequest) GetPageToken() string {
  740. if m != nil {
  741. return m.PageToken
  742. }
  743. return ""
  744. }
  745. // Response for the ListSubscriptions method.
  746. type ListSubscriptionsResponse struct {
  747. // The subscriptions that match the request.
  748. Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
  749. // If not empty, indicates that there may be more subscriptions that match
  750. // the request; this value should be passed in a new ListSubscriptionsRequest
  751. // to get more subscriptions.
  752. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  753. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  754. XXX_unrecognized []byte `json:"-"`
  755. XXX_sizecache int32 `json:"-"`
  756. }
  757. func (m *ListSubscriptionsResponse) Reset() { *m = ListSubscriptionsResponse{} }
  758. func (m *ListSubscriptionsResponse) String() string { return proto.CompactTextString(m) }
  759. func (*ListSubscriptionsResponse) ProtoMessage() {}
  760. func (*ListSubscriptionsResponse) Descriptor() ([]byte, []int) {
  761. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{15}
  762. }
  763. func (m *ListSubscriptionsResponse) XXX_Unmarshal(b []byte) error {
  764. return xxx_messageInfo_ListSubscriptionsResponse.Unmarshal(m, b)
  765. }
  766. func (m *ListSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  767. return xxx_messageInfo_ListSubscriptionsResponse.Marshal(b, m, deterministic)
  768. }
  769. func (dst *ListSubscriptionsResponse) XXX_Merge(src proto.Message) {
  770. xxx_messageInfo_ListSubscriptionsResponse.Merge(dst, src)
  771. }
  772. func (m *ListSubscriptionsResponse) XXX_Size() int {
  773. return xxx_messageInfo_ListSubscriptionsResponse.Size(m)
  774. }
  775. func (m *ListSubscriptionsResponse) XXX_DiscardUnknown() {
  776. xxx_messageInfo_ListSubscriptionsResponse.DiscardUnknown(m)
  777. }
  778. var xxx_messageInfo_ListSubscriptionsResponse proto.InternalMessageInfo
  779. func (m *ListSubscriptionsResponse) GetSubscriptions() []*Subscription {
  780. if m != nil {
  781. return m.Subscriptions
  782. }
  783. return nil
  784. }
  785. func (m *ListSubscriptionsResponse) GetNextPageToken() string {
  786. if m != nil {
  787. return m.NextPageToken
  788. }
  789. return ""
  790. }
  791. // Request for the DeleteSubscription method.
  792. type DeleteSubscriptionRequest struct {
  793. // The subscription to delete.
  794. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  795. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  796. XXX_unrecognized []byte `json:"-"`
  797. XXX_sizecache int32 `json:"-"`
  798. }
  799. func (m *DeleteSubscriptionRequest) Reset() { *m = DeleteSubscriptionRequest{} }
  800. func (m *DeleteSubscriptionRequest) String() string { return proto.CompactTextString(m) }
  801. func (*DeleteSubscriptionRequest) ProtoMessage() {}
  802. func (*DeleteSubscriptionRequest) Descriptor() ([]byte, []int) {
  803. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{16}
  804. }
  805. func (m *DeleteSubscriptionRequest) XXX_Unmarshal(b []byte) error {
  806. return xxx_messageInfo_DeleteSubscriptionRequest.Unmarshal(m, b)
  807. }
  808. func (m *DeleteSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  809. return xxx_messageInfo_DeleteSubscriptionRequest.Marshal(b, m, deterministic)
  810. }
  811. func (dst *DeleteSubscriptionRequest) XXX_Merge(src proto.Message) {
  812. xxx_messageInfo_DeleteSubscriptionRequest.Merge(dst, src)
  813. }
  814. func (m *DeleteSubscriptionRequest) XXX_Size() int {
  815. return xxx_messageInfo_DeleteSubscriptionRequest.Size(m)
  816. }
  817. func (m *DeleteSubscriptionRequest) XXX_DiscardUnknown() {
  818. xxx_messageInfo_DeleteSubscriptionRequest.DiscardUnknown(m)
  819. }
  820. var xxx_messageInfo_DeleteSubscriptionRequest proto.InternalMessageInfo
  821. func (m *DeleteSubscriptionRequest) GetSubscription() string {
  822. if m != nil {
  823. return m.Subscription
  824. }
  825. return ""
  826. }
  827. // Request for the ModifyPushConfig method.
  828. type ModifyPushConfigRequest struct {
  829. // The name of the subscription.
  830. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  831. // The push configuration for future deliveries.
  832. //
  833. // An empty pushConfig indicates that the Pub/Sub system should
  834. // stop pushing messages from the given subscription and allow
  835. // messages to be pulled and acknowledged - effectively pausing
  836. // the subscription if Pull is not called.
  837. PushConfig *PushConfig `protobuf:"bytes,2,opt,name=push_config,json=pushConfig,proto3" json:"push_config,omitempty"`
  838. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  839. XXX_unrecognized []byte `json:"-"`
  840. XXX_sizecache int32 `json:"-"`
  841. }
  842. func (m *ModifyPushConfigRequest) Reset() { *m = ModifyPushConfigRequest{} }
  843. func (m *ModifyPushConfigRequest) String() string { return proto.CompactTextString(m) }
  844. func (*ModifyPushConfigRequest) ProtoMessage() {}
  845. func (*ModifyPushConfigRequest) Descriptor() ([]byte, []int) {
  846. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{17}
  847. }
  848. func (m *ModifyPushConfigRequest) XXX_Unmarshal(b []byte) error {
  849. return xxx_messageInfo_ModifyPushConfigRequest.Unmarshal(m, b)
  850. }
  851. func (m *ModifyPushConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  852. return xxx_messageInfo_ModifyPushConfigRequest.Marshal(b, m, deterministic)
  853. }
  854. func (dst *ModifyPushConfigRequest) XXX_Merge(src proto.Message) {
  855. xxx_messageInfo_ModifyPushConfigRequest.Merge(dst, src)
  856. }
  857. func (m *ModifyPushConfigRequest) XXX_Size() int {
  858. return xxx_messageInfo_ModifyPushConfigRequest.Size(m)
  859. }
  860. func (m *ModifyPushConfigRequest) XXX_DiscardUnknown() {
  861. xxx_messageInfo_ModifyPushConfigRequest.DiscardUnknown(m)
  862. }
  863. var xxx_messageInfo_ModifyPushConfigRequest proto.InternalMessageInfo
  864. func (m *ModifyPushConfigRequest) GetSubscription() string {
  865. if m != nil {
  866. return m.Subscription
  867. }
  868. return ""
  869. }
  870. func (m *ModifyPushConfigRequest) GetPushConfig() *PushConfig {
  871. if m != nil {
  872. return m.PushConfig
  873. }
  874. return nil
  875. }
  876. // Request for the Pull method.
  877. type PullRequest struct {
  878. // The subscription from which messages should be pulled.
  879. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  880. // If this is specified as true the system will respond immediately even if
  881. // it is not able to return a message in the Pull response. Otherwise the
  882. // system is allowed to wait until at least one message is available rather
  883. // than returning no messages. The client may cancel the request if it does
  884. // not wish to wait any longer for the response.
  885. ReturnImmediately bool `protobuf:"varint,2,opt,name=return_immediately,json=returnImmediately,proto3" json:"return_immediately,omitempty"`
  886. // The maximum number of messages returned for this request. The Pub/Sub
  887. // system may return fewer than the number specified.
  888. MaxMessages int32 `protobuf:"varint,3,opt,name=max_messages,json=maxMessages,proto3" json:"max_messages,omitempty"`
  889. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  890. XXX_unrecognized []byte `json:"-"`
  891. XXX_sizecache int32 `json:"-"`
  892. }
  893. func (m *PullRequest) Reset() { *m = PullRequest{} }
  894. func (m *PullRequest) String() string { return proto.CompactTextString(m) }
  895. func (*PullRequest) ProtoMessage() {}
  896. func (*PullRequest) Descriptor() ([]byte, []int) {
  897. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{18}
  898. }
  899. func (m *PullRequest) XXX_Unmarshal(b []byte) error {
  900. return xxx_messageInfo_PullRequest.Unmarshal(m, b)
  901. }
  902. func (m *PullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  903. return xxx_messageInfo_PullRequest.Marshal(b, m, deterministic)
  904. }
  905. func (dst *PullRequest) XXX_Merge(src proto.Message) {
  906. xxx_messageInfo_PullRequest.Merge(dst, src)
  907. }
  908. func (m *PullRequest) XXX_Size() int {
  909. return xxx_messageInfo_PullRequest.Size(m)
  910. }
  911. func (m *PullRequest) XXX_DiscardUnknown() {
  912. xxx_messageInfo_PullRequest.DiscardUnknown(m)
  913. }
  914. var xxx_messageInfo_PullRequest proto.InternalMessageInfo
  915. func (m *PullRequest) GetSubscription() string {
  916. if m != nil {
  917. return m.Subscription
  918. }
  919. return ""
  920. }
  921. func (m *PullRequest) GetReturnImmediately() bool {
  922. if m != nil {
  923. return m.ReturnImmediately
  924. }
  925. return false
  926. }
  927. func (m *PullRequest) GetMaxMessages() int32 {
  928. if m != nil {
  929. return m.MaxMessages
  930. }
  931. return 0
  932. }
  933. // Response for the Pull method.
  934. type PullResponse struct {
  935. // Received Pub/Sub messages. The Pub/Sub system will return zero messages if
  936. // there are no more available in the backlog. The Pub/Sub system may return
  937. // fewer than the maxMessages requested even if there are more messages
  938. // available in the backlog.
  939. ReceivedMessages []*ReceivedMessage `protobuf:"bytes,1,rep,name=received_messages,json=receivedMessages,proto3" json:"received_messages,omitempty"`
  940. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  941. XXX_unrecognized []byte `json:"-"`
  942. XXX_sizecache int32 `json:"-"`
  943. }
  944. func (m *PullResponse) Reset() { *m = PullResponse{} }
  945. func (m *PullResponse) String() string { return proto.CompactTextString(m) }
  946. func (*PullResponse) ProtoMessage() {}
  947. func (*PullResponse) Descriptor() ([]byte, []int) {
  948. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{19}
  949. }
  950. func (m *PullResponse) XXX_Unmarshal(b []byte) error {
  951. return xxx_messageInfo_PullResponse.Unmarshal(m, b)
  952. }
  953. func (m *PullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  954. return xxx_messageInfo_PullResponse.Marshal(b, m, deterministic)
  955. }
  956. func (dst *PullResponse) XXX_Merge(src proto.Message) {
  957. xxx_messageInfo_PullResponse.Merge(dst, src)
  958. }
  959. func (m *PullResponse) XXX_Size() int {
  960. return xxx_messageInfo_PullResponse.Size(m)
  961. }
  962. func (m *PullResponse) XXX_DiscardUnknown() {
  963. xxx_messageInfo_PullResponse.DiscardUnknown(m)
  964. }
  965. var xxx_messageInfo_PullResponse proto.InternalMessageInfo
  966. func (m *PullResponse) GetReceivedMessages() []*ReceivedMessage {
  967. if m != nil {
  968. return m.ReceivedMessages
  969. }
  970. return nil
  971. }
  972. // Request for the ModifyAckDeadline method.
  973. type ModifyAckDeadlineRequest struct {
  974. // The name of the subscription.
  975. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  976. // The acknowledgment ID.
  977. AckId string `protobuf:"bytes,2,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"`
  978. // The new ack deadline with respect to the time this request was sent to the
  979. // Pub/Sub system. Must be >= 0. For example, if the value is 10, the new ack
  980. // deadline will expire 10 seconds after the ModifyAckDeadline call was made.
  981. // Specifying zero may immediately make the message available for another pull
  982. // request.
  983. AckDeadlineSeconds int32 `protobuf:"varint,3,opt,name=ack_deadline_seconds,json=ackDeadlineSeconds,proto3" json:"ack_deadline_seconds,omitempty"`
  984. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  985. XXX_unrecognized []byte `json:"-"`
  986. XXX_sizecache int32 `json:"-"`
  987. }
  988. func (m *ModifyAckDeadlineRequest) Reset() { *m = ModifyAckDeadlineRequest{} }
  989. func (m *ModifyAckDeadlineRequest) String() string { return proto.CompactTextString(m) }
  990. func (*ModifyAckDeadlineRequest) ProtoMessage() {}
  991. func (*ModifyAckDeadlineRequest) Descriptor() ([]byte, []int) {
  992. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{20}
  993. }
  994. func (m *ModifyAckDeadlineRequest) XXX_Unmarshal(b []byte) error {
  995. return xxx_messageInfo_ModifyAckDeadlineRequest.Unmarshal(m, b)
  996. }
  997. func (m *ModifyAckDeadlineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  998. return xxx_messageInfo_ModifyAckDeadlineRequest.Marshal(b, m, deterministic)
  999. }
  1000. func (dst *ModifyAckDeadlineRequest) XXX_Merge(src proto.Message) {
  1001. xxx_messageInfo_ModifyAckDeadlineRequest.Merge(dst, src)
  1002. }
  1003. func (m *ModifyAckDeadlineRequest) XXX_Size() int {
  1004. return xxx_messageInfo_ModifyAckDeadlineRequest.Size(m)
  1005. }
  1006. func (m *ModifyAckDeadlineRequest) XXX_DiscardUnknown() {
  1007. xxx_messageInfo_ModifyAckDeadlineRequest.DiscardUnknown(m)
  1008. }
  1009. var xxx_messageInfo_ModifyAckDeadlineRequest proto.InternalMessageInfo
  1010. func (m *ModifyAckDeadlineRequest) GetSubscription() string {
  1011. if m != nil {
  1012. return m.Subscription
  1013. }
  1014. return ""
  1015. }
  1016. func (m *ModifyAckDeadlineRequest) GetAckId() string {
  1017. if m != nil {
  1018. return m.AckId
  1019. }
  1020. return ""
  1021. }
  1022. func (m *ModifyAckDeadlineRequest) GetAckDeadlineSeconds() int32 {
  1023. if m != nil {
  1024. return m.AckDeadlineSeconds
  1025. }
  1026. return 0
  1027. }
  1028. // Request for the Acknowledge method.
  1029. type AcknowledgeRequest struct {
  1030. // The subscription whose message is being acknowledged.
  1031. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1032. // The acknowledgment ID for the messages being acknowledged that was returned
  1033. // by the Pub/Sub system in the Pull response. Must not be empty.
  1034. AckIds []string `protobuf:"bytes,2,rep,name=ack_ids,json=ackIds,proto3" json:"ack_ids,omitempty"`
  1035. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1036. XXX_unrecognized []byte `json:"-"`
  1037. XXX_sizecache int32 `json:"-"`
  1038. }
  1039. func (m *AcknowledgeRequest) Reset() { *m = AcknowledgeRequest{} }
  1040. func (m *AcknowledgeRequest) String() string { return proto.CompactTextString(m) }
  1041. func (*AcknowledgeRequest) ProtoMessage() {}
  1042. func (*AcknowledgeRequest) Descriptor() ([]byte, []int) {
  1043. return fileDescriptor_pubsub_ca5c5088fc9253a3, []int{21}
  1044. }
  1045. func (m *AcknowledgeRequest) XXX_Unmarshal(b []byte) error {
  1046. return xxx_messageInfo_AcknowledgeRequest.Unmarshal(m, b)
  1047. }
  1048. func (m *AcknowledgeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1049. return xxx_messageInfo_AcknowledgeRequest.Marshal(b, m, deterministic)
  1050. }
  1051. func (dst *AcknowledgeRequest) XXX_Merge(src proto.Message) {
  1052. xxx_messageInfo_AcknowledgeRequest.Merge(dst, src)
  1053. }
  1054. func (m *AcknowledgeRequest) XXX_Size() int {
  1055. return xxx_messageInfo_AcknowledgeRequest.Size(m)
  1056. }
  1057. func (m *AcknowledgeRequest) XXX_DiscardUnknown() {
  1058. xxx_messageInfo_AcknowledgeRequest.DiscardUnknown(m)
  1059. }
  1060. var xxx_messageInfo_AcknowledgeRequest proto.InternalMessageInfo
  1061. func (m *AcknowledgeRequest) GetSubscription() string {
  1062. if m != nil {
  1063. return m.Subscription
  1064. }
  1065. return ""
  1066. }
  1067. func (m *AcknowledgeRequest) GetAckIds() []string {
  1068. if m != nil {
  1069. return m.AckIds
  1070. }
  1071. return nil
  1072. }
  1073. func init() {
  1074. proto.RegisterType((*Topic)(nil), "google.pubsub.v1beta2.Topic")
  1075. proto.RegisterType((*PubsubMessage)(nil), "google.pubsub.v1beta2.PubsubMessage")
  1076. proto.RegisterMapType((map[string]string)(nil), "google.pubsub.v1beta2.PubsubMessage.AttributesEntry")
  1077. proto.RegisterType((*GetTopicRequest)(nil), "google.pubsub.v1beta2.GetTopicRequest")
  1078. proto.RegisterType((*PublishRequest)(nil), "google.pubsub.v1beta2.PublishRequest")
  1079. proto.RegisterType((*PublishResponse)(nil), "google.pubsub.v1beta2.PublishResponse")
  1080. proto.RegisterType((*ListTopicsRequest)(nil), "google.pubsub.v1beta2.ListTopicsRequest")
  1081. proto.RegisterType((*ListTopicsResponse)(nil), "google.pubsub.v1beta2.ListTopicsResponse")
  1082. proto.RegisterType((*ListTopicSubscriptionsRequest)(nil), "google.pubsub.v1beta2.ListTopicSubscriptionsRequest")
  1083. proto.RegisterType((*ListTopicSubscriptionsResponse)(nil), "google.pubsub.v1beta2.ListTopicSubscriptionsResponse")
  1084. proto.RegisterType((*DeleteTopicRequest)(nil), "google.pubsub.v1beta2.DeleteTopicRequest")
  1085. proto.RegisterType((*Subscription)(nil), "google.pubsub.v1beta2.Subscription")
  1086. proto.RegisterType((*PushConfig)(nil), "google.pubsub.v1beta2.PushConfig")
  1087. proto.RegisterMapType((map[string]string)(nil), "google.pubsub.v1beta2.PushConfig.AttributesEntry")
  1088. proto.RegisterType((*ReceivedMessage)(nil), "google.pubsub.v1beta2.ReceivedMessage")
  1089. proto.RegisterType((*GetSubscriptionRequest)(nil), "google.pubsub.v1beta2.GetSubscriptionRequest")
  1090. proto.RegisterType((*ListSubscriptionsRequest)(nil), "google.pubsub.v1beta2.ListSubscriptionsRequest")
  1091. proto.RegisterType((*ListSubscriptionsResponse)(nil), "google.pubsub.v1beta2.ListSubscriptionsResponse")
  1092. proto.RegisterType((*DeleteSubscriptionRequest)(nil), "google.pubsub.v1beta2.DeleteSubscriptionRequest")
  1093. proto.RegisterType((*ModifyPushConfigRequest)(nil), "google.pubsub.v1beta2.ModifyPushConfigRequest")
  1094. proto.RegisterType((*PullRequest)(nil), "google.pubsub.v1beta2.PullRequest")
  1095. proto.RegisterType((*PullResponse)(nil), "google.pubsub.v1beta2.PullResponse")
  1096. proto.RegisterType((*ModifyAckDeadlineRequest)(nil), "google.pubsub.v1beta2.ModifyAckDeadlineRequest")
  1097. proto.RegisterType((*AcknowledgeRequest)(nil), "google.pubsub.v1beta2.AcknowledgeRequest")
  1098. }
  1099. // Reference imports to suppress errors if they are not otherwise used.
  1100. var _ context.Context
  1101. var _ grpc.ClientConn
  1102. // This is a compile-time assertion to ensure that this generated file
  1103. // is compatible with the grpc package it is being compiled against.
  1104. const _ = grpc.SupportPackageIsVersion4
  1105. // SubscriberClient is the client API for Subscriber service.
  1106. //
  1107. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1108. type SubscriberClient interface {
  1109. // Creates a subscription to a given topic for a given subscriber.
  1110. // If the subscription already exists, returns ALREADY_EXISTS.
  1111. // If the corresponding topic doesn't exist, returns NOT_FOUND.
  1112. //
  1113. // If the name is not provided in the request, the server will assign a random
  1114. // name for this subscription on the same project as the topic.
  1115. CreateSubscription(ctx context.Context, in *Subscription, opts ...grpc.CallOption) (*Subscription, error)
  1116. // Gets the configuration details of a subscription.
  1117. GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error)
  1118. // Lists matching subscriptions.
  1119. ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error)
  1120. // Deletes an existing subscription. All pending messages in the subscription
  1121. // are immediately dropped. Calls to Pull after deletion will return
  1122. // NOT_FOUND. After a subscription is deleted, a new one may be created with
  1123. // the same name, but the new one has no association with the old
  1124. // subscription, or its topic unless the same topic is specified.
  1125. DeleteSubscription(ctx context.Context, in *DeleteSubscriptionRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  1126. // Modifies the ack deadline for a specific message. This method is useful to
  1127. // indicate that more time is needed to process a message by the subscriber,
  1128. // or to make the message available for redelivery if the processing was
  1129. // interrupted.
  1130. ModifyAckDeadline(ctx context.Context, in *ModifyAckDeadlineRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  1131. // Acknowledges the messages associated with the ack tokens in the
  1132. // AcknowledgeRequest. The Pub/Sub system can remove the relevant messages
  1133. // from the subscription.
  1134. //
  1135. // Acknowledging a message whose ack deadline has expired may succeed,
  1136. // but such a message may be redelivered later. Acknowledging a message more
  1137. // than once will not result in an error.
  1138. Acknowledge(ctx context.Context, in *AcknowledgeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  1139. // Pulls messages from the server. Returns an empty list if there are no
  1140. // messages available in the backlog. The server may return UNAVAILABLE if
  1141. // there are too many concurrent pull requests pending for the given
  1142. // subscription.
  1143. Pull(ctx context.Context, in *PullRequest, opts ...grpc.CallOption) (*PullResponse, error)
  1144. // Modifies the PushConfig for a specified subscription.
  1145. //
  1146. // This may be used to change a push subscription to a pull one (signified
  1147. // by an empty PushConfig) or vice versa, or change the endpoint URL and other
  1148. // attributes of a push subscription. Messages will accumulate for
  1149. // delivery continuously through the call regardless of changes to the
  1150. // PushConfig.
  1151. ModifyPushConfig(ctx context.Context, in *ModifyPushConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  1152. }
  1153. type subscriberClient struct {
  1154. cc *grpc.ClientConn
  1155. }
  1156. func NewSubscriberClient(cc *grpc.ClientConn) SubscriberClient {
  1157. return &subscriberClient{cc}
  1158. }
  1159. func (c *subscriberClient) CreateSubscription(ctx context.Context, in *Subscription, opts ...grpc.CallOption) (*Subscription, error) {
  1160. out := new(Subscription)
  1161. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Subscriber/CreateSubscription", in, out, opts...)
  1162. if err != nil {
  1163. return nil, err
  1164. }
  1165. return out, nil
  1166. }
  1167. func (c *subscriberClient) GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error) {
  1168. out := new(Subscription)
  1169. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Subscriber/GetSubscription", in, out, opts...)
  1170. if err != nil {
  1171. return nil, err
  1172. }
  1173. return out, nil
  1174. }
  1175. func (c *subscriberClient) ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error) {
  1176. out := new(ListSubscriptionsResponse)
  1177. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Subscriber/ListSubscriptions", in, out, opts...)
  1178. if err != nil {
  1179. return nil, err
  1180. }
  1181. return out, nil
  1182. }
  1183. func (c *subscriberClient) DeleteSubscription(ctx context.Context, in *DeleteSubscriptionRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  1184. out := new(empty.Empty)
  1185. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Subscriber/DeleteSubscription", in, out, opts...)
  1186. if err != nil {
  1187. return nil, err
  1188. }
  1189. return out, nil
  1190. }
  1191. func (c *subscriberClient) ModifyAckDeadline(ctx context.Context, in *ModifyAckDeadlineRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  1192. out := new(empty.Empty)
  1193. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Subscriber/ModifyAckDeadline", in, out, opts...)
  1194. if err != nil {
  1195. return nil, err
  1196. }
  1197. return out, nil
  1198. }
  1199. func (c *subscriberClient) Acknowledge(ctx context.Context, in *AcknowledgeRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  1200. out := new(empty.Empty)
  1201. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Subscriber/Acknowledge", in, out, opts...)
  1202. if err != nil {
  1203. return nil, err
  1204. }
  1205. return out, nil
  1206. }
  1207. func (c *subscriberClient) Pull(ctx context.Context, in *PullRequest, opts ...grpc.CallOption) (*PullResponse, error) {
  1208. out := new(PullResponse)
  1209. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Subscriber/Pull", in, out, opts...)
  1210. if err != nil {
  1211. return nil, err
  1212. }
  1213. return out, nil
  1214. }
  1215. func (c *subscriberClient) ModifyPushConfig(ctx context.Context, in *ModifyPushConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  1216. out := new(empty.Empty)
  1217. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Subscriber/ModifyPushConfig", in, out, opts...)
  1218. if err != nil {
  1219. return nil, err
  1220. }
  1221. return out, nil
  1222. }
  1223. // SubscriberServer is the server API for Subscriber service.
  1224. type SubscriberServer interface {
  1225. // Creates a subscription to a given topic for a given subscriber.
  1226. // If the subscription already exists, returns ALREADY_EXISTS.
  1227. // If the corresponding topic doesn't exist, returns NOT_FOUND.
  1228. //
  1229. // If the name is not provided in the request, the server will assign a random
  1230. // name for this subscription on the same project as the topic.
  1231. CreateSubscription(context.Context, *Subscription) (*Subscription, error)
  1232. // Gets the configuration details of a subscription.
  1233. GetSubscription(context.Context, *GetSubscriptionRequest) (*Subscription, error)
  1234. // Lists matching subscriptions.
  1235. ListSubscriptions(context.Context, *ListSubscriptionsRequest) (*ListSubscriptionsResponse, error)
  1236. // Deletes an existing subscription. All pending messages in the subscription
  1237. // are immediately dropped. Calls to Pull after deletion will return
  1238. // NOT_FOUND. After a subscription is deleted, a new one may be created with
  1239. // the same name, but the new one has no association with the old
  1240. // subscription, or its topic unless the same topic is specified.
  1241. DeleteSubscription(context.Context, *DeleteSubscriptionRequest) (*empty.Empty, error)
  1242. // Modifies the ack deadline for a specific message. This method is useful to
  1243. // indicate that more time is needed to process a message by the subscriber,
  1244. // or to make the message available for redelivery if the processing was
  1245. // interrupted.
  1246. ModifyAckDeadline(context.Context, *ModifyAckDeadlineRequest) (*empty.Empty, error)
  1247. // Acknowledges the messages associated with the ack tokens in the
  1248. // AcknowledgeRequest. The Pub/Sub system can remove the relevant messages
  1249. // from the subscription.
  1250. //
  1251. // Acknowledging a message whose ack deadline has expired may succeed,
  1252. // but such a message may be redelivered later. Acknowledging a message more
  1253. // than once will not result in an error.
  1254. Acknowledge(context.Context, *AcknowledgeRequest) (*empty.Empty, error)
  1255. // Pulls messages from the server. Returns an empty list if there are no
  1256. // messages available in the backlog. The server may return UNAVAILABLE if
  1257. // there are too many concurrent pull requests pending for the given
  1258. // subscription.
  1259. Pull(context.Context, *PullRequest) (*PullResponse, error)
  1260. // Modifies the PushConfig for a specified subscription.
  1261. //
  1262. // This may be used to change a push subscription to a pull one (signified
  1263. // by an empty PushConfig) or vice versa, or change the endpoint URL and other
  1264. // attributes of a push subscription. Messages will accumulate for
  1265. // delivery continuously through the call regardless of changes to the
  1266. // PushConfig.
  1267. ModifyPushConfig(context.Context, *ModifyPushConfigRequest) (*empty.Empty, error)
  1268. }
  1269. func RegisterSubscriberServer(s *grpc.Server, srv SubscriberServer) {
  1270. s.RegisterService(&_Subscriber_serviceDesc, srv)
  1271. }
  1272. func _Subscriber_CreateSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1273. in := new(Subscription)
  1274. if err := dec(in); err != nil {
  1275. return nil, err
  1276. }
  1277. if interceptor == nil {
  1278. return srv.(SubscriberServer).CreateSubscription(ctx, in)
  1279. }
  1280. info := &grpc.UnaryServerInfo{
  1281. Server: srv,
  1282. FullMethod: "/google.pubsub.v1beta2.Subscriber/CreateSubscription",
  1283. }
  1284. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1285. return srv.(SubscriberServer).CreateSubscription(ctx, req.(*Subscription))
  1286. }
  1287. return interceptor(ctx, in, info, handler)
  1288. }
  1289. func _Subscriber_GetSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1290. in := new(GetSubscriptionRequest)
  1291. if err := dec(in); err != nil {
  1292. return nil, err
  1293. }
  1294. if interceptor == nil {
  1295. return srv.(SubscriberServer).GetSubscription(ctx, in)
  1296. }
  1297. info := &grpc.UnaryServerInfo{
  1298. Server: srv,
  1299. FullMethod: "/google.pubsub.v1beta2.Subscriber/GetSubscription",
  1300. }
  1301. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1302. return srv.(SubscriberServer).GetSubscription(ctx, req.(*GetSubscriptionRequest))
  1303. }
  1304. return interceptor(ctx, in, info, handler)
  1305. }
  1306. func _Subscriber_ListSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1307. in := new(ListSubscriptionsRequest)
  1308. if err := dec(in); err != nil {
  1309. return nil, err
  1310. }
  1311. if interceptor == nil {
  1312. return srv.(SubscriberServer).ListSubscriptions(ctx, in)
  1313. }
  1314. info := &grpc.UnaryServerInfo{
  1315. Server: srv,
  1316. FullMethod: "/google.pubsub.v1beta2.Subscriber/ListSubscriptions",
  1317. }
  1318. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1319. return srv.(SubscriberServer).ListSubscriptions(ctx, req.(*ListSubscriptionsRequest))
  1320. }
  1321. return interceptor(ctx, in, info, handler)
  1322. }
  1323. func _Subscriber_DeleteSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1324. in := new(DeleteSubscriptionRequest)
  1325. if err := dec(in); err != nil {
  1326. return nil, err
  1327. }
  1328. if interceptor == nil {
  1329. return srv.(SubscriberServer).DeleteSubscription(ctx, in)
  1330. }
  1331. info := &grpc.UnaryServerInfo{
  1332. Server: srv,
  1333. FullMethod: "/google.pubsub.v1beta2.Subscriber/DeleteSubscription",
  1334. }
  1335. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1336. return srv.(SubscriberServer).DeleteSubscription(ctx, req.(*DeleteSubscriptionRequest))
  1337. }
  1338. return interceptor(ctx, in, info, handler)
  1339. }
  1340. func _Subscriber_ModifyAckDeadline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1341. in := new(ModifyAckDeadlineRequest)
  1342. if err := dec(in); err != nil {
  1343. return nil, err
  1344. }
  1345. if interceptor == nil {
  1346. return srv.(SubscriberServer).ModifyAckDeadline(ctx, in)
  1347. }
  1348. info := &grpc.UnaryServerInfo{
  1349. Server: srv,
  1350. FullMethod: "/google.pubsub.v1beta2.Subscriber/ModifyAckDeadline",
  1351. }
  1352. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1353. return srv.(SubscriberServer).ModifyAckDeadline(ctx, req.(*ModifyAckDeadlineRequest))
  1354. }
  1355. return interceptor(ctx, in, info, handler)
  1356. }
  1357. func _Subscriber_Acknowledge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1358. in := new(AcknowledgeRequest)
  1359. if err := dec(in); err != nil {
  1360. return nil, err
  1361. }
  1362. if interceptor == nil {
  1363. return srv.(SubscriberServer).Acknowledge(ctx, in)
  1364. }
  1365. info := &grpc.UnaryServerInfo{
  1366. Server: srv,
  1367. FullMethod: "/google.pubsub.v1beta2.Subscriber/Acknowledge",
  1368. }
  1369. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1370. return srv.(SubscriberServer).Acknowledge(ctx, req.(*AcknowledgeRequest))
  1371. }
  1372. return interceptor(ctx, in, info, handler)
  1373. }
  1374. func _Subscriber_Pull_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1375. in := new(PullRequest)
  1376. if err := dec(in); err != nil {
  1377. return nil, err
  1378. }
  1379. if interceptor == nil {
  1380. return srv.(SubscriberServer).Pull(ctx, in)
  1381. }
  1382. info := &grpc.UnaryServerInfo{
  1383. Server: srv,
  1384. FullMethod: "/google.pubsub.v1beta2.Subscriber/Pull",
  1385. }
  1386. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1387. return srv.(SubscriberServer).Pull(ctx, req.(*PullRequest))
  1388. }
  1389. return interceptor(ctx, in, info, handler)
  1390. }
  1391. func _Subscriber_ModifyPushConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1392. in := new(ModifyPushConfigRequest)
  1393. if err := dec(in); err != nil {
  1394. return nil, err
  1395. }
  1396. if interceptor == nil {
  1397. return srv.(SubscriberServer).ModifyPushConfig(ctx, in)
  1398. }
  1399. info := &grpc.UnaryServerInfo{
  1400. Server: srv,
  1401. FullMethod: "/google.pubsub.v1beta2.Subscriber/ModifyPushConfig",
  1402. }
  1403. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1404. return srv.(SubscriberServer).ModifyPushConfig(ctx, req.(*ModifyPushConfigRequest))
  1405. }
  1406. return interceptor(ctx, in, info, handler)
  1407. }
  1408. var _Subscriber_serviceDesc = grpc.ServiceDesc{
  1409. ServiceName: "google.pubsub.v1beta2.Subscriber",
  1410. HandlerType: (*SubscriberServer)(nil),
  1411. Methods: []grpc.MethodDesc{
  1412. {
  1413. MethodName: "CreateSubscription",
  1414. Handler: _Subscriber_CreateSubscription_Handler,
  1415. },
  1416. {
  1417. MethodName: "GetSubscription",
  1418. Handler: _Subscriber_GetSubscription_Handler,
  1419. },
  1420. {
  1421. MethodName: "ListSubscriptions",
  1422. Handler: _Subscriber_ListSubscriptions_Handler,
  1423. },
  1424. {
  1425. MethodName: "DeleteSubscription",
  1426. Handler: _Subscriber_DeleteSubscription_Handler,
  1427. },
  1428. {
  1429. MethodName: "ModifyAckDeadline",
  1430. Handler: _Subscriber_ModifyAckDeadline_Handler,
  1431. },
  1432. {
  1433. MethodName: "Acknowledge",
  1434. Handler: _Subscriber_Acknowledge_Handler,
  1435. },
  1436. {
  1437. MethodName: "Pull",
  1438. Handler: _Subscriber_Pull_Handler,
  1439. },
  1440. {
  1441. MethodName: "ModifyPushConfig",
  1442. Handler: _Subscriber_ModifyPushConfig_Handler,
  1443. },
  1444. },
  1445. Streams: []grpc.StreamDesc{},
  1446. Metadata: "google/pubsub/v1beta2/pubsub.proto",
  1447. }
  1448. // PublisherClient is the client API for Publisher service.
  1449. //
  1450. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1451. type PublisherClient interface {
  1452. // Creates the given topic with the given name.
  1453. CreateTopic(ctx context.Context, in *Topic, opts ...grpc.CallOption) (*Topic, error)
  1454. // Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
  1455. // not exist.
  1456. Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
  1457. // Gets the configuration of a topic.
  1458. GetTopic(ctx context.Context, in *GetTopicRequest, opts ...grpc.CallOption) (*Topic, error)
  1459. // Lists matching topics.
  1460. ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error)
  1461. // Lists the name of the subscriptions for this topic.
  1462. ListTopicSubscriptions(ctx context.Context, in *ListTopicSubscriptionsRequest, opts ...grpc.CallOption) (*ListTopicSubscriptionsResponse, error)
  1463. // Deletes the topic with the given name. Returns NOT_FOUND if the topic does
  1464. // not exist. After a topic is deleted, a new topic may be created with the
  1465. // same name; this is an entirely new topic with none of the old
  1466. // configuration or subscriptions. Existing subscriptions to this topic are
  1467. // not deleted.
  1468. DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  1469. }
  1470. type publisherClient struct {
  1471. cc *grpc.ClientConn
  1472. }
  1473. func NewPublisherClient(cc *grpc.ClientConn) PublisherClient {
  1474. return &publisherClient{cc}
  1475. }
  1476. func (c *publisherClient) CreateTopic(ctx context.Context, in *Topic, opts ...grpc.CallOption) (*Topic, error) {
  1477. out := new(Topic)
  1478. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Publisher/CreateTopic", in, out, opts...)
  1479. if err != nil {
  1480. return nil, err
  1481. }
  1482. return out, nil
  1483. }
  1484. func (c *publisherClient) Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error) {
  1485. out := new(PublishResponse)
  1486. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Publisher/Publish", in, out, opts...)
  1487. if err != nil {
  1488. return nil, err
  1489. }
  1490. return out, nil
  1491. }
  1492. func (c *publisherClient) GetTopic(ctx context.Context, in *GetTopicRequest, opts ...grpc.CallOption) (*Topic, error) {
  1493. out := new(Topic)
  1494. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Publisher/GetTopic", in, out, opts...)
  1495. if err != nil {
  1496. return nil, err
  1497. }
  1498. return out, nil
  1499. }
  1500. func (c *publisherClient) ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error) {
  1501. out := new(ListTopicsResponse)
  1502. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Publisher/ListTopics", in, out, opts...)
  1503. if err != nil {
  1504. return nil, err
  1505. }
  1506. return out, nil
  1507. }
  1508. func (c *publisherClient) ListTopicSubscriptions(ctx context.Context, in *ListTopicSubscriptionsRequest, opts ...grpc.CallOption) (*ListTopicSubscriptionsResponse, error) {
  1509. out := new(ListTopicSubscriptionsResponse)
  1510. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Publisher/ListTopicSubscriptions", in, out, opts...)
  1511. if err != nil {
  1512. return nil, err
  1513. }
  1514. return out, nil
  1515. }
  1516. func (c *publisherClient) DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  1517. out := new(empty.Empty)
  1518. err := c.cc.Invoke(ctx, "/google.pubsub.v1beta2.Publisher/DeleteTopic", in, out, opts...)
  1519. if err != nil {
  1520. return nil, err
  1521. }
  1522. return out, nil
  1523. }
  1524. // PublisherServer is the server API for Publisher service.
  1525. type PublisherServer interface {
  1526. // Creates the given topic with the given name.
  1527. CreateTopic(context.Context, *Topic) (*Topic, error)
  1528. // Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
  1529. // not exist.
  1530. Publish(context.Context, *PublishRequest) (*PublishResponse, error)
  1531. // Gets the configuration of a topic.
  1532. GetTopic(context.Context, *GetTopicRequest) (*Topic, error)
  1533. // Lists matching topics.
  1534. ListTopics(context.Context, *ListTopicsRequest) (*ListTopicsResponse, error)
  1535. // Lists the name of the subscriptions for this topic.
  1536. ListTopicSubscriptions(context.Context, *ListTopicSubscriptionsRequest) (*ListTopicSubscriptionsResponse, error)
  1537. // Deletes the topic with the given name. Returns NOT_FOUND if the topic does
  1538. // not exist. After a topic is deleted, a new topic may be created with the
  1539. // same name; this is an entirely new topic with none of the old
  1540. // configuration or subscriptions. Existing subscriptions to this topic are
  1541. // not deleted.
  1542. DeleteTopic(context.Context, *DeleteTopicRequest) (*empty.Empty, error)
  1543. }
  1544. func RegisterPublisherServer(s *grpc.Server, srv PublisherServer) {
  1545. s.RegisterService(&_Publisher_serviceDesc, srv)
  1546. }
  1547. func _Publisher_CreateTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1548. in := new(Topic)
  1549. if err := dec(in); err != nil {
  1550. return nil, err
  1551. }
  1552. if interceptor == nil {
  1553. return srv.(PublisherServer).CreateTopic(ctx, in)
  1554. }
  1555. info := &grpc.UnaryServerInfo{
  1556. Server: srv,
  1557. FullMethod: "/google.pubsub.v1beta2.Publisher/CreateTopic",
  1558. }
  1559. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1560. return srv.(PublisherServer).CreateTopic(ctx, req.(*Topic))
  1561. }
  1562. return interceptor(ctx, in, info, handler)
  1563. }
  1564. func _Publisher_Publish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1565. in := new(PublishRequest)
  1566. if err := dec(in); err != nil {
  1567. return nil, err
  1568. }
  1569. if interceptor == nil {
  1570. return srv.(PublisherServer).Publish(ctx, in)
  1571. }
  1572. info := &grpc.UnaryServerInfo{
  1573. Server: srv,
  1574. FullMethod: "/google.pubsub.v1beta2.Publisher/Publish",
  1575. }
  1576. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1577. return srv.(PublisherServer).Publish(ctx, req.(*PublishRequest))
  1578. }
  1579. return interceptor(ctx, in, info, handler)
  1580. }
  1581. func _Publisher_GetTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1582. in := new(GetTopicRequest)
  1583. if err := dec(in); err != nil {
  1584. return nil, err
  1585. }
  1586. if interceptor == nil {
  1587. return srv.(PublisherServer).GetTopic(ctx, in)
  1588. }
  1589. info := &grpc.UnaryServerInfo{
  1590. Server: srv,
  1591. FullMethod: "/google.pubsub.v1beta2.Publisher/GetTopic",
  1592. }
  1593. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1594. return srv.(PublisherServer).GetTopic(ctx, req.(*GetTopicRequest))
  1595. }
  1596. return interceptor(ctx, in, info, handler)
  1597. }
  1598. func _Publisher_ListTopics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1599. in := new(ListTopicsRequest)
  1600. if err := dec(in); err != nil {
  1601. return nil, err
  1602. }
  1603. if interceptor == nil {
  1604. return srv.(PublisherServer).ListTopics(ctx, in)
  1605. }
  1606. info := &grpc.UnaryServerInfo{
  1607. Server: srv,
  1608. FullMethod: "/google.pubsub.v1beta2.Publisher/ListTopics",
  1609. }
  1610. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1611. return srv.(PublisherServer).ListTopics(ctx, req.(*ListTopicsRequest))
  1612. }
  1613. return interceptor(ctx, in, info, handler)
  1614. }
  1615. func _Publisher_ListTopicSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1616. in := new(ListTopicSubscriptionsRequest)
  1617. if err := dec(in); err != nil {
  1618. return nil, err
  1619. }
  1620. if interceptor == nil {
  1621. return srv.(PublisherServer).ListTopicSubscriptions(ctx, in)
  1622. }
  1623. info := &grpc.UnaryServerInfo{
  1624. Server: srv,
  1625. FullMethod: "/google.pubsub.v1beta2.Publisher/ListTopicSubscriptions",
  1626. }
  1627. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1628. return srv.(PublisherServer).ListTopicSubscriptions(ctx, req.(*ListTopicSubscriptionsRequest))
  1629. }
  1630. return interceptor(ctx, in, info, handler)
  1631. }
  1632. func _Publisher_DeleteTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1633. in := new(DeleteTopicRequest)
  1634. if err := dec(in); err != nil {
  1635. return nil, err
  1636. }
  1637. if interceptor == nil {
  1638. return srv.(PublisherServer).DeleteTopic(ctx, in)
  1639. }
  1640. info := &grpc.UnaryServerInfo{
  1641. Server: srv,
  1642. FullMethod: "/google.pubsub.v1beta2.Publisher/DeleteTopic",
  1643. }
  1644. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1645. return srv.(PublisherServer).DeleteTopic(ctx, req.(*DeleteTopicRequest))
  1646. }
  1647. return interceptor(ctx, in, info, handler)
  1648. }
  1649. var _Publisher_serviceDesc = grpc.ServiceDesc{
  1650. ServiceName: "google.pubsub.v1beta2.Publisher",
  1651. HandlerType: (*PublisherServer)(nil),
  1652. Methods: []grpc.MethodDesc{
  1653. {
  1654. MethodName: "CreateTopic",
  1655. Handler: _Publisher_CreateTopic_Handler,
  1656. },
  1657. {
  1658. MethodName: "Publish",
  1659. Handler: _Publisher_Publish_Handler,
  1660. },
  1661. {
  1662. MethodName: "GetTopic",
  1663. Handler: _Publisher_GetTopic_Handler,
  1664. },
  1665. {
  1666. MethodName: "ListTopics",
  1667. Handler: _Publisher_ListTopics_Handler,
  1668. },
  1669. {
  1670. MethodName: "ListTopicSubscriptions",
  1671. Handler: _Publisher_ListTopicSubscriptions_Handler,
  1672. },
  1673. {
  1674. MethodName: "DeleteTopic",
  1675. Handler: _Publisher_DeleteTopic_Handler,
  1676. },
  1677. },
  1678. Streams: []grpc.StreamDesc{},
  1679. Metadata: "google/pubsub/v1beta2/pubsub.proto",
  1680. }
  1681. func init() {
  1682. proto.RegisterFile("google/pubsub/v1beta2/pubsub.proto", fileDescriptor_pubsub_ca5c5088fc9253a3)
  1683. }
  1684. var fileDescriptor_pubsub_ca5c5088fc9253a3 = []byte{
  1685. // 1107 bytes of a gzipped FileDescriptorProto
  1686. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x5f, 0x6f, 0xdb, 0x54,
  1687. 0x14, 0x97, 0x93, 0xfe, 0xcb, 0x71, 0x4a, 0xda, 0xab, 0xad, 0x73, 0x53, 0x06, 0x9d, 0x37, 0x4a,
  1688. 0x86, 0xb4, 0x64, 0x0b, 0x45, 0x42, 0x8c, 0x7f, 0xed, 0x56, 0x4d, 0x91, 0xa8, 0xc8, 0xdc, 0x3e,
  1689. 0xa0, 0x09, 0x2d, 0x72, 0xec, 0x5b, 0xc7, 0xc4, 0xb1, 0x3d, 0x5f, 0xbb, 0x34, 0x7b, 0x43, 0x08,
  1690. 0xc1, 0x13, 0x1f, 0x85, 0xaf, 0xc0, 0x03, 0x1f, 0x82, 0xaf, 0x83, 0x7c, 0xef, 0xb5, 0x63, 0xa7,
  1691. 0xbe, 0xa9, 0xdb, 0x89, 0x37, 0xdf, 0x73, 0xcf, 0xff, 0x73, 0x7e, 0xe7, 0x1e, 0x83, 0x6a, 0x79,
  1692. 0x9e, 0xe5, 0xe0, 0x8e, 0x1f, 0x0d, 0x49, 0x34, 0xec, 0x9c, 0x3f, 0x19, 0xe2, 0x50, 0xef, 0xf2,
  1693. 0x63, 0xdb, 0x0f, 0xbc, 0xd0, 0x43, 0xb7, 0x19, 0x4f, 0x9b, 0x13, 0x39, 0x4f, 0x73, 0x27, 0x11,
  1694. 0x8d, 0x99, 0x86, 0xd1, 0x59, 0x07, 0x4f, 0xfc, 0x70, 0xca, 0x64, 0xd4, 0x1d, 0x58, 0x3e, 0xf5,
  1695. 0x7c, 0xdb, 0x40, 0x08, 0x96, 0x5c, 0x7d, 0x82, 0x15, 0x69, 0x57, 0x6a, 0xd5, 0x34, 0xfa, 0xad,
  1696. 0xfe, 0x2b, 0xc1, 0x7a, 0x9f, 0x2a, 0x3b, 0xc6, 0x84, 0xe8, 0x16, 0x8e, 0xb9, 0x4c, 0x3d, 0xd4,
  1697. 0x29, 0x57, 0x5d, 0xa3, 0xdf, 0xe8, 0x14, 0x40, 0x0f, 0xc3, 0xc0, 0x1e, 0x46, 0x21, 0x26, 0x4a,
  1698. 0x65, 0xb7, 0xda, 0x92, 0xbb, 0xfb, 0xed, 0x42, 0x5f, 0xda, 0x39, 0x6d, 0xed, 0x83, 0x54, 0xec,
  1699. 0xc8, 0x0d, 0x83, 0xa9, 0x96, 0xd1, 0x83, 0xee, 0x02, 0x4c, 0x18, 0xdb, 0xc0, 0x36, 0x95, 0x2a,
  1700. 0xf5, 0xaa, 0xc6, 0x29, 0x3d, 0xb3, 0xf9, 0x15, 0x34, 0xe6, 0xa4, 0xd1, 0x06, 0x54, 0xc7, 0x78,
  1701. 0xca, 0x03, 0x88, 0x3f, 0xd1, 0x2d, 0x58, 0x3e, 0xd7, 0x9d, 0x08, 0x2b, 0x15, 0x4a, 0x63, 0x87,
  1702. 0x2f, 0x2a, 0x9f, 0x4b, 0xea, 0xc7, 0xd0, 0x78, 0x81, 0x43, 0x1a, 0xb9, 0x86, 0xdf, 0x44, 0x98,
  1703. 0x84, 0x31, 0x73, 0x18, 0x9f, 0xb9, 0x02, 0x76, 0x50, 0x47, 0xf0, 0x5e, 0x3f, 0x1a, 0x3a, 0x36,
  1704. 0x19, 0x2d, 0xe4, 0x43, 0xdf, 0xc2, 0x1a, 0x77, 0x2e, 0x49, 0xc1, 0x83, 0x32, 0x29, 0xd0, 0x52,
  1705. 0x29, 0xb5, 0x0b, 0x8d, 0xd4, 0x12, 0xf1, 0x3d, 0x97, 0x60, 0xf4, 0x21, 0xc8, 0xb3, 0x1c, 0x10,
  1706. 0x45, 0xda, 0xad, 0xb6, 0x6a, 0x1a, 0xa4, 0x49, 0x20, 0xaa, 0x0d, 0x9b, 0xdf, 0xd9, 0x84, 0xc5,
  1707. 0x41, 0x12, 0x07, 0x15, 0x58, 0xf5, 0x03, 0xef, 0x27, 0x6c, 0x84, 0xdc, 0xc5, 0xe4, 0x88, 0x76,
  1708. 0xa0, 0xe6, 0xc7, 0xca, 0x88, 0xfd, 0x96, 0xe5, 0x64, 0x59, 0x5b, 0x8b, 0x09, 0x27, 0xf6, 0x5b,
  1709. 0x1c, 0x27, 0x9c, 0x5e, 0x86, 0xde, 0x18, 0xbb, 0x49, 0xc2, 0x63, 0xca, 0x69, 0x4c, 0x50, 0x03,
  1710. 0x40, 0x59, 0x53, 0xdc, 0xc3, 0x7d, 0x58, 0xa1, 0xf1, 0x33, 0xe7, 0xe4, 0xee, 0xfb, 0x82, 0xa0,
  1711. 0x59, 0xa6, 0x39, 0x2f, 0xda, 0x83, 0x86, 0x8b, 0x2f, 0xc2, 0x41, 0xc6, 0x1e, 0xab, 0xd0, 0x7a,
  1712. 0x4c, 0xee, 0xa7, 0x36, 0xdf, 0xc0, 0xdd, 0xd4, 0xe6, 0x49, 0x34, 0x24, 0x46, 0x60, 0xfb, 0xa1,
  1713. 0xed, 0xb9, 0x64, 0x71, 0x2d, 0xde, 0x25, 0x4c, 0x17, 0x3e, 0x10, 0x99, 0xe4, 0x21, 0x3f, 0x80,
  1714. 0x75, 0x92, 0xbd, 0xe0, 0x65, 0xc9, 0x13, 0x4b, 0x87, 0xf8, 0x09, 0xa0, 0xe7, 0xd8, 0xc1, 0x21,
  1715. 0x2e, 0xd1, 0x8b, 0x7f, 0x49, 0x50, 0xcf, 0xfa, 0x54, 0x84, 0xd9, 0x99, 0x68, 0x25, 0x9b, 0x92,
  1716. 0x43, 0x90, 0xfd, 0x88, 0x8c, 0x06, 0x86, 0xe7, 0x9e, 0xd9, 0x96, 0xb2, 0xb4, 0x2b, 0xb5, 0xe4,
  1717. 0xee, 0x3d, 0x61, 0x87, 0x92, 0xd1, 0x33, 0xca, 0xa8, 0x81, 0x9f, 0x7e, 0xa3, 0xc7, 0x70, 0x4b,
  1718. 0x37, 0xc6, 0x03, 0x13, 0xeb, 0xa6, 0x63, 0xbb, 0x78, 0x40, 0xb0, 0xe1, 0xb9, 0x26, 0x51, 0x96,
  1719. 0x69, 0x86, 0x91, 0x6e, 0x8c, 0x9f, 0xf3, 0xab, 0x13, 0x76, 0xa3, 0xfe, 0x23, 0x01, 0xcc, 0x94,
  1720. 0xa1, 0xfb, 0xb0, 0x4e, 0x9d, 0xc0, 0xae, 0xe9, 0x7b, 0xb6, 0x9b, 0xb4, 0x67, 0x3d, 0x26, 0x1e,
  1721. 0x71, 0x1a, 0x7a, 0x59, 0x30, 0x4d, 0x9e, 0x5c, 0xe9, 0xe8, 0xa2, 0x51, 0xf2, 0xae, 0xb3, 0x62,
  1722. 0x04, 0x0d, 0x0d, 0x1b, 0xd8, 0x3e, 0xc7, 0x66, 0x32, 0x06, 0x6f, 0xc3, 0x4a, 0x9c, 0x0a, 0xdb,
  1723. 0x4c, 0x0a, 0xa4, 0x1b, 0xe3, 0x9e, 0x89, 0xbe, 0x86, 0x55, 0x0e, 0x4e, 0xaa, 0xa5, 0xec, 0x0c,
  1724. 0x48, 0x84, 0xd4, 0x2f, 0x61, 0xeb, 0x05, 0x0e, 0xb3, 0x25, 0x4e, 0x1a, 0x42, 0x85, 0x7a, 0xb6,
  1725. 0xbf, 0x92, 0xcc, 0x65, 0x69, 0xaa, 0x0f, 0x4a, 0xdc, 0xba, 0x85, 0x40, 0xf9, 0x7f, 0x66, 0xc2,
  1726. 0x9f, 0x12, 0x6c, 0x17, 0x98, 0xe4, 0x40, 0xe9, 0x15, 0x01, 0x45, 0xee, 0xde, 0x17, 0xe4, 0x24,
  1727. 0x17, 0xf6, 0x0d, 0xd1, 0xf4, 0x0d, 0x6c, 0x33, 0x34, 0xdd, 0x34, 0x87, 0xbf, 0x48, 0x70, 0xe7,
  1728. 0xd8, 0x33, 0xed, 0xb3, 0x69, 0x06, 0x04, 0xe5, 0xe5, 0xe7, 0x71, 0x56, 0xb9, 0x01, 0xce, 0xd4,
  1729. 0x5f, 0x25, 0x90, 0xfb, 0x91, 0xe3, 0x5c, 0xc7, 0xee, 0x23, 0x40, 0x01, 0x0e, 0xa3, 0xc0, 0x1d,
  1730. 0xd8, 0x93, 0x09, 0x36, 0x6d, 0x3d, 0xc4, 0xce, 0x94, 0x9a, 0x5f, 0xd3, 0x36, 0xd9, 0x4d, 0x6f,
  1731. 0x76, 0x81, 0xee, 0x41, 0x7d, 0xa2, 0x5f, 0x0c, 0xd2, 0x17, 0xab, 0x4a, 0xeb, 0x2e, 0x4f, 0xf4,
  1732. 0x8b, 0xe3, 0xe4, 0x39, 0x32, 0xa0, 0xce, 0x9c, 0xe0, 0xd5, 0x3c, 0x81, 0xcd, 0x80, 0xa3, 0x60,
  1733. 0x26, 0xc7, 0x2a, 0xba, 0x27, 0x88, 0x6f, 0x0e, 0x35, 0xda, 0x46, 0x90, 0x27, 0x10, 0xf5, 0x77,
  1734. 0x09, 0x14, 0x96, 0xee, 0x83, 0xd9, 0xf4, 0xb8, 0x4e, 0xdc, 0x33, 0x20, 0x56, 0xb2, 0x40, 0x14,
  1735. 0x8d, 0xaa, 0xaa, 0x70, 0x54, 0xbd, 0x04, 0x74, 0x60, 0x8c, 0x5d, 0xef, 0x67, 0x07, 0x9b, 0xd6,
  1736. 0xb5, 0x5c, 0xb8, 0x03, 0xab, 0xcc, 0x05, 0x36, 0xad, 0x6a, 0xda, 0x0a, 0xf5, 0x81, 0x74, 0xff,
  1737. 0x58, 0x01, 0xe0, 0x7d, 0x38, 0xc4, 0x01, 0x7a, 0x0d, 0xe8, 0x59, 0x80, 0xf5, 0x7c, 0x6f, 0xa2,
  1738. 0x32, 0x68, 0x68, 0x96, 0x61, 0x42, 0x98, 0xae, 0x34, 0x39, 0xd2, 0x23, 0x81, 0x5c, 0xf1, 0x90,
  1739. 0x29, 0x67, 0xe6, 0x9c, 0xad, 0x1c, 0x39, 0xc8, 0xa3, 0x8e, 0x40, 0x52, 0x34, 0x8f, 0x9a, 0x8f,
  1740. 0xcb, 0x0b, 0xf0, 0xfe, 0x7b, 0x9d, 0x3c, 0x94, 0x39, 0x6f, 0x44, 0x7a, 0x84, 0x53, 0xa0, 0xb9,
  1741. 0x95, 0x4a, 0xf0, 0x75, 0xb8, 0x7d, 0x14, 0xaf, 0xc3, 0xe8, 0x47, 0xd8, 0xbc, 0xd4, 0x89, 0xc2,
  1742. 0xb8, 0x44, 0x3d, 0x2b, 0xd4, 0xde, 0x07, 0x39, 0xd3, 0x5e, 0xe8, 0xa1, 0x40, 0xef, 0xe5, 0x16,
  1743. 0x14, 0x6a, 0xfc, 0x1e, 0x96, 0x62, 0x7c, 0x22, 0x55, 0x38, 0x5c, 0xd2, 0x09, 0x22, 0x2c, 0x6c,
  1744. 0x0e, 0xe0, 0xaf, 0x60, 0x63, 0x7e, 0xf2, 0xa1, 0xf6, 0xc2, 0xf8, 0x2f, 0x8d, 0x48, 0x91, 0xb3,
  1745. 0xdd, 0xbf, 0x97, 0xa0, 0xc6, 0x97, 0x5b, 0x1c, 0xa0, 0x1e, 0xc8, 0x0c, 0x09, 0xec, 0xcf, 0x63,
  1746. 0xe1, 0xce, 0xd8, 0x5c, 0x78, 0x8b, 0x7e, 0x80, 0x55, 0xae, 0x17, 0x7d, 0x24, 0x7e, 0x6b, 0x33,
  1747. 0xeb, 0x7b, 0x73, 0xef, 0x2a, 0x36, 0x9e, 0x8e, 0x3e, 0xac, 0x25, 0x7f, 0x08, 0x68, 0x4f, 0x8c,
  1748. 0xa3, 0xec, 0xda, 0x76, 0x85, 0xaf, 0x3a, 0xc0, 0x6c, 0x83, 0x46, 0xad, 0x05, 0x08, 0xc8, 0xed,
  1749. 0xf3, 0xcd, 0x87, 0x25, 0x38, 0xb9, 0xd3, 0xbf, 0x49, 0xb0, 0x55, 0xbc, 0xbe, 0xa2, 0xfd, 0xab,
  1750. 0xb4, 0x14, 0xe2, 0xf4, 0xb3, 0x6b, 0x4a, 0xa5, 0xc9, 0x93, 0x33, 0x5b, 0xad, 0xb0, 0xdd, 0x2f,
  1751. 0x6f, 0xbe, 0xa2, 0x0e, 0x3a, 0xb4, 0x60, 0xdb, 0xf0, 0x26, 0xc5, 0x7a, 0x0e, 0x65, 0xb6, 0x4f,
  1752. 0xf5, 0x63, 0x91, 0xbe, 0xf4, 0xea, 0x29, 0xe7, 0xb2, 0x3c, 0x47, 0x77, 0xad, 0xb6, 0x17, 0x58,
  1753. 0x1d, 0x0b, 0xbb, 0x54, 0x61, 0x87, 0x5d, 0xe9, 0xbe, 0x4d, 0xe6, 0x7e, 0xa5, 0x9f, 0xb2, 0xe3,
  1754. 0x70, 0x85, 0xf2, 0x7d, 0xfa, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x2d, 0xb0, 0x67, 0x71,
  1755. 0x0f, 0x00, 0x00,
  1756. }