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.
 
 
 

3931 lines
165 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/pubsub/v1/pubsub.proto
  3. package pubsub // import "google.golang.org/genproto/googleapis/pubsub/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import duration "github.com/golang/protobuf/ptypes/duration"
  8. import empty "github.com/golang/protobuf/ptypes/empty"
  9. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  10. import _ "google.golang.org/genproto/googleapis/api/annotations"
  11. import field_mask "google.golang.org/genproto/protobuf/field_mask"
  12. import (
  13. context "golang.org/x/net/context"
  14. grpc "google.golang.org/grpc"
  15. )
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  25. type MessageStoragePolicy struct {
  26. // The list of GCP region IDs where messages that are published to the topic
  27. // may be persisted in storage. Messages published by publishers running in
  28. // non-allowed GCP regions (or running outside of GCP altogether) will be
  29. // routed for storage in one of the allowed regions. An empty list indicates a
  30. // misconfiguration at the project or organization level, which will result in
  31. // all Publish operations failing.
  32. AllowedPersistenceRegions []string `protobuf:"bytes,1,rep,name=allowed_persistence_regions,json=allowedPersistenceRegions,proto3" json:"allowed_persistence_regions,omitempty"`
  33. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  34. XXX_unrecognized []byte `json:"-"`
  35. XXX_sizecache int32 `json:"-"`
  36. }
  37. func (m *MessageStoragePolicy) Reset() { *m = MessageStoragePolicy{} }
  38. func (m *MessageStoragePolicy) String() string { return proto.CompactTextString(m) }
  39. func (*MessageStoragePolicy) ProtoMessage() {}
  40. func (*MessageStoragePolicy) Descriptor() ([]byte, []int) {
  41. return fileDescriptor_pubsub_1b403a4032d20168, []int{0}
  42. }
  43. func (m *MessageStoragePolicy) XXX_Unmarshal(b []byte) error {
  44. return xxx_messageInfo_MessageStoragePolicy.Unmarshal(m, b)
  45. }
  46. func (m *MessageStoragePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  47. return xxx_messageInfo_MessageStoragePolicy.Marshal(b, m, deterministic)
  48. }
  49. func (dst *MessageStoragePolicy) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_MessageStoragePolicy.Merge(dst, src)
  51. }
  52. func (m *MessageStoragePolicy) XXX_Size() int {
  53. return xxx_messageInfo_MessageStoragePolicy.Size(m)
  54. }
  55. func (m *MessageStoragePolicy) XXX_DiscardUnknown() {
  56. xxx_messageInfo_MessageStoragePolicy.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_MessageStoragePolicy proto.InternalMessageInfo
  59. func (m *MessageStoragePolicy) GetAllowedPersistenceRegions() []string {
  60. if m != nil {
  61. return m.AllowedPersistenceRegions
  62. }
  63. return nil
  64. }
  65. // A topic resource.
  66. type Topic struct {
  67. // The name of the topic. It must have the format
  68. // `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
  69. // and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
  70. // underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
  71. // signs (`%`). It must be between 3 and 255 characters in length, and it
  72. // must not start with `"goog"`.
  73. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  74. // See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
  75. // managing labels</a>.
  76. Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  77. // Policy constraining how messages published to the topic may be stored. It
  78. // is determined when the topic is created based on the policy configured at
  79. // the project level. It must not be set by the caller in the request to
  80. // CreateTopic or to UpdateTopic. This field will be populated in the
  81. // responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
  82. // response, then no constraints are in effect.
  83. MessageStoragePolicy *MessageStoragePolicy `protobuf:"bytes,3,opt,name=message_storage_policy,json=messageStoragePolicy,proto3" json:"message_storage_policy,omitempty"`
  84. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  85. XXX_unrecognized []byte `json:"-"`
  86. XXX_sizecache int32 `json:"-"`
  87. }
  88. func (m *Topic) Reset() { *m = Topic{} }
  89. func (m *Topic) String() string { return proto.CompactTextString(m) }
  90. func (*Topic) ProtoMessage() {}
  91. func (*Topic) Descriptor() ([]byte, []int) {
  92. return fileDescriptor_pubsub_1b403a4032d20168, []int{1}
  93. }
  94. func (m *Topic) XXX_Unmarshal(b []byte) error {
  95. return xxx_messageInfo_Topic.Unmarshal(m, b)
  96. }
  97. func (m *Topic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  98. return xxx_messageInfo_Topic.Marshal(b, m, deterministic)
  99. }
  100. func (dst *Topic) XXX_Merge(src proto.Message) {
  101. xxx_messageInfo_Topic.Merge(dst, src)
  102. }
  103. func (m *Topic) XXX_Size() int {
  104. return xxx_messageInfo_Topic.Size(m)
  105. }
  106. func (m *Topic) XXX_DiscardUnknown() {
  107. xxx_messageInfo_Topic.DiscardUnknown(m)
  108. }
  109. var xxx_messageInfo_Topic proto.InternalMessageInfo
  110. func (m *Topic) GetName() string {
  111. if m != nil {
  112. return m.Name
  113. }
  114. return ""
  115. }
  116. func (m *Topic) GetLabels() map[string]string {
  117. if m != nil {
  118. return m.Labels
  119. }
  120. return nil
  121. }
  122. func (m *Topic) GetMessageStoragePolicy() *MessageStoragePolicy {
  123. if m != nil {
  124. return m.MessageStoragePolicy
  125. }
  126. return nil
  127. }
  128. // A message that is published by publishers and consumed by subscribers. The
  129. // message must contain either a non-empty data field or at least one attribute.
  130. // Note that client libraries represent this object differently
  131. // depending on the language. See the corresponding
  132. // <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client
  133. // library documentation</a> for more information. See
  134. // <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
  135. // for more information about message limits.
  136. type PubsubMessage struct {
  137. // The message data field. If this field is empty, the message must contain
  138. // at least one attribute.
  139. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  140. // Optional attributes for this message.
  141. 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"`
  142. // ID of this message, assigned by the server when the message is published.
  143. // Guaranteed to be unique within the topic. This value may be read by a
  144. // subscriber that receives a `PubsubMessage` via a `Pull` call or a push
  145. // delivery. It must not be populated by the publisher in a `Publish` call.
  146. MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
  147. // The time at which the message was published, populated by the server when
  148. // it receives the `Publish` call. It must not be populated by the
  149. // publisher in a `Publish` call.
  150. PublishTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"`
  151. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  152. XXX_unrecognized []byte `json:"-"`
  153. XXX_sizecache int32 `json:"-"`
  154. }
  155. func (m *PubsubMessage) Reset() { *m = PubsubMessage{} }
  156. func (m *PubsubMessage) String() string { return proto.CompactTextString(m) }
  157. func (*PubsubMessage) ProtoMessage() {}
  158. func (*PubsubMessage) Descriptor() ([]byte, []int) {
  159. return fileDescriptor_pubsub_1b403a4032d20168, []int{2}
  160. }
  161. func (m *PubsubMessage) XXX_Unmarshal(b []byte) error {
  162. return xxx_messageInfo_PubsubMessage.Unmarshal(m, b)
  163. }
  164. func (m *PubsubMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  165. return xxx_messageInfo_PubsubMessage.Marshal(b, m, deterministic)
  166. }
  167. func (dst *PubsubMessage) XXX_Merge(src proto.Message) {
  168. xxx_messageInfo_PubsubMessage.Merge(dst, src)
  169. }
  170. func (m *PubsubMessage) XXX_Size() int {
  171. return xxx_messageInfo_PubsubMessage.Size(m)
  172. }
  173. func (m *PubsubMessage) XXX_DiscardUnknown() {
  174. xxx_messageInfo_PubsubMessage.DiscardUnknown(m)
  175. }
  176. var xxx_messageInfo_PubsubMessage proto.InternalMessageInfo
  177. func (m *PubsubMessage) GetData() []byte {
  178. if m != nil {
  179. return m.Data
  180. }
  181. return nil
  182. }
  183. func (m *PubsubMessage) GetAttributes() map[string]string {
  184. if m != nil {
  185. return m.Attributes
  186. }
  187. return nil
  188. }
  189. func (m *PubsubMessage) GetMessageId() string {
  190. if m != nil {
  191. return m.MessageId
  192. }
  193. return ""
  194. }
  195. func (m *PubsubMessage) GetPublishTime() *timestamp.Timestamp {
  196. if m != nil {
  197. return m.PublishTime
  198. }
  199. return nil
  200. }
  201. // Request for the GetTopic method.
  202. type GetTopicRequest struct {
  203. // The name of the topic to get.
  204. // Format is `projects/{project}/topics/{topic}`.
  205. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  206. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  207. XXX_unrecognized []byte `json:"-"`
  208. XXX_sizecache int32 `json:"-"`
  209. }
  210. func (m *GetTopicRequest) Reset() { *m = GetTopicRequest{} }
  211. func (m *GetTopicRequest) String() string { return proto.CompactTextString(m) }
  212. func (*GetTopicRequest) ProtoMessage() {}
  213. func (*GetTopicRequest) Descriptor() ([]byte, []int) {
  214. return fileDescriptor_pubsub_1b403a4032d20168, []int{3}
  215. }
  216. func (m *GetTopicRequest) XXX_Unmarshal(b []byte) error {
  217. return xxx_messageInfo_GetTopicRequest.Unmarshal(m, b)
  218. }
  219. func (m *GetTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  220. return xxx_messageInfo_GetTopicRequest.Marshal(b, m, deterministic)
  221. }
  222. func (dst *GetTopicRequest) XXX_Merge(src proto.Message) {
  223. xxx_messageInfo_GetTopicRequest.Merge(dst, src)
  224. }
  225. func (m *GetTopicRequest) XXX_Size() int {
  226. return xxx_messageInfo_GetTopicRequest.Size(m)
  227. }
  228. func (m *GetTopicRequest) XXX_DiscardUnknown() {
  229. xxx_messageInfo_GetTopicRequest.DiscardUnknown(m)
  230. }
  231. var xxx_messageInfo_GetTopicRequest proto.InternalMessageInfo
  232. func (m *GetTopicRequest) GetTopic() string {
  233. if m != nil {
  234. return m.Topic
  235. }
  236. return ""
  237. }
  238. // Request for the UpdateTopic method.
  239. type UpdateTopicRequest struct {
  240. // The updated topic object.
  241. Topic *Topic `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  242. // Indicates which fields in the provided topic to update. Must be specified
  243. // and non-empty. Note that if `update_mask` contains
  244. // "message_storage_policy" then the new value will be determined based on the
  245. // policy configured at the project or organization level. The
  246. // `message_storage_policy` must not be set in the `topic` provided above.
  247. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  248. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  249. XXX_unrecognized []byte `json:"-"`
  250. XXX_sizecache int32 `json:"-"`
  251. }
  252. func (m *UpdateTopicRequest) Reset() { *m = UpdateTopicRequest{} }
  253. func (m *UpdateTopicRequest) String() string { return proto.CompactTextString(m) }
  254. func (*UpdateTopicRequest) ProtoMessage() {}
  255. func (*UpdateTopicRequest) Descriptor() ([]byte, []int) {
  256. return fileDescriptor_pubsub_1b403a4032d20168, []int{4}
  257. }
  258. func (m *UpdateTopicRequest) XXX_Unmarshal(b []byte) error {
  259. return xxx_messageInfo_UpdateTopicRequest.Unmarshal(m, b)
  260. }
  261. func (m *UpdateTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  262. return xxx_messageInfo_UpdateTopicRequest.Marshal(b, m, deterministic)
  263. }
  264. func (dst *UpdateTopicRequest) XXX_Merge(src proto.Message) {
  265. xxx_messageInfo_UpdateTopicRequest.Merge(dst, src)
  266. }
  267. func (m *UpdateTopicRequest) XXX_Size() int {
  268. return xxx_messageInfo_UpdateTopicRequest.Size(m)
  269. }
  270. func (m *UpdateTopicRequest) XXX_DiscardUnknown() {
  271. xxx_messageInfo_UpdateTopicRequest.DiscardUnknown(m)
  272. }
  273. var xxx_messageInfo_UpdateTopicRequest proto.InternalMessageInfo
  274. func (m *UpdateTopicRequest) GetTopic() *Topic {
  275. if m != nil {
  276. return m.Topic
  277. }
  278. return nil
  279. }
  280. func (m *UpdateTopicRequest) GetUpdateMask() *field_mask.FieldMask {
  281. if m != nil {
  282. return m.UpdateMask
  283. }
  284. return nil
  285. }
  286. // Request for the Publish method.
  287. type PublishRequest struct {
  288. // The messages in the request will be published on this topic.
  289. // Format is `projects/{project}/topics/{topic}`.
  290. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  291. // The messages to publish.
  292. Messages []*PubsubMessage `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
  293. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  294. XXX_unrecognized []byte `json:"-"`
  295. XXX_sizecache int32 `json:"-"`
  296. }
  297. func (m *PublishRequest) Reset() { *m = PublishRequest{} }
  298. func (m *PublishRequest) String() string { return proto.CompactTextString(m) }
  299. func (*PublishRequest) ProtoMessage() {}
  300. func (*PublishRequest) Descriptor() ([]byte, []int) {
  301. return fileDescriptor_pubsub_1b403a4032d20168, []int{5}
  302. }
  303. func (m *PublishRequest) XXX_Unmarshal(b []byte) error {
  304. return xxx_messageInfo_PublishRequest.Unmarshal(m, b)
  305. }
  306. func (m *PublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  307. return xxx_messageInfo_PublishRequest.Marshal(b, m, deterministic)
  308. }
  309. func (dst *PublishRequest) XXX_Merge(src proto.Message) {
  310. xxx_messageInfo_PublishRequest.Merge(dst, src)
  311. }
  312. func (m *PublishRequest) XXX_Size() int {
  313. return xxx_messageInfo_PublishRequest.Size(m)
  314. }
  315. func (m *PublishRequest) XXX_DiscardUnknown() {
  316. xxx_messageInfo_PublishRequest.DiscardUnknown(m)
  317. }
  318. var xxx_messageInfo_PublishRequest proto.InternalMessageInfo
  319. func (m *PublishRequest) GetTopic() string {
  320. if m != nil {
  321. return m.Topic
  322. }
  323. return ""
  324. }
  325. func (m *PublishRequest) GetMessages() []*PubsubMessage {
  326. if m != nil {
  327. return m.Messages
  328. }
  329. return nil
  330. }
  331. // Response for the `Publish` method.
  332. type PublishResponse struct {
  333. // The server-assigned ID of each published message, in the same order as
  334. // the messages in the request. IDs are guaranteed to be unique within
  335. // the topic.
  336. MessageIds []string `protobuf:"bytes,1,rep,name=message_ids,json=messageIds,proto3" json:"message_ids,omitempty"`
  337. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  338. XXX_unrecognized []byte `json:"-"`
  339. XXX_sizecache int32 `json:"-"`
  340. }
  341. func (m *PublishResponse) Reset() { *m = PublishResponse{} }
  342. func (m *PublishResponse) String() string { return proto.CompactTextString(m) }
  343. func (*PublishResponse) ProtoMessage() {}
  344. func (*PublishResponse) Descriptor() ([]byte, []int) {
  345. return fileDescriptor_pubsub_1b403a4032d20168, []int{6}
  346. }
  347. func (m *PublishResponse) XXX_Unmarshal(b []byte) error {
  348. return xxx_messageInfo_PublishResponse.Unmarshal(m, b)
  349. }
  350. func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  351. return xxx_messageInfo_PublishResponse.Marshal(b, m, deterministic)
  352. }
  353. func (dst *PublishResponse) XXX_Merge(src proto.Message) {
  354. xxx_messageInfo_PublishResponse.Merge(dst, src)
  355. }
  356. func (m *PublishResponse) XXX_Size() int {
  357. return xxx_messageInfo_PublishResponse.Size(m)
  358. }
  359. func (m *PublishResponse) XXX_DiscardUnknown() {
  360. xxx_messageInfo_PublishResponse.DiscardUnknown(m)
  361. }
  362. var xxx_messageInfo_PublishResponse proto.InternalMessageInfo
  363. func (m *PublishResponse) GetMessageIds() []string {
  364. if m != nil {
  365. return m.MessageIds
  366. }
  367. return nil
  368. }
  369. // Request for the `ListTopics` method.
  370. type ListTopicsRequest struct {
  371. // The name of the project in which to list topics.
  372. // Format is `projects/{project-id}`.
  373. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
  374. // Maximum number of topics to return.
  375. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  376. // The value returned by the last `ListTopicsResponse`; indicates that this is
  377. // a continuation of a prior `ListTopics` call, and that the system should
  378. // return the next page of data.
  379. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  380. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  381. XXX_unrecognized []byte `json:"-"`
  382. XXX_sizecache int32 `json:"-"`
  383. }
  384. func (m *ListTopicsRequest) Reset() { *m = ListTopicsRequest{} }
  385. func (m *ListTopicsRequest) String() string { return proto.CompactTextString(m) }
  386. func (*ListTopicsRequest) ProtoMessage() {}
  387. func (*ListTopicsRequest) Descriptor() ([]byte, []int) {
  388. return fileDescriptor_pubsub_1b403a4032d20168, []int{7}
  389. }
  390. func (m *ListTopicsRequest) XXX_Unmarshal(b []byte) error {
  391. return xxx_messageInfo_ListTopicsRequest.Unmarshal(m, b)
  392. }
  393. func (m *ListTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  394. return xxx_messageInfo_ListTopicsRequest.Marshal(b, m, deterministic)
  395. }
  396. func (dst *ListTopicsRequest) XXX_Merge(src proto.Message) {
  397. xxx_messageInfo_ListTopicsRequest.Merge(dst, src)
  398. }
  399. func (m *ListTopicsRequest) XXX_Size() int {
  400. return xxx_messageInfo_ListTopicsRequest.Size(m)
  401. }
  402. func (m *ListTopicsRequest) XXX_DiscardUnknown() {
  403. xxx_messageInfo_ListTopicsRequest.DiscardUnknown(m)
  404. }
  405. var xxx_messageInfo_ListTopicsRequest proto.InternalMessageInfo
  406. func (m *ListTopicsRequest) GetProject() string {
  407. if m != nil {
  408. return m.Project
  409. }
  410. return ""
  411. }
  412. func (m *ListTopicsRequest) GetPageSize() int32 {
  413. if m != nil {
  414. return m.PageSize
  415. }
  416. return 0
  417. }
  418. func (m *ListTopicsRequest) GetPageToken() string {
  419. if m != nil {
  420. return m.PageToken
  421. }
  422. return ""
  423. }
  424. // Response for the `ListTopics` method.
  425. type ListTopicsResponse struct {
  426. // The resulting topics.
  427. Topics []*Topic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"`
  428. // If not empty, indicates that there may be more topics that match the
  429. // request; this value should be passed in a new `ListTopicsRequest`.
  430. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  431. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  432. XXX_unrecognized []byte `json:"-"`
  433. XXX_sizecache int32 `json:"-"`
  434. }
  435. func (m *ListTopicsResponse) Reset() { *m = ListTopicsResponse{} }
  436. func (m *ListTopicsResponse) String() string { return proto.CompactTextString(m) }
  437. func (*ListTopicsResponse) ProtoMessage() {}
  438. func (*ListTopicsResponse) Descriptor() ([]byte, []int) {
  439. return fileDescriptor_pubsub_1b403a4032d20168, []int{8}
  440. }
  441. func (m *ListTopicsResponse) XXX_Unmarshal(b []byte) error {
  442. return xxx_messageInfo_ListTopicsResponse.Unmarshal(m, b)
  443. }
  444. func (m *ListTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  445. return xxx_messageInfo_ListTopicsResponse.Marshal(b, m, deterministic)
  446. }
  447. func (dst *ListTopicsResponse) XXX_Merge(src proto.Message) {
  448. xxx_messageInfo_ListTopicsResponse.Merge(dst, src)
  449. }
  450. func (m *ListTopicsResponse) XXX_Size() int {
  451. return xxx_messageInfo_ListTopicsResponse.Size(m)
  452. }
  453. func (m *ListTopicsResponse) XXX_DiscardUnknown() {
  454. xxx_messageInfo_ListTopicsResponse.DiscardUnknown(m)
  455. }
  456. var xxx_messageInfo_ListTopicsResponse proto.InternalMessageInfo
  457. func (m *ListTopicsResponse) GetTopics() []*Topic {
  458. if m != nil {
  459. return m.Topics
  460. }
  461. return nil
  462. }
  463. func (m *ListTopicsResponse) GetNextPageToken() string {
  464. if m != nil {
  465. return m.NextPageToken
  466. }
  467. return ""
  468. }
  469. // Request for the `ListTopicSubscriptions` method.
  470. type ListTopicSubscriptionsRequest struct {
  471. // The name of the topic that subscriptions are attached to.
  472. // Format is `projects/{project}/topics/{topic}`.
  473. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  474. // Maximum number of subscription names to return.
  475. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  476. // The value returned by the last `ListTopicSubscriptionsResponse`; indicates
  477. // that this is a continuation of a prior `ListTopicSubscriptions` call, and
  478. // that the system should return the next page of data.
  479. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  480. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  481. XXX_unrecognized []byte `json:"-"`
  482. XXX_sizecache int32 `json:"-"`
  483. }
  484. func (m *ListTopicSubscriptionsRequest) Reset() { *m = ListTopicSubscriptionsRequest{} }
  485. func (m *ListTopicSubscriptionsRequest) String() string { return proto.CompactTextString(m) }
  486. func (*ListTopicSubscriptionsRequest) ProtoMessage() {}
  487. func (*ListTopicSubscriptionsRequest) Descriptor() ([]byte, []int) {
  488. return fileDescriptor_pubsub_1b403a4032d20168, []int{9}
  489. }
  490. func (m *ListTopicSubscriptionsRequest) XXX_Unmarshal(b []byte) error {
  491. return xxx_messageInfo_ListTopicSubscriptionsRequest.Unmarshal(m, b)
  492. }
  493. func (m *ListTopicSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  494. return xxx_messageInfo_ListTopicSubscriptionsRequest.Marshal(b, m, deterministic)
  495. }
  496. func (dst *ListTopicSubscriptionsRequest) XXX_Merge(src proto.Message) {
  497. xxx_messageInfo_ListTopicSubscriptionsRequest.Merge(dst, src)
  498. }
  499. func (m *ListTopicSubscriptionsRequest) XXX_Size() int {
  500. return xxx_messageInfo_ListTopicSubscriptionsRequest.Size(m)
  501. }
  502. func (m *ListTopicSubscriptionsRequest) XXX_DiscardUnknown() {
  503. xxx_messageInfo_ListTopicSubscriptionsRequest.DiscardUnknown(m)
  504. }
  505. var xxx_messageInfo_ListTopicSubscriptionsRequest proto.InternalMessageInfo
  506. func (m *ListTopicSubscriptionsRequest) GetTopic() string {
  507. if m != nil {
  508. return m.Topic
  509. }
  510. return ""
  511. }
  512. func (m *ListTopicSubscriptionsRequest) GetPageSize() int32 {
  513. if m != nil {
  514. return m.PageSize
  515. }
  516. return 0
  517. }
  518. func (m *ListTopicSubscriptionsRequest) GetPageToken() string {
  519. if m != nil {
  520. return m.PageToken
  521. }
  522. return ""
  523. }
  524. // Response for the `ListTopicSubscriptions` method.
  525. type ListTopicSubscriptionsResponse struct {
  526. // The names of the subscriptions that match the request.
  527. Subscriptions []string `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
  528. // If not empty, indicates that there may be more subscriptions that match
  529. // the request; this value should be passed in a new
  530. // `ListTopicSubscriptionsRequest` to get more subscriptions.
  531. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  532. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  533. XXX_unrecognized []byte `json:"-"`
  534. XXX_sizecache int32 `json:"-"`
  535. }
  536. func (m *ListTopicSubscriptionsResponse) Reset() { *m = ListTopicSubscriptionsResponse{} }
  537. func (m *ListTopicSubscriptionsResponse) String() string { return proto.CompactTextString(m) }
  538. func (*ListTopicSubscriptionsResponse) ProtoMessage() {}
  539. func (*ListTopicSubscriptionsResponse) Descriptor() ([]byte, []int) {
  540. return fileDescriptor_pubsub_1b403a4032d20168, []int{10}
  541. }
  542. func (m *ListTopicSubscriptionsResponse) XXX_Unmarshal(b []byte) error {
  543. return xxx_messageInfo_ListTopicSubscriptionsResponse.Unmarshal(m, b)
  544. }
  545. func (m *ListTopicSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  546. return xxx_messageInfo_ListTopicSubscriptionsResponse.Marshal(b, m, deterministic)
  547. }
  548. func (dst *ListTopicSubscriptionsResponse) XXX_Merge(src proto.Message) {
  549. xxx_messageInfo_ListTopicSubscriptionsResponse.Merge(dst, src)
  550. }
  551. func (m *ListTopicSubscriptionsResponse) XXX_Size() int {
  552. return xxx_messageInfo_ListTopicSubscriptionsResponse.Size(m)
  553. }
  554. func (m *ListTopicSubscriptionsResponse) XXX_DiscardUnknown() {
  555. xxx_messageInfo_ListTopicSubscriptionsResponse.DiscardUnknown(m)
  556. }
  557. var xxx_messageInfo_ListTopicSubscriptionsResponse proto.InternalMessageInfo
  558. func (m *ListTopicSubscriptionsResponse) GetSubscriptions() []string {
  559. if m != nil {
  560. return m.Subscriptions
  561. }
  562. return nil
  563. }
  564. func (m *ListTopicSubscriptionsResponse) GetNextPageToken() string {
  565. if m != nil {
  566. return m.NextPageToken
  567. }
  568. return ""
  569. }
  570. // Request for the `ListTopicSnapshots` method. <br><br>
  571. // <b>BETA:</b> This feature is part of a beta release. This API might be
  572. // changed in backward-incompatible ways and is not recommended for production
  573. // use. It is not subject to any SLA or deprecation policy.
  574. type ListTopicSnapshotsRequest struct {
  575. // The name of the topic that snapshots are attached to.
  576. // Format is `projects/{project}/topics/{topic}`.
  577. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  578. // Maximum number of snapshot names to return.
  579. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  580. // The value returned by the last `ListTopicSnapshotsResponse`; indicates
  581. // that this is a continuation of a prior `ListTopicSnapshots` call, and
  582. // that the system should return the next page of data.
  583. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  584. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  585. XXX_unrecognized []byte `json:"-"`
  586. XXX_sizecache int32 `json:"-"`
  587. }
  588. func (m *ListTopicSnapshotsRequest) Reset() { *m = ListTopicSnapshotsRequest{} }
  589. func (m *ListTopicSnapshotsRequest) String() string { return proto.CompactTextString(m) }
  590. func (*ListTopicSnapshotsRequest) ProtoMessage() {}
  591. func (*ListTopicSnapshotsRequest) Descriptor() ([]byte, []int) {
  592. return fileDescriptor_pubsub_1b403a4032d20168, []int{11}
  593. }
  594. func (m *ListTopicSnapshotsRequest) XXX_Unmarshal(b []byte) error {
  595. return xxx_messageInfo_ListTopicSnapshotsRequest.Unmarshal(m, b)
  596. }
  597. func (m *ListTopicSnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  598. return xxx_messageInfo_ListTopicSnapshotsRequest.Marshal(b, m, deterministic)
  599. }
  600. func (dst *ListTopicSnapshotsRequest) XXX_Merge(src proto.Message) {
  601. xxx_messageInfo_ListTopicSnapshotsRequest.Merge(dst, src)
  602. }
  603. func (m *ListTopicSnapshotsRequest) XXX_Size() int {
  604. return xxx_messageInfo_ListTopicSnapshotsRequest.Size(m)
  605. }
  606. func (m *ListTopicSnapshotsRequest) XXX_DiscardUnknown() {
  607. xxx_messageInfo_ListTopicSnapshotsRequest.DiscardUnknown(m)
  608. }
  609. var xxx_messageInfo_ListTopicSnapshotsRequest proto.InternalMessageInfo
  610. func (m *ListTopicSnapshotsRequest) GetTopic() string {
  611. if m != nil {
  612. return m.Topic
  613. }
  614. return ""
  615. }
  616. func (m *ListTopicSnapshotsRequest) GetPageSize() int32 {
  617. if m != nil {
  618. return m.PageSize
  619. }
  620. return 0
  621. }
  622. func (m *ListTopicSnapshotsRequest) GetPageToken() string {
  623. if m != nil {
  624. return m.PageToken
  625. }
  626. return ""
  627. }
  628. // Response for the `ListTopicSnapshots` method.<br><br>
  629. // <b>BETA:</b> This feature is part of a beta release. This API might be
  630. // changed in backward-incompatible ways and is not recommended for production
  631. // use. It is not subject to any SLA or deprecation policy.
  632. type ListTopicSnapshotsResponse struct {
  633. // The names of the snapshots that match the request.
  634. Snapshots []string `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"`
  635. // If not empty, indicates that there may be more snapshots that match
  636. // the request; this value should be passed in a new
  637. // `ListTopicSnapshotsRequest` to get more snapshots.
  638. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  639. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  640. XXX_unrecognized []byte `json:"-"`
  641. XXX_sizecache int32 `json:"-"`
  642. }
  643. func (m *ListTopicSnapshotsResponse) Reset() { *m = ListTopicSnapshotsResponse{} }
  644. func (m *ListTopicSnapshotsResponse) String() string { return proto.CompactTextString(m) }
  645. func (*ListTopicSnapshotsResponse) ProtoMessage() {}
  646. func (*ListTopicSnapshotsResponse) Descriptor() ([]byte, []int) {
  647. return fileDescriptor_pubsub_1b403a4032d20168, []int{12}
  648. }
  649. func (m *ListTopicSnapshotsResponse) XXX_Unmarshal(b []byte) error {
  650. return xxx_messageInfo_ListTopicSnapshotsResponse.Unmarshal(m, b)
  651. }
  652. func (m *ListTopicSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  653. return xxx_messageInfo_ListTopicSnapshotsResponse.Marshal(b, m, deterministic)
  654. }
  655. func (dst *ListTopicSnapshotsResponse) XXX_Merge(src proto.Message) {
  656. xxx_messageInfo_ListTopicSnapshotsResponse.Merge(dst, src)
  657. }
  658. func (m *ListTopicSnapshotsResponse) XXX_Size() int {
  659. return xxx_messageInfo_ListTopicSnapshotsResponse.Size(m)
  660. }
  661. func (m *ListTopicSnapshotsResponse) XXX_DiscardUnknown() {
  662. xxx_messageInfo_ListTopicSnapshotsResponse.DiscardUnknown(m)
  663. }
  664. var xxx_messageInfo_ListTopicSnapshotsResponse proto.InternalMessageInfo
  665. func (m *ListTopicSnapshotsResponse) GetSnapshots() []string {
  666. if m != nil {
  667. return m.Snapshots
  668. }
  669. return nil
  670. }
  671. func (m *ListTopicSnapshotsResponse) GetNextPageToken() string {
  672. if m != nil {
  673. return m.NextPageToken
  674. }
  675. return ""
  676. }
  677. // Request for the `DeleteTopic` method.
  678. type DeleteTopicRequest struct {
  679. // Name of the topic to delete.
  680. // Format is `projects/{project}/topics/{topic}`.
  681. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  682. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  683. XXX_unrecognized []byte `json:"-"`
  684. XXX_sizecache int32 `json:"-"`
  685. }
  686. func (m *DeleteTopicRequest) Reset() { *m = DeleteTopicRequest{} }
  687. func (m *DeleteTopicRequest) String() string { return proto.CompactTextString(m) }
  688. func (*DeleteTopicRequest) ProtoMessage() {}
  689. func (*DeleteTopicRequest) Descriptor() ([]byte, []int) {
  690. return fileDescriptor_pubsub_1b403a4032d20168, []int{13}
  691. }
  692. func (m *DeleteTopicRequest) XXX_Unmarshal(b []byte) error {
  693. return xxx_messageInfo_DeleteTopicRequest.Unmarshal(m, b)
  694. }
  695. func (m *DeleteTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  696. return xxx_messageInfo_DeleteTopicRequest.Marshal(b, m, deterministic)
  697. }
  698. func (dst *DeleteTopicRequest) XXX_Merge(src proto.Message) {
  699. xxx_messageInfo_DeleteTopicRequest.Merge(dst, src)
  700. }
  701. func (m *DeleteTopicRequest) XXX_Size() int {
  702. return xxx_messageInfo_DeleteTopicRequest.Size(m)
  703. }
  704. func (m *DeleteTopicRequest) XXX_DiscardUnknown() {
  705. xxx_messageInfo_DeleteTopicRequest.DiscardUnknown(m)
  706. }
  707. var xxx_messageInfo_DeleteTopicRequest proto.InternalMessageInfo
  708. func (m *DeleteTopicRequest) GetTopic() string {
  709. if m != nil {
  710. return m.Topic
  711. }
  712. return ""
  713. }
  714. // A subscription resource.
  715. type Subscription struct {
  716. // The name of the subscription. It must have the format
  717. // `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
  718. // start with a letter, and contain only letters (`[A-Za-z]`), numbers
  719. // (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
  720. // plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
  721. // in length, and it must not start with `"goog"`.
  722. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  723. // The name of the topic from which this subscription is receiving messages.
  724. // Format is `projects/{project}/topics/{topic}`.
  725. // The value of this field will be `_deleted-topic_` if the topic has been
  726. // deleted.
  727. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  728. // If push delivery is used with this subscription, this field is
  729. // used to configure it. An empty `pushConfig` signifies that the subscriber
  730. // will pull and ack messages using API methods.
  731. PushConfig *PushConfig `protobuf:"bytes,4,opt,name=push_config,json=pushConfig,proto3" json:"push_config,omitempty"`
  732. // The approximate amount of time (on a best-effort basis) Pub/Sub waits for
  733. // the subscriber to acknowledge receipt before resending the message. In the
  734. // interval after the message is delivered and before it is acknowledged, it
  735. // is considered to be <i>outstanding</i>. During that time period, the
  736. // message will not be redelivered (on a best-effort basis).
  737. //
  738. // For pull subscriptions, this value is used as the initial value for the ack
  739. // deadline. To override this value for a given message, call
  740. // `ModifyAckDeadline` with the corresponding `ack_id` if using
  741. // non-streaming pull or send the `ack_id` in a
  742. // `StreamingModifyAckDeadlineRequest` if using streaming pull.
  743. // The minimum custom deadline you can specify is 10 seconds.
  744. // The maximum custom deadline you can specify is 600 seconds (10 minutes).
  745. // If this parameter is 0, a default value of 10 seconds is used.
  746. //
  747. // For push delivery, this value is also used to set the request timeout for
  748. // the call to the push endpoint.
  749. //
  750. // If the subscriber never acknowledges the message, the Pub/Sub
  751. // system will eventually redeliver the message.
  752. AckDeadlineSeconds int32 `protobuf:"varint,5,opt,name=ack_deadline_seconds,json=ackDeadlineSeconds,proto3" json:"ack_deadline_seconds,omitempty"`
  753. // Indicates whether to retain acknowledged messages. If true, then
  754. // messages are not expunged from the subscription's backlog, even if they are
  755. // acknowledged, until they fall out of the `message_retention_duration`
  756. // window. This must be true if you would like to
  757. // <a
  758. // href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time">
  759. // Seek to a timestamp</a>.
  760. // <br><br>
  761. // <b>BETA:</b> This feature is part of a beta release. This API might be
  762. // changed in backward-incompatible ways and is not recommended for production
  763. // use. It is not subject to any SLA or deprecation policy.
  764. RetainAckedMessages bool `protobuf:"varint,7,opt,name=retain_acked_messages,json=retainAckedMessages,proto3" json:"retain_acked_messages,omitempty"`
  765. // How long to retain unacknowledged messages in the subscription's backlog,
  766. // from the moment a message is published.
  767. // If `retain_acked_messages` is true, then this also configures the retention
  768. // of acknowledged messages, and thus configures how far back in time a `Seek`
  769. // can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10
  770. // minutes.<br><br>
  771. // <b>BETA:</b> This feature is part of a beta release. This API might be
  772. // changed in backward-incompatible ways and is not recommended for production
  773. // use. It is not subject to any SLA or deprecation policy.
  774. MessageRetentionDuration *duration.Duration `protobuf:"bytes,8,opt,name=message_retention_duration,json=messageRetentionDuration,proto3" json:"message_retention_duration,omitempty"`
  775. // See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
  776. // managing labels</a>.
  777. Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  778. // A policy that specifies the conditions for this subscription's expiration.
  779. // A subscription is considered active as long as any connected subscriber is
  780. // successfully consuming messages from the subscription or is issuing
  781. // operations on the subscription. If `expiration_policy` is not set, a
  782. // *default policy* with `ttl` of 31 days will be used. The minimum allowed
  783. // value for `expiration_policy.ttl` is 1 day.
  784. // <b>BETA:</b> This feature is part of a beta release. This API might be
  785. // changed in backward-incompatible ways and is not recommended for production
  786. // use. It is not subject to any SLA or deprecation policy.
  787. ExpirationPolicy *ExpirationPolicy `protobuf:"bytes,11,opt,name=expiration_policy,json=expirationPolicy,proto3" json:"expiration_policy,omitempty"`
  788. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  789. XXX_unrecognized []byte `json:"-"`
  790. XXX_sizecache int32 `json:"-"`
  791. }
  792. func (m *Subscription) Reset() { *m = Subscription{} }
  793. func (m *Subscription) String() string { return proto.CompactTextString(m) }
  794. func (*Subscription) ProtoMessage() {}
  795. func (*Subscription) Descriptor() ([]byte, []int) {
  796. return fileDescriptor_pubsub_1b403a4032d20168, []int{14}
  797. }
  798. func (m *Subscription) XXX_Unmarshal(b []byte) error {
  799. return xxx_messageInfo_Subscription.Unmarshal(m, b)
  800. }
  801. func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  802. return xxx_messageInfo_Subscription.Marshal(b, m, deterministic)
  803. }
  804. func (dst *Subscription) XXX_Merge(src proto.Message) {
  805. xxx_messageInfo_Subscription.Merge(dst, src)
  806. }
  807. func (m *Subscription) XXX_Size() int {
  808. return xxx_messageInfo_Subscription.Size(m)
  809. }
  810. func (m *Subscription) XXX_DiscardUnknown() {
  811. xxx_messageInfo_Subscription.DiscardUnknown(m)
  812. }
  813. var xxx_messageInfo_Subscription proto.InternalMessageInfo
  814. func (m *Subscription) GetName() string {
  815. if m != nil {
  816. return m.Name
  817. }
  818. return ""
  819. }
  820. func (m *Subscription) GetTopic() string {
  821. if m != nil {
  822. return m.Topic
  823. }
  824. return ""
  825. }
  826. func (m *Subscription) GetPushConfig() *PushConfig {
  827. if m != nil {
  828. return m.PushConfig
  829. }
  830. return nil
  831. }
  832. func (m *Subscription) GetAckDeadlineSeconds() int32 {
  833. if m != nil {
  834. return m.AckDeadlineSeconds
  835. }
  836. return 0
  837. }
  838. func (m *Subscription) GetRetainAckedMessages() bool {
  839. if m != nil {
  840. return m.RetainAckedMessages
  841. }
  842. return false
  843. }
  844. func (m *Subscription) GetMessageRetentionDuration() *duration.Duration {
  845. if m != nil {
  846. return m.MessageRetentionDuration
  847. }
  848. return nil
  849. }
  850. func (m *Subscription) GetLabels() map[string]string {
  851. if m != nil {
  852. return m.Labels
  853. }
  854. return nil
  855. }
  856. func (m *Subscription) GetExpirationPolicy() *ExpirationPolicy {
  857. if m != nil {
  858. return m.ExpirationPolicy
  859. }
  860. return nil
  861. }
  862. // A policy that specifies the conditions for resource expiration (i.e.,
  863. // automatic resource deletion).
  864. type ExpirationPolicy struct {
  865. // Specifies the "time-to-live" duration for an associated resource. The
  866. // resource expires if it is not active for a period of `ttl`. The definition
  867. // of "activity" depends on the type of the associated resource. The minimum
  868. // and maximum allowed values for `ttl` depend on the type of the associated
  869. // resource, as well. If `ttl` is not set, the associated resource never
  870. // expires.
  871. Ttl *duration.Duration `protobuf:"bytes,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
  872. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  873. XXX_unrecognized []byte `json:"-"`
  874. XXX_sizecache int32 `json:"-"`
  875. }
  876. func (m *ExpirationPolicy) Reset() { *m = ExpirationPolicy{} }
  877. func (m *ExpirationPolicy) String() string { return proto.CompactTextString(m) }
  878. func (*ExpirationPolicy) ProtoMessage() {}
  879. func (*ExpirationPolicy) Descriptor() ([]byte, []int) {
  880. return fileDescriptor_pubsub_1b403a4032d20168, []int{15}
  881. }
  882. func (m *ExpirationPolicy) XXX_Unmarshal(b []byte) error {
  883. return xxx_messageInfo_ExpirationPolicy.Unmarshal(m, b)
  884. }
  885. func (m *ExpirationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  886. return xxx_messageInfo_ExpirationPolicy.Marshal(b, m, deterministic)
  887. }
  888. func (dst *ExpirationPolicy) XXX_Merge(src proto.Message) {
  889. xxx_messageInfo_ExpirationPolicy.Merge(dst, src)
  890. }
  891. func (m *ExpirationPolicy) XXX_Size() int {
  892. return xxx_messageInfo_ExpirationPolicy.Size(m)
  893. }
  894. func (m *ExpirationPolicy) XXX_DiscardUnknown() {
  895. xxx_messageInfo_ExpirationPolicy.DiscardUnknown(m)
  896. }
  897. var xxx_messageInfo_ExpirationPolicy proto.InternalMessageInfo
  898. func (m *ExpirationPolicy) GetTtl() *duration.Duration {
  899. if m != nil {
  900. return m.Ttl
  901. }
  902. return nil
  903. }
  904. // Configuration for a push delivery endpoint.
  905. type PushConfig struct {
  906. // A URL locating the endpoint to which messages should be pushed.
  907. // For example, a Webhook endpoint might use "https://example.com/push".
  908. PushEndpoint string `protobuf:"bytes,1,opt,name=push_endpoint,json=pushEndpoint,proto3" json:"push_endpoint,omitempty"`
  909. // Endpoint configuration attributes.
  910. //
  911. // Every endpoint has a set of API supported attributes that can be used to
  912. // control different aspects of the message delivery.
  913. //
  914. // The currently supported attribute is `x-goog-version`, which you can
  915. // use to change the format of the pushed message. This attribute
  916. // indicates the version of the data expected by the endpoint. This
  917. // controls the shape of the pushed message (i.e., its fields and metadata).
  918. // The endpoint version is based on the version of the Pub/Sub API.
  919. //
  920. // If not present during the `CreateSubscription` call, it will default to
  921. // the version of the API used to make such call. If not present during a
  922. // `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
  923. // calls will always return a valid version, even if the subscription was
  924. // created without this attribute.
  925. //
  926. // The possible values for this attribute are:
  927. //
  928. // * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
  929. // * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
  930. 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"`
  931. // An authentication method used by push endpoints to verify the source of
  932. // push requests. This can be used with push endpoints that are private by
  933. // default to allow requests only from the Cloud Pub/Sub system, for example.
  934. // This field is optional and should be set only by users interested in
  935. // authenticated push.
  936. // <b>EXPERIMENTAL:</b> This field a part of a closed alpha that may not be
  937. // accessible to all users. It may be changed in backward-incompatible ways
  938. // and is not subject to any SLA or deprecation policy. It is not recommended
  939. // for production use.
  940. //
  941. // Types that are valid to be assigned to AuthenticationMethod:
  942. // *PushConfig_OidcToken_
  943. AuthenticationMethod isPushConfig_AuthenticationMethod `protobuf_oneof:"authentication_method"`
  944. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  945. XXX_unrecognized []byte `json:"-"`
  946. XXX_sizecache int32 `json:"-"`
  947. }
  948. func (m *PushConfig) Reset() { *m = PushConfig{} }
  949. func (m *PushConfig) String() string { return proto.CompactTextString(m) }
  950. func (*PushConfig) ProtoMessage() {}
  951. func (*PushConfig) Descriptor() ([]byte, []int) {
  952. return fileDescriptor_pubsub_1b403a4032d20168, []int{16}
  953. }
  954. func (m *PushConfig) XXX_Unmarshal(b []byte) error {
  955. return xxx_messageInfo_PushConfig.Unmarshal(m, b)
  956. }
  957. func (m *PushConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  958. return xxx_messageInfo_PushConfig.Marshal(b, m, deterministic)
  959. }
  960. func (dst *PushConfig) XXX_Merge(src proto.Message) {
  961. xxx_messageInfo_PushConfig.Merge(dst, src)
  962. }
  963. func (m *PushConfig) XXX_Size() int {
  964. return xxx_messageInfo_PushConfig.Size(m)
  965. }
  966. func (m *PushConfig) XXX_DiscardUnknown() {
  967. xxx_messageInfo_PushConfig.DiscardUnknown(m)
  968. }
  969. var xxx_messageInfo_PushConfig proto.InternalMessageInfo
  970. func (m *PushConfig) GetPushEndpoint() string {
  971. if m != nil {
  972. return m.PushEndpoint
  973. }
  974. return ""
  975. }
  976. func (m *PushConfig) GetAttributes() map[string]string {
  977. if m != nil {
  978. return m.Attributes
  979. }
  980. return nil
  981. }
  982. type isPushConfig_AuthenticationMethod interface {
  983. isPushConfig_AuthenticationMethod()
  984. }
  985. type PushConfig_OidcToken_ struct {
  986. OidcToken *PushConfig_OidcToken `protobuf:"bytes,3,opt,name=oidc_token,json=oidcToken,proto3,oneof"`
  987. }
  988. func (*PushConfig_OidcToken_) isPushConfig_AuthenticationMethod() {}
  989. func (m *PushConfig) GetAuthenticationMethod() isPushConfig_AuthenticationMethod {
  990. if m != nil {
  991. return m.AuthenticationMethod
  992. }
  993. return nil
  994. }
  995. func (m *PushConfig) GetOidcToken() *PushConfig_OidcToken {
  996. if x, ok := m.GetAuthenticationMethod().(*PushConfig_OidcToken_); ok {
  997. return x.OidcToken
  998. }
  999. return nil
  1000. }
  1001. // XXX_OneofFuncs is for the internal use of the proto package.
  1002. func (*PushConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  1003. return _PushConfig_OneofMarshaler, _PushConfig_OneofUnmarshaler, _PushConfig_OneofSizer, []interface{}{
  1004. (*PushConfig_OidcToken_)(nil),
  1005. }
  1006. }
  1007. func _PushConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1008. m := msg.(*PushConfig)
  1009. // authentication_method
  1010. switch x := m.AuthenticationMethod.(type) {
  1011. case *PushConfig_OidcToken_:
  1012. b.EncodeVarint(3<<3 | proto.WireBytes)
  1013. if err := b.EncodeMessage(x.OidcToken); err != nil {
  1014. return err
  1015. }
  1016. case nil:
  1017. default:
  1018. return fmt.Errorf("PushConfig.AuthenticationMethod has unexpected type %T", x)
  1019. }
  1020. return nil
  1021. }
  1022. func _PushConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1023. m := msg.(*PushConfig)
  1024. switch tag {
  1025. case 3: // authentication_method.oidc_token
  1026. if wire != proto.WireBytes {
  1027. return true, proto.ErrInternalBadWireType
  1028. }
  1029. msg := new(PushConfig_OidcToken)
  1030. err := b.DecodeMessage(msg)
  1031. m.AuthenticationMethod = &PushConfig_OidcToken_{msg}
  1032. return true, err
  1033. default:
  1034. return false, nil
  1035. }
  1036. }
  1037. func _PushConfig_OneofSizer(msg proto.Message) (n int) {
  1038. m := msg.(*PushConfig)
  1039. // authentication_method
  1040. switch x := m.AuthenticationMethod.(type) {
  1041. case *PushConfig_OidcToken_:
  1042. s := proto.Size(x.OidcToken)
  1043. n += 1 // tag and wire
  1044. n += proto.SizeVarint(uint64(s))
  1045. n += s
  1046. case nil:
  1047. default:
  1048. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1049. }
  1050. return n
  1051. }
  1052. // Contains information needed for generating an
  1053. // [OpenID Connect
  1054. // token](https://developers.google.com/identity/protocols/OpenIDConnect).
  1055. type PushConfig_OidcToken struct {
  1056. // [Service account
  1057. // email](https://cloud.google.com/iam/docs/service-accounts)
  1058. // to be used for generating the OIDC token. The caller (for
  1059. // CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
  1060. // have the iam.serviceAccounts.actAs permission for the service account.
  1061. // See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
  1062. ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
  1063. // Audience to be used when generating OIDC token. The audience claim
  1064. // identifies the recipients that the JWT is intended for. The audience
  1065. // value is a single case-sensitive string. Having multiple values (array)
  1066. // for the audience field is not supported. More info about the OIDC JWT
  1067. // token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
  1068. // Note: if not specified, the Push endpoint URL will be used.
  1069. Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"`
  1070. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1071. XXX_unrecognized []byte `json:"-"`
  1072. XXX_sizecache int32 `json:"-"`
  1073. }
  1074. func (m *PushConfig_OidcToken) Reset() { *m = PushConfig_OidcToken{} }
  1075. func (m *PushConfig_OidcToken) String() string { return proto.CompactTextString(m) }
  1076. func (*PushConfig_OidcToken) ProtoMessage() {}
  1077. func (*PushConfig_OidcToken) Descriptor() ([]byte, []int) {
  1078. return fileDescriptor_pubsub_1b403a4032d20168, []int{16, 1}
  1079. }
  1080. func (m *PushConfig_OidcToken) XXX_Unmarshal(b []byte) error {
  1081. return xxx_messageInfo_PushConfig_OidcToken.Unmarshal(m, b)
  1082. }
  1083. func (m *PushConfig_OidcToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1084. return xxx_messageInfo_PushConfig_OidcToken.Marshal(b, m, deterministic)
  1085. }
  1086. func (dst *PushConfig_OidcToken) XXX_Merge(src proto.Message) {
  1087. xxx_messageInfo_PushConfig_OidcToken.Merge(dst, src)
  1088. }
  1089. func (m *PushConfig_OidcToken) XXX_Size() int {
  1090. return xxx_messageInfo_PushConfig_OidcToken.Size(m)
  1091. }
  1092. func (m *PushConfig_OidcToken) XXX_DiscardUnknown() {
  1093. xxx_messageInfo_PushConfig_OidcToken.DiscardUnknown(m)
  1094. }
  1095. var xxx_messageInfo_PushConfig_OidcToken proto.InternalMessageInfo
  1096. func (m *PushConfig_OidcToken) GetServiceAccountEmail() string {
  1097. if m != nil {
  1098. return m.ServiceAccountEmail
  1099. }
  1100. return ""
  1101. }
  1102. func (m *PushConfig_OidcToken) GetAudience() string {
  1103. if m != nil {
  1104. return m.Audience
  1105. }
  1106. return ""
  1107. }
  1108. // A message and its corresponding acknowledgment ID.
  1109. type ReceivedMessage struct {
  1110. // This ID can be used to acknowledge the received message.
  1111. AckId string `protobuf:"bytes,1,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"`
  1112. // The message.
  1113. Message *PubsubMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  1114. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1115. XXX_unrecognized []byte `json:"-"`
  1116. XXX_sizecache int32 `json:"-"`
  1117. }
  1118. func (m *ReceivedMessage) Reset() { *m = ReceivedMessage{} }
  1119. func (m *ReceivedMessage) String() string { return proto.CompactTextString(m) }
  1120. func (*ReceivedMessage) ProtoMessage() {}
  1121. func (*ReceivedMessage) Descriptor() ([]byte, []int) {
  1122. return fileDescriptor_pubsub_1b403a4032d20168, []int{17}
  1123. }
  1124. func (m *ReceivedMessage) XXX_Unmarshal(b []byte) error {
  1125. return xxx_messageInfo_ReceivedMessage.Unmarshal(m, b)
  1126. }
  1127. func (m *ReceivedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1128. return xxx_messageInfo_ReceivedMessage.Marshal(b, m, deterministic)
  1129. }
  1130. func (dst *ReceivedMessage) XXX_Merge(src proto.Message) {
  1131. xxx_messageInfo_ReceivedMessage.Merge(dst, src)
  1132. }
  1133. func (m *ReceivedMessage) XXX_Size() int {
  1134. return xxx_messageInfo_ReceivedMessage.Size(m)
  1135. }
  1136. func (m *ReceivedMessage) XXX_DiscardUnknown() {
  1137. xxx_messageInfo_ReceivedMessage.DiscardUnknown(m)
  1138. }
  1139. var xxx_messageInfo_ReceivedMessage proto.InternalMessageInfo
  1140. func (m *ReceivedMessage) GetAckId() string {
  1141. if m != nil {
  1142. return m.AckId
  1143. }
  1144. return ""
  1145. }
  1146. func (m *ReceivedMessage) GetMessage() *PubsubMessage {
  1147. if m != nil {
  1148. return m.Message
  1149. }
  1150. return nil
  1151. }
  1152. // Request for the GetSubscription method.
  1153. type GetSubscriptionRequest struct {
  1154. // The name of the subscription to get.
  1155. // Format is `projects/{project}/subscriptions/{sub}`.
  1156. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1157. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1158. XXX_unrecognized []byte `json:"-"`
  1159. XXX_sizecache int32 `json:"-"`
  1160. }
  1161. func (m *GetSubscriptionRequest) Reset() { *m = GetSubscriptionRequest{} }
  1162. func (m *GetSubscriptionRequest) String() string { return proto.CompactTextString(m) }
  1163. func (*GetSubscriptionRequest) ProtoMessage() {}
  1164. func (*GetSubscriptionRequest) Descriptor() ([]byte, []int) {
  1165. return fileDescriptor_pubsub_1b403a4032d20168, []int{18}
  1166. }
  1167. func (m *GetSubscriptionRequest) XXX_Unmarshal(b []byte) error {
  1168. return xxx_messageInfo_GetSubscriptionRequest.Unmarshal(m, b)
  1169. }
  1170. func (m *GetSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1171. return xxx_messageInfo_GetSubscriptionRequest.Marshal(b, m, deterministic)
  1172. }
  1173. func (dst *GetSubscriptionRequest) XXX_Merge(src proto.Message) {
  1174. xxx_messageInfo_GetSubscriptionRequest.Merge(dst, src)
  1175. }
  1176. func (m *GetSubscriptionRequest) XXX_Size() int {
  1177. return xxx_messageInfo_GetSubscriptionRequest.Size(m)
  1178. }
  1179. func (m *GetSubscriptionRequest) XXX_DiscardUnknown() {
  1180. xxx_messageInfo_GetSubscriptionRequest.DiscardUnknown(m)
  1181. }
  1182. var xxx_messageInfo_GetSubscriptionRequest proto.InternalMessageInfo
  1183. func (m *GetSubscriptionRequest) GetSubscription() string {
  1184. if m != nil {
  1185. return m.Subscription
  1186. }
  1187. return ""
  1188. }
  1189. // Request for the UpdateSubscription method.
  1190. type UpdateSubscriptionRequest struct {
  1191. // The updated subscription object.
  1192. Subscription *Subscription `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1193. // Indicates which fields in the provided subscription to update.
  1194. // Must be specified and non-empty.
  1195. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  1196. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1197. XXX_unrecognized []byte `json:"-"`
  1198. XXX_sizecache int32 `json:"-"`
  1199. }
  1200. func (m *UpdateSubscriptionRequest) Reset() { *m = UpdateSubscriptionRequest{} }
  1201. func (m *UpdateSubscriptionRequest) String() string { return proto.CompactTextString(m) }
  1202. func (*UpdateSubscriptionRequest) ProtoMessage() {}
  1203. func (*UpdateSubscriptionRequest) Descriptor() ([]byte, []int) {
  1204. return fileDescriptor_pubsub_1b403a4032d20168, []int{19}
  1205. }
  1206. func (m *UpdateSubscriptionRequest) XXX_Unmarshal(b []byte) error {
  1207. return xxx_messageInfo_UpdateSubscriptionRequest.Unmarshal(m, b)
  1208. }
  1209. func (m *UpdateSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1210. return xxx_messageInfo_UpdateSubscriptionRequest.Marshal(b, m, deterministic)
  1211. }
  1212. func (dst *UpdateSubscriptionRequest) XXX_Merge(src proto.Message) {
  1213. xxx_messageInfo_UpdateSubscriptionRequest.Merge(dst, src)
  1214. }
  1215. func (m *UpdateSubscriptionRequest) XXX_Size() int {
  1216. return xxx_messageInfo_UpdateSubscriptionRequest.Size(m)
  1217. }
  1218. func (m *UpdateSubscriptionRequest) XXX_DiscardUnknown() {
  1219. xxx_messageInfo_UpdateSubscriptionRequest.DiscardUnknown(m)
  1220. }
  1221. var xxx_messageInfo_UpdateSubscriptionRequest proto.InternalMessageInfo
  1222. func (m *UpdateSubscriptionRequest) GetSubscription() *Subscription {
  1223. if m != nil {
  1224. return m.Subscription
  1225. }
  1226. return nil
  1227. }
  1228. func (m *UpdateSubscriptionRequest) GetUpdateMask() *field_mask.FieldMask {
  1229. if m != nil {
  1230. return m.UpdateMask
  1231. }
  1232. return nil
  1233. }
  1234. // Request for the `ListSubscriptions` method.
  1235. type ListSubscriptionsRequest struct {
  1236. // The name of the project in which to list subscriptions.
  1237. // Format is `projects/{project-id}`.
  1238. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
  1239. // Maximum number of subscriptions to return.
  1240. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  1241. // The value returned by the last `ListSubscriptionsResponse`; indicates that
  1242. // this is a continuation of a prior `ListSubscriptions` call, and that the
  1243. // system should return the next page of data.
  1244. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  1245. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1246. XXX_unrecognized []byte `json:"-"`
  1247. XXX_sizecache int32 `json:"-"`
  1248. }
  1249. func (m *ListSubscriptionsRequest) Reset() { *m = ListSubscriptionsRequest{} }
  1250. func (m *ListSubscriptionsRequest) String() string { return proto.CompactTextString(m) }
  1251. func (*ListSubscriptionsRequest) ProtoMessage() {}
  1252. func (*ListSubscriptionsRequest) Descriptor() ([]byte, []int) {
  1253. return fileDescriptor_pubsub_1b403a4032d20168, []int{20}
  1254. }
  1255. func (m *ListSubscriptionsRequest) XXX_Unmarshal(b []byte) error {
  1256. return xxx_messageInfo_ListSubscriptionsRequest.Unmarshal(m, b)
  1257. }
  1258. func (m *ListSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1259. return xxx_messageInfo_ListSubscriptionsRequest.Marshal(b, m, deterministic)
  1260. }
  1261. func (dst *ListSubscriptionsRequest) XXX_Merge(src proto.Message) {
  1262. xxx_messageInfo_ListSubscriptionsRequest.Merge(dst, src)
  1263. }
  1264. func (m *ListSubscriptionsRequest) XXX_Size() int {
  1265. return xxx_messageInfo_ListSubscriptionsRequest.Size(m)
  1266. }
  1267. func (m *ListSubscriptionsRequest) XXX_DiscardUnknown() {
  1268. xxx_messageInfo_ListSubscriptionsRequest.DiscardUnknown(m)
  1269. }
  1270. var xxx_messageInfo_ListSubscriptionsRequest proto.InternalMessageInfo
  1271. func (m *ListSubscriptionsRequest) GetProject() string {
  1272. if m != nil {
  1273. return m.Project
  1274. }
  1275. return ""
  1276. }
  1277. func (m *ListSubscriptionsRequest) GetPageSize() int32 {
  1278. if m != nil {
  1279. return m.PageSize
  1280. }
  1281. return 0
  1282. }
  1283. func (m *ListSubscriptionsRequest) GetPageToken() string {
  1284. if m != nil {
  1285. return m.PageToken
  1286. }
  1287. return ""
  1288. }
  1289. // Response for the `ListSubscriptions` method.
  1290. type ListSubscriptionsResponse struct {
  1291. // The subscriptions that match the request.
  1292. Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
  1293. // If not empty, indicates that there may be more subscriptions that match
  1294. // the request; this value should be passed in a new
  1295. // `ListSubscriptionsRequest` to get more subscriptions.
  1296. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  1297. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1298. XXX_unrecognized []byte `json:"-"`
  1299. XXX_sizecache int32 `json:"-"`
  1300. }
  1301. func (m *ListSubscriptionsResponse) Reset() { *m = ListSubscriptionsResponse{} }
  1302. func (m *ListSubscriptionsResponse) String() string { return proto.CompactTextString(m) }
  1303. func (*ListSubscriptionsResponse) ProtoMessage() {}
  1304. func (*ListSubscriptionsResponse) Descriptor() ([]byte, []int) {
  1305. return fileDescriptor_pubsub_1b403a4032d20168, []int{21}
  1306. }
  1307. func (m *ListSubscriptionsResponse) XXX_Unmarshal(b []byte) error {
  1308. return xxx_messageInfo_ListSubscriptionsResponse.Unmarshal(m, b)
  1309. }
  1310. func (m *ListSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1311. return xxx_messageInfo_ListSubscriptionsResponse.Marshal(b, m, deterministic)
  1312. }
  1313. func (dst *ListSubscriptionsResponse) XXX_Merge(src proto.Message) {
  1314. xxx_messageInfo_ListSubscriptionsResponse.Merge(dst, src)
  1315. }
  1316. func (m *ListSubscriptionsResponse) XXX_Size() int {
  1317. return xxx_messageInfo_ListSubscriptionsResponse.Size(m)
  1318. }
  1319. func (m *ListSubscriptionsResponse) XXX_DiscardUnknown() {
  1320. xxx_messageInfo_ListSubscriptionsResponse.DiscardUnknown(m)
  1321. }
  1322. var xxx_messageInfo_ListSubscriptionsResponse proto.InternalMessageInfo
  1323. func (m *ListSubscriptionsResponse) GetSubscriptions() []*Subscription {
  1324. if m != nil {
  1325. return m.Subscriptions
  1326. }
  1327. return nil
  1328. }
  1329. func (m *ListSubscriptionsResponse) GetNextPageToken() string {
  1330. if m != nil {
  1331. return m.NextPageToken
  1332. }
  1333. return ""
  1334. }
  1335. // Request for the DeleteSubscription method.
  1336. type DeleteSubscriptionRequest struct {
  1337. // The subscription to delete.
  1338. // Format is `projects/{project}/subscriptions/{sub}`.
  1339. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1340. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1341. XXX_unrecognized []byte `json:"-"`
  1342. XXX_sizecache int32 `json:"-"`
  1343. }
  1344. func (m *DeleteSubscriptionRequest) Reset() { *m = DeleteSubscriptionRequest{} }
  1345. func (m *DeleteSubscriptionRequest) String() string { return proto.CompactTextString(m) }
  1346. func (*DeleteSubscriptionRequest) ProtoMessage() {}
  1347. func (*DeleteSubscriptionRequest) Descriptor() ([]byte, []int) {
  1348. return fileDescriptor_pubsub_1b403a4032d20168, []int{22}
  1349. }
  1350. func (m *DeleteSubscriptionRequest) XXX_Unmarshal(b []byte) error {
  1351. return xxx_messageInfo_DeleteSubscriptionRequest.Unmarshal(m, b)
  1352. }
  1353. func (m *DeleteSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1354. return xxx_messageInfo_DeleteSubscriptionRequest.Marshal(b, m, deterministic)
  1355. }
  1356. func (dst *DeleteSubscriptionRequest) XXX_Merge(src proto.Message) {
  1357. xxx_messageInfo_DeleteSubscriptionRequest.Merge(dst, src)
  1358. }
  1359. func (m *DeleteSubscriptionRequest) XXX_Size() int {
  1360. return xxx_messageInfo_DeleteSubscriptionRequest.Size(m)
  1361. }
  1362. func (m *DeleteSubscriptionRequest) XXX_DiscardUnknown() {
  1363. xxx_messageInfo_DeleteSubscriptionRequest.DiscardUnknown(m)
  1364. }
  1365. var xxx_messageInfo_DeleteSubscriptionRequest proto.InternalMessageInfo
  1366. func (m *DeleteSubscriptionRequest) GetSubscription() string {
  1367. if m != nil {
  1368. return m.Subscription
  1369. }
  1370. return ""
  1371. }
  1372. // Request for the ModifyPushConfig method.
  1373. type ModifyPushConfigRequest struct {
  1374. // The name of the subscription.
  1375. // Format is `projects/{project}/subscriptions/{sub}`.
  1376. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1377. // The push configuration for future deliveries.
  1378. //
  1379. // An empty `pushConfig` indicates that the Pub/Sub system should
  1380. // stop pushing messages from the given subscription and allow
  1381. // messages to be pulled and acknowledged - effectively pausing
  1382. // the subscription if `Pull` or `StreamingPull` is not called.
  1383. PushConfig *PushConfig `protobuf:"bytes,2,opt,name=push_config,json=pushConfig,proto3" json:"push_config,omitempty"`
  1384. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1385. XXX_unrecognized []byte `json:"-"`
  1386. XXX_sizecache int32 `json:"-"`
  1387. }
  1388. func (m *ModifyPushConfigRequest) Reset() { *m = ModifyPushConfigRequest{} }
  1389. func (m *ModifyPushConfigRequest) String() string { return proto.CompactTextString(m) }
  1390. func (*ModifyPushConfigRequest) ProtoMessage() {}
  1391. func (*ModifyPushConfigRequest) Descriptor() ([]byte, []int) {
  1392. return fileDescriptor_pubsub_1b403a4032d20168, []int{23}
  1393. }
  1394. func (m *ModifyPushConfigRequest) XXX_Unmarshal(b []byte) error {
  1395. return xxx_messageInfo_ModifyPushConfigRequest.Unmarshal(m, b)
  1396. }
  1397. func (m *ModifyPushConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1398. return xxx_messageInfo_ModifyPushConfigRequest.Marshal(b, m, deterministic)
  1399. }
  1400. func (dst *ModifyPushConfigRequest) XXX_Merge(src proto.Message) {
  1401. xxx_messageInfo_ModifyPushConfigRequest.Merge(dst, src)
  1402. }
  1403. func (m *ModifyPushConfigRequest) XXX_Size() int {
  1404. return xxx_messageInfo_ModifyPushConfigRequest.Size(m)
  1405. }
  1406. func (m *ModifyPushConfigRequest) XXX_DiscardUnknown() {
  1407. xxx_messageInfo_ModifyPushConfigRequest.DiscardUnknown(m)
  1408. }
  1409. var xxx_messageInfo_ModifyPushConfigRequest proto.InternalMessageInfo
  1410. func (m *ModifyPushConfigRequest) GetSubscription() string {
  1411. if m != nil {
  1412. return m.Subscription
  1413. }
  1414. return ""
  1415. }
  1416. func (m *ModifyPushConfigRequest) GetPushConfig() *PushConfig {
  1417. if m != nil {
  1418. return m.PushConfig
  1419. }
  1420. return nil
  1421. }
  1422. // Request for the `Pull` method.
  1423. type PullRequest struct {
  1424. // The subscription from which messages should be pulled.
  1425. // Format is `projects/{project}/subscriptions/{sub}`.
  1426. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1427. // If this field set to true, the system will respond immediately even if
  1428. // it there are no messages available to return in the `Pull` response.
  1429. // Otherwise, the system may wait (for a bounded amount of time) until at
  1430. // least one message is available, rather than returning no messages.
  1431. ReturnImmediately bool `protobuf:"varint,2,opt,name=return_immediately,json=returnImmediately,proto3" json:"return_immediately,omitempty"`
  1432. // The maximum number of messages returned for this request. The Pub/Sub
  1433. // system may return fewer than the number specified.
  1434. MaxMessages int32 `protobuf:"varint,3,opt,name=max_messages,json=maxMessages,proto3" json:"max_messages,omitempty"`
  1435. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1436. XXX_unrecognized []byte `json:"-"`
  1437. XXX_sizecache int32 `json:"-"`
  1438. }
  1439. func (m *PullRequest) Reset() { *m = PullRequest{} }
  1440. func (m *PullRequest) String() string { return proto.CompactTextString(m) }
  1441. func (*PullRequest) ProtoMessage() {}
  1442. func (*PullRequest) Descriptor() ([]byte, []int) {
  1443. return fileDescriptor_pubsub_1b403a4032d20168, []int{24}
  1444. }
  1445. func (m *PullRequest) XXX_Unmarshal(b []byte) error {
  1446. return xxx_messageInfo_PullRequest.Unmarshal(m, b)
  1447. }
  1448. func (m *PullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1449. return xxx_messageInfo_PullRequest.Marshal(b, m, deterministic)
  1450. }
  1451. func (dst *PullRequest) XXX_Merge(src proto.Message) {
  1452. xxx_messageInfo_PullRequest.Merge(dst, src)
  1453. }
  1454. func (m *PullRequest) XXX_Size() int {
  1455. return xxx_messageInfo_PullRequest.Size(m)
  1456. }
  1457. func (m *PullRequest) XXX_DiscardUnknown() {
  1458. xxx_messageInfo_PullRequest.DiscardUnknown(m)
  1459. }
  1460. var xxx_messageInfo_PullRequest proto.InternalMessageInfo
  1461. func (m *PullRequest) GetSubscription() string {
  1462. if m != nil {
  1463. return m.Subscription
  1464. }
  1465. return ""
  1466. }
  1467. func (m *PullRequest) GetReturnImmediately() bool {
  1468. if m != nil {
  1469. return m.ReturnImmediately
  1470. }
  1471. return false
  1472. }
  1473. func (m *PullRequest) GetMaxMessages() int32 {
  1474. if m != nil {
  1475. return m.MaxMessages
  1476. }
  1477. return 0
  1478. }
  1479. // Response for the `Pull` method.
  1480. type PullResponse struct {
  1481. // Received Pub/Sub messages. The list will be empty if there are no more
  1482. // messages available in the backlog. For JSON, the response can be entirely
  1483. // empty. The Pub/Sub system may return fewer than the `maxMessages` requested
  1484. // even if there are more messages available in the backlog.
  1485. ReceivedMessages []*ReceivedMessage `protobuf:"bytes,1,rep,name=received_messages,json=receivedMessages,proto3" json:"received_messages,omitempty"`
  1486. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1487. XXX_unrecognized []byte `json:"-"`
  1488. XXX_sizecache int32 `json:"-"`
  1489. }
  1490. func (m *PullResponse) Reset() { *m = PullResponse{} }
  1491. func (m *PullResponse) String() string { return proto.CompactTextString(m) }
  1492. func (*PullResponse) ProtoMessage() {}
  1493. func (*PullResponse) Descriptor() ([]byte, []int) {
  1494. return fileDescriptor_pubsub_1b403a4032d20168, []int{25}
  1495. }
  1496. func (m *PullResponse) XXX_Unmarshal(b []byte) error {
  1497. return xxx_messageInfo_PullResponse.Unmarshal(m, b)
  1498. }
  1499. func (m *PullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1500. return xxx_messageInfo_PullResponse.Marshal(b, m, deterministic)
  1501. }
  1502. func (dst *PullResponse) XXX_Merge(src proto.Message) {
  1503. xxx_messageInfo_PullResponse.Merge(dst, src)
  1504. }
  1505. func (m *PullResponse) XXX_Size() int {
  1506. return xxx_messageInfo_PullResponse.Size(m)
  1507. }
  1508. func (m *PullResponse) XXX_DiscardUnknown() {
  1509. xxx_messageInfo_PullResponse.DiscardUnknown(m)
  1510. }
  1511. var xxx_messageInfo_PullResponse proto.InternalMessageInfo
  1512. func (m *PullResponse) GetReceivedMessages() []*ReceivedMessage {
  1513. if m != nil {
  1514. return m.ReceivedMessages
  1515. }
  1516. return nil
  1517. }
  1518. // Request for the ModifyAckDeadline method.
  1519. type ModifyAckDeadlineRequest struct {
  1520. // The name of the subscription.
  1521. // Format is `projects/{project}/subscriptions/{sub}`.
  1522. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1523. // List of acknowledgment IDs.
  1524. AckIds []string `protobuf:"bytes,4,rep,name=ack_ids,json=ackIds,proto3" json:"ack_ids,omitempty"`
  1525. // The new ack deadline with respect to the time this request was sent to
  1526. // the Pub/Sub system. For example, if the value is 10, the new
  1527. // ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
  1528. // was made. Specifying zero might immediately make the message available for
  1529. // delivery to another subscriber client. This typically results in an
  1530. // increase in the rate of message redeliveries (that is, duplicates).
  1531. // The minimum deadline you can specify is 0 seconds.
  1532. // The maximum deadline you can specify is 600 seconds (10 minutes).
  1533. AckDeadlineSeconds int32 `protobuf:"varint,3,opt,name=ack_deadline_seconds,json=ackDeadlineSeconds,proto3" json:"ack_deadline_seconds,omitempty"`
  1534. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1535. XXX_unrecognized []byte `json:"-"`
  1536. XXX_sizecache int32 `json:"-"`
  1537. }
  1538. func (m *ModifyAckDeadlineRequest) Reset() { *m = ModifyAckDeadlineRequest{} }
  1539. func (m *ModifyAckDeadlineRequest) String() string { return proto.CompactTextString(m) }
  1540. func (*ModifyAckDeadlineRequest) ProtoMessage() {}
  1541. func (*ModifyAckDeadlineRequest) Descriptor() ([]byte, []int) {
  1542. return fileDescriptor_pubsub_1b403a4032d20168, []int{26}
  1543. }
  1544. func (m *ModifyAckDeadlineRequest) XXX_Unmarshal(b []byte) error {
  1545. return xxx_messageInfo_ModifyAckDeadlineRequest.Unmarshal(m, b)
  1546. }
  1547. func (m *ModifyAckDeadlineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1548. return xxx_messageInfo_ModifyAckDeadlineRequest.Marshal(b, m, deterministic)
  1549. }
  1550. func (dst *ModifyAckDeadlineRequest) XXX_Merge(src proto.Message) {
  1551. xxx_messageInfo_ModifyAckDeadlineRequest.Merge(dst, src)
  1552. }
  1553. func (m *ModifyAckDeadlineRequest) XXX_Size() int {
  1554. return xxx_messageInfo_ModifyAckDeadlineRequest.Size(m)
  1555. }
  1556. func (m *ModifyAckDeadlineRequest) XXX_DiscardUnknown() {
  1557. xxx_messageInfo_ModifyAckDeadlineRequest.DiscardUnknown(m)
  1558. }
  1559. var xxx_messageInfo_ModifyAckDeadlineRequest proto.InternalMessageInfo
  1560. func (m *ModifyAckDeadlineRequest) GetSubscription() string {
  1561. if m != nil {
  1562. return m.Subscription
  1563. }
  1564. return ""
  1565. }
  1566. func (m *ModifyAckDeadlineRequest) GetAckIds() []string {
  1567. if m != nil {
  1568. return m.AckIds
  1569. }
  1570. return nil
  1571. }
  1572. func (m *ModifyAckDeadlineRequest) GetAckDeadlineSeconds() int32 {
  1573. if m != nil {
  1574. return m.AckDeadlineSeconds
  1575. }
  1576. return 0
  1577. }
  1578. // Request for the Acknowledge method.
  1579. type AcknowledgeRequest struct {
  1580. // The subscription whose message is being acknowledged.
  1581. // Format is `projects/{project}/subscriptions/{sub}`.
  1582. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1583. // The acknowledgment ID for the messages being acknowledged that was returned
  1584. // by the Pub/Sub system in the `Pull` response. Must not be empty.
  1585. AckIds []string `protobuf:"bytes,2,rep,name=ack_ids,json=ackIds,proto3" json:"ack_ids,omitempty"`
  1586. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1587. XXX_unrecognized []byte `json:"-"`
  1588. XXX_sizecache int32 `json:"-"`
  1589. }
  1590. func (m *AcknowledgeRequest) Reset() { *m = AcknowledgeRequest{} }
  1591. func (m *AcknowledgeRequest) String() string { return proto.CompactTextString(m) }
  1592. func (*AcknowledgeRequest) ProtoMessage() {}
  1593. func (*AcknowledgeRequest) Descriptor() ([]byte, []int) {
  1594. return fileDescriptor_pubsub_1b403a4032d20168, []int{27}
  1595. }
  1596. func (m *AcknowledgeRequest) XXX_Unmarshal(b []byte) error {
  1597. return xxx_messageInfo_AcknowledgeRequest.Unmarshal(m, b)
  1598. }
  1599. func (m *AcknowledgeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1600. return xxx_messageInfo_AcknowledgeRequest.Marshal(b, m, deterministic)
  1601. }
  1602. func (dst *AcknowledgeRequest) XXX_Merge(src proto.Message) {
  1603. xxx_messageInfo_AcknowledgeRequest.Merge(dst, src)
  1604. }
  1605. func (m *AcknowledgeRequest) XXX_Size() int {
  1606. return xxx_messageInfo_AcknowledgeRequest.Size(m)
  1607. }
  1608. func (m *AcknowledgeRequest) XXX_DiscardUnknown() {
  1609. xxx_messageInfo_AcknowledgeRequest.DiscardUnknown(m)
  1610. }
  1611. var xxx_messageInfo_AcknowledgeRequest proto.InternalMessageInfo
  1612. func (m *AcknowledgeRequest) GetSubscription() string {
  1613. if m != nil {
  1614. return m.Subscription
  1615. }
  1616. return ""
  1617. }
  1618. func (m *AcknowledgeRequest) GetAckIds() []string {
  1619. if m != nil {
  1620. return m.AckIds
  1621. }
  1622. return nil
  1623. }
  1624. // Request for the `StreamingPull` streaming RPC method. This request is used to
  1625. // establish the initial stream as well as to stream acknowledgements and ack
  1626. // deadline modifications from the client to the server.
  1627. type StreamingPullRequest struct {
  1628. // The subscription for which to initialize the new stream. This must be
  1629. // provided in the first request on the stream, and must not be set in
  1630. // subsequent requests from client to server.
  1631. // Format is `projects/{project}/subscriptions/{sub}`.
  1632. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1633. // List of acknowledgement IDs for acknowledging previously received messages
  1634. // (received on this stream or a different stream). If an ack ID has expired,
  1635. // the corresponding message may be redelivered later. Acknowledging a message
  1636. // more than once will not result in an error. If the acknowledgement ID is
  1637. // malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
  1638. AckIds []string `protobuf:"bytes,2,rep,name=ack_ids,json=ackIds,proto3" json:"ack_ids,omitempty"`
  1639. // The list of new ack deadlines for the IDs listed in
  1640. // `modify_deadline_ack_ids`. The size of this list must be the same as the
  1641. // size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
  1642. // with `INVALID_ARGUMENT`. Each element in this list is applied to the
  1643. // element in the same position in `modify_deadline_ack_ids`. The new ack
  1644. // deadline is with respect to the time this request was sent to the Pub/Sub
  1645. // system. Must be >= 0. For example, if the value is 10, the new ack deadline
  1646. // will expire 10 seconds after this request is received. If the value is 0,
  1647. // the message is immediately made available for another streaming or
  1648. // non-streaming pull request. If the value is < 0 (an error), the stream will
  1649. // be aborted with status `INVALID_ARGUMENT`.
  1650. ModifyDeadlineSeconds []int32 `protobuf:"varint,3,rep,packed,name=modify_deadline_seconds,json=modifyDeadlineSeconds,proto3" json:"modify_deadline_seconds,omitempty"`
  1651. // List of acknowledgement IDs whose deadline will be modified based on the
  1652. // corresponding element in `modify_deadline_seconds`. This field can be used
  1653. // to indicate that more time is needed to process a message by the
  1654. // subscriber, or to make the message available for redelivery if the
  1655. // processing was interrupted.
  1656. ModifyDeadlineAckIds []string `protobuf:"bytes,4,rep,name=modify_deadline_ack_ids,json=modifyDeadlineAckIds,proto3" json:"modify_deadline_ack_ids,omitempty"`
  1657. // The ack deadline to use for the stream. This must be provided in the
  1658. // first request on the stream, but it can also be updated on subsequent
  1659. // requests from client to server. The minimum deadline you can specify is 10
  1660. // seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
  1661. StreamAckDeadlineSeconds int32 `protobuf:"varint,5,opt,name=stream_ack_deadline_seconds,json=streamAckDeadlineSeconds,proto3" json:"stream_ack_deadline_seconds,omitempty"`
  1662. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1663. XXX_unrecognized []byte `json:"-"`
  1664. XXX_sizecache int32 `json:"-"`
  1665. }
  1666. func (m *StreamingPullRequest) Reset() { *m = StreamingPullRequest{} }
  1667. func (m *StreamingPullRequest) String() string { return proto.CompactTextString(m) }
  1668. func (*StreamingPullRequest) ProtoMessage() {}
  1669. func (*StreamingPullRequest) Descriptor() ([]byte, []int) {
  1670. return fileDescriptor_pubsub_1b403a4032d20168, []int{28}
  1671. }
  1672. func (m *StreamingPullRequest) XXX_Unmarshal(b []byte) error {
  1673. return xxx_messageInfo_StreamingPullRequest.Unmarshal(m, b)
  1674. }
  1675. func (m *StreamingPullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1676. return xxx_messageInfo_StreamingPullRequest.Marshal(b, m, deterministic)
  1677. }
  1678. func (dst *StreamingPullRequest) XXX_Merge(src proto.Message) {
  1679. xxx_messageInfo_StreamingPullRequest.Merge(dst, src)
  1680. }
  1681. func (m *StreamingPullRequest) XXX_Size() int {
  1682. return xxx_messageInfo_StreamingPullRequest.Size(m)
  1683. }
  1684. func (m *StreamingPullRequest) XXX_DiscardUnknown() {
  1685. xxx_messageInfo_StreamingPullRequest.DiscardUnknown(m)
  1686. }
  1687. var xxx_messageInfo_StreamingPullRequest proto.InternalMessageInfo
  1688. func (m *StreamingPullRequest) GetSubscription() string {
  1689. if m != nil {
  1690. return m.Subscription
  1691. }
  1692. return ""
  1693. }
  1694. func (m *StreamingPullRequest) GetAckIds() []string {
  1695. if m != nil {
  1696. return m.AckIds
  1697. }
  1698. return nil
  1699. }
  1700. func (m *StreamingPullRequest) GetModifyDeadlineSeconds() []int32 {
  1701. if m != nil {
  1702. return m.ModifyDeadlineSeconds
  1703. }
  1704. return nil
  1705. }
  1706. func (m *StreamingPullRequest) GetModifyDeadlineAckIds() []string {
  1707. if m != nil {
  1708. return m.ModifyDeadlineAckIds
  1709. }
  1710. return nil
  1711. }
  1712. func (m *StreamingPullRequest) GetStreamAckDeadlineSeconds() int32 {
  1713. if m != nil {
  1714. return m.StreamAckDeadlineSeconds
  1715. }
  1716. return 0
  1717. }
  1718. // Response for the `StreamingPull` method. This response is used to stream
  1719. // messages from the server to the client.
  1720. type StreamingPullResponse struct {
  1721. // Received Pub/Sub messages. This will not be empty.
  1722. ReceivedMessages []*ReceivedMessage `protobuf:"bytes,1,rep,name=received_messages,json=receivedMessages,proto3" json:"received_messages,omitempty"`
  1723. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1724. XXX_unrecognized []byte `json:"-"`
  1725. XXX_sizecache int32 `json:"-"`
  1726. }
  1727. func (m *StreamingPullResponse) Reset() { *m = StreamingPullResponse{} }
  1728. func (m *StreamingPullResponse) String() string { return proto.CompactTextString(m) }
  1729. func (*StreamingPullResponse) ProtoMessage() {}
  1730. func (*StreamingPullResponse) Descriptor() ([]byte, []int) {
  1731. return fileDescriptor_pubsub_1b403a4032d20168, []int{29}
  1732. }
  1733. func (m *StreamingPullResponse) XXX_Unmarshal(b []byte) error {
  1734. return xxx_messageInfo_StreamingPullResponse.Unmarshal(m, b)
  1735. }
  1736. func (m *StreamingPullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1737. return xxx_messageInfo_StreamingPullResponse.Marshal(b, m, deterministic)
  1738. }
  1739. func (dst *StreamingPullResponse) XXX_Merge(src proto.Message) {
  1740. xxx_messageInfo_StreamingPullResponse.Merge(dst, src)
  1741. }
  1742. func (m *StreamingPullResponse) XXX_Size() int {
  1743. return xxx_messageInfo_StreamingPullResponse.Size(m)
  1744. }
  1745. func (m *StreamingPullResponse) XXX_DiscardUnknown() {
  1746. xxx_messageInfo_StreamingPullResponse.DiscardUnknown(m)
  1747. }
  1748. var xxx_messageInfo_StreamingPullResponse proto.InternalMessageInfo
  1749. func (m *StreamingPullResponse) GetReceivedMessages() []*ReceivedMessage {
  1750. if m != nil {
  1751. return m.ReceivedMessages
  1752. }
  1753. return nil
  1754. }
  1755. // Request for the `CreateSnapshot` method.<br><br>
  1756. // <b>BETA:</b> This feature is part of a beta release. This API might be
  1757. // changed in backward-incompatible ways and is not recommended for production
  1758. // use. It is not subject to any SLA or deprecation policy.
  1759. type CreateSnapshotRequest struct {
  1760. // Optional user-provided name for this snapshot.
  1761. // If the name is not provided in the request, the server will assign a random
  1762. // name for this snapshot on the same project as the subscription.
  1763. // Note that for REST API requests, you must specify a name. See the
  1764. // <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
  1765. // resource name rules</a>.
  1766. // Format is `projects/{project}/snapshots/{snap}`.
  1767. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  1768. // The subscription whose backlog the snapshot retains.
  1769. // Specifically, the created snapshot is guaranteed to retain:
  1770. // (a) The existing backlog on the subscription. More precisely, this is
  1771. // defined as the messages in the subscription's backlog that are
  1772. // unacknowledged upon the successful completion of the
  1773. // `CreateSnapshot` request; as well as:
  1774. // (b) Any messages published to the subscription's topic following the
  1775. // successful completion of the CreateSnapshot request.
  1776. // Format is `projects/{project}/subscriptions/{sub}`.
  1777. Subscription string `protobuf:"bytes,2,opt,name=subscription,proto3" json:"subscription,omitempty"`
  1778. // See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
  1779. // managing labels</a>.
  1780. Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1781. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1782. XXX_unrecognized []byte `json:"-"`
  1783. XXX_sizecache int32 `json:"-"`
  1784. }
  1785. func (m *CreateSnapshotRequest) Reset() { *m = CreateSnapshotRequest{} }
  1786. func (m *CreateSnapshotRequest) String() string { return proto.CompactTextString(m) }
  1787. func (*CreateSnapshotRequest) ProtoMessage() {}
  1788. func (*CreateSnapshotRequest) Descriptor() ([]byte, []int) {
  1789. return fileDescriptor_pubsub_1b403a4032d20168, []int{30}
  1790. }
  1791. func (m *CreateSnapshotRequest) XXX_Unmarshal(b []byte) error {
  1792. return xxx_messageInfo_CreateSnapshotRequest.Unmarshal(m, b)
  1793. }
  1794. func (m *CreateSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1795. return xxx_messageInfo_CreateSnapshotRequest.Marshal(b, m, deterministic)
  1796. }
  1797. func (dst *CreateSnapshotRequest) XXX_Merge(src proto.Message) {
  1798. xxx_messageInfo_CreateSnapshotRequest.Merge(dst, src)
  1799. }
  1800. func (m *CreateSnapshotRequest) XXX_Size() int {
  1801. return xxx_messageInfo_CreateSnapshotRequest.Size(m)
  1802. }
  1803. func (m *CreateSnapshotRequest) XXX_DiscardUnknown() {
  1804. xxx_messageInfo_CreateSnapshotRequest.DiscardUnknown(m)
  1805. }
  1806. var xxx_messageInfo_CreateSnapshotRequest proto.InternalMessageInfo
  1807. func (m *CreateSnapshotRequest) GetName() string {
  1808. if m != nil {
  1809. return m.Name
  1810. }
  1811. return ""
  1812. }
  1813. func (m *CreateSnapshotRequest) GetSubscription() string {
  1814. if m != nil {
  1815. return m.Subscription
  1816. }
  1817. return ""
  1818. }
  1819. func (m *CreateSnapshotRequest) GetLabels() map[string]string {
  1820. if m != nil {
  1821. return m.Labels
  1822. }
  1823. return nil
  1824. }
  1825. // Request for the UpdateSnapshot method.<br><br>
  1826. // <b>BETA:</b> This feature is part of a beta release. This API might be
  1827. // changed in backward-incompatible ways and is not recommended for production
  1828. // use. It is not subject to any SLA or deprecation policy.
  1829. type UpdateSnapshotRequest struct {
  1830. // The updated snapshot object.
  1831. Snapshot *Snapshot `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
  1832. // Indicates which fields in the provided snapshot to update.
  1833. // Must be specified and non-empty.
  1834. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  1835. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1836. XXX_unrecognized []byte `json:"-"`
  1837. XXX_sizecache int32 `json:"-"`
  1838. }
  1839. func (m *UpdateSnapshotRequest) Reset() { *m = UpdateSnapshotRequest{} }
  1840. func (m *UpdateSnapshotRequest) String() string { return proto.CompactTextString(m) }
  1841. func (*UpdateSnapshotRequest) ProtoMessage() {}
  1842. func (*UpdateSnapshotRequest) Descriptor() ([]byte, []int) {
  1843. return fileDescriptor_pubsub_1b403a4032d20168, []int{31}
  1844. }
  1845. func (m *UpdateSnapshotRequest) XXX_Unmarshal(b []byte) error {
  1846. return xxx_messageInfo_UpdateSnapshotRequest.Unmarshal(m, b)
  1847. }
  1848. func (m *UpdateSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1849. return xxx_messageInfo_UpdateSnapshotRequest.Marshal(b, m, deterministic)
  1850. }
  1851. func (dst *UpdateSnapshotRequest) XXX_Merge(src proto.Message) {
  1852. xxx_messageInfo_UpdateSnapshotRequest.Merge(dst, src)
  1853. }
  1854. func (m *UpdateSnapshotRequest) XXX_Size() int {
  1855. return xxx_messageInfo_UpdateSnapshotRequest.Size(m)
  1856. }
  1857. func (m *UpdateSnapshotRequest) XXX_DiscardUnknown() {
  1858. xxx_messageInfo_UpdateSnapshotRequest.DiscardUnknown(m)
  1859. }
  1860. var xxx_messageInfo_UpdateSnapshotRequest proto.InternalMessageInfo
  1861. func (m *UpdateSnapshotRequest) GetSnapshot() *Snapshot {
  1862. if m != nil {
  1863. return m.Snapshot
  1864. }
  1865. return nil
  1866. }
  1867. func (m *UpdateSnapshotRequest) GetUpdateMask() *field_mask.FieldMask {
  1868. if m != nil {
  1869. return m.UpdateMask
  1870. }
  1871. return nil
  1872. }
  1873. // A snapshot resource. Snapshots are used in
  1874. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  1875. // operations, which allow
  1876. // you to manage message acknowledgments in bulk. That is, you can set the
  1877. // acknowledgment state of messages in an existing subscription to the state
  1878. // captured by a snapshot.<br><br>
  1879. // <b>BETA:</b> This feature is part of a beta release. This API might be
  1880. // changed in backward-incompatible ways and is not recommended for production
  1881. // use. It is not subject to any SLA or deprecation policy.
  1882. type Snapshot struct {
  1883. // The name of the snapshot.
  1884. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  1885. // The name of the topic from which this snapshot is retaining messages.
  1886. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  1887. // The snapshot is guaranteed to exist up until this time.
  1888. // A newly-created snapshot expires no later than 7 days from the time of its
  1889. // creation. Its exact lifetime is determined at creation by the existing
  1890. // backlog in the source subscription. Specifically, the lifetime of the
  1891. // snapshot is `7 days - (age of oldest unacked message in the subscription)`.
  1892. // For example, consider a subscription whose oldest unacked message is 3 days
  1893. // old. If a snapshot is created from this subscription, the snapshot -- which
  1894. // will always capture this 3-day-old backlog as long as the snapshot
  1895. // exists -- will expire in 4 days. The service will refuse to create a
  1896. // snapshot that would expire in less than 1 hour after creation.
  1897. ExpireTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
  1898. // See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
  1899. // managing labels</a>.
  1900. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1901. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1902. XXX_unrecognized []byte `json:"-"`
  1903. XXX_sizecache int32 `json:"-"`
  1904. }
  1905. func (m *Snapshot) Reset() { *m = Snapshot{} }
  1906. func (m *Snapshot) String() string { return proto.CompactTextString(m) }
  1907. func (*Snapshot) ProtoMessage() {}
  1908. func (*Snapshot) Descriptor() ([]byte, []int) {
  1909. return fileDescriptor_pubsub_1b403a4032d20168, []int{32}
  1910. }
  1911. func (m *Snapshot) XXX_Unmarshal(b []byte) error {
  1912. return xxx_messageInfo_Snapshot.Unmarshal(m, b)
  1913. }
  1914. func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1915. return xxx_messageInfo_Snapshot.Marshal(b, m, deterministic)
  1916. }
  1917. func (dst *Snapshot) XXX_Merge(src proto.Message) {
  1918. xxx_messageInfo_Snapshot.Merge(dst, src)
  1919. }
  1920. func (m *Snapshot) XXX_Size() int {
  1921. return xxx_messageInfo_Snapshot.Size(m)
  1922. }
  1923. func (m *Snapshot) XXX_DiscardUnknown() {
  1924. xxx_messageInfo_Snapshot.DiscardUnknown(m)
  1925. }
  1926. var xxx_messageInfo_Snapshot proto.InternalMessageInfo
  1927. func (m *Snapshot) GetName() string {
  1928. if m != nil {
  1929. return m.Name
  1930. }
  1931. return ""
  1932. }
  1933. func (m *Snapshot) GetTopic() string {
  1934. if m != nil {
  1935. return m.Topic
  1936. }
  1937. return ""
  1938. }
  1939. func (m *Snapshot) GetExpireTime() *timestamp.Timestamp {
  1940. if m != nil {
  1941. return m.ExpireTime
  1942. }
  1943. return nil
  1944. }
  1945. func (m *Snapshot) GetLabels() map[string]string {
  1946. if m != nil {
  1947. return m.Labels
  1948. }
  1949. return nil
  1950. }
  1951. // Request for the GetSnapshot method.<br><br>
  1952. // <b>BETA:</b> This feature is part of a beta release. This API might be
  1953. // changed in backward-incompatible ways and is not recommended for production
  1954. // use. It is not subject to any SLA or deprecation policy.
  1955. type GetSnapshotRequest struct {
  1956. // The name of the snapshot to get.
  1957. // Format is `projects/{project}/snapshots/{snap}`.
  1958. Snapshot string `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
  1959. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1960. XXX_unrecognized []byte `json:"-"`
  1961. XXX_sizecache int32 `json:"-"`
  1962. }
  1963. func (m *GetSnapshotRequest) Reset() { *m = GetSnapshotRequest{} }
  1964. func (m *GetSnapshotRequest) String() string { return proto.CompactTextString(m) }
  1965. func (*GetSnapshotRequest) ProtoMessage() {}
  1966. func (*GetSnapshotRequest) Descriptor() ([]byte, []int) {
  1967. return fileDescriptor_pubsub_1b403a4032d20168, []int{33}
  1968. }
  1969. func (m *GetSnapshotRequest) XXX_Unmarshal(b []byte) error {
  1970. return xxx_messageInfo_GetSnapshotRequest.Unmarshal(m, b)
  1971. }
  1972. func (m *GetSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1973. return xxx_messageInfo_GetSnapshotRequest.Marshal(b, m, deterministic)
  1974. }
  1975. func (dst *GetSnapshotRequest) XXX_Merge(src proto.Message) {
  1976. xxx_messageInfo_GetSnapshotRequest.Merge(dst, src)
  1977. }
  1978. func (m *GetSnapshotRequest) XXX_Size() int {
  1979. return xxx_messageInfo_GetSnapshotRequest.Size(m)
  1980. }
  1981. func (m *GetSnapshotRequest) XXX_DiscardUnknown() {
  1982. xxx_messageInfo_GetSnapshotRequest.DiscardUnknown(m)
  1983. }
  1984. var xxx_messageInfo_GetSnapshotRequest proto.InternalMessageInfo
  1985. func (m *GetSnapshotRequest) GetSnapshot() string {
  1986. if m != nil {
  1987. return m.Snapshot
  1988. }
  1989. return ""
  1990. }
  1991. // Request for the `ListSnapshots` method.<br><br>
  1992. // <b>BETA:</b> This feature is part of a beta release. This API might be
  1993. // changed in backward-incompatible ways and is not recommended for production
  1994. // use. It is not subject to any SLA or deprecation policy.
  1995. type ListSnapshotsRequest struct {
  1996. // The name of the project in which to list snapshots.
  1997. // Format is `projects/{project-id}`.
  1998. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
  1999. // Maximum number of snapshots to return.
  2000. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  2001. // The value returned by the last `ListSnapshotsResponse`; indicates that this
  2002. // is a continuation of a prior `ListSnapshots` call, and that the system
  2003. // should return the next page of data.
  2004. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  2005. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2006. XXX_unrecognized []byte `json:"-"`
  2007. XXX_sizecache int32 `json:"-"`
  2008. }
  2009. func (m *ListSnapshotsRequest) Reset() { *m = ListSnapshotsRequest{} }
  2010. func (m *ListSnapshotsRequest) String() string { return proto.CompactTextString(m) }
  2011. func (*ListSnapshotsRequest) ProtoMessage() {}
  2012. func (*ListSnapshotsRequest) Descriptor() ([]byte, []int) {
  2013. return fileDescriptor_pubsub_1b403a4032d20168, []int{34}
  2014. }
  2015. func (m *ListSnapshotsRequest) XXX_Unmarshal(b []byte) error {
  2016. return xxx_messageInfo_ListSnapshotsRequest.Unmarshal(m, b)
  2017. }
  2018. func (m *ListSnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2019. return xxx_messageInfo_ListSnapshotsRequest.Marshal(b, m, deterministic)
  2020. }
  2021. func (dst *ListSnapshotsRequest) XXX_Merge(src proto.Message) {
  2022. xxx_messageInfo_ListSnapshotsRequest.Merge(dst, src)
  2023. }
  2024. func (m *ListSnapshotsRequest) XXX_Size() int {
  2025. return xxx_messageInfo_ListSnapshotsRequest.Size(m)
  2026. }
  2027. func (m *ListSnapshotsRequest) XXX_DiscardUnknown() {
  2028. xxx_messageInfo_ListSnapshotsRequest.DiscardUnknown(m)
  2029. }
  2030. var xxx_messageInfo_ListSnapshotsRequest proto.InternalMessageInfo
  2031. func (m *ListSnapshotsRequest) GetProject() string {
  2032. if m != nil {
  2033. return m.Project
  2034. }
  2035. return ""
  2036. }
  2037. func (m *ListSnapshotsRequest) GetPageSize() int32 {
  2038. if m != nil {
  2039. return m.PageSize
  2040. }
  2041. return 0
  2042. }
  2043. func (m *ListSnapshotsRequest) GetPageToken() string {
  2044. if m != nil {
  2045. return m.PageToken
  2046. }
  2047. return ""
  2048. }
  2049. // Response for the `ListSnapshots` method.<br><br>
  2050. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2051. // changed in backward-incompatible ways and is not recommended for production
  2052. // use. It is not subject to any SLA or deprecation policy.
  2053. type ListSnapshotsResponse struct {
  2054. // The resulting snapshots.
  2055. Snapshots []*Snapshot `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"`
  2056. // If not empty, indicates that there may be more snapshot that match the
  2057. // request; this value should be passed in a new `ListSnapshotsRequest`.
  2058. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  2059. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2060. XXX_unrecognized []byte `json:"-"`
  2061. XXX_sizecache int32 `json:"-"`
  2062. }
  2063. func (m *ListSnapshotsResponse) Reset() { *m = ListSnapshotsResponse{} }
  2064. func (m *ListSnapshotsResponse) String() string { return proto.CompactTextString(m) }
  2065. func (*ListSnapshotsResponse) ProtoMessage() {}
  2066. func (*ListSnapshotsResponse) Descriptor() ([]byte, []int) {
  2067. return fileDescriptor_pubsub_1b403a4032d20168, []int{35}
  2068. }
  2069. func (m *ListSnapshotsResponse) XXX_Unmarshal(b []byte) error {
  2070. return xxx_messageInfo_ListSnapshotsResponse.Unmarshal(m, b)
  2071. }
  2072. func (m *ListSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2073. return xxx_messageInfo_ListSnapshotsResponse.Marshal(b, m, deterministic)
  2074. }
  2075. func (dst *ListSnapshotsResponse) XXX_Merge(src proto.Message) {
  2076. xxx_messageInfo_ListSnapshotsResponse.Merge(dst, src)
  2077. }
  2078. func (m *ListSnapshotsResponse) XXX_Size() int {
  2079. return xxx_messageInfo_ListSnapshotsResponse.Size(m)
  2080. }
  2081. func (m *ListSnapshotsResponse) XXX_DiscardUnknown() {
  2082. xxx_messageInfo_ListSnapshotsResponse.DiscardUnknown(m)
  2083. }
  2084. var xxx_messageInfo_ListSnapshotsResponse proto.InternalMessageInfo
  2085. func (m *ListSnapshotsResponse) GetSnapshots() []*Snapshot {
  2086. if m != nil {
  2087. return m.Snapshots
  2088. }
  2089. return nil
  2090. }
  2091. func (m *ListSnapshotsResponse) GetNextPageToken() string {
  2092. if m != nil {
  2093. return m.NextPageToken
  2094. }
  2095. return ""
  2096. }
  2097. // Request for the `DeleteSnapshot` method.<br><br>
  2098. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2099. // changed in backward-incompatible ways and is not recommended for production
  2100. // use. It is not subject to any SLA or deprecation policy.
  2101. type DeleteSnapshotRequest struct {
  2102. // The name of the snapshot to delete.
  2103. // Format is `projects/{project}/snapshots/{snap}`.
  2104. Snapshot string `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
  2105. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2106. XXX_unrecognized []byte `json:"-"`
  2107. XXX_sizecache int32 `json:"-"`
  2108. }
  2109. func (m *DeleteSnapshotRequest) Reset() { *m = DeleteSnapshotRequest{} }
  2110. func (m *DeleteSnapshotRequest) String() string { return proto.CompactTextString(m) }
  2111. func (*DeleteSnapshotRequest) ProtoMessage() {}
  2112. func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int) {
  2113. return fileDescriptor_pubsub_1b403a4032d20168, []int{36}
  2114. }
  2115. func (m *DeleteSnapshotRequest) XXX_Unmarshal(b []byte) error {
  2116. return xxx_messageInfo_DeleteSnapshotRequest.Unmarshal(m, b)
  2117. }
  2118. func (m *DeleteSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2119. return xxx_messageInfo_DeleteSnapshotRequest.Marshal(b, m, deterministic)
  2120. }
  2121. func (dst *DeleteSnapshotRequest) XXX_Merge(src proto.Message) {
  2122. xxx_messageInfo_DeleteSnapshotRequest.Merge(dst, src)
  2123. }
  2124. func (m *DeleteSnapshotRequest) XXX_Size() int {
  2125. return xxx_messageInfo_DeleteSnapshotRequest.Size(m)
  2126. }
  2127. func (m *DeleteSnapshotRequest) XXX_DiscardUnknown() {
  2128. xxx_messageInfo_DeleteSnapshotRequest.DiscardUnknown(m)
  2129. }
  2130. var xxx_messageInfo_DeleteSnapshotRequest proto.InternalMessageInfo
  2131. func (m *DeleteSnapshotRequest) GetSnapshot() string {
  2132. if m != nil {
  2133. return m.Snapshot
  2134. }
  2135. return ""
  2136. }
  2137. // Request for the `Seek` method. <br><br>
  2138. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2139. // changed in backward-incompatible ways and is not recommended for production
  2140. // use. It is not subject to any SLA or deprecation policy.
  2141. type SeekRequest struct {
  2142. // The subscription to affect.
  2143. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
  2144. // Types that are valid to be assigned to Target:
  2145. // *SeekRequest_Time
  2146. // *SeekRequest_Snapshot
  2147. Target isSeekRequest_Target `protobuf_oneof:"target"`
  2148. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2149. XXX_unrecognized []byte `json:"-"`
  2150. XXX_sizecache int32 `json:"-"`
  2151. }
  2152. func (m *SeekRequest) Reset() { *m = SeekRequest{} }
  2153. func (m *SeekRequest) String() string { return proto.CompactTextString(m) }
  2154. func (*SeekRequest) ProtoMessage() {}
  2155. func (*SeekRequest) Descriptor() ([]byte, []int) {
  2156. return fileDescriptor_pubsub_1b403a4032d20168, []int{37}
  2157. }
  2158. func (m *SeekRequest) XXX_Unmarshal(b []byte) error {
  2159. return xxx_messageInfo_SeekRequest.Unmarshal(m, b)
  2160. }
  2161. func (m *SeekRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2162. return xxx_messageInfo_SeekRequest.Marshal(b, m, deterministic)
  2163. }
  2164. func (dst *SeekRequest) XXX_Merge(src proto.Message) {
  2165. xxx_messageInfo_SeekRequest.Merge(dst, src)
  2166. }
  2167. func (m *SeekRequest) XXX_Size() int {
  2168. return xxx_messageInfo_SeekRequest.Size(m)
  2169. }
  2170. func (m *SeekRequest) XXX_DiscardUnknown() {
  2171. xxx_messageInfo_SeekRequest.DiscardUnknown(m)
  2172. }
  2173. var xxx_messageInfo_SeekRequest proto.InternalMessageInfo
  2174. func (m *SeekRequest) GetSubscription() string {
  2175. if m != nil {
  2176. return m.Subscription
  2177. }
  2178. return ""
  2179. }
  2180. type isSeekRequest_Target interface {
  2181. isSeekRequest_Target()
  2182. }
  2183. type SeekRequest_Time struct {
  2184. Time *timestamp.Timestamp `protobuf:"bytes,2,opt,name=time,proto3,oneof"`
  2185. }
  2186. type SeekRequest_Snapshot struct {
  2187. Snapshot string `protobuf:"bytes,3,opt,name=snapshot,proto3,oneof"`
  2188. }
  2189. func (*SeekRequest_Time) isSeekRequest_Target() {}
  2190. func (*SeekRequest_Snapshot) isSeekRequest_Target() {}
  2191. func (m *SeekRequest) GetTarget() isSeekRequest_Target {
  2192. if m != nil {
  2193. return m.Target
  2194. }
  2195. return nil
  2196. }
  2197. func (m *SeekRequest) GetTime() *timestamp.Timestamp {
  2198. if x, ok := m.GetTarget().(*SeekRequest_Time); ok {
  2199. return x.Time
  2200. }
  2201. return nil
  2202. }
  2203. func (m *SeekRequest) GetSnapshot() string {
  2204. if x, ok := m.GetTarget().(*SeekRequest_Snapshot); ok {
  2205. return x.Snapshot
  2206. }
  2207. return ""
  2208. }
  2209. // XXX_OneofFuncs is for the internal use of the proto package.
  2210. func (*SeekRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  2211. return _SeekRequest_OneofMarshaler, _SeekRequest_OneofUnmarshaler, _SeekRequest_OneofSizer, []interface{}{
  2212. (*SeekRequest_Time)(nil),
  2213. (*SeekRequest_Snapshot)(nil),
  2214. }
  2215. }
  2216. func _SeekRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  2217. m := msg.(*SeekRequest)
  2218. // target
  2219. switch x := m.Target.(type) {
  2220. case *SeekRequest_Time:
  2221. b.EncodeVarint(2<<3 | proto.WireBytes)
  2222. if err := b.EncodeMessage(x.Time); err != nil {
  2223. return err
  2224. }
  2225. case *SeekRequest_Snapshot:
  2226. b.EncodeVarint(3<<3 | proto.WireBytes)
  2227. b.EncodeStringBytes(x.Snapshot)
  2228. case nil:
  2229. default:
  2230. return fmt.Errorf("SeekRequest.Target has unexpected type %T", x)
  2231. }
  2232. return nil
  2233. }
  2234. func _SeekRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  2235. m := msg.(*SeekRequest)
  2236. switch tag {
  2237. case 2: // target.time
  2238. if wire != proto.WireBytes {
  2239. return true, proto.ErrInternalBadWireType
  2240. }
  2241. msg := new(timestamp.Timestamp)
  2242. err := b.DecodeMessage(msg)
  2243. m.Target = &SeekRequest_Time{msg}
  2244. return true, err
  2245. case 3: // target.snapshot
  2246. if wire != proto.WireBytes {
  2247. return true, proto.ErrInternalBadWireType
  2248. }
  2249. x, err := b.DecodeStringBytes()
  2250. m.Target = &SeekRequest_Snapshot{x}
  2251. return true, err
  2252. default:
  2253. return false, nil
  2254. }
  2255. }
  2256. func _SeekRequest_OneofSizer(msg proto.Message) (n int) {
  2257. m := msg.(*SeekRequest)
  2258. // target
  2259. switch x := m.Target.(type) {
  2260. case *SeekRequest_Time:
  2261. s := proto.Size(x.Time)
  2262. n += 1 // tag and wire
  2263. n += proto.SizeVarint(uint64(s))
  2264. n += s
  2265. case *SeekRequest_Snapshot:
  2266. n += 1 // tag and wire
  2267. n += proto.SizeVarint(uint64(len(x.Snapshot)))
  2268. n += len(x.Snapshot)
  2269. case nil:
  2270. default:
  2271. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  2272. }
  2273. return n
  2274. }
  2275. // Response for the `Seek` method (this response is empty).
  2276. type SeekResponse struct {
  2277. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2278. XXX_unrecognized []byte `json:"-"`
  2279. XXX_sizecache int32 `json:"-"`
  2280. }
  2281. func (m *SeekResponse) Reset() { *m = SeekResponse{} }
  2282. func (m *SeekResponse) String() string { return proto.CompactTextString(m) }
  2283. func (*SeekResponse) ProtoMessage() {}
  2284. func (*SeekResponse) Descriptor() ([]byte, []int) {
  2285. return fileDescriptor_pubsub_1b403a4032d20168, []int{38}
  2286. }
  2287. func (m *SeekResponse) XXX_Unmarshal(b []byte) error {
  2288. return xxx_messageInfo_SeekResponse.Unmarshal(m, b)
  2289. }
  2290. func (m *SeekResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2291. return xxx_messageInfo_SeekResponse.Marshal(b, m, deterministic)
  2292. }
  2293. func (dst *SeekResponse) XXX_Merge(src proto.Message) {
  2294. xxx_messageInfo_SeekResponse.Merge(dst, src)
  2295. }
  2296. func (m *SeekResponse) XXX_Size() int {
  2297. return xxx_messageInfo_SeekResponse.Size(m)
  2298. }
  2299. func (m *SeekResponse) XXX_DiscardUnknown() {
  2300. xxx_messageInfo_SeekResponse.DiscardUnknown(m)
  2301. }
  2302. var xxx_messageInfo_SeekResponse proto.InternalMessageInfo
  2303. func init() {
  2304. proto.RegisterType((*MessageStoragePolicy)(nil), "google.pubsub.v1.MessageStoragePolicy")
  2305. proto.RegisterType((*Topic)(nil), "google.pubsub.v1.Topic")
  2306. proto.RegisterMapType((map[string]string)(nil), "google.pubsub.v1.Topic.LabelsEntry")
  2307. proto.RegisterType((*PubsubMessage)(nil), "google.pubsub.v1.PubsubMessage")
  2308. proto.RegisterMapType((map[string]string)(nil), "google.pubsub.v1.PubsubMessage.AttributesEntry")
  2309. proto.RegisterType((*GetTopicRequest)(nil), "google.pubsub.v1.GetTopicRequest")
  2310. proto.RegisterType((*UpdateTopicRequest)(nil), "google.pubsub.v1.UpdateTopicRequest")
  2311. proto.RegisterType((*PublishRequest)(nil), "google.pubsub.v1.PublishRequest")
  2312. proto.RegisterType((*PublishResponse)(nil), "google.pubsub.v1.PublishResponse")
  2313. proto.RegisterType((*ListTopicsRequest)(nil), "google.pubsub.v1.ListTopicsRequest")
  2314. proto.RegisterType((*ListTopicsResponse)(nil), "google.pubsub.v1.ListTopicsResponse")
  2315. proto.RegisterType((*ListTopicSubscriptionsRequest)(nil), "google.pubsub.v1.ListTopicSubscriptionsRequest")
  2316. proto.RegisterType((*ListTopicSubscriptionsResponse)(nil), "google.pubsub.v1.ListTopicSubscriptionsResponse")
  2317. proto.RegisterType((*ListTopicSnapshotsRequest)(nil), "google.pubsub.v1.ListTopicSnapshotsRequest")
  2318. proto.RegisterType((*ListTopicSnapshotsResponse)(nil), "google.pubsub.v1.ListTopicSnapshotsResponse")
  2319. proto.RegisterType((*DeleteTopicRequest)(nil), "google.pubsub.v1.DeleteTopicRequest")
  2320. proto.RegisterType((*Subscription)(nil), "google.pubsub.v1.Subscription")
  2321. proto.RegisterMapType((map[string]string)(nil), "google.pubsub.v1.Subscription.LabelsEntry")
  2322. proto.RegisterType((*ExpirationPolicy)(nil), "google.pubsub.v1.ExpirationPolicy")
  2323. proto.RegisterType((*PushConfig)(nil), "google.pubsub.v1.PushConfig")
  2324. proto.RegisterMapType((map[string]string)(nil), "google.pubsub.v1.PushConfig.AttributesEntry")
  2325. proto.RegisterType((*PushConfig_OidcToken)(nil), "google.pubsub.v1.PushConfig.OidcToken")
  2326. proto.RegisterType((*ReceivedMessage)(nil), "google.pubsub.v1.ReceivedMessage")
  2327. proto.RegisterType((*GetSubscriptionRequest)(nil), "google.pubsub.v1.GetSubscriptionRequest")
  2328. proto.RegisterType((*UpdateSubscriptionRequest)(nil), "google.pubsub.v1.UpdateSubscriptionRequest")
  2329. proto.RegisterType((*ListSubscriptionsRequest)(nil), "google.pubsub.v1.ListSubscriptionsRequest")
  2330. proto.RegisterType((*ListSubscriptionsResponse)(nil), "google.pubsub.v1.ListSubscriptionsResponse")
  2331. proto.RegisterType((*DeleteSubscriptionRequest)(nil), "google.pubsub.v1.DeleteSubscriptionRequest")
  2332. proto.RegisterType((*ModifyPushConfigRequest)(nil), "google.pubsub.v1.ModifyPushConfigRequest")
  2333. proto.RegisterType((*PullRequest)(nil), "google.pubsub.v1.PullRequest")
  2334. proto.RegisterType((*PullResponse)(nil), "google.pubsub.v1.PullResponse")
  2335. proto.RegisterType((*ModifyAckDeadlineRequest)(nil), "google.pubsub.v1.ModifyAckDeadlineRequest")
  2336. proto.RegisterType((*AcknowledgeRequest)(nil), "google.pubsub.v1.AcknowledgeRequest")
  2337. proto.RegisterType((*StreamingPullRequest)(nil), "google.pubsub.v1.StreamingPullRequest")
  2338. proto.RegisterType((*StreamingPullResponse)(nil), "google.pubsub.v1.StreamingPullResponse")
  2339. proto.RegisterType((*CreateSnapshotRequest)(nil), "google.pubsub.v1.CreateSnapshotRequest")
  2340. proto.RegisterMapType((map[string]string)(nil), "google.pubsub.v1.CreateSnapshotRequest.LabelsEntry")
  2341. proto.RegisterType((*UpdateSnapshotRequest)(nil), "google.pubsub.v1.UpdateSnapshotRequest")
  2342. proto.RegisterType((*Snapshot)(nil), "google.pubsub.v1.Snapshot")
  2343. proto.RegisterMapType((map[string]string)(nil), "google.pubsub.v1.Snapshot.LabelsEntry")
  2344. proto.RegisterType((*GetSnapshotRequest)(nil), "google.pubsub.v1.GetSnapshotRequest")
  2345. proto.RegisterType((*ListSnapshotsRequest)(nil), "google.pubsub.v1.ListSnapshotsRequest")
  2346. proto.RegisterType((*ListSnapshotsResponse)(nil), "google.pubsub.v1.ListSnapshotsResponse")
  2347. proto.RegisterType((*DeleteSnapshotRequest)(nil), "google.pubsub.v1.DeleteSnapshotRequest")
  2348. proto.RegisterType((*SeekRequest)(nil), "google.pubsub.v1.SeekRequest")
  2349. proto.RegisterType((*SeekResponse)(nil), "google.pubsub.v1.SeekResponse")
  2350. }
  2351. // Reference imports to suppress errors if they are not otherwise used.
  2352. var _ context.Context
  2353. var _ grpc.ClientConn
  2354. // This is a compile-time assertion to ensure that this generated file
  2355. // is compatible with the grpc package it is being compiled against.
  2356. const _ = grpc.SupportPackageIsVersion4
  2357. // PublisherClient is the client API for Publisher service.
  2358. //
  2359. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2360. type PublisherClient interface {
  2361. // Creates the given topic with the given name. See the
  2362. // <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
  2363. // resource name rules</a>.
  2364. CreateTopic(ctx context.Context, in *Topic, opts ...grpc.CallOption) (*Topic, error)
  2365. // Updates an existing topic. Note that certain properties of a
  2366. // topic are not modifiable.
  2367. UpdateTopic(ctx context.Context, in *UpdateTopicRequest, opts ...grpc.CallOption) (*Topic, error)
  2368. // Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
  2369. // does not exist.
  2370. Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
  2371. // Gets the configuration of a topic.
  2372. GetTopic(ctx context.Context, in *GetTopicRequest, opts ...grpc.CallOption) (*Topic, error)
  2373. // Lists matching topics.
  2374. ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error)
  2375. // Lists the names of the subscriptions on this topic.
  2376. ListTopicSubscriptions(ctx context.Context, in *ListTopicSubscriptionsRequest, opts ...grpc.CallOption) (*ListTopicSubscriptionsResponse, error)
  2377. // Lists the names of the snapshots on this topic. Snapshots are used in
  2378. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  2379. // operations, which allow
  2380. // you to manage message acknowledgments in bulk. That is, you can set the
  2381. // acknowledgment state of messages in an existing subscription to the state
  2382. // captured by a snapshot.<br><br>
  2383. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2384. // changed in backward-incompatible ways and is not recommended for production
  2385. // use. It is not subject to any SLA or deprecation policy.
  2386. ListTopicSnapshots(ctx context.Context, in *ListTopicSnapshotsRequest, opts ...grpc.CallOption) (*ListTopicSnapshotsResponse, error)
  2387. // Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
  2388. // does not exist. After a topic is deleted, a new topic may be created with
  2389. // the same name; this is an entirely new topic with none of the old
  2390. // configuration or subscriptions. Existing subscriptions to this topic are
  2391. // not deleted, but their `topic` field is set to `_deleted-topic_`.
  2392. DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  2393. }
  2394. type publisherClient struct {
  2395. cc *grpc.ClientConn
  2396. }
  2397. func NewPublisherClient(cc *grpc.ClientConn) PublisherClient {
  2398. return &publisherClient{cc}
  2399. }
  2400. func (c *publisherClient) CreateTopic(ctx context.Context, in *Topic, opts ...grpc.CallOption) (*Topic, error) {
  2401. out := new(Topic)
  2402. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Publisher/CreateTopic", in, out, opts...)
  2403. if err != nil {
  2404. return nil, err
  2405. }
  2406. return out, nil
  2407. }
  2408. func (c *publisherClient) UpdateTopic(ctx context.Context, in *UpdateTopicRequest, opts ...grpc.CallOption) (*Topic, error) {
  2409. out := new(Topic)
  2410. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Publisher/UpdateTopic", in, out, opts...)
  2411. if err != nil {
  2412. return nil, err
  2413. }
  2414. return out, nil
  2415. }
  2416. func (c *publisherClient) Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error) {
  2417. out := new(PublishResponse)
  2418. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Publisher/Publish", in, out, opts...)
  2419. if err != nil {
  2420. return nil, err
  2421. }
  2422. return out, nil
  2423. }
  2424. func (c *publisherClient) GetTopic(ctx context.Context, in *GetTopicRequest, opts ...grpc.CallOption) (*Topic, error) {
  2425. out := new(Topic)
  2426. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Publisher/GetTopic", in, out, opts...)
  2427. if err != nil {
  2428. return nil, err
  2429. }
  2430. return out, nil
  2431. }
  2432. func (c *publisherClient) ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error) {
  2433. out := new(ListTopicsResponse)
  2434. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Publisher/ListTopics", in, out, opts...)
  2435. if err != nil {
  2436. return nil, err
  2437. }
  2438. return out, nil
  2439. }
  2440. func (c *publisherClient) ListTopicSubscriptions(ctx context.Context, in *ListTopicSubscriptionsRequest, opts ...grpc.CallOption) (*ListTopicSubscriptionsResponse, error) {
  2441. out := new(ListTopicSubscriptionsResponse)
  2442. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Publisher/ListTopicSubscriptions", in, out, opts...)
  2443. if err != nil {
  2444. return nil, err
  2445. }
  2446. return out, nil
  2447. }
  2448. func (c *publisherClient) ListTopicSnapshots(ctx context.Context, in *ListTopicSnapshotsRequest, opts ...grpc.CallOption) (*ListTopicSnapshotsResponse, error) {
  2449. out := new(ListTopicSnapshotsResponse)
  2450. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Publisher/ListTopicSnapshots", in, out, opts...)
  2451. if err != nil {
  2452. return nil, err
  2453. }
  2454. return out, nil
  2455. }
  2456. func (c *publisherClient) DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  2457. out := new(empty.Empty)
  2458. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Publisher/DeleteTopic", in, out, opts...)
  2459. if err != nil {
  2460. return nil, err
  2461. }
  2462. return out, nil
  2463. }
  2464. // PublisherServer is the server API for Publisher service.
  2465. type PublisherServer interface {
  2466. // Creates the given topic with the given name. See the
  2467. // <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
  2468. // resource name rules</a>.
  2469. CreateTopic(context.Context, *Topic) (*Topic, error)
  2470. // Updates an existing topic. Note that certain properties of a
  2471. // topic are not modifiable.
  2472. UpdateTopic(context.Context, *UpdateTopicRequest) (*Topic, error)
  2473. // Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
  2474. // does not exist.
  2475. Publish(context.Context, *PublishRequest) (*PublishResponse, error)
  2476. // Gets the configuration of a topic.
  2477. GetTopic(context.Context, *GetTopicRequest) (*Topic, error)
  2478. // Lists matching topics.
  2479. ListTopics(context.Context, *ListTopicsRequest) (*ListTopicsResponse, error)
  2480. // Lists the names of the subscriptions on this topic.
  2481. ListTopicSubscriptions(context.Context, *ListTopicSubscriptionsRequest) (*ListTopicSubscriptionsResponse, error)
  2482. // Lists the names of the snapshots on this topic. Snapshots are used in
  2483. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  2484. // operations, which allow
  2485. // you to manage message acknowledgments in bulk. That is, you can set the
  2486. // acknowledgment state of messages in an existing subscription to the state
  2487. // captured by a snapshot.<br><br>
  2488. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2489. // changed in backward-incompatible ways and is not recommended for production
  2490. // use. It is not subject to any SLA or deprecation policy.
  2491. ListTopicSnapshots(context.Context, *ListTopicSnapshotsRequest) (*ListTopicSnapshotsResponse, error)
  2492. // Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
  2493. // does not exist. After a topic is deleted, a new topic may be created with
  2494. // the same name; this is an entirely new topic with none of the old
  2495. // configuration or subscriptions. Existing subscriptions to this topic are
  2496. // not deleted, but their `topic` field is set to `_deleted-topic_`.
  2497. DeleteTopic(context.Context, *DeleteTopicRequest) (*empty.Empty, error)
  2498. }
  2499. func RegisterPublisherServer(s *grpc.Server, srv PublisherServer) {
  2500. s.RegisterService(&_Publisher_serviceDesc, srv)
  2501. }
  2502. func _Publisher_CreateTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2503. in := new(Topic)
  2504. if err := dec(in); err != nil {
  2505. return nil, err
  2506. }
  2507. if interceptor == nil {
  2508. return srv.(PublisherServer).CreateTopic(ctx, in)
  2509. }
  2510. info := &grpc.UnaryServerInfo{
  2511. Server: srv,
  2512. FullMethod: "/google.pubsub.v1.Publisher/CreateTopic",
  2513. }
  2514. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2515. return srv.(PublisherServer).CreateTopic(ctx, req.(*Topic))
  2516. }
  2517. return interceptor(ctx, in, info, handler)
  2518. }
  2519. func _Publisher_UpdateTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2520. in := new(UpdateTopicRequest)
  2521. if err := dec(in); err != nil {
  2522. return nil, err
  2523. }
  2524. if interceptor == nil {
  2525. return srv.(PublisherServer).UpdateTopic(ctx, in)
  2526. }
  2527. info := &grpc.UnaryServerInfo{
  2528. Server: srv,
  2529. FullMethod: "/google.pubsub.v1.Publisher/UpdateTopic",
  2530. }
  2531. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2532. return srv.(PublisherServer).UpdateTopic(ctx, req.(*UpdateTopicRequest))
  2533. }
  2534. return interceptor(ctx, in, info, handler)
  2535. }
  2536. func _Publisher_Publish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2537. in := new(PublishRequest)
  2538. if err := dec(in); err != nil {
  2539. return nil, err
  2540. }
  2541. if interceptor == nil {
  2542. return srv.(PublisherServer).Publish(ctx, in)
  2543. }
  2544. info := &grpc.UnaryServerInfo{
  2545. Server: srv,
  2546. FullMethod: "/google.pubsub.v1.Publisher/Publish",
  2547. }
  2548. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2549. return srv.(PublisherServer).Publish(ctx, req.(*PublishRequest))
  2550. }
  2551. return interceptor(ctx, in, info, handler)
  2552. }
  2553. func _Publisher_GetTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2554. in := new(GetTopicRequest)
  2555. if err := dec(in); err != nil {
  2556. return nil, err
  2557. }
  2558. if interceptor == nil {
  2559. return srv.(PublisherServer).GetTopic(ctx, in)
  2560. }
  2561. info := &grpc.UnaryServerInfo{
  2562. Server: srv,
  2563. FullMethod: "/google.pubsub.v1.Publisher/GetTopic",
  2564. }
  2565. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2566. return srv.(PublisherServer).GetTopic(ctx, req.(*GetTopicRequest))
  2567. }
  2568. return interceptor(ctx, in, info, handler)
  2569. }
  2570. func _Publisher_ListTopics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2571. in := new(ListTopicsRequest)
  2572. if err := dec(in); err != nil {
  2573. return nil, err
  2574. }
  2575. if interceptor == nil {
  2576. return srv.(PublisherServer).ListTopics(ctx, in)
  2577. }
  2578. info := &grpc.UnaryServerInfo{
  2579. Server: srv,
  2580. FullMethod: "/google.pubsub.v1.Publisher/ListTopics",
  2581. }
  2582. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2583. return srv.(PublisherServer).ListTopics(ctx, req.(*ListTopicsRequest))
  2584. }
  2585. return interceptor(ctx, in, info, handler)
  2586. }
  2587. func _Publisher_ListTopicSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2588. in := new(ListTopicSubscriptionsRequest)
  2589. if err := dec(in); err != nil {
  2590. return nil, err
  2591. }
  2592. if interceptor == nil {
  2593. return srv.(PublisherServer).ListTopicSubscriptions(ctx, in)
  2594. }
  2595. info := &grpc.UnaryServerInfo{
  2596. Server: srv,
  2597. FullMethod: "/google.pubsub.v1.Publisher/ListTopicSubscriptions",
  2598. }
  2599. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2600. return srv.(PublisherServer).ListTopicSubscriptions(ctx, req.(*ListTopicSubscriptionsRequest))
  2601. }
  2602. return interceptor(ctx, in, info, handler)
  2603. }
  2604. func _Publisher_ListTopicSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2605. in := new(ListTopicSnapshotsRequest)
  2606. if err := dec(in); err != nil {
  2607. return nil, err
  2608. }
  2609. if interceptor == nil {
  2610. return srv.(PublisherServer).ListTopicSnapshots(ctx, in)
  2611. }
  2612. info := &grpc.UnaryServerInfo{
  2613. Server: srv,
  2614. FullMethod: "/google.pubsub.v1.Publisher/ListTopicSnapshots",
  2615. }
  2616. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2617. return srv.(PublisherServer).ListTopicSnapshots(ctx, req.(*ListTopicSnapshotsRequest))
  2618. }
  2619. return interceptor(ctx, in, info, handler)
  2620. }
  2621. func _Publisher_DeleteTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2622. in := new(DeleteTopicRequest)
  2623. if err := dec(in); err != nil {
  2624. return nil, err
  2625. }
  2626. if interceptor == nil {
  2627. return srv.(PublisherServer).DeleteTopic(ctx, in)
  2628. }
  2629. info := &grpc.UnaryServerInfo{
  2630. Server: srv,
  2631. FullMethod: "/google.pubsub.v1.Publisher/DeleteTopic",
  2632. }
  2633. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2634. return srv.(PublisherServer).DeleteTopic(ctx, req.(*DeleteTopicRequest))
  2635. }
  2636. return interceptor(ctx, in, info, handler)
  2637. }
  2638. var _Publisher_serviceDesc = grpc.ServiceDesc{
  2639. ServiceName: "google.pubsub.v1.Publisher",
  2640. HandlerType: (*PublisherServer)(nil),
  2641. Methods: []grpc.MethodDesc{
  2642. {
  2643. MethodName: "CreateTopic",
  2644. Handler: _Publisher_CreateTopic_Handler,
  2645. },
  2646. {
  2647. MethodName: "UpdateTopic",
  2648. Handler: _Publisher_UpdateTopic_Handler,
  2649. },
  2650. {
  2651. MethodName: "Publish",
  2652. Handler: _Publisher_Publish_Handler,
  2653. },
  2654. {
  2655. MethodName: "GetTopic",
  2656. Handler: _Publisher_GetTopic_Handler,
  2657. },
  2658. {
  2659. MethodName: "ListTopics",
  2660. Handler: _Publisher_ListTopics_Handler,
  2661. },
  2662. {
  2663. MethodName: "ListTopicSubscriptions",
  2664. Handler: _Publisher_ListTopicSubscriptions_Handler,
  2665. },
  2666. {
  2667. MethodName: "ListTopicSnapshots",
  2668. Handler: _Publisher_ListTopicSnapshots_Handler,
  2669. },
  2670. {
  2671. MethodName: "DeleteTopic",
  2672. Handler: _Publisher_DeleteTopic_Handler,
  2673. },
  2674. },
  2675. Streams: []grpc.StreamDesc{},
  2676. Metadata: "google/pubsub/v1/pubsub.proto",
  2677. }
  2678. // SubscriberClient is the client API for Subscriber service.
  2679. //
  2680. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2681. type SubscriberClient interface {
  2682. // Creates a subscription to a given topic. See the
  2683. // <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
  2684. // resource name rules</a>.
  2685. // If the subscription already exists, returns `ALREADY_EXISTS`.
  2686. // If the corresponding topic doesn't exist, returns `NOT_FOUND`.
  2687. //
  2688. // If the name is not provided in the request, the server will assign a random
  2689. // name for this subscription on the same project as the topic, conforming
  2690. // to the
  2691. // [resource name
  2692. // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
  2693. // generated name is populated in the returned Subscription object. Note that
  2694. // for REST API requests, you must specify a name in the request.
  2695. CreateSubscription(ctx context.Context, in *Subscription, opts ...grpc.CallOption) (*Subscription, error)
  2696. // Gets the configuration details of a subscription.
  2697. GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error)
  2698. // Updates an existing subscription. Note that certain properties of a
  2699. // subscription, such as its topic, are not modifiable.
  2700. UpdateSubscription(ctx context.Context, in *UpdateSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error)
  2701. // Lists matching subscriptions.
  2702. ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error)
  2703. // Deletes an existing subscription. All messages retained in the subscription
  2704. // are immediately dropped. Calls to `Pull` after deletion will return
  2705. // `NOT_FOUND`. After a subscription is deleted, a new one may be created with
  2706. // the same name, but the new one has no association with the old
  2707. // subscription or its topic unless the same topic is specified.
  2708. DeleteSubscription(ctx context.Context, in *DeleteSubscriptionRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  2709. // Modifies the ack deadline for a specific message. This method is useful
  2710. // to indicate that more time is needed to process a message by the
  2711. // subscriber, or to make the message available for redelivery if the
  2712. // processing was interrupted. Note that this does not modify the
  2713. // subscription-level `ackDeadlineSeconds` used for subsequent messages.
  2714. ModifyAckDeadline(ctx context.Context, in *ModifyAckDeadlineRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  2715. // Acknowledges the messages associated with the `ack_ids` in the
  2716. // `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
  2717. // from the subscription.
  2718. //
  2719. // Acknowledging a message whose ack deadline has expired may succeed,
  2720. // but such a message may be redelivered later. Acknowledging a message more
  2721. // than once will not result in an error.
  2722. Acknowledge(ctx context.Context, in *AcknowledgeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  2723. // Pulls messages from the server. The server may return `UNAVAILABLE` if
  2724. // there are too many concurrent pull requests pending for the given
  2725. // subscription.
  2726. Pull(ctx context.Context, in *PullRequest, opts ...grpc.CallOption) (*PullResponse, error)
  2727. // Establishes a stream with the server, which sends messages down to the
  2728. // client. The client streams acknowledgements and ack deadline modifications
  2729. // back to the server. The server will close the stream and return the status
  2730. // on any error. The server may close the stream with status `UNAVAILABLE` to
  2731. // reassign server-side resources, in which case, the client should
  2732. // re-establish the stream. Flow control can be achieved by configuring the
  2733. // underlying RPC channel.
  2734. StreamingPull(ctx context.Context, opts ...grpc.CallOption) (Subscriber_StreamingPullClient, error)
  2735. // Modifies the `PushConfig` for a specified subscription.
  2736. //
  2737. // This may be used to change a push subscription to a pull one (signified by
  2738. // an empty `PushConfig`) or vice versa, or change the endpoint URL and other
  2739. // attributes of a push subscription. Messages will accumulate for delivery
  2740. // continuously through the call regardless of changes to the `PushConfig`.
  2741. ModifyPushConfig(ctx context.Context, in *ModifyPushConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  2742. // Gets the configuration details of a snapshot. Snapshots are used in
  2743. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  2744. // operations, which allow you to manage message acknowledgments in bulk. That
  2745. // is, you can set the acknowledgment state of messages in an existing
  2746. // subscription to the state captured by a snapshot.<br><br>
  2747. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2748. // changed in backward-incompatible ways and is not recommended for production
  2749. // use. It is not subject to any SLA or deprecation policy.
  2750. GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error)
  2751. // Lists the existing snapshots. Snapshots are used in
  2752. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  2753. // operations, which allow
  2754. // you to manage message acknowledgments in bulk. That is, you can set the
  2755. // acknowledgment state of messages in an existing subscription to the state
  2756. // captured by a snapshot.<br><br>
  2757. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2758. // changed in backward-incompatible ways and is not recommended for production
  2759. // use. It is not subject to any SLA or deprecation policy.
  2760. ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error)
  2761. // Creates a snapshot from the requested subscription. Snapshots are used in
  2762. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  2763. // operations, which allow
  2764. // you to manage message acknowledgments in bulk. That is, you can set the
  2765. // acknowledgment state of messages in an existing subscription to the state
  2766. // captured by a snapshot.
  2767. // <br><br>
  2768. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2769. // changed in backward-incompatible ways and is not recommended for production
  2770. // use. It is not subject to any SLA or deprecation policy.<br><br>
  2771. // If the snapshot already exists, returns `ALREADY_EXISTS`.
  2772. // If the requested subscription doesn't exist, returns `NOT_FOUND`.
  2773. // If the backlog in the subscription is too old -- and the resulting snapshot
  2774. // would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
  2775. // See also the `Snapshot.expire_time` field. If the name is not provided in
  2776. // the request, the server will assign a random
  2777. // name for this snapshot on the same project as the subscription, conforming
  2778. // to the
  2779. // [resource name
  2780. // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
  2781. // generated name is populated in the returned Snapshot object. Note that for
  2782. // REST API requests, you must specify a name in the request.
  2783. CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error)
  2784. // Updates an existing snapshot. Snapshots are used in
  2785. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  2786. // operations, which allow
  2787. // you to manage message acknowledgments in bulk. That is, you can set the
  2788. // acknowledgment state of messages in an existing subscription to the state
  2789. // captured by a snapshot.<br><br>
  2790. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2791. // changed in backward-incompatible ways and is not recommended for production
  2792. // use. It is not subject to any SLA or deprecation policy.
  2793. // Note that certain properties of a snapshot are not modifiable.
  2794. UpdateSnapshot(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error)
  2795. // Removes an existing snapshot. Snapshots are used in
  2796. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  2797. // operations, which allow
  2798. // you to manage message acknowledgments in bulk. That is, you can set the
  2799. // acknowledgment state of messages in an existing subscription to the state
  2800. // captured by a snapshot.<br><br>
  2801. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2802. // changed in backward-incompatible ways and is not recommended for production
  2803. // use. It is not subject to any SLA or deprecation policy.
  2804. // When the snapshot is deleted, all messages retained in the snapshot
  2805. // are immediately dropped. After a snapshot is deleted, a new one may be
  2806. // created with the same name, but the new one has no association with the old
  2807. // snapshot or its subscription, unless the same subscription is specified.
  2808. DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  2809. // Seeks an existing subscription to a point in time or to a given snapshot,
  2810. // whichever is provided in the request. Snapshots are used in
  2811. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  2812. // operations, which allow
  2813. // you to manage message acknowledgments in bulk. That is, you can set the
  2814. // acknowledgment state of messages in an existing subscription to the state
  2815. // captured by a snapshot. Note that both the subscription and the snapshot
  2816. // must be on the same topic.<br><br>
  2817. // <b>BETA:</b> This feature is part of a beta release. This API might be
  2818. // changed in backward-incompatible ways and is not recommended for production
  2819. // use. It is not subject to any SLA or deprecation policy.
  2820. Seek(ctx context.Context, in *SeekRequest, opts ...grpc.CallOption) (*SeekResponse, error)
  2821. }
  2822. type subscriberClient struct {
  2823. cc *grpc.ClientConn
  2824. }
  2825. func NewSubscriberClient(cc *grpc.ClientConn) SubscriberClient {
  2826. return &subscriberClient{cc}
  2827. }
  2828. func (c *subscriberClient) CreateSubscription(ctx context.Context, in *Subscription, opts ...grpc.CallOption) (*Subscription, error) {
  2829. out := new(Subscription)
  2830. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/CreateSubscription", in, out, opts...)
  2831. if err != nil {
  2832. return nil, err
  2833. }
  2834. return out, nil
  2835. }
  2836. func (c *subscriberClient) GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error) {
  2837. out := new(Subscription)
  2838. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/GetSubscription", in, out, opts...)
  2839. if err != nil {
  2840. return nil, err
  2841. }
  2842. return out, nil
  2843. }
  2844. func (c *subscriberClient) UpdateSubscription(ctx context.Context, in *UpdateSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error) {
  2845. out := new(Subscription)
  2846. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/UpdateSubscription", in, out, opts...)
  2847. if err != nil {
  2848. return nil, err
  2849. }
  2850. return out, nil
  2851. }
  2852. func (c *subscriberClient) ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error) {
  2853. out := new(ListSubscriptionsResponse)
  2854. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/ListSubscriptions", in, out, opts...)
  2855. if err != nil {
  2856. return nil, err
  2857. }
  2858. return out, nil
  2859. }
  2860. func (c *subscriberClient) DeleteSubscription(ctx context.Context, in *DeleteSubscriptionRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  2861. out := new(empty.Empty)
  2862. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/DeleteSubscription", in, out, opts...)
  2863. if err != nil {
  2864. return nil, err
  2865. }
  2866. return out, nil
  2867. }
  2868. func (c *subscriberClient) ModifyAckDeadline(ctx context.Context, in *ModifyAckDeadlineRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  2869. out := new(empty.Empty)
  2870. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/ModifyAckDeadline", in, out, opts...)
  2871. if err != nil {
  2872. return nil, err
  2873. }
  2874. return out, nil
  2875. }
  2876. func (c *subscriberClient) Acknowledge(ctx context.Context, in *AcknowledgeRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  2877. out := new(empty.Empty)
  2878. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/Acknowledge", in, out, opts...)
  2879. if err != nil {
  2880. return nil, err
  2881. }
  2882. return out, nil
  2883. }
  2884. func (c *subscriberClient) Pull(ctx context.Context, in *PullRequest, opts ...grpc.CallOption) (*PullResponse, error) {
  2885. out := new(PullResponse)
  2886. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/Pull", in, out, opts...)
  2887. if err != nil {
  2888. return nil, err
  2889. }
  2890. return out, nil
  2891. }
  2892. func (c *subscriberClient) StreamingPull(ctx context.Context, opts ...grpc.CallOption) (Subscriber_StreamingPullClient, error) {
  2893. stream, err := c.cc.NewStream(ctx, &_Subscriber_serviceDesc.Streams[0], "/google.pubsub.v1.Subscriber/StreamingPull", opts...)
  2894. if err != nil {
  2895. return nil, err
  2896. }
  2897. x := &subscriberStreamingPullClient{stream}
  2898. return x, nil
  2899. }
  2900. type Subscriber_StreamingPullClient interface {
  2901. Send(*StreamingPullRequest) error
  2902. Recv() (*StreamingPullResponse, error)
  2903. grpc.ClientStream
  2904. }
  2905. type subscriberStreamingPullClient struct {
  2906. grpc.ClientStream
  2907. }
  2908. func (x *subscriberStreamingPullClient) Send(m *StreamingPullRequest) error {
  2909. return x.ClientStream.SendMsg(m)
  2910. }
  2911. func (x *subscriberStreamingPullClient) Recv() (*StreamingPullResponse, error) {
  2912. m := new(StreamingPullResponse)
  2913. if err := x.ClientStream.RecvMsg(m); err != nil {
  2914. return nil, err
  2915. }
  2916. return m, nil
  2917. }
  2918. func (c *subscriberClient) ModifyPushConfig(ctx context.Context, in *ModifyPushConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  2919. out := new(empty.Empty)
  2920. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/ModifyPushConfig", in, out, opts...)
  2921. if err != nil {
  2922. return nil, err
  2923. }
  2924. return out, nil
  2925. }
  2926. func (c *subscriberClient) GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error) {
  2927. out := new(Snapshot)
  2928. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/GetSnapshot", in, out, opts...)
  2929. if err != nil {
  2930. return nil, err
  2931. }
  2932. return out, nil
  2933. }
  2934. func (c *subscriberClient) ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error) {
  2935. out := new(ListSnapshotsResponse)
  2936. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/ListSnapshots", in, out, opts...)
  2937. if err != nil {
  2938. return nil, err
  2939. }
  2940. return out, nil
  2941. }
  2942. func (c *subscriberClient) CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error) {
  2943. out := new(Snapshot)
  2944. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/CreateSnapshot", in, out, opts...)
  2945. if err != nil {
  2946. return nil, err
  2947. }
  2948. return out, nil
  2949. }
  2950. func (c *subscriberClient) UpdateSnapshot(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error) {
  2951. out := new(Snapshot)
  2952. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/UpdateSnapshot", in, out, opts...)
  2953. if err != nil {
  2954. return nil, err
  2955. }
  2956. return out, nil
  2957. }
  2958. func (c *subscriberClient) DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  2959. out := new(empty.Empty)
  2960. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/DeleteSnapshot", in, out, opts...)
  2961. if err != nil {
  2962. return nil, err
  2963. }
  2964. return out, nil
  2965. }
  2966. func (c *subscriberClient) Seek(ctx context.Context, in *SeekRequest, opts ...grpc.CallOption) (*SeekResponse, error) {
  2967. out := new(SeekResponse)
  2968. err := c.cc.Invoke(ctx, "/google.pubsub.v1.Subscriber/Seek", in, out, opts...)
  2969. if err != nil {
  2970. return nil, err
  2971. }
  2972. return out, nil
  2973. }
  2974. // SubscriberServer is the server API for Subscriber service.
  2975. type SubscriberServer interface {
  2976. // Creates a subscription to a given topic. See the
  2977. // <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
  2978. // resource name rules</a>.
  2979. // If the subscription already exists, returns `ALREADY_EXISTS`.
  2980. // If the corresponding topic doesn't exist, returns `NOT_FOUND`.
  2981. //
  2982. // If the name is not provided in the request, the server will assign a random
  2983. // name for this subscription on the same project as the topic, conforming
  2984. // to the
  2985. // [resource name
  2986. // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
  2987. // generated name is populated in the returned Subscription object. Note that
  2988. // for REST API requests, you must specify a name in the request.
  2989. CreateSubscription(context.Context, *Subscription) (*Subscription, error)
  2990. // Gets the configuration details of a subscription.
  2991. GetSubscription(context.Context, *GetSubscriptionRequest) (*Subscription, error)
  2992. // Updates an existing subscription. Note that certain properties of a
  2993. // subscription, such as its topic, are not modifiable.
  2994. UpdateSubscription(context.Context, *UpdateSubscriptionRequest) (*Subscription, error)
  2995. // Lists matching subscriptions.
  2996. ListSubscriptions(context.Context, *ListSubscriptionsRequest) (*ListSubscriptionsResponse, error)
  2997. // Deletes an existing subscription. All messages retained in the subscription
  2998. // are immediately dropped. Calls to `Pull` after deletion will return
  2999. // `NOT_FOUND`. After a subscription is deleted, a new one may be created with
  3000. // the same name, but the new one has no association with the old
  3001. // subscription or its topic unless the same topic is specified.
  3002. DeleteSubscription(context.Context, *DeleteSubscriptionRequest) (*empty.Empty, error)
  3003. // Modifies the ack deadline for a specific message. This method is useful
  3004. // to indicate that more time is needed to process a message by the
  3005. // subscriber, or to make the message available for redelivery if the
  3006. // processing was interrupted. Note that this does not modify the
  3007. // subscription-level `ackDeadlineSeconds` used for subsequent messages.
  3008. ModifyAckDeadline(context.Context, *ModifyAckDeadlineRequest) (*empty.Empty, error)
  3009. // Acknowledges the messages associated with the `ack_ids` in the
  3010. // `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
  3011. // from the subscription.
  3012. //
  3013. // Acknowledging a message whose ack deadline has expired may succeed,
  3014. // but such a message may be redelivered later. Acknowledging a message more
  3015. // than once will not result in an error.
  3016. Acknowledge(context.Context, *AcknowledgeRequest) (*empty.Empty, error)
  3017. // Pulls messages from the server. The server may return `UNAVAILABLE` if
  3018. // there are too many concurrent pull requests pending for the given
  3019. // subscription.
  3020. Pull(context.Context, *PullRequest) (*PullResponse, error)
  3021. // Establishes a stream with the server, which sends messages down to the
  3022. // client. The client streams acknowledgements and ack deadline modifications
  3023. // back to the server. The server will close the stream and return the status
  3024. // on any error. The server may close the stream with status `UNAVAILABLE` to
  3025. // reassign server-side resources, in which case, the client should
  3026. // re-establish the stream. Flow control can be achieved by configuring the
  3027. // underlying RPC channel.
  3028. StreamingPull(Subscriber_StreamingPullServer) error
  3029. // Modifies the `PushConfig` for a specified subscription.
  3030. //
  3031. // This may be used to change a push subscription to a pull one (signified by
  3032. // an empty `PushConfig`) or vice versa, or change the endpoint URL and other
  3033. // attributes of a push subscription. Messages will accumulate for delivery
  3034. // continuously through the call regardless of changes to the `PushConfig`.
  3035. ModifyPushConfig(context.Context, *ModifyPushConfigRequest) (*empty.Empty, error)
  3036. // Gets the configuration details of a snapshot. Snapshots are used in
  3037. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  3038. // operations, which allow you to manage message acknowledgments in bulk. That
  3039. // is, you can set the acknowledgment state of messages in an existing
  3040. // subscription to the state captured by a snapshot.<br><br>
  3041. // <b>BETA:</b> This feature is part of a beta release. This API might be
  3042. // changed in backward-incompatible ways and is not recommended for production
  3043. // use. It is not subject to any SLA or deprecation policy.
  3044. GetSnapshot(context.Context, *GetSnapshotRequest) (*Snapshot, error)
  3045. // Lists the existing snapshots. Snapshots are used in
  3046. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  3047. // operations, which allow
  3048. // you to manage message acknowledgments in bulk. That is, you can set the
  3049. // acknowledgment state of messages in an existing subscription to the state
  3050. // captured by a snapshot.<br><br>
  3051. // <b>BETA:</b> This feature is part of a beta release. This API might be
  3052. // changed in backward-incompatible ways and is not recommended for production
  3053. // use. It is not subject to any SLA or deprecation policy.
  3054. ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
  3055. // Creates a snapshot from the requested subscription. Snapshots are used in
  3056. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  3057. // operations, which allow
  3058. // you to manage message acknowledgments in bulk. That is, you can set the
  3059. // acknowledgment state of messages in an existing subscription to the state
  3060. // captured by a snapshot.
  3061. // <br><br>
  3062. // <b>BETA:</b> This feature is part of a beta release. This API might be
  3063. // changed in backward-incompatible ways and is not recommended for production
  3064. // use. It is not subject to any SLA or deprecation policy.<br><br>
  3065. // If the snapshot already exists, returns `ALREADY_EXISTS`.
  3066. // If the requested subscription doesn't exist, returns `NOT_FOUND`.
  3067. // If the backlog in the subscription is too old -- and the resulting snapshot
  3068. // would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
  3069. // See also the `Snapshot.expire_time` field. If the name is not provided in
  3070. // the request, the server will assign a random
  3071. // name for this snapshot on the same project as the subscription, conforming
  3072. // to the
  3073. // [resource name
  3074. // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
  3075. // generated name is populated in the returned Snapshot object. Note that for
  3076. // REST API requests, you must specify a name in the request.
  3077. CreateSnapshot(context.Context, *CreateSnapshotRequest) (*Snapshot, error)
  3078. // Updates an existing snapshot. Snapshots are used in
  3079. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  3080. // operations, which allow
  3081. // you to manage message acknowledgments in bulk. That is, you can set the
  3082. // acknowledgment state of messages in an existing subscription to the state
  3083. // captured by a snapshot.<br><br>
  3084. // <b>BETA:</b> This feature is part of a beta release. This API might be
  3085. // changed in backward-incompatible ways and is not recommended for production
  3086. // use. It is not subject to any SLA or deprecation policy.
  3087. // Note that certain properties of a snapshot are not modifiable.
  3088. UpdateSnapshot(context.Context, *UpdateSnapshotRequest) (*Snapshot, error)
  3089. // Removes an existing snapshot. Snapshots are used in
  3090. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  3091. // operations, which allow
  3092. // you to manage message acknowledgments in bulk. That is, you can set the
  3093. // acknowledgment state of messages in an existing subscription to the state
  3094. // captured by a snapshot.<br><br>
  3095. // <b>BETA:</b> This feature is part of a beta release. This API might be
  3096. // changed in backward-incompatible ways and is not recommended for production
  3097. // use. It is not subject to any SLA or deprecation policy.
  3098. // When the snapshot is deleted, all messages retained in the snapshot
  3099. // are immediately dropped. After a snapshot is deleted, a new one may be
  3100. // created with the same name, but the new one has no association with the old
  3101. // snapshot or its subscription, unless the same subscription is specified.
  3102. DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*empty.Empty, error)
  3103. // Seeks an existing subscription to a point in time or to a given snapshot,
  3104. // whichever is provided in the request. Snapshots are used in
  3105. // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
  3106. // operations, which allow
  3107. // you to manage message acknowledgments in bulk. That is, you can set the
  3108. // acknowledgment state of messages in an existing subscription to the state
  3109. // captured by a snapshot. Note that both the subscription and the snapshot
  3110. // must be on the same topic.<br><br>
  3111. // <b>BETA:</b> This feature is part of a beta release. This API might be
  3112. // changed in backward-incompatible ways and is not recommended for production
  3113. // use. It is not subject to any SLA or deprecation policy.
  3114. Seek(context.Context, *SeekRequest) (*SeekResponse, error)
  3115. }
  3116. func RegisterSubscriberServer(s *grpc.Server, srv SubscriberServer) {
  3117. s.RegisterService(&_Subscriber_serviceDesc, srv)
  3118. }
  3119. func _Subscriber_CreateSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3120. in := new(Subscription)
  3121. if err := dec(in); err != nil {
  3122. return nil, err
  3123. }
  3124. if interceptor == nil {
  3125. return srv.(SubscriberServer).CreateSubscription(ctx, in)
  3126. }
  3127. info := &grpc.UnaryServerInfo{
  3128. Server: srv,
  3129. FullMethod: "/google.pubsub.v1.Subscriber/CreateSubscription",
  3130. }
  3131. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3132. return srv.(SubscriberServer).CreateSubscription(ctx, req.(*Subscription))
  3133. }
  3134. return interceptor(ctx, in, info, handler)
  3135. }
  3136. func _Subscriber_GetSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3137. in := new(GetSubscriptionRequest)
  3138. if err := dec(in); err != nil {
  3139. return nil, err
  3140. }
  3141. if interceptor == nil {
  3142. return srv.(SubscriberServer).GetSubscription(ctx, in)
  3143. }
  3144. info := &grpc.UnaryServerInfo{
  3145. Server: srv,
  3146. FullMethod: "/google.pubsub.v1.Subscriber/GetSubscription",
  3147. }
  3148. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3149. return srv.(SubscriberServer).GetSubscription(ctx, req.(*GetSubscriptionRequest))
  3150. }
  3151. return interceptor(ctx, in, info, handler)
  3152. }
  3153. func _Subscriber_UpdateSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3154. in := new(UpdateSubscriptionRequest)
  3155. if err := dec(in); err != nil {
  3156. return nil, err
  3157. }
  3158. if interceptor == nil {
  3159. return srv.(SubscriberServer).UpdateSubscription(ctx, in)
  3160. }
  3161. info := &grpc.UnaryServerInfo{
  3162. Server: srv,
  3163. FullMethod: "/google.pubsub.v1.Subscriber/UpdateSubscription",
  3164. }
  3165. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3166. return srv.(SubscriberServer).UpdateSubscription(ctx, req.(*UpdateSubscriptionRequest))
  3167. }
  3168. return interceptor(ctx, in, info, handler)
  3169. }
  3170. func _Subscriber_ListSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3171. in := new(ListSubscriptionsRequest)
  3172. if err := dec(in); err != nil {
  3173. return nil, err
  3174. }
  3175. if interceptor == nil {
  3176. return srv.(SubscriberServer).ListSubscriptions(ctx, in)
  3177. }
  3178. info := &grpc.UnaryServerInfo{
  3179. Server: srv,
  3180. FullMethod: "/google.pubsub.v1.Subscriber/ListSubscriptions",
  3181. }
  3182. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3183. return srv.(SubscriberServer).ListSubscriptions(ctx, req.(*ListSubscriptionsRequest))
  3184. }
  3185. return interceptor(ctx, in, info, handler)
  3186. }
  3187. func _Subscriber_DeleteSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3188. in := new(DeleteSubscriptionRequest)
  3189. if err := dec(in); err != nil {
  3190. return nil, err
  3191. }
  3192. if interceptor == nil {
  3193. return srv.(SubscriberServer).DeleteSubscription(ctx, in)
  3194. }
  3195. info := &grpc.UnaryServerInfo{
  3196. Server: srv,
  3197. FullMethod: "/google.pubsub.v1.Subscriber/DeleteSubscription",
  3198. }
  3199. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3200. return srv.(SubscriberServer).DeleteSubscription(ctx, req.(*DeleteSubscriptionRequest))
  3201. }
  3202. return interceptor(ctx, in, info, handler)
  3203. }
  3204. func _Subscriber_ModifyAckDeadline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3205. in := new(ModifyAckDeadlineRequest)
  3206. if err := dec(in); err != nil {
  3207. return nil, err
  3208. }
  3209. if interceptor == nil {
  3210. return srv.(SubscriberServer).ModifyAckDeadline(ctx, in)
  3211. }
  3212. info := &grpc.UnaryServerInfo{
  3213. Server: srv,
  3214. FullMethod: "/google.pubsub.v1.Subscriber/ModifyAckDeadline",
  3215. }
  3216. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3217. return srv.(SubscriberServer).ModifyAckDeadline(ctx, req.(*ModifyAckDeadlineRequest))
  3218. }
  3219. return interceptor(ctx, in, info, handler)
  3220. }
  3221. func _Subscriber_Acknowledge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3222. in := new(AcknowledgeRequest)
  3223. if err := dec(in); err != nil {
  3224. return nil, err
  3225. }
  3226. if interceptor == nil {
  3227. return srv.(SubscriberServer).Acknowledge(ctx, in)
  3228. }
  3229. info := &grpc.UnaryServerInfo{
  3230. Server: srv,
  3231. FullMethod: "/google.pubsub.v1.Subscriber/Acknowledge",
  3232. }
  3233. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3234. return srv.(SubscriberServer).Acknowledge(ctx, req.(*AcknowledgeRequest))
  3235. }
  3236. return interceptor(ctx, in, info, handler)
  3237. }
  3238. func _Subscriber_Pull_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3239. in := new(PullRequest)
  3240. if err := dec(in); err != nil {
  3241. return nil, err
  3242. }
  3243. if interceptor == nil {
  3244. return srv.(SubscriberServer).Pull(ctx, in)
  3245. }
  3246. info := &grpc.UnaryServerInfo{
  3247. Server: srv,
  3248. FullMethod: "/google.pubsub.v1.Subscriber/Pull",
  3249. }
  3250. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3251. return srv.(SubscriberServer).Pull(ctx, req.(*PullRequest))
  3252. }
  3253. return interceptor(ctx, in, info, handler)
  3254. }
  3255. func _Subscriber_StreamingPull_Handler(srv interface{}, stream grpc.ServerStream) error {
  3256. return srv.(SubscriberServer).StreamingPull(&subscriberStreamingPullServer{stream})
  3257. }
  3258. type Subscriber_StreamingPullServer interface {
  3259. Send(*StreamingPullResponse) error
  3260. Recv() (*StreamingPullRequest, error)
  3261. grpc.ServerStream
  3262. }
  3263. type subscriberStreamingPullServer struct {
  3264. grpc.ServerStream
  3265. }
  3266. func (x *subscriberStreamingPullServer) Send(m *StreamingPullResponse) error {
  3267. return x.ServerStream.SendMsg(m)
  3268. }
  3269. func (x *subscriberStreamingPullServer) Recv() (*StreamingPullRequest, error) {
  3270. m := new(StreamingPullRequest)
  3271. if err := x.ServerStream.RecvMsg(m); err != nil {
  3272. return nil, err
  3273. }
  3274. return m, nil
  3275. }
  3276. func _Subscriber_ModifyPushConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3277. in := new(ModifyPushConfigRequest)
  3278. if err := dec(in); err != nil {
  3279. return nil, err
  3280. }
  3281. if interceptor == nil {
  3282. return srv.(SubscriberServer).ModifyPushConfig(ctx, in)
  3283. }
  3284. info := &grpc.UnaryServerInfo{
  3285. Server: srv,
  3286. FullMethod: "/google.pubsub.v1.Subscriber/ModifyPushConfig",
  3287. }
  3288. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3289. return srv.(SubscriberServer).ModifyPushConfig(ctx, req.(*ModifyPushConfigRequest))
  3290. }
  3291. return interceptor(ctx, in, info, handler)
  3292. }
  3293. func _Subscriber_GetSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3294. in := new(GetSnapshotRequest)
  3295. if err := dec(in); err != nil {
  3296. return nil, err
  3297. }
  3298. if interceptor == nil {
  3299. return srv.(SubscriberServer).GetSnapshot(ctx, in)
  3300. }
  3301. info := &grpc.UnaryServerInfo{
  3302. Server: srv,
  3303. FullMethod: "/google.pubsub.v1.Subscriber/GetSnapshot",
  3304. }
  3305. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3306. return srv.(SubscriberServer).GetSnapshot(ctx, req.(*GetSnapshotRequest))
  3307. }
  3308. return interceptor(ctx, in, info, handler)
  3309. }
  3310. func _Subscriber_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3311. in := new(ListSnapshotsRequest)
  3312. if err := dec(in); err != nil {
  3313. return nil, err
  3314. }
  3315. if interceptor == nil {
  3316. return srv.(SubscriberServer).ListSnapshots(ctx, in)
  3317. }
  3318. info := &grpc.UnaryServerInfo{
  3319. Server: srv,
  3320. FullMethod: "/google.pubsub.v1.Subscriber/ListSnapshots",
  3321. }
  3322. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3323. return srv.(SubscriberServer).ListSnapshots(ctx, req.(*ListSnapshotsRequest))
  3324. }
  3325. return interceptor(ctx, in, info, handler)
  3326. }
  3327. func _Subscriber_CreateSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3328. in := new(CreateSnapshotRequest)
  3329. if err := dec(in); err != nil {
  3330. return nil, err
  3331. }
  3332. if interceptor == nil {
  3333. return srv.(SubscriberServer).CreateSnapshot(ctx, in)
  3334. }
  3335. info := &grpc.UnaryServerInfo{
  3336. Server: srv,
  3337. FullMethod: "/google.pubsub.v1.Subscriber/CreateSnapshot",
  3338. }
  3339. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3340. return srv.(SubscriberServer).CreateSnapshot(ctx, req.(*CreateSnapshotRequest))
  3341. }
  3342. return interceptor(ctx, in, info, handler)
  3343. }
  3344. func _Subscriber_UpdateSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3345. in := new(UpdateSnapshotRequest)
  3346. if err := dec(in); err != nil {
  3347. return nil, err
  3348. }
  3349. if interceptor == nil {
  3350. return srv.(SubscriberServer).UpdateSnapshot(ctx, in)
  3351. }
  3352. info := &grpc.UnaryServerInfo{
  3353. Server: srv,
  3354. FullMethod: "/google.pubsub.v1.Subscriber/UpdateSnapshot",
  3355. }
  3356. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3357. return srv.(SubscriberServer).UpdateSnapshot(ctx, req.(*UpdateSnapshotRequest))
  3358. }
  3359. return interceptor(ctx, in, info, handler)
  3360. }
  3361. func _Subscriber_DeleteSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3362. in := new(DeleteSnapshotRequest)
  3363. if err := dec(in); err != nil {
  3364. return nil, err
  3365. }
  3366. if interceptor == nil {
  3367. return srv.(SubscriberServer).DeleteSnapshot(ctx, in)
  3368. }
  3369. info := &grpc.UnaryServerInfo{
  3370. Server: srv,
  3371. FullMethod: "/google.pubsub.v1.Subscriber/DeleteSnapshot",
  3372. }
  3373. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3374. return srv.(SubscriberServer).DeleteSnapshot(ctx, req.(*DeleteSnapshotRequest))
  3375. }
  3376. return interceptor(ctx, in, info, handler)
  3377. }
  3378. func _Subscriber_Seek_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  3379. in := new(SeekRequest)
  3380. if err := dec(in); err != nil {
  3381. return nil, err
  3382. }
  3383. if interceptor == nil {
  3384. return srv.(SubscriberServer).Seek(ctx, in)
  3385. }
  3386. info := &grpc.UnaryServerInfo{
  3387. Server: srv,
  3388. FullMethod: "/google.pubsub.v1.Subscriber/Seek",
  3389. }
  3390. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  3391. return srv.(SubscriberServer).Seek(ctx, req.(*SeekRequest))
  3392. }
  3393. return interceptor(ctx, in, info, handler)
  3394. }
  3395. var _Subscriber_serviceDesc = grpc.ServiceDesc{
  3396. ServiceName: "google.pubsub.v1.Subscriber",
  3397. HandlerType: (*SubscriberServer)(nil),
  3398. Methods: []grpc.MethodDesc{
  3399. {
  3400. MethodName: "CreateSubscription",
  3401. Handler: _Subscriber_CreateSubscription_Handler,
  3402. },
  3403. {
  3404. MethodName: "GetSubscription",
  3405. Handler: _Subscriber_GetSubscription_Handler,
  3406. },
  3407. {
  3408. MethodName: "UpdateSubscription",
  3409. Handler: _Subscriber_UpdateSubscription_Handler,
  3410. },
  3411. {
  3412. MethodName: "ListSubscriptions",
  3413. Handler: _Subscriber_ListSubscriptions_Handler,
  3414. },
  3415. {
  3416. MethodName: "DeleteSubscription",
  3417. Handler: _Subscriber_DeleteSubscription_Handler,
  3418. },
  3419. {
  3420. MethodName: "ModifyAckDeadline",
  3421. Handler: _Subscriber_ModifyAckDeadline_Handler,
  3422. },
  3423. {
  3424. MethodName: "Acknowledge",
  3425. Handler: _Subscriber_Acknowledge_Handler,
  3426. },
  3427. {
  3428. MethodName: "Pull",
  3429. Handler: _Subscriber_Pull_Handler,
  3430. },
  3431. {
  3432. MethodName: "ModifyPushConfig",
  3433. Handler: _Subscriber_ModifyPushConfig_Handler,
  3434. },
  3435. {
  3436. MethodName: "GetSnapshot",
  3437. Handler: _Subscriber_GetSnapshot_Handler,
  3438. },
  3439. {
  3440. MethodName: "ListSnapshots",
  3441. Handler: _Subscriber_ListSnapshots_Handler,
  3442. },
  3443. {
  3444. MethodName: "CreateSnapshot",
  3445. Handler: _Subscriber_CreateSnapshot_Handler,
  3446. },
  3447. {
  3448. MethodName: "UpdateSnapshot",
  3449. Handler: _Subscriber_UpdateSnapshot_Handler,
  3450. },
  3451. {
  3452. MethodName: "DeleteSnapshot",
  3453. Handler: _Subscriber_DeleteSnapshot_Handler,
  3454. },
  3455. {
  3456. MethodName: "Seek",
  3457. Handler: _Subscriber_Seek_Handler,
  3458. },
  3459. },
  3460. Streams: []grpc.StreamDesc{
  3461. {
  3462. StreamName: "StreamingPull",
  3463. Handler: _Subscriber_StreamingPull_Handler,
  3464. ServerStreams: true,
  3465. ClientStreams: true,
  3466. },
  3467. },
  3468. Metadata: "google/pubsub/v1/pubsub.proto",
  3469. }
  3470. func init() {
  3471. proto.RegisterFile("google/pubsub/v1/pubsub.proto", fileDescriptor_pubsub_1b403a4032d20168)
  3472. }
  3473. var fileDescriptor_pubsub_1b403a4032d20168 = []byte{
  3474. // 2354 bytes of a gzipped FileDescriptorProto
  3475. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5a, 0xcd, 0x73, 0x1b, 0x49,
  3476. 0x15, 0xcf, 0xc8, 0x8e, 0x23, 0x3d, 0xd9, 0x89, 0xdd, 0x6b, 0x27, 0xf2, 0xe4, 0xcb, 0x99, 0x0d,
  3477. 0xb1, 0xa3, 0x24, 0x92, 0xad, 0xd4, 0x86, 0x8d, 0x83, 0x93, 0xb2, 0xe3, 0x90, 0x04, 0x12, 0x62,
  3478. 0xc6, 0x21, 0x54, 0x41, 0x0a, 0xd5, 0x68, 0xa6, 0x2d, 0xcf, 0x6a, 0x34, 0x33, 0x3b, 0x33, 0xf2,
  3479. 0xc6, 0x0b, 0xa1, 0xc2, 0x2e, 0xb5, 0x55, 0x14, 0x39, 0xb0, 0x70, 0xdd, 0x03, 0x05, 0x37, 0x0e,
  3480. 0x1c, 0xf8, 0x07, 0xb8, 0x73, 0xe5, 0xc0, 0x3f, 0xc0, 0x89, 0xe2, 0xc2, 0x0d, 0x0e, 0x54, 0x51,
  3481. 0xfd, 0x31, 0xa3, 0xf9, 0xe8, 0x91, 0x2c, 0x9b, 0xdc, 0x34, 0xfd, 0x5e, 0xf7, 0xfb, 0xf5, 0xfb,
  3482. 0xec, 0xf7, 0x4a, 0x70, 0xbe, 0xed, 0x38, 0x6d, 0x0b, 0xd7, 0xdd, 0x5e, 0xcb, 0xef, 0xb5, 0xea,
  3483. 0x7b, 0x2b, 0xfc, 0x57, 0xcd, 0xf5, 0x9c, 0xc0, 0x41, 0xd3, 0x8c, 0x5c, 0xe3, 0x8b, 0x7b, 0x2b,
  3484. 0xf2, 0x39, 0xbe, 0x41, 0x73, 0xcd, 0xba, 0x66, 0xdb, 0x4e, 0xa0, 0x05, 0xa6, 0x63, 0xfb, 0x8c,
  3485. 0x5f, 0xbe, 0x10, 0x1e, 0x47, 0xbe, 0x5a, 0xbd, 0x9d, 0xba, 0xd1, 0xf3, 0x28, 0x03, 0xa7, 0x9f,
  3486. 0x4d, 0xd3, 0x71, 0xd7, 0x0d, 0xf6, 0x39, 0x71, 0x21, 0x4d, 0xdc, 0x31, 0xb1, 0x65, 0x34, 0xbb,
  3487. 0x9a, 0xdf, 0xe1, 0x1c, 0x17, 0xd3, 0x1c, 0x81, 0xd9, 0xc5, 0x7e, 0xa0, 0x75, 0x5d, 0xc6, 0xa0,
  3488. 0xbc, 0x80, 0xd9, 0xa7, 0xd8, 0xf7, 0xb5, 0x36, 0xde, 0x0e, 0x1c, 0x4f, 0x6b, 0xe3, 0x2d, 0xc7,
  3489. 0x32, 0xf5, 0x7d, 0x74, 0x17, 0xce, 0x6a, 0x96, 0xe5, 0x7c, 0x82, 0x8d, 0xa6, 0x8b, 0x3d, 0xdf,
  3490. 0xf4, 0x03, 0x6c, 0xeb, 0xb8, 0xe9, 0xe1, 0x36, 0x01, 0x5f, 0x91, 0x16, 0xc6, 0x96, 0x4a, 0xea,
  3491. 0x3c, 0x67, 0xd9, 0xea, 0x73, 0xa8, 0x8c, 0x41, 0xf9, 0x97, 0x04, 0xc7, 0x9f, 0x3b, 0xae, 0xa9,
  3492. 0x23, 0x04, 0xe3, 0xb6, 0xd6, 0xc5, 0x15, 0x69, 0x41, 0x5a, 0x2a, 0xa9, 0xf4, 0x37, 0xba, 0x03,
  3493. 0x13, 0x96, 0xd6, 0xc2, 0x96, 0x5f, 0x29, 0x2c, 0x8c, 0x2d, 0x95, 0x1b, 0xef, 0xd7, 0xd2, 0x6a,
  3494. 0xab, 0xd1, 0xcd, 0xb5, 0x27, 0x94, 0xeb, 0x81, 0x1d, 0x78, 0xfb, 0x2a, 0xdf, 0x82, 0x5e, 0xc2,
  3495. 0xe9, 0x2e, 0x83, 0xdc, 0xf4, 0x19, 0xe6, 0xa6, 0x4b, 0x41, 0x57, 0xc6, 0x16, 0xa4, 0xa5, 0x72,
  3496. 0xe3, 0x4a, 0xf6, 0x30, 0xd1, 0x15, 0xd5, 0xd9, 0xae, 0x60, 0x55, 0xbe, 0x0d, 0xe5, 0x98, 0x50,
  3497. 0x34, 0x0d, 0x63, 0x1d, 0xbc, 0xcf, 0xc1, 0x93, 0x9f, 0x68, 0x16, 0x8e, 0xef, 0x69, 0x56, 0x0f,
  3498. 0x57, 0x0a, 0x74, 0x8d, 0x7d, 0xac, 0x16, 0x3e, 0x94, 0x94, 0x2f, 0x0b, 0x30, 0xb5, 0x45, 0x65,
  3499. 0x72, 0x79, 0xe4, 0xee, 0x86, 0x16, 0x68, 0x74, 0xfb, 0xa4, 0x4a, 0x7f, 0xa3, 0x67, 0x00, 0x5a,
  3500. 0x10, 0x78, 0x66, 0xab, 0x17, 0xe0, 0xf0, 0xfe, 0xf5, 0x2c, 0xe4, 0xc4, 0x41, 0xb5, 0xf5, 0x68,
  3501. 0x07, 0xd3, 0x45, 0xec, 0x08, 0x74, 0x1e, 0x20, 0xd4, 0x87, 0x69, 0x50, 0x1d, 0x94, 0xd4, 0x12,
  3502. 0x5f, 0x79, 0x6c, 0xa0, 0x35, 0x98, 0x74, 0x7b, 0x2d, 0xcb, 0xf4, 0x77, 0x9b, 0xc4, 0xf8, 0x95,
  3503. 0x71, 0xaa, 0x24, 0x39, 0x92, 0xc8, 0x3d, 0xa3, 0xf6, 0x3c, 0xf4, 0x0c, 0xb5, 0xcc, 0xf9, 0xc9,
  3504. 0x8a, 0xbc, 0x06, 0xa7, 0x52, 0xc2, 0x47, 0xd2, 0xc9, 0x22, 0x9c, 0x7a, 0x88, 0x03, 0x6a, 0x4c,
  3505. 0x15, 0x7f, 0xdc, 0xc3, 0x7e, 0x40, 0x98, 0x03, 0xf2, 0xcd, 0x0f, 0x60, 0x1f, 0xca, 0x1b, 0x09,
  3506. 0xd0, 0xf7, 0x5c, 0x43, 0x0b, 0x70, 0x82, 0xf9, 0x46, 0x9c, 0xb9, 0xdc, 0x38, 0x93, 0xe3, 0x28,
  3507. 0xfc, 0x14, 0x74, 0x07, 0xca, 0x3d, 0x7a, 0x08, 0x0d, 0x02, 0x0a, 0x47, 0x74, 0xd7, 0x6f, 0x92,
  3508. 0x38, 0x79, 0xaa, 0xf9, 0x1d, 0x15, 0x18, 0x3b, 0xf9, 0xad, 0xe8, 0x70, 0x72, 0x8b, 0xdd, 0x7c,
  3509. 0x20, 0x54, 0x74, 0x07, 0x8a, 0x5c, 0xbd, 0xa1, 0xfd, 0x2e, 0x0e, 0xb1, 0x9f, 0x1a, 0x6d, 0x50,
  3510. 0x1a, 0x70, 0x2a, 0x12, 0xe2, 0xbb, 0x8e, 0xed, 0x63, 0x74, 0x11, 0xca, 0x7d, 0x03, 0x86, 0xb1,
  3511. 0x05, 0x91, 0x05, 0x7d, 0xc5, 0x84, 0x99, 0x27, 0xa6, 0xcf, 0xb4, 0xe8, 0x87, 0xd8, 0x2a, 0x70,
  3512. 0xc2, 0xf5, 0x9c, 0x8f, 0xb0, 0x1e, 0x70, 0x74, 0xe1, 0x27, 0x3a, 0x0b, 0x25, 0x97, 0x46, 0x87,
  3513. 0xf9, 0x29, 0xb3, 0xc8, 0x71, 0xb5, 0x48, 0x16, 0xb6, 0xcd, 0x4f, 0x31, 0xf1, 0x16, 0x4a, 0x0c,
  3514. 0x9c, 0x0e, 0xb6, 0x43, 0x6f, 0x21, 0x2b, 0xcf, 0xc9, 0x82, 0xd2, 0x05, 0x14, 0x17, 0xc5, 0x11,
  3515. 0xd6, 0x61, 0x82, 0x5e, 0x9d, 0x81, 0x1b, 0x60, 0x06, 0xce, 0x86, 0xae, 0xc0, 0x29, 0x1b, 0xbf,
  3516. 0x0a, 0x9a, 0x31, 0x51, 0xcc, 0x35, 0xa6, 0xc8, 0xf2, 0x56, 0x24, 0xee, 0x63, 0x38, 0x1f, 0x89,
  3517. 0xdb, 0xee, 0xb5, 0x7c, 0xdd, 0x33, 0x5d, 0x9a, 0x1e, 0x07, 0x5b, 0xe0, 0x28, 0x37, 0xb4, 0xe1,
  3518. 0x42, 0x9e, 0x48, 0x7e, 0xdb, 0xcb, 0x30, 0xe5, 0xc7, 0x09, 0xdc, 0x22, 0xc9, 0xc5, 0x03, 0x5f,
  3519. 0xb1, 0x0b, 0xf3, 0x7d, 0x79, 0xb6, 0xe6, 0xfa, 0xbb, 0x4e, 0xf0, 0x0e, 0xaf, 0xd7, 0x02, 0x59,
  3520. 0x24, 0x8e, 0x5f, 0xed, 0x1c, 0x94, 0xfc, 0x70, 0x91, 0x5f, 0xab, 0xbf, 0x70, 0xe0, 0x2b, 0x55,
  3521. 0x01, 0x6d, 0x62, 0x0b, 0xa7, 0x42, 0x55, 0x1c, 0xd7, 0x5f, 0x8c, 0xc3, 0x64, 0x5c, 0xcd, 0xc2,
  3522. 0x7a, 0x10, 0x6d, 0x2d, 0xc4, 0xd5, 0xb0, 0x06, 0x65, 0xb7, 0xe7, 0xef, 0x36, 0x75, 0xc7, 0xde,
  3523. 0x31, 0xdb, 0x3c, 0x71, 0x9d, 0x13, 0x85, 0x9a, 0xbf, 0x7b, 0x9f, 0xf2, 0xa8, 0xe0, 0x46, 0xbf,
  3524. 0xd1, 0x32, 0xcc, 0x6a, 0x7a, 0xa7, 0x69, 0x60, 0xcd, 0xb0, 0x4c, 0x1b, 0x37, 0x7d, 0xac, 0x3b,
  3525. 0xb6, 0xe1, 0x57, 0x8e, 0x53, 0x85, 0x22, 0x4d, 0xef, 0x6c, 0x72, 0xd2, 0x36, 0xa3, 0xa0, 0x06,
  3526. 0xcc, 0x79, 0x38, 0xd0, 0x4c, 0xbb, 0xa9, 0xe9, 0x1d, 0x6c, 0x34, 0xa3, 0x28, 0x3f, 0xb1, 0x20,
  3527. 0x2d, 0x15, 0xd5, 0xf7, 0x18, 0x71, 0x9d, 0xd0, 0x78, 0x60, 0xfb, 0xe8, 0xfb, 0x20, 0x87, 0xc1,
  3528. 0xeb, 0xe1, 0x00, 0xdb, 0xe4, 0x8e, 0xcd, 0xb0, 0x88, 0x57, 0x8a, 0x14, 0xf3, 0x7c, 0x26, 0x01,
  3529. 0x6d, 0x72, 0x06, 0xb5, 0xc2, 0x37, 0xab, 0xe1, 0xde, 0x90, 0x82, 0x36, 0xa2, 0x1a, 0x59, 0xa2,
  3530. 0x31, 0x57, 0xcd, 0x5e, 0x3c, 0xae, 0x57, 0x61, 0xa9, 0x7c, 0x06, 0x33, 0xf8, 0x95, 0x6b, 0xb2,
  3531. 0x13, 0xc3, 0x2a, 0x59, 0xa6, 0x98, 0x94, 0xec, 0x71, 0x0f, 0x22, 0x56, 0x5e, 0x21, 0xa7, 0x71,
  3532. 0x6a, 0xe5, 0x28, 0xd5, 0xf1, 0x1e, 0x4c, 0xa7, 0x05, 0xa0, 0x6b, 0x30, 0x16, 0x04, 0x16, 0xcf,
  3533. 0xed, 0x03, 0xb4, 0x44, 0xb8, 0x94, 0xff, 0x16, 0x00, 0xfa, 0xa6, 0x46, 0xef, 0xc3, 0x14, 0xf5,
  3534. 0x0e, 0x6c, 0x1b, 0xae, 0x63, 0xda, 0x61, 0x16, 0x9c, 0x24, 0x8b, 0x0f, 0xf8, 0x1a, 0x7a, 0x22,
  3535. 0x28, 0xb6, 0xd7, 0x07, 0x79, 0xd0, 0xc0, 0x4a, 0xfb, 0x10, 0xc0, 0x31, 0x0d, 0x3d, 0x16, 0x7a,
  3536. 0xc2, 0xd7, 0x46, 0xec, 0xb4, 0x67, 0xa6, 0xa1, 0xd3, 0x98, 0x79, 0x74, 0x4c, 0x2d, 0x39, 0xe1,
  3537. 0xc7, 0x11, 0x8b, 0xaa, 0xfc, 0x43, 0x28, 0x45, 0x07, 0x13, 0xa7, 0xf5, 0xb1, 0xb7, 0x67, 0xea,
  3538. 0xb8, 0xa9, 0xe9, 0xba, 0xd3, 0xb3, 0x83, 0x26, 0xee, 0x6a, 0xa6, 0xc5, 0x8f, 0x7a, 0x8f, 0x13,
  3539. 0xd7, 0x19, 0xed, 0x01, 0x21, 0x21, 0x19, 0x8a, 0x5a, 0xcf, 0x30, 0xc9, 0x83, 0x8d, 0x9f, 0x1e,
  3540. 0x7d, 0x6f, 0x9c, 0x81, 0x39, 0xad, 0x17, 0xec, 0x12, 0x6f, 0xd4, 0x99, 0xdf, 0x74, 0x71, 0xb0,
  3541. 0xeb, 0x18, 0x8a, 0x0e, 0xa7, 0x54, 0xac, 0x63, 0x73, 0x2f, 0xf2, 0x7e, 0x34, 0x07, 0x13, 0x24,
  3542. 0xc4, 0x4c, 0x23, 0x8c, 0x79, 0x4d, 0xef, 0x3c, 0x36, 0xd0, 0x6d, 0x38, 0xc1, 0xdd, 0x9a, 0x57,
  3543. 0xe0, 0xa1, 0xf5, 0x31, 0xe4, 0x57, 0xbe, 0x01, 0xa7, 0x1f, 0xe2, 0x20, 0xee, 0xd8, 0x61, 0x7a,
  3544. 0x51, 0x60, 0x32, 0x9e, 0x80, 0x43, 0x73, 0xc7, 0xd7, 0x94, 0xaf, 0x24, 0x98, 0x67, 0x8f, 0x08,
  3545. 0xd1, 0x09, 0x1b, 0x82, 0x13, 0xca, 0x8d, 0x0b, 0x83, 0xe3, 0x2a, 0x29, 0xe1, 0x68, 0x0f, 0x0c,
  3546. 0x17, 0x2a, 0x24, 0x37, 0x0b, 0x0b, 0xdd, 0xbb, 0x29, 0xe7, 0xbf, 0x90, 0x58, 0xf5, 0x11, 0x17,
  3547. 0xba, 0x4d, 0x51, 0xa1, 0x1b, 0xae, 0x91, 0x43, 0x16, 0xc2, 0x7b, 0x30, 0xcf, 0xaa, 0xc6, 0x61,
  3548. 0xad, 0xfb, 0x13, 0x38, 0xf3, 0xd4, 0x31, 0xcc, 0x9d, 0xfd, 0x58, 0xc2, 0x3f, 0xf8, 0xf6, 0x74,
  3549. 0x39, 0x29, 0x8c, 0x56, 0x4e, 0x94, 0xcf, 0x25, 0x28, 0x6f, 0xf5, 0x2c, 0x6b, 0x14, 0x91, 0x37,
  3550. 0x00, 0x79, 0x38, 0xe8, 0x79, 0x76, 0xd3, 0xec, 0x76, 0xb1, 0x61, 0x6a, 0x01, 0xb6, 0xf6, 0xa9,
  3551. 0xe4, 0xa2, 0x3a, 0xc3, 0x28, 0x8f, 0xfb, 0x04, 0x74, 0x09, 0x26, 0xbb, 0xda, 0xab, 0x7e, 0xd9,
  3552. 0x19, 0xa3, 0xc6, 0x2e, 0x77, 0xb5, 0x57, 0x61, 0xb9, 0x51, 0x7e, 0x04, 0x93, 0x0c, 0x04, 0x37,
  3553. 0xe1, 0x77, 0x60, 0xc6, 0xe3, 0x41, 0xd9, 0xdf, 0xc7, 0xcc, 0x78, 0x29, 0x7b, 0xb5, 0x54, 0xfc,
  3554. 0xaa, 0xd3, 0x5e, 0x72, 0xc1, 0x27, 0x0e, 0x53, 0x61, 0x4a, 0x5e, 0xef, 0xd7, 0xc7, 0x51, 0xae,
  3555. 0x7c, 0x06, 0x4e, 0xb0, 0x94, 0xe0, 0x57, 0xc6, 0xe9, 0xfb, 0x62, 0x82, 0xe6, 0x04, 0x3f, 0xb7,
  3556. 0x1c, 0x8f, 0xe5, 0x95, 0x63, 0xe5, 0xbb, 0x80, 0xd6, 0xf5, 0x8e, 0xed, 0x7c, 0x62, 0x61, 0xa3,
  3557. 0x7d, 0x58, 0x10, 0x85, 0x38, 0x08, 0xe5, 0x67, 0x05, 0x98, 0xdd, 0x0e, 0x3c, 0xac, 0x75, 0x4d,
  3558. 0xbb, 0x3d, 0xaa, 0x35, 0xf3, 0x4e, 0x45, 0xb7, 0xe0, 0x4c, 0x97, 0xea, 0x4c, 0x74, 0xbb, 0xb1,
  3559. 0xa5, 0xe3, 0xea, 0x1c, 0x23, 0xa7, 0xdf, 0x1b, 0x1f, 0x64, 0xf7, 0x25, 0x75, 0x37, 0x9b, 0xdc,
  3560. 0xb7, 0xce, 0xc4, 0xad, 0xc1, 0x59, 0x9f, 0xde, 0xa1, 0x39, 0xe0, 0x7d, 0x53, 0x61, 0x2c, 0xeb,
  3561. 0x59, 0xb5, 0xb6, 0x61, 0x2e, 0xa5, 0x82, 0x77, 0xe4, 0x4b, 0x7f, 0x93, 0x60, 0xee, 0xbe, 0x87,
  3562. 0x49, 0x36, 0xe6, 0x4f, 0xcc, 0x50, 0xdb, 0xa2, 0x37, 0x60, 0xda, 0x02, 0x05, 0x81, 0x05, 0xbe,
  3563. 0x1d, 0xbd, 0x89, 0xc6, 0x28, 0xac, 0x9b, 0x59, 0x58, 0x42, 0x81, 0xa2, 0xc7, 0xd1, 0x51, 0xde,
  3564. 0x32, 0x6f, 0x25, 0x98, 0xe3, 0x75, 0x26, 0x75, 0xb3, 0x5b, 0x50, 0x0c, 0xdf, 0xd3, 0xbc, 0xbe,
  3565. 0xc8, 0x82, 0x6c, 0x1a, 0x6e, 0x8a, 0x78, 0x8f, 0x56, 0x57, 0xfe, 0x29, 0x41, 0x31, 0x3c, 0x73,
  3566. 0x84, 0xf7, 0xf5, 0x1d, 0x28, 0xd3, 0x07, 0x1e, 0x66, 0x83, 0x81, 0xb1, 0xa1, 0x83, 0x01, 0x60,
  3567. 0xec, 0x64, 0x01, 0xdd, 0x8d, 0x4c, 0x31, 0x4e, 0x4d, 0x71, 0x25, 0xff, 0x9a, 0xff, 0x6f, 0xed,
  3568. 0x2f, 0x03, 0x22, 0x6f, 0x84, 0x94, 0xe6, 0xe5, 0x94, 0xe6, 0x4b, 0x7d, 0xed, 0x2a, 0x16, 0xcc,
  3569. 0xd2, 0x2a, 0x98, 0x6e, 0xbf, 0xde, 0x4d, 0xd1, 0xdd, 0x87, 0xb9, 0x94, 0x34, 0x1e, 0x60, 0x1f,
  3570. 0xa6, 0xbb, 0xaf, 0xc1, 0xde, 0x71, 0x88, 0xce, 0xec, 0x26, 0xcc, 0xf1, 0x1a, 0x3b, 0x82, 0x76,
  3571. 0x7e, 0x29, 0x41, 0x79, 0x1b, 0xe3, 0xce, 0x28, 0xb9, 0x70, 0x19, 0xc6, 0xa9, 0xd3, 0x14, 0x86,
  3572. 0x39, 0xcd, 0xa3, 0x63, 0x2a, 0xe5, 0x44, 0xe7, 0x62, 0x08, 0xa8, 0xca, 0x1e, 0x1d, 0xeb, 0x63,
  3573. 0xd8, 0x28, 0xc2, 0x44, 0xa0, 0x79, 0x6d, 0x1c, 0x28, 0x27, 0x61, 0x92, 0x81, 0x61, 0x4a, 0x6b,
  3574. 0xfc, 0xb9, 0x08, 0x25, 0x3e, 0x31, 0xc1, 0x1e, 0xfa, 0x08, 0xca, 0x2c, 0xc2, 0xd9, 0x70, 0x31,
  3575. 0x6f, 0x10, 0x21, 0xe7, 0x11, 0x94, 0xab, 0x9f, 0xfd, 0xf5, 0xef, 0xbf, 0x29, 0xbc, 0x2f, 0x5f,
  3576. 0xa8, 0xef, 0xad, 0xd4, 0x7f, 0x4c, 0xa2, 0x63, 0x8d, 0xdb, 0xdc, 0xaf, 0x57, 0xeb, 0x6c, 0x7c,
  3577. 0x51, 0xaf, 0xbe, 0x5e, 0x95, 0xaa, 0xe8, 0x35, 0x94, 0x63, 0x13, 0x29, 0x74, 0x39, 0x7b, 0x64,
  3578. 0x76, 0x60, 0x95, 0x2f, 0xb8, 0x4e, 0x05, 0x5f, 0x6d, 0x5c, 0xa6, 0x82, 0xa9, 0xa0, 0xda, 0x40,
  3579. 0xf1, 0x9f, 0x49, 0x70, 0x82, 0x5f, 0x1c, 0x2d, 0x08, 0x1f, 0xd0, 0xb1, 0x51, 0x95, 0x7c, 0x69,
  3580. 0x00, 0x07, 0xd3, 0xa4, 0xd2, 0xa0, 0x08, 0xae, 0x2b, 0x8b, 0x7d, 0x04, 0x62, 0xe1, 0x7c, 0xfe,
  3581. 0x47, 0x40, 0x38, 0x50, 0x0c, 0xe7, 0x77, 0x48, 0x20, 0x22, 0x35, 0xdb, 0xcb, 0xbf, 0xfd, 0x22,
  3582. 0x95, 0x7d, 0x09, 0x5d, 0x1c, 0x22, 0x1b, 0xbd, 0x91, 0x00, 0xfa, 0x13, 0x28, 0x24, 0x98, 0x0c,
  3583. 0x67, 0x46, 0x61, 0xf2, 0xe5, 0xc1, 0x4c, 0xfc, 0xfa, 0x49, 0x08, 0x5c, 0x78, 0x0c, 0xc4, 0x6b,
  3584. 0x8e, 0x02, 0xfd, 0x49, 0x82, 0xd3, 0xe2, 0x11, 0x11, 0xaa, 0x0f, 0x90, 0x24, 0x7a, 0xd6, 0xcb,
  3585. 0xcb, 0x07, 0xdf, 0xc0, 0x61, 0x7e, 0x40, 0x61, 0xd6, 0xd1, 0x8d, 0x21, 0x9a, 0xaa, 0x27, 0x5f,
  3586. 0xe1, 0xbf, 0x93, 0x62, 0x93, 0xbb, 0x28, 0xf5, 0xa0, 0x6b, 0x83, 0xe4, 0xa7, 0xd2, 0xa1, 0x7c,
  3587. 0xfd, 0x60, 0xcc, 0x1c, 0xe8, 0x0a, 0x05, 0x7a, 0x0d, 0x5d, 0x1d, 0x0a, 0x34, 0x42, 0x13, 0x40,
  3588. 0x39, 0x36, 0x38, 0x12, 0x45, 0x54, 0x76, 0xae, 0x24, 0x9f, 0xce, 0x24, 0x97, 0x07, 0x5d, 0x37,
  3589. 0xd8, 0x0f, 0xed, 0x59, 0x1d, 0xe6, 0x52, 0x8d, 0xff, 0xcc, 0x00, 0x70, 0x5d, 0xb7, 0xb0, 0x87,
  3590. 0xbe, 0x90, 0x00, 0xf1, 0x57, 0x42, 0x3c, 0xa3, 0x0d, 0xe9, 0x7a, 0xe4, 0x21, 0x74, 0x65, 0x99,
  3591. 0xc2, 0xa9, 0xca, 0x5f, 0x13, 0x26, 0x96, 0x84, 0xb1, 0x78, 0x80, 0xff, 0x5a, 0xa2, 0xc3, 0xf1,
  3592. 0x04, 0x8a, 0x25, 0x61, 0x8c, 0x09, 0x3a, 0xa6, 0xa1, 0x78, 0x92, 0x7e, 0x14, 0x97, 0x3f, 0x08,
  3593. 0x17, 0xfa, 0x6d, 0x34, 0x87, 0x4f, 0xe0, 0xba, 0x96, 0x97, 0xfc, 0x0e, 0x03, 0x6d, 0x8d, 0x42,
  3594. 0xfb, 0x7a, 0xa3, 0x91, 0x81, 0x56, 0x3b, 0x88, 0xde, 0xbe, 0x92, 0xd8, 0x3c, 0x3c, 0x19, 0x9a,
  3595. 0x55, 0xb1, 0xf3, 0x0a, 0xa3, 0xf2, 0xda, 0x81, 0x78, 0xb9, 0x9f, 0xd7, 0x28, 0xda, 0x25, 0x74,
  3596. 0x25, 0x37, 0x6f, 0x24, 0x23, 0xf1, 0x57, 0x52, 0x38, 0x1e, 0x1d, 0xa6, 0xc1, 0xdc, 0x76, 0x38,
  3597. 0xd7, 0xe7, 0xb9, 0x51, 0xab, 0x23, 0x1a, 0xf5, 0xf7, 0x12, 0xcc, 0x64, 0xba, 0x3a, 0x91, 0xc6,
  3598. 0xf2, 0x5a, 0xbf, 0x5c, 0x40, 0xdf, 0xa2, 0x80, 0x36, 0x95, 0x7b, 0x23, 0x01, 0x5a, 0xed, 0xa6,
  3599. 0xe5, 0x10, 0xbb, 0x7e, 0x29, 0x41, 0x39, 0xd6, 0xf0, 0x89, 0xd2, 0x43, 0xb6, 0x1f, 0xcc, 0x45,
  3600. 0xb6, 0x49, 0x91, 0xdd, 0x55, 0x6e, 0x8f, 0x86, 0x4c, 0xeb, 0x4b, 0x20, 0x98, 0x7e, 0x2e, 0xc1,
  3601. 0x38, 0x69, 0x92, 0xd0, 0x79, 0x51, 0x7d, 0x8d, 0xfa, 0x47, 0x91, 0xcb, 0xc7, 0x7b, 0xab, 0xd0,
  3602. 0xe5, 0x95, 0xc6, 0x68, 0x68, 0xdc, 0x9e, 0x65, 0x11, 0x18, 0x3b, 0x30, 0x95, 0xe8, 0xd9, 0x90,
  3603. 0xe8, 0xb9, 0x2d, 0xe8, 0x6b, 0xe5, 0xc5, 0xa1, 0x7c, 0x1c, 0xe0, 0xb1, 0x25, 0x69, 0x59, 0x22,
  3604. 0xd1, 0x3f, 0x9d, 0x9e, 0xb1, 0xa0, 0xab, 0x79, 0x7e, 0x92, 0x99, 0xc3, 0xe4, 0x1a, 0xe3, 0x31,
  3605. 0xbd, 0xfe, 0x7d, 0xe5, 0xee, 0x61, 0xdc, 0xa4, 0x2f, 0x86, 0xa8, 0xe2, 0xa7, 0x50, 0x8e, 0xbd,
  3606. 0xfe, 0x45, 0x4e, 0x92, 0x6d, 0x0e, 0xe4, 0x01, 0xcf, 0x6c, 0xe5, 0x06, 0xc5, 0xb6, 0x88, 0x58,
  3607. 0xe2, 0x0e, 0x8b, 0x55, 0x02, 0x57, 0x58, 0xc0, 0x48, 0x2c, 0xbd, 0x95, 0x60, 0x2a, 0xf1, 0xbc,
  3608. 0x17, 0xd9, 0x42, 0xd4, 0x6d, 0x88, 0x6c, 0x21, 0xec, 0x13, 0x94, 0x2a, 0x45, 0x74, 0x19, 0x29,
  3609. 0xf9, 0x19, 0x27, 0x12, 0xfe, 0xb9, 0x04, 0x27, 0x93, 0x3d, 0x2f, 0x5a, 0x3c, 0x60, 0x57, 0x3c,
  3610. 0x50, 0x2b, 0xd7, 0x29, 0x86, 0x2b, 0xf2, 0x25, 0x71, 0x39, 0x8b, 0x69, 0x84, 0x18, 0xe5, 0xad,
  3611. 0x04, 0x27, 0x93, 0x0d, 0xb1, 0x08, 0x85, 0xb0, 0x65, 0x1e, 0x88, 0x82, 0xe7, 0xbb, 0x46, 0x35,
  3612. 0x61, 0x9b, 0xda, 0x30, 0x38, 0x6f, 0x24, 0x38, 0x99, 0xec, 0x83, 0x44, 0x70, 0x84, 0x9d, 0x52,
  3613. 0xae, 0x0b, 0x73, 0x37, 0xa9, 0x1e, 0xd0, 0x4d, 0x48, 0xe2, 0x20, 0x7d, 0x8c, 0x28, 0x71, 0xc4,
  3614. 0x9a, 0x2d, 0x61, 0xad, 0x8c, 0xb5, 0x3f, 0x87, 0x4d, 0x1c, 0x3e, 0xc6, 0x9d, 0x55, 0xa9, 0xba,
  3615. 0xf1, 0x47, 0x09, 0x66, 0x75, 0xa7, 0x9b, 0x11, 0xb2, 0x51, 0x66, 0x03, 0xf8, 0x2d, 0x72, 0xc9,
  3616. 0x2d, 0xe9, 0x07, 0xb7, 0x38, 0x43, 0xdb, 0xb1, 0x34, 0xbb, 0x5d, 0x73, 0xbc, 0x76, 0xbd, 0x8d,
  3617. 0x6d, 0xaa, 0x82, 0x3a, 0x23, 0x69, 0xae, 0xe9, 0xf7, 0xff, 0xf5, 0x72, 0x87, 0xfd, 0xfa, 0xb7,
  3618. 0x24, 0xfd, 0xa1, 0x70, 0xfa, 0x21, 0xdb, 0x7b, 0xdf, 0x72, 0x7a, 0x06, 0xe9, 0x3a, 0xb6, 0x7b,
  3619. 0xad, 0xda, 0x8b, 0x95, 0xbf, 0x84, 0x84, 0x97, 0x94, 0xf0, 0x92, 0x11, 0x5e, 0xbe, 0x58, 0xf9,
  3620. 0x47, 0x61, 0x9e, 0x11, 0x56, 0x57, 0x29, 0x65, 0x75, 0x95, 0x91, 0x56, 0x57, 0x5f, 0xac, 0xb4,
  3621. 0x26, 0xa8, 0xcc, 0x9b, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x86, 0x97, 0x39, 0x68, 0x23,
  3622. 0x00, 0x00,
  3623. }