Documentation ¶
Index ¶
- func RegisterPublisherServer(s *grpc.Server, srv PublisherServer)
- func RegisterSubscriberServer(s *grpc.Server, srv SubscriberServer)
- type AcknowledgeRequest
- func (*AcknowledgeRequest) Descriptor() ([]byte, []int)
- func (m *AcknowledgeRequest) GetAckIds() []string
- func (m *AcknowledgeRequest) GetSubscription() string
- func (*AcknowledgeRequest) ProtoMessage()
- func (m *AcknowledgeRequest) Reset()
- func (m *AcknowledgeRequest) String() string
- func (m *AcknowledgeRequest) XXX_DiscardUnknown()
- func (m *AcknowledgeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AcknowledgeRequest) XXX_Merge(src proto.Message)
- func (m *AcknowledgeRequest) XXX_Size() int
- func (m *AcknowledgeRequest) XXX_Unmarshal(b []byte) error
- type CreateSnapshotRequest
- func (*CreateSnapshotRequest) Descriptor() ([]byte, []int)
- func (m *CreateSnapshotRequest) GetLabels() map[string]string
- func (m *CreateSnapshotRequest) GetName() string
- func (m *CreateSnapshotRequest) GetSubscription() string
- func (*CreateSnapshotRequest) ProtoMessage()
- func (m *CreateSnapshotRequest) Reset()
- func (m *CreateSnapshotRequest) String() string
- func (m *CreateSnapshotRequest) XXX_DiscardUnknown()
- func (m *CreateSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateSnapshotRequest) XXX_Merge(src proto.Message)
- func (m *CreateSnapshotRequest) XXX_Size() int
- func (m *CreateSnapshotRequest) XXX_Unmarshal(b []byte) error
- type DeadLetterPolicy
- func (*DeadLetterPolicy) Descriptor() ([]byte, []int)
- func (m *DeadLetterPolicy) GetDeadLetterTopic() string
- func (m *DeadLetterPolicy) GetMaxDeliveryAttempts() int32
- func (*DeadLetterPolicy) ProtoMessage()
- func (m *DeadLetterPolicy) Reset()
- func (m *DeadLetterPolicy) String() string
- func (m *DeadLetterPolicy) XXX_DiscardUnknown()
- func (m *DeadLetterPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeadLetterPolicy) XXX_Merge(src proto.Message)
- func (m *DeadLetterPolicy) XXX_Size() int
- func (m *DeadLetterPolicy) XXX_Unmarshal(b []byte) error
- type DeleteSnapshotRequest
- func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int)
- func (m *DeleteSnapshotRequest) GetSnapshot() string
- func (*DeleteSnapshotRequest) ProtoMessage()
- func (m *DeleteSnapshotRequest) Reset()
- func (m *DeleteSnapshotRequest) String() string
- func (m *DeleteSnapshotRequest) XXX_DiscardUnknown()
- func (m *DeleteSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteSnapshotRequest) XXX_Merge(src proto.Message)
- func (m *DeleteSnapshotRequest) XXX_Size() int
- func (m *DeleteSnapshotRequest) XXX_Unmarshal(b []byte) error
- type DeleteSubscriptionRequest
- func (*DeleteSubscriptionRequest) Descriptor() ([]byte, []int)
- func (m *DeleteSubscriptionRequest) GetSubscription() string
- func (*DeleteSubscriptionRequest) ProtoMessage()
- func (m *DeleteSubscriptionRequest) Reset()
- func (m *DeleteSubscriptionRequest) String() string
- func (m *DeleteSubscriptionRequest) XXX_DiscardUnknown()
- func (m *DeleteSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteSubscriptionRequest) XXX_Merge(src proto.Message)
- func (m *DeleteSubscriptionRequest) XXX_Size() int
- func (m *DeleteSubscriptionRequest) XXX_Unmarshal(b []byte) error
- type DeleteTopicRequest
- func (*DeleteTopicRequest) Descriptor() ([]byte, []int)
- func (m *DeleteTopicRequest) GetTopic() string
- func (*DeleteTopicRequest) ProtoMessage()
- func (m *DeleteTopicRequest) Reset()
- func (m *DeleteTopicRequest) String() string
- func (m *DeleteTopicRequest) XXX_DiscardUnknown()
- func (m *DeleteTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteTopicRequest) XXX_Merge(src proto.Message)
- func (m *DeleteTopicRequest) XXX_Size() int
- func (m *DeleteTopicRequest) XXX_Unmarshal(b []byte) error
- type ExpirationPolicy
- func (*ExpirationPolicy) Descriptor() ([]byte, []int)
- func (m *ExpirationPolicy) GetTtl() *duration.Duration
- func (*ExpirationPolicy) ProtoMessage()
- func (m *ExpirationPolicy) Reset()
- func (m *ExpirationPolicy) String() string
- func (m *ExpirationPolicy) XXX_DiscardUnknown()
- func (m *ExpirationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExpirationPolicy) XXX_Merge(src proto.Message)
- func (m *ExpirationPolicy) XXX_Size() int
- func (m *ExpirationPolicy) XXX_Unmarshal(b []byte) error
- type GetSnapshotRequest
- func (*GetSnapshotRequest) Descriptor() ([]byte, []int)
- func (m *GetSnapshotRequest) GetSnapshot() string
- func (*GetSnapshotRequest) ProtoMessage()
- func (m *GetSnapshotRequest) Reset()
- func (m *GetSnapshotRequest) String() string
- func (m *GetSnapshotRequest) XXX_DiscardUnknown()
- func (m *GetSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSnapshotRequest) XXX_Merge(src proto.Message)
- func (m *GetSnapshotRequest) XXX_Size() int
- func (m *GetSnapshotRequest) XXX_Unmarshal(b []byte) error
- type GetSubscriptionRequest
- func (*GetSubscriptionRequest) Descriptor() ([]byte, []int)
- func (m *GetSubscriptionRequest) GetSubscription() string
- func (*GetSubscriptionRequest) ProtoMessage()
- func (m *GetSubscriptionRequest) Reset()
- func (m *GetSubscriptionRequest) String() string
- func (m *GetSubscriptionRequest) XXX_DiscardUnknown()
- func (m *GetSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSubscriptionRequest) XXX_Merge(src proto.Message)
- func (m *GetSubscriptionRequest) XXX_Size() int
- func (m *GetSubscriptionRequest) XXX_Unmarshal(b []byte) error
- type GetTopicRequest
- func (*GetTopicRequest) Descriptor() ([]byte, []int)
- func (m *GetTopicRequest) GetTopic() string
- func (*GetTopicRequest) ProtoMessage()
- func (m *GetTopicRequest) Reset()
- func (m *GetTopicRequest) String() string
- func (m *GetTopicRequest) XXX_DiscardUnknown()
- func (m *GetTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTopicRequest) XXX_Merge(src proto.Message)
- func (m *GetTopicRequest) XXX_Size() int
- func (m *GetTopicRequest) XXX_Unmarshal(b []byte) error
- type ListSnapshotsRequest
- func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)
- func (m *ListSnapshotsRequest) GetPageSize() int32
- func (m *ListSnapshotsRequest) GetPageToken() string
- func (m *ListSnapshotsRequest) GetProject() string
- func (*ListSnapshotsRequest) ProtoMessage()
- func (m *ListSnapshotsRequest) Reset()
- func (m *ListSnapshotsRequest) String() string
- func (m *ListSnapshotsRequest) XXX_DiscardUnknown()
- func (m *ListSnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListSnapshotsRequest) XXX_Merge(src proto.Message)
- func (m *ListSnapshotsRequest) XXX_Size() int
- func (m *ListSnapshotsRequest) XXX_Unmarshal(b []byte) error
- type ListSnapshotsResponse
- func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)
- func (m *ListSnapshotsResponse) GetNextPageToken() string
- func (m *ListSnapshotsResponse) GetSnapshots() []*Snapshot
- func (*ListSnapshotsResponse) ProtoMessage()
- func (m *ListSnapshotsResponse) Reset()
- func (m *ListSnapshotsResponse) String() string
- func (m *ListSnapshotsResponse) XXX_DiscardUnknown()
- func (m *ListSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListSnapshotsResponse) XXX_Merge(src proto.Message)
- func (m *ListSnapshotsResponse) XXX_Size() int
- func (m *ListSnapshotsResponse) XXX_Unmarshal(b []byte) error
- type ListSubscriptionsRequest
- func (*ListSubscriptionsRequest) Descriptor() ([]byte, []int)
- func (m *ListSubscriptionsRequest) GetPageSize() int32
- func (m *ListSubscriptionsRequest) GetPageToken() string
- func (m *ListSubscriptionsRequest) GetProject() string
- func (*ListSubscriptionsRequest) ProtoMessage()
- func (m *ListSubscriptionsRequest) Reset()
- func (m *ListSubscriptionsRequest) String() string
- func (m *ListSubscriptionsRequest) XXX_DiscardUnknown()
- func (m *ListSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListSubscriptionsRequest) XXX_Merge(src proto.Message)
- func (m *ListSubscriptionsRequest) XXX_Size() int
- func (m *ListSubscriptionsRequest) XXX_Unmarshal(b []byte) error
- type ListSubscriptionsResponse
- func (*ListSubscriptionsResponse) Descriptor() ([]byte, []int)
- func (m *ListSubscriptionsResponse) GetNextPageToken() string
- func (m *ListSubscriptionsResponse) GetSubscriptions() []*Subscription
- func (*ListSubscriptionsResponse) ProtoMessage()
- func (m *ListSubscriptionsResponse) Reset()
- func (m *ListSubscriptionsResponse) String() string
- func (m *ListSubscriptionsResponse) XXX_DiscardUnknown()
- func (m *ListSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListSubscriptionsResponse) XXX_Merge(src proto.Message)
- func (m *ListSubscriptionsResponse) XXX_Size() int
- func (m *ListSubscriptionsResponse) XXX_Unmarshal(b []byte) error
- type ListTopicSnapshotsRequest
- func (*ListTopicSnapshotsRequest) Descriptor() ([]byte, []int)
- func (m *ListTopicSnapshotsRequest) GetPageSize() int32
- func (m *ListTopicSnapshotsRequest) GetPageToken() string
- func (m *ListTopicSnapshotsRequest) GetTopic() string
- func (*ListTopicSnapshotsRequest) ProtoMessage()
- func (m *ListTopicSnapshotsRequest) Reset()
- func (m *ListTopicSnapshotsRequest) String() string
- func (m *ListTopicSnapshotsRequest) XXX_DiscardUnknown()
- func (m *ListTopicSnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTopicSnapshotsRequest) XXX_Merge(src proto.Message)
- func (m *ListTopicSnapshotsRequest) XXX_Size() int
- func (m *ListTopicSnapshotsRequest) XXX_Unmarshal(b []byte) error
- type ListTopicSnapshotsResponse
- func (*ListTopicSnapshotsResponse) Descriptor() ([]byte, []int)
- func (m *ListTopicSnapshotsResponse) GetNextPageToken() string
- func (m *ListTopicSnapshotsResponse) GetSnapshots() []string
- func (*ListTopicSnapshotsResponse) ProtoMessage()
- func (m *ListTopicSnapshotsResponse) Reset()
- func (m *ListTopicSnapshotsResponse) String() string
- func (m *ListTopicSnapshotsResponse) XXX_DiscardUnknown()
- func (m *ListTopicSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTopicSnapshotsResponse) XXX_Merge(src proto.Message)
- func (m *ListTopicSnapshotsResponse) XXX_Size() int
- func (m *ListTopicSnapshotsResponse) XXX_Unmarshal(b []byte) error
- type ListTopicSubscriptionsRequest
- func (*ListTopicSubscriptionsRequest) Descriptor() ([]byte, []int)
- func (m *ListTopicSubscriptionsRequest) GetPageSize() int32
- func (m *ListTopicSubscriptionsRequest) GetPageToken() string
- func (m *ListTopicSubscriptionsRequest) GetTopic() string
- func (*ListTopicSubscriptionsRequest) ProtoMessage()
- func (m *ListTopicSubscriptionsRequest) Reset()
- func (m *ListTopicSubscriptionsRequest) String() string
- func (m *ListTopicSubscriptionsRequest) XXX_DiscardUnknown()
- func (m *ListTopicSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTopicSubscriptionsRequest) XXX_Merge(src proto.Message)
- func (m *ListTopicSubscriptionsRequest) XXX_Size() int
- func (m *ListTopicSubscriptionsRequest) XXX_Unmarshal(b []byte) error
- type ListTopicSubscriptionsResponse
- func (*ListTopicSubscriptionsResponse) Descriptor() ([]byte, []int)
- func (m *ListTopicSubscriptionsResponse) GetNextPageToken() string
- func (m *ListTopicSubscriptionsResponse) GetSubscriptions() []string
- func (*ListTopicSubscriptionsResponse) ProtoMessage()
- func (m *ListTopicSubscriptionsResponse) Reset()
- func (m *ListTopicSubscriptionsResponse) String() string
- func (m *ListTopicSubscriptionsResponse) XXX_DiscardUnknown()
- func (m *ListTopicSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTopicSubscriptionsResponse) XXX_Merge(src proto.Message)
- func (m *ListTopicSubscriptionsResponse) XXX_Size() int
- func (m *ListTopicSubscriptionsResponse) XXX_Unmarshal(b []byte) error
- type ListTopicsRequest
- func (*ListTopicsRequest) Descriptor() ([]byte, []int)
- func (m *ListTopicsRequest) GetPageSize() int32
- func (m *ListTopicsRequest) GetPageToken() string
- func (m *ListTopicsRequest) GetProject() string
- func (*ListTopicsRequest) ProtoMessage()
- func (m *ListTopicsRequest) Reset()
- func (m *ListTopicsRequest) String() string
- func (m *ListTopicsRequest) XXX_DiscardUnknown()
- func (m *ListTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTopicsRequest) XXX_Merge(src proto.Message)
- func (m *ListTopicsRequest) XXX_Size() int
- func (m *ListTopicsRequest) XXX_Unmarshal(b []byte) error
- type ListTopicsResponse
- func (*ListTopicsResponse) Descriptor() ([]byte, []int)
- func (m *ListTopicsResponse) GetNextPageToken() string
- func (m *ListTopicsResponse) GetTopics() []*Topic
- func (*ListTopicsResponse) ProtoMessage()
- func (m *ListTopicsResponse) Reset()
- func (m *ListTopicsResponse) String() string
- func (m *ListTopicsResponse) XXX_DiscardUnknown()
- func (m *ListTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTopicsResponse) XXX_Merge(src proto.Message)
- func (m *ListTopicsResponse) XXX_Size() int
- func (m *ListTopicsResponse) XXX_Unmarshal(b []byte) error
- type MessageStoragePolicy
- func (*MessageStoragePolicy) Descriptor() ([]byte, []int)
- func (m *MessageStoragePolicy) GetAllowedPersistenceRegions() []string
- func (*MessageStoragePolicy) ProtoMessage()
- func (m *MessageStoragePolicy) Reset()
- func (m *MessageStoragePolicy) String() string
- func (m *MessageStoragePolicy) XXX_DiscardUnknown()
- func (m *MessageStoragePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MessageStoragePolicy) XXX_Merge(src proto.Message)
- func (m *MessageStoragePolicy) XXX_Size() int
- func (m *MessageStoragePolicy) XXX_Unmarshal(b []byte) error
- type ModifyAckDeadlineRequest
- func (*ModifyAckDeadlineRequest) Descriptor() ([]byte, []int)
- func (m *ModifyAckDeadlineRequest) GetAckDeadlineSeconds() int32
- func (m *ModifyAckDeadlineRequest) GetAckIds() []string
- func (m *ModifyAckDeadlineRequest) GetSubscription() string
- func (*ModifyAckDeadlineRequest) ProtoMessage()
- func (m *ModifyAckDeadlineRequest) Reset()
- func (m *ModifyAckDeadlineRequest) String() string
- func (m *ModifyAckDeadlineRequest) XXX_DiscardUnknown()
- func (m *ModifyAckDeadlineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModifyAckDeadlineRequest) XXX_Merge(src proto.Message)
- func (m *ModifyAckDeadlineRequest) XXX_Size() int
- func (m *ModifyAckDeadlineRequest) XXX_Unmarshal(b []byte) error
- type ModifyPushConfigRequest
- func (*ModifyPushConfigRequest) Descriptor() ([]byte, []int)
- func (m *ModifyPushConfigRequest) GetPushConfig() *PushConfig
- func (m *ModifyPushConfigRequest) GetSubscription() string
- func (*ModifyPushConfigRequest) ProtoMessage()
- func (m *ModifyPushConfigRequest) Reset()
- func (m *ModifyPushConfigRequest) String() string
- func (m *ModifyPushConfigRequest) XXX_DiscardUnknown()
- func (m *ModifyPushConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModifyPushConfigRequest) XXX_Merge(src proto.Message)
- func (m *ModifyPushConfigRequest) XXX_Size() int
- func (m *ModifyPushConfigRequest) XXX_Unmarshal(b []byte) error
- type PublishRequest
- func (*PublishRequest) Descriptor() ([]byte, []int)
- func (m *PublishRequest) GetMessages() []*PubsubMessage
- func (m *PublishRequest) GetTopic() string
- func (*PublishRequest) ProtoMessage()
- func (m *PublishRequest) Reset()
- func (m *PublishRequest) String() string
- func (m *PublishRequest) XXX_DiscardUnknown()
- func (m *PublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublishRequest) XXX_Merge(src proto.Message)
- func (m *PublishRequest) XXX_Size() int
- func (m *PublishRequest) XXX_Unmarshal(b []byte) error
- type PublishResponse
- func (*PublishResponse) Descriptor() ([]byte, []int)
- func (m *PublishResponse) GetMessageIds() []string
- func (*PublishResponse) ProtoMessage()
- func (m *PublishResponse) Reset()
- func (m *PublishResponse) String() string
- func (m *PublishResponse) XXX_DiscardUnknown()
- func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublishResponse) XXX_Merge(src proto.Message)
- func (m *PublishResponse) XXX_Size() int
- func (m *PublishResponse) XXX_Unmarshal(b []byte) error
- type PublisherClient
- type PublisherServer
- type PubsubMessage
- func (*PubsubMessage) Descriptor() ([]byte, []int)
- func (m *PubsubMessage) GetAttributes() map[string]string
- func (m *PubsubMessage) GetData() []byte
- func (m *PubsubMessage) GetMessageId() string
- func (m *PubsubMessage) GetOrderingKey() string
- func (m *PubsubMessage) GetPublishTime() *timestamp.Timestamp
- func (*PubsubMessage) ProtoMessage()
- func (m *PubsubMessage) Reset()
- func (m *PubsubMessage) String() string
- func (m *PubsubMessage) XXX_DiscardUnknown()
- func (m *PubsubMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubsubMessage) XXX_Merge(src proto.Message)
- func (m *PubsubMessage) XXX_Size() int
- func (m *PubsubMessage) XXX_Unmarshal(b []byte) error
- type PullRequest
- func (*PullRequest) Descriptor() ([]byte, []int)
- func (m *PullRequest) GetMaxMessages() int32
- func (m *PullRequest) GetReturnImmediately() booldeprecated
- func (m *PullRequest) GetSubscription() string
- func (*PullRequest) ProtoMessage()
- func (m *PullRequest) Reset()
- func (m *PullRequest) String() string
- func (m *PullRequest) XXX_DiscardUnknown()
- func (m *PullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PullRequest) XXX_Merge(src proto.Message)
- func (m *PullRequest) XXX_Size() int
- func (m *PullRequest) XXX_Unmarshal(b []byte) error
- type PullResponse
- func (*PullResponse) Descriptor() ([]byte, []int)
- func (m *PullResponse) GetReceivedMessages() []*ReceivedMessage
- func (*PullResponse) ProtoMessage()
- func (m *PullResponse) Reset()
- func (m *PullResponse) String() string
- func (m *PullResponse) XXX_DiscardUnknown()
- func (m *PullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PullResponse) XXX_Merge(src proto.Message)
- func (m *PullResponse) XXX_Size() int
- func (m *PullResponse) XXX_Unmarshal(b []byte) error
- type PushConfig
- func (*PushConfig) Descriptor() ([]byte, []int)
- func (m *PushConfig) GetAttributes() map[string]string
- func (m *PushConfig) GetAuthenticationMethod() isPushConfig_AuthenticationMethod
- func (m *PushConfig) GetOidcToken() *PushConfig_OidcToken
- func (m *PushConfig) GetPushEndpoint() string
- func (*PushConfig) ProtoMessage()
- func (m *PushConfig) Reset()
- func (m *PushConfig) String() string
- func (m *PushConfig) XXX_DiscardUnknown()
- func (m *PushConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PushConfig) XXX_Merge(src proto.Message)
- func (*PushConfig) XXX_OneofWrappers() []interface{}
- func (m *PushConfig) XXX_Size() int
- func (m *PushConfig) XXX_Unmarshal(b []byte) error
- type PushConfig_OidcToken
- func (*PushConfig_OidcToken) Descriptor() ([]byte, []int)
- func (m *PushConfig_OidcToken) GetAudience() string
- func (m *PushConfig_OidcToken) GetServiceAccountEmail() string
- func (*PushConfig_OidcToken) ProtoMessage()
- func (m *PushConfig_OidcToken) Reset()
- func (m *PushConfig_OidcToken) String() string
- func (m *PushConfig_OidcToken) XXX_DiscardUnknown()
- func (m *PushConfig_OidcToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PushConfig_OidcToken) XXX_Merge(src proto.Message)
- func (m *PushConfig_OidcToken) XXX_Size() int
- func (m *PushConfig_OidcToken) XXX_Unmarshal(b []byte) error
- type PushConfig_OidcToken_
- type ReceivedMessage
- func (*ReceivedMessage) Descriptor() ([]byte, []int)
- func (m *ReceivedMessage) GetAckId() string
- func (m *ReceivedMessage) GetDeliveryAttempt() int32
- func (m *ReceivedMessage) GetMessage() *PubsubMessage
- func (*ReceivedMessage) ProtoMessage()
- func (m *ReceivedMessage) Reset()
- func (m *ReceivedMessage) String() string
- func (m *ReceivedMessage) XXX_DiscardUnknown()
- func (m *ReceivedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceivedMessage) XXX_Merge(src proto.Message)
- func (m *ReceivedMessage) XXX_Size() int
- func (m *ReceivedMessage) XXX_Unmarshal(b []byte) error
- type RetryPolicy
- func (*RetryPolicy) Descriptor() ([]byte, []int)
- func (m *RetryPolicy) GetMaximumBackoff() *duration.Duration
- func (m *RetryPolicy) GetMinimumBackoff() *duration.Duration
- func (*RetryPolicy) ProtoMessage()
- func (m *RetryPolicy) Reset()
- func (m *RetryPolicy) String() string
- func (m *RetryPolicy) XXX_DiscardUnknown()
- func (m *RetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RetryPolicy) XXX_Merge(src proto.Message)
- func (m *RetryPolicy) XXX_Size() int
- func (m *RetryPolicy) XXX_Unmarshal(b []byte) error
- type SeekRequest
- func (*SeekRequest) Descriptor() ([]byte, []int)
- func (m *SeekRequest) GetSnapshot() string
- func (m *SeekRequest) GetSubscription() string
- func (m *SeekRequest) GetTarget() isSeekRequest_Target
- func (m *SeekRequest) GetTime() *timestamp.Timestamp
- func (*SeekRequest) ProtoMessage()
- func (m *SeekRequest) Reset()
- func (m *SeekRequest) String() string
- func (m *SeekRequest) XXX_DiscardUnknown()
- func (m *SeekRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SeekRequest) XXX_Merge(src proto.Message)
- func (*SeekRequest) XXX_OneofWrappers() []interface{}
- func (m *SeekRequest) XXX_Size() int
- func (m *SeekRequest) XXX_Unmarshal(b []byte) error
- type SeekRequest_Snapshot
- type SeekRequest_Time
- type SeekResponse
- func (*SeekResponse) Descriptor() ([]byte, []int)
- func (*SeekResponse) ProtoMessage()
- func (m *SeekResponse) Reset()
- func (m *SeekResponse) String() string
- func (m *SeekResponse) XXX_DiscardUnknown()
- func (m *SeekResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SeekResponse) XXX_Merge(src proto.Message)
- func (m *SeekResponse) XXX_Size() int
- func (m *SeekResponse) XXX_Unmarshal(b []byte) error
- type Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)
- func (m *Snapshot) GetExpireTime() *timestamp.Timestamp
- func (m *Snapshot) GetLabels() map[string]string
- func (m *Snapshot) GetName() string
- func (m *Snapshot) GetTopic() string
- func (*Snapshot) ProtoMessage()
- func (m *Snapshot) Reset()
- func (m *Snapshot) String() string
- func (m *Snapshot) XXX_DiscardUnknown()
- func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Snapshot) XXX_Merge(src proto.Message)
- func (m *Snapshot) XXX_Size() int
- func (m *Snapshot) XXX_Unmarshal(b []byte) error
- type StreamingPullRequest
- func (*StreamingPullRequest) Descriptor() ([]byte, []int)
- func (m *StreamingPullRequest) GetAckIds() []string
- func (m *StreamingPullRequest) GetClientId() string
- func (m *StreamingPullRequest) GetModifyDeadlineAckIds() []string
- func (m *StreamingPullRequest) GetModifyDeadlineSeconds() []int32
- func (m *StreamingPullRequest) GetStreamAckDeadlineSeconds() int32
- func (m *StreamingPullRequest) GetSubscription() string
- func (*StreamingPullRequest) ProtoMessage()
- func (m *StreamingPullRequest) Reset()
- func (m *StreamingPullRequest) String() string
- func (m *StreamingPullRequest) XXX_DiscardUnknown()
- func (m *StreamingPullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamingPullRequest) XXX_Merge(src proto.Message)
- func (m *StreamingPullRequest) XXX_Size() int
- func (m *StreamingPullRequest) XXX_Unmarshal(b []byte) error
- type StreamingPullResponse
- func (*StreamingPullResponse) Descriptor() ([]byte, []int)
- func (m *StreamingPullResponse) GetReceivedMessages() []*ReceivedMessage
- func (*StreamingPullResponse) ProtoMessage()
- func (m *StreamingPullResponse) Reset()
- func (m *StreamingPullResponse) String() string
- func (m *StreamingPullResponse) XXX_DiscardUnknown()
- func (m *StreamingPullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamingPullResponse) XXX_Merge(src proto.Message)
- func (m *StreamingPullResponse) XXX_Size() int
- func (m *StreamingPullResponse) XXX_Unmarshal(b []byte) error
- type SubscriberClient
- type SubscriberServer
- type Subscriber_StreamingPullClient
- type Subscriber_StreamingPullServer
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)
- func (m *Subscription) GetAckDeadlineSeconds() int32
- func (m *Subscription) GetDeadLetterPolicy() *DeadLetterPolicy
- func (m *Subscription) GetEnableMessageOrdering() bool
- func (m *Subscription) GetExpirationPolicy() *ExpirationPolicy
- func (m *Subscription) GetFilter() string
- func (m *Subscription) GetLabels() map[string]string
- func (m *Subscription) GetMessageRetentionDuration() *duration.Duration
- func (m *Subscription) GetName() string
- func (m *Subscription) GetPushConfig() *PushConfig
- func (m *Subscription) GetRetainAckedMessages() bool
- func (m *Subscription) GetRetryPolicy() *RetryPolicy
- func (m *Subscription) GetTopic() string
- func (*Subscription) ProtoMessage()
- func (m *Subscription) Reset()
- func (m *Subscription) String() string
- func (m *Subscription) XXX_DiscardUnknown()
- func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Subscription) XXX_Merge(src proto.Message)
- func (m *Subscription) XXX_Size() int
- func (m *Subscription) XXX_Unmarshal(b []byte) error
- type Topic
- func (*Topic) Descriptor() ([]byte, []int)
- func (m *Topic) GetKmsKeyName() string
- func (m *Topic) GetLabels() map[string]string
- func (m *Topic) GetMessageStoragePolicy() *MessageStoragePolicy
- func (m *Topic) GetName() string
- func (*Topic) ProtoMessage()
- func (m *Topic) Reset()
- func (m *Topic) String() string
- func (m *Topic) XXX_DiscardUnknown()
- func (m *Topic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Topic) XXX_Merge(src proto.Message)
- func (m *Topic) XXX_Size() int
- func (m *Topic) XXX_Unmarshal(b []byte) error
- type UnimplementedPublisherServer
- func (*UnimplementedPublisherServer) CreateTopic(ctx context.Context, req *Topic) (*Topic, error)
- func (*UnimplementedPublisherServer) DeleteTopic(ctx context.Context, req *DeleteTopicRequest) (*empty.Empty, error)
- func (*UnimplementedPublisherServer) GetTopic(ctx context.Context, req *GetTopicRequest) (*Topic, error)
- func (*UnimplementedPublisherServer) ListTopicSnapshots(ctx context.Context, req *ListTopicSnapshotsRequest) (*ListTopicSnapshotsResponse, error)
- func (*UnimplementedPublisherServer) ListTopicSubscriptions(ctx context.Context, req *ListTopicSubscriptionsRequest) (*ListTopicSubscriptionsResponse, error)
- func (*UnimplementedPublisherServer) ListTopics(ctx context.Context, req *ListTopicsRequest) (*ListTopicsResponse, error)
- func (*UnimplementedPublisherServer) Publish(ctx context.Context, req *PublishRequest) (*PublishResponse, error)
- func (*UnimplementedPublisherServer) UpdateTopic(ctx context.Context, req *UpdateTopicRequest) (*Topic, error)
- type UnimplementedSubscriberServer
- func (*UnimplementedSubscriberServer) Acknowledge(ctx context.Context, req *AcknowledgeRequest) (*empty.Empty, error)
- func (*UnimplementedSubscriberServer) CreateSnapshot(ctx context.Context, req *CreateSnapshotRequest) (*Snapshot, error)
- func (*UnimplementedSubscriberServer) CreateSubscription(ctx context.Context, req *Subscription) (*Subscription, error)
- func (*UnimplementedSubscriberServer) DeleteSnapshot(ctx context.Context, req *DeleteSnapshotRequest) (*empty.Empty, error)
- func (*UnimplementedSubscriberServer) DeleteSubscription(ctx context.Context, req *DeleteSubscriptionRequest) (*empty.Empty, error)
- func (*UnimplementedSubscriberServer) GetSnapshot(ctx context.Context, req *GetSnapshotRequest) (*Snapshot, error)
- func (*UnimplementedSubscriberServer) GetSubscription(ctx context.Context, req *GetSubscriptionRequest) (*Subscription, error)
- func (*UnimplementedSubscriberServer) ListSnapshots(ctx context.Context, req *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
- func (*UnimplementedSubscriberServer) ListSubscriptions(ctx context.Context, req *ListSubscriptionsRequest) (*ListSubscriptionsResponse, error)
- func (*UnimplementedSubscriberServer) ModifyAckDeadline(ctx context.Context, req *ModifyAckDeadlineRequest) (*empty.Empty, error)
- func (*UnimplementedSubscriberServer) ModifyPushConfig(ctx context.Context, req *ModifyPushConfigRequest) (*empty.Empty, error)
- func (*UnimplementedSubscriberServer) Pull(ctx context.Context, req *PullRequest) (*PullResponse, error)
- func (*UnimplementedSubscriberServer) Seek(ctx context.Context, req *SeekRequest) (*SeekResponse, error)
- func (*UnimplementedSubscriberServer) StreamingPull(srv Subscriber_StreamingPullServer) error
- func (*UnimplementedSubscriberServer) UpdateSnapshot(ctx context.Context, req *UpdateSnapshotRequest) (*Snapshot, error)
- func (*UnimplementedSubscriberServer) UpdateSubscription(ctx context.Context, req *UpdateSubscriptionRequest) (*Subscription, error)
- type UpdateSnapshotRequest
- func (*UpdateSnapshotRequest) Descriptor() ([]byte, []int)
- func (m *UpdateSnapshotRequest) GetSnapshot() *Snapshot
- func (m *UpdateSnapshotRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateSnapshotRequest) ProtoMessage()
- func (m *UpdateSnapshotRequest) Reset()
- func (m *UpdateSnapshotRequest) String() string
- func (m *UpdateSnapshotRequest) XXX_DiscardUnknown()
- func (m *UpdateSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateSnapshotRequest) XXX_Merge(src proto.Message)
- func (m *UpdateSnapshotRequest) XXX_Size() int
- func (m *UpdateSnapshotRequest) XXX_Unmarshal(b []byte) error
- type UpdateSubscriptionRequest
- func (*UpdateSubscriptionRequest) Descriptor() ([]byte, []int)
- func (m *UpdateSubscriptionRequest) GetSubscription() *Subscription
- func (m *UpdateSubscriptionRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateSubscriptionRequest) ProtoMessage()
- func (m *UpdateSubscriptionRequest) Reset()
- func (m *UpdateSubscriptionRequest) String() string
- func (m *UpdateSubscriptionRequest) XXX_DiscardUnknown()
- func (m *UpdateSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateSubscriptionRequest) XXX_Merge(src proto.Message)
- func (m *UpdateSubscriptionRequest) XXX_Size() int
- func (m *UpdateSubscriptionRequest) XXX_Unmarshal(b []byte) error
- type UpdateTopicRequest
- func (*UpdateTopicRequest) Descriptor() ([]byte, []int)
- func (m *UpdateTopicRequest) GetTopic() *Topic
- func (m *UpdateTopicRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateTopicRequest) ProtoMessage()
- func (m *UpdateTopicRequest) Reset()
- func (m *UpdateTopicRequest) String() string
- func (m *UpdateTopicRequest) XXX_DiscardUnknown()
- func (m *UpdateTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateTopicRequest) XXX_Merge(src proto.Message)
- func (m *UpdateTopicRequest) XXX_Size() int
- func (m *UpdateTopicRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPublisherServer ¶
func RegisterPublisherServer(s *grpc.Server, srv PublisherServer)
func RegisterSubscriberServer ¶
func RegisterSubscriberServer(s *grpc.Server, srv SubscriberServer)
Types ¶
type AcknowledgeRequest ¶
type AcknowledgeRequest struct { // Required. The subscription whose message is being acknowledged. // Format is `projects/{project}/subscriptions/{sub}`. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` // Required. The acknowledgment ID for the messages being acknowledged that // was returned by the Pub/Sub system in the `Pull` response. Must not be // empty. AckIds []string `protobuf:"bytes,2,rep,name=ack_ids,json=ackIds,proto3" json:"ack_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the Acknowledge method.
func (*AcknowledgeRequest) Descriptor ¶
func (*AcknowledgeRequest) Descriptor() ([]byte, []int)
func (*AcknowledgeRequest) GetAckIds ¶
func (m *AcknowledgeRequest) GetAckIds() []string
func (*AcknowledgeRequest) GetSubscription ¶
func (m *AcknowledgeRequest) GetSubscription() string
func (*AcknowledgeRequest) ProtoMessage ¶
func (*AcknowledgeRequest) ProtoMessage()
func (*AcknowledgeRequest) Reset ¶
func (m *AcknowledgeRequest) Reset()
func (*AcknowledgeRequest) String ¶
func (m *AcknowledgeRequest) String() string
func (*AcknowledgeRequest) XXX_DiscardUnknown ¶
func (m *AcknowledgeRequest) XXX_DiscardUnknown()
func (*AcknowledgeRequest) XXX_Marshal ¶
func (m *AcknowledgeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AcknowledgeRequest) XXX_Merge ¶
func (m *AcknowledgeRequest) XXX_Merge(src proto.Message)
func (*AcknowledgeRequest) XXX_Size ¶
func (m *AcknowledgeRequest) XXX_Size() int
func (*AcknowledgeRequest) XXX_Unmarshal ¶
func (m *AcknowledgeRequest) XXX_Unmarshal(b []byte) error
type CreateSnapshotRequest ¶
type CreateSnapshotRequest struct { // Required. User-provided name for this snapshot. If the name is not provided // in the request, the server will assign a random name for this snapshot on // the same project as the subscription. Note that for REST API requests, you // must specify a name. See the <a // href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource // name rules</a>. Format is `projects/{project}/snapshots/{snap}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The subscription whose backlog the snapshot retains. // Specifically, the created snapshot is guaranteed to retain: // (a) The existing backlog on the subscription. More precisely, this is // defined as the messages in the subscription's backlog that are // unacknowledged upon the successful completion of the // `CreateSnapshot` request; as well as: // (b) Any messages published to the subscription's topic following the // successful completion of the CreateSnapshot request. // Format is `projects/{project}/subscriptions/{sub}`. Subscription string `protobuf:"bytes,2,opt,name=subscription,proto3" json:"subscription,omitempty"` // See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and // managing labels</a>. Labels map[string]string `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `CreateSnapshot` method.
func (*CreateSnapshotRequest) Descriptor ¶
func (*CreateSnapshotRequest) Descriptor() ([]byte, []int)
func (*CreateSnapshotRequest) GetLabels ¶
func (m *CreateSnapshotRequest) GetLabels() map[string]string
func (*CreateSnapshotRequest) GetName ¶
func (m *CreateSnapshotRequest) GetName() string
func (*CreateSnapshotRequest) GetSubscription ¶
func (m *CreateSnapshotRequest) GetSubscription() string
func (*CreateSnapshotRequest) ProtoMessage ¶
func (*CreateSnapshotRequest) ProtoMessage()
func (*CreateSnapshotRequest) Reset ¶
func (m *CreateSnapshotRequest) Reset()
func (*CreateSnapshotRequest) String ¶
func (m *CreateSnapshotRequest) String() string
func (*CreateSnapshotRequest) XXX_DiscardUnknown ¶
func (m *CreateSnapshotRequest) XXX_DiscardUnknown()
func (*CreateSnapshotRequest) XXX_Marshal ¶
func (m *CreateSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateSnapshotRequest) XXX_Merge ¶
func (m *CreateSnapshotRequest) XXX_Merge(src proto.Message)
func (*CreateSnapshotRequest) XXX_Size ¶
func (m *CreateSnapshotRequest) XXX_Size() int
func (*CreateSnapshotRequest) XXX_Unmarshal ¶
func (m *CreateSnapshotRequest) XXX_Unmarshal(b []byte) error
type DeadLetterPolicy ¶
type DeadLetterPolicy struct { // The name of the topic to which dead letter messages should be published. // Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service // account associated with the enclosing subscription's parent project (i.e., // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have // permission to Publish() to this topic. // // The operation will fail if the topic does not exist. // Users should ensure that there is a subscription attached to this topic // since messages published to a topic with no subscriptions are lost. DeadLetterTopic string `protobuf:"bytes,1,opt,name=dead_letter_topic,json=deadLetterTopic,proto3" json:"dead_letter_topic,omitempty"` // The maximum number of delivery attempts for any message. The value must be // between 5 and 100. // // The number of delivery attempts is defined as 1 + (the sum of number of // NACKs and number of times the acknowledgement deadline has been exceeded // for the message). // // A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that // client libraries may automatically extend ack_deadlines. // // This field will be honored on a best effort basis. // // If this parameter is 0, a default value of 5 is used. MaxDeliveryAttempts int32 `protobuf:"varint,2,opt,name=max_delivery_attempts,json=maxDeliveryAttempts,proto3" json:"max_delivery_attempts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Dead lettering is done on a best effort basis. The same message might be dead lettered multiple times.
If validation on any of the fields fails at subscription creation/updation, the create/update subscription request will fail.
func (*DeadLetterPolicy) Descriptor ¶
func (*DeadLetterPolicy) Descriptor() ([]byte, []int)
func (*DeadLetterPolicy) GetDeadLetterTopic ¶
func (m *DeadLetterPolicy) GetDeadLetterTopic() string
func (*DeadLetterPolicy) GetMaxDeliveryAttempts ¶
func (m *DeadLetterPolicy) GetMaxDeliveryAttempts() int32
func (*DeadLetterPolicy) ProtoMessage ¶
func (*DeadLetterPolicy) ProtoMessage()
func (*DeadLetterPolicy) Reset ¶
func (m *DeadLetterPolicy) Reset()
func (*DeadLetterPolicy) String ¶
func (m *DeadLetterPolicy) String() string
func (*DeadLetterPolicy) XXX_DiscardUnknown ¶
func (m *DeadLetterPolicy) XXX_DiscardUnknown()
func (*DeadLetterPolicy) XXX_Marshal ¶
func (m *DeadLetterPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeadLetterPolicy) XXX_Merge ¶
func (m *DeadLetterPolicy) XXX_Merge(src proto.Message)
func (*DeadLetterPolicy) XXX_Size ¶
func (m *DeadLetterPolicy) XXX_Size() int
func (*DeadLetterPolicy) XXX_Unmarshal ¶
func (m *DeadLetterPolicy) XXX_Unmarshal(b []byte) error
type DeleteSnapshotRequest ¶
type DeleteSnapshotRequest struct { // Required. The name of the snapshot to delete. // Format is `projects/{project}/snapshots/{snap}`. Snapshot string `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `DeleteSnapshot` method.
func (*DeleteSnapshotRequest) Descriptor ¶
func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int)
func (*DeleteSnapshotRequest) GetSnapshot ¶
func (m *DeleteSnapshotRequest) GetSnapshot() string
func (*DeleteSnapshotRequest) ProtoMessage ¶
func (*DeleteSnapshotRequest) ProtoMessage()
func (*DeleteSnapshotRequest) Reset ¶
func (m *DeleteSnapshotRequest) Reset()
func (*DeleteSnapshotRequest) String ¶
func (m *DeleteSnapshotRequest) String() string
func (*DeleteSnapshotRequest) XXX_DiscardUnknown ¶
func (m *DeleteSnapshotRequest) XXX_DiscardUnknown()
func (*DeleteSnapshotRequest) XXX_Marshal ¶
func (m *DeleteSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteSnapshotRequest) XXX_Merge ¶
func (m *DeleteSnapshotRequest) XXX_Merge(src proto.Message)
func (*DeleteSnapshotRequest) XXX_Size ¶
func (m *DeleteSnapshotRequest) XXX_Size() int
func (*DeleteSnapshotRequest) XXX_Unmarshal ¶
func (m *DeleteSnapshotRequest) XXX_Unmarshal(b []byte) error
type DeleteSubscriptionRequest ¶
type DeleteSubscriptionRequest struct { // Required. The subscription to delete. // Format is `projects/{project}/subscriptions/{sub}`. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the DeleteSubscription method.
func (*DeleteSubscriptionRequest) Descriptor ¶
func (*DeleteSubscriptionRequest) Descriptor() ([]byte, []int)
func (*DeleteSubscriptionRequest) GetSubscription ¶
func (m *DeleteSubscriptionRequest) GetSubscription() string
func (*DeleteSubscriptionRequest) ProtoMessage ¶
func (*DeleteSubscriptionRequest) ProtoMessage()
func (*DeleteSubscriptionRequest) Reset ¶
func (m *DeleteSubscriptionRequest) Reset()
func (*DeleteSubscriptionRequest) String ¶
func (m *DeleteSubscriptionRequest) String() string
func (*DeleteSubscriptionRequest) XXX_DiscardUnknown ¶
func (m *DeleteSubscriptionRequest) XXX_DiscardUnknown()
func (*DeleteSubscriptionRequest) XXX_Marshal ¶
func (m *DeleteSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteSubscriptionRequest) XXX_Merge ¶
func (m *DeleteSubscriptionRequest) XXX_Merge(src proto.Message)
func (*DeleteSubscriptionRequest) XXX_Size ¶
func (m *DeleteSubscriptionRequest) XXX_Size() int
func (*DeleteSubscriptionRequest) XXX_Unmarshal ¶
func (m *DeleteSubscriptionRequest) XXX_Unmarshal(b []byte) error
type DeleteTopicRequest ¶
type DeleteTopicRequest struct { // Required. Name of the topic to delete. // Format is `projects/{project}/topics/{topic}`. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `DeleteTopic` method.
func (*DeleteTopicRequest) Descriptor ¶
func (*DeleteTopicRequest) Descriptor() ([]byte, []int)
func (*DeleteTopicRequest) GetTopic ¶
func (m *DeleteTopicRequest) GetTopic() string
func (*DeleteTopicRequest) ProtoMessage ¶
func (*DeleteTopicRequest) ProtoMessage()
func (*DeleteTopicRequest) Reset ¶
func (m *DeleteTopicRequest) Reset()
func (*DeleteTopicRequest) String ¶
func (m *DeleteTopicRequest) String() string
func (*DeleteTopicRequest) XXX_DiscardUnknown ¶
func (m *DeleteTopicRequest) XXX_DiscardUnknown()
func (*DeleteTopicRequest) XXX_Marshal ¶
func (m *DeleteTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteTopicRequest) XXX_Merge ¶
func (m *DeleteTopicRequest) XXX_Merge(src proto.Message)
func (*DeleteTopicRequest) XXX_Size ¶
func (m *DeleteTopicRequest) XXX_Size() int
func (*DeleteTopicRequest) XXX_Unmarshal ¶
func (m *DeleteTopicRequest) XXX_Unmarshal(b []byte) error
type ExpirationPolicy ¶
type ExpirationPolicy struct { // Specifies the "time-to-live" duration for an associated resource. The // resource expires if it is not active for a period of `ttl`. The definition // of "activity" depends on the type of the associated resource. The minimum // and maximum allowed values for `ttl` depend on the type of the associated // resource, as well. If `ttl` is not set, the associated resource never // expires. Ttl *duration.Duration `protobuf:"bytes,1,opt,name=ttl,proto3" json:"ttl,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A policy that specifies the conditions for resource expiration (i.e., automatic resource deletion).
func (*ExpirationPolicy) Descriptor ¶
func (*ExpirationPolicy) Descriptor() ([]byte, []int)
func (*ExpirationPolicy) GetTtl ¶
func (m *ExpirationPolicy) GetTtl() *duration.Duration
func (*ExpirationPolicy) ProtoMessage ¶
func (*ExpirationPolicy) ProtoMessage()
func (*ExpirationPolicy) Reset ¶
func (m *ExpirationPolicy) Reset()
func (*ExpirationPolicy) String ¶
func (m *ExpirationPolicy) String() string
func (*ExpirationPolicy) XXX_DiscardUnknown ¶
func (m *ExpirationPolicy) XXX_DiscardUnknown()
func (*ExpirationPolicy) XXX_Marshal ¶
func (m *ExpirationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExpirationPolicy) XXX_Merge ¶
func (m *ExpirationPolicy) XXX_Merge(src proto.Message)
func (*ExpirationPolicy) XXX_Size ¶
func (m *ExpirationPolicy) XXX_Size() int
func (*ExpirationPolicy) XXX_Unmarshal ¶
func (m *ExpirationPolicy) XXX_Unmarshal(b []byte) error
type GetSnapshotRequest ¶
type GetSnapshotRequest struct { // Required. The name of the snapshot to get. // Format is `projects/{project}/snapshots/{snap}`. Snapshot string `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the GetSnapshot method.
func (*GetSnapshotRequest) Descriptor ¶
func (*GetSnapshotRequest) Descriptor() ([]byte, []int)
func (*GetSnapshotRequest) GetSnapshot ¶
func (m *GetSnapshotRequest) GetSnapshot() string
func (*GetSnapshotRequest) ProtoMessage ¶
func (*GetSnapshotRequest) ProtoMessage()
func (*GetSnapshotRequest) Reset ¶
func (m *GetSnapshotRequest) Reset()
func (*GetSnapshotRequest) String ¶
func (m *GetSnapshotRequest) String() string
func (*GetSnapshotRequest) XXX_DiscardUnknown ¶
func (m *GetSnapshotRequest) XXX_DiscardUnknown()
func (*GetSnapshotRequest) XXX_Marshal ¶
func (m *GetSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSnapshotRequest) XXX_Merge ¶
func (m *GetSnapshotRequest) XXX_Merge(src proto.Message)
func (*GetSnapshotRequest) XXX_Size ¶
func (m *GetSnapshotRequest) XXX_Size() int
func (*GetSnapshotRequest) XXX_Unmarshal ¶
func (m *GetSnapshotRequest) XXX_Unmarshal(b []byte) error
type GetSubscriptionRequest ¶
type GetSubscriptionRequest struct { // Required. The name of the subscription to get. // Format is `projects/{project}/subscriptions/{sub}`. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the GetSubscription method.
func (*GetSubscriptionRequest) Descriptor ¶
func (*GetSubscriptionRequest) Descriptor() ([]byte, []int)
func (*GetSubscriptionRequest) GetSubscription ¶
func (m *GetSubscriptionRequest) GetSubscription() string
func (*GetSubscriptionRequest) ProtoMessage ¶
func (*GetSubscriptionRequest) ProtoMessage()
func (*GetSubscriptionRequest) Reset ¶
func (m *GetSubscriptionRequest) Reset()
func (*GetSubscriptionRequest) String ¶
func (m *GetSubscriptionRequest) String() string
func (*GetSubscriptionRequest) XXX_DiscardUnknown ¶
func (m *GetSubscriptionRequest) XXX_DiscardUnknown()
func (*GetSubscriptionRequest) XXX_Marshal ¶
func (m *GetSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSubscriptionRequest) XXX_Merge ¶
func (m *GetSubscriptionRequest) XXX_Merge(src proto.Message)
func (*GetSubscriptionRequest) XXX_Size ¶
func (m *GetSubscriptionRequest) XXX_Size() int
func (*GetSubscriptionRequest) XXX_Unmarshal ¶
func (m *GetSubscriptionRequest) XXX_Unmarshal(b []byte) error
type GetTopicRequest ¶
type GetTopicRequest struct { // Required. The name of the topic to get. // Format is `projects/{project}/topics/{topic}`. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the GetTopic method.
func (*GetTopicRequest) Descriptor ¶
func (*GetTopicRequest) Descriptor() ([]byte, []int)
func (*GetTopicRequest) GetTopic ¶
func (m *GetTopicRequest) GetTopic() string
func (*GetTopicRequest) ProtoMessage ¶
func (*GetTopicRequest) ProtoMessage()
func (*GetTopicRequest) Reset ¶
func (m *GetTopicRequest) Reset()
func (*GetTopicRequest) String ¶
func (m *GetTopicRequest) String() string
func (*GetTopicRequest) XXX_DiscardUnknown ¶
func (m *GetTopicRequest) XXX_DiscardUnknown()
func (*GetTopicRequest) XXX_Marshal ¶
func (m *GetTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTopicRequest) XXX_Merge ¶
func (m *GetTopicRequest) XXX_Merge(src proto.Message)
func (*GetTopicRequest) XXX_Size ¶
func (m *GetTopicRequest) XXX_Size() int
func (*GetTopicRequest) XXX_Unmarshal ¶
func (m *GetTopicRequest) XXX_Unmarshal(b []byte) error
type ListSnapshotsRequest ¶
type ListSnapshotsRequest struct { // Required. The name of the project in which to list snapshots. // Format is `projects/{project-id}`. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Maximum number of snapshots to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListSnapshotsResponse`; indicates that this // is a continuation of a prior `ListSnapshots` call, and that the system // should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `ListSnapshots` method.
func (*ListSnapshotsRequest) Descriptor ¶
func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)
func (*ListSnapshotsRequest) GetPageSize ¶
func (m *ListSnapshotsRequest) GetPageSize() int32
func (*ListSnapshotsRequest) GetPageToken ¶
func (m *ListSnapshotsRequest) GetPageToken() string
func (*ListSnapshotsRequest) GetProject ¶
func (m *ListSnapshotsRequest) GetProject() string
func (*ListSnapshotsRequest) ProtoMessage ¶
func (*ListSnapshotsRequest) ProtoMessage()
func (*ListSnapshotsRequest) Reset ¶
func (m *ListSnapshotsRequest) Reset()
func (*ListSnapshotsRequest) String ¶
func (m *ListSnapshotsRequest) String() string
func (*ListSnapshotsRequest) XXX_DiscardUnknown ¶
func (m *ListSnapshotsRequest) XXX_DiscardUnknown()
func (*ListSnapshotsRequest) XXX_Marshal ¶
func (m *ListSnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListSnapshotsRequest) XXX_Merge ¶
func (m *ListSnapshotsRequest) XXX_Merge(src proto.Message)
func (*ListSnapshotsRequest) XXX_Size ¶
func (m *ListSnapshotsRequest) XXX_Size() int
func (*ListSnapshotsRequest) XXX_Unmarshal ¶
func (m *ListSnapshotsRequest) XXX_Unmarshal(b []byte) error
type ListSnapshotsResponse ¶
type ListSnapshotsResponse struct { // The resulting snapshots. Snapshots []*Snapshot `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"` // If not empty, indicates that there may be more snapshot that match the // request; this value should be passed in a new `ListSnapshotsRequest`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for the `ListSnapshots` method.
func (*ListSnapshotsResponse) Descriptor ¶
func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)
func (*ListSnapshotsResponse) GetNextPageToken ¶
func (m *ListSnapshotsResponse) GetNextPageToken() string
func (*ListSnapshotsResponse) GetSnapshots ¶
func (m *ListSnapshotsResponse) GetSnapshots() []*Snapshot
func (*ListSnapshotsResponse) ProtoMessage ¶
func (*ListSnapshotsResponse) ProtoMessage()
func (*ListSnapshotsResponse) Reset ¶
func (m *ListSnapshotsResponse) Reset()
func (*ListSnapshotsResponse) String ¶
func (m *ListSnapshotsResponse) String() string
func (*ListSnapshotsResponse) XXX_DiscardUnknown ¶
func (m *ListSnapshotsResponse) XXX_DiscardUnknown()
func (*ListSnapshotsResponse) XXX_Marshal ¶
func (m *ListSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListSnapshotsResponse) XXX_Merge ¶
func (m *ListSnapshotsResponse) XXX_Merge(src proto.Message)
func (*ListSnapshotsResponse) XXX_Size ¶
func (m *ListSnapshotsResponse) XXX_Size() int
func (*ListSnapshotsResponse) XXX_Unmarshal ¶
func (m *ListSnapshotsResponse) XXX_Unmarshal(b []byte) error
type ListSubscriptionsRequest ¶
type ListSubscriptionsRequest struct { // Required. The name of the project in which to list subscriptions. // Format is `projects/{project-id}`. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Maximum number of subscriptions to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListSubscriptionsResponse`; indicates that // this is a continuation of a prior `ListSubscriptions` call, and that the // system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `ListSubscriptions` method.
func (*ListSubscriptionsRequest) Descriptor ¶
func (*ListSubscriptionsRequest) Descriptor() ([]byte, []int)
func (*ListSubscriptionsRequest) GetPageSize ¶
func (m *ListSubscriptionsRequest) GetPageSize() int32
func (*ListSubscriptionsRequest) GetPageToken ¶
func (m *ListSubscriptionsRequest) GetPageToken() string
func (*ListSubscriptionsRequest) GetProject ¶
func (m *ListSubscriptionsRequest) GetProject() string
func (*ListSubscriptionsRequest) ProtoMessage ¶
func (*ListSubscriptionsRequest) ProtoMessage()
func (*ListSubscriptionsRequest) Reset ¶
func (m *ListSubscriptionsRequest) Reset()
func (*ListSubscriptionsRequest) String ¶
func (m *ListSubscriptionsRequest) String() string
func (*ListSubscriptionsRequest) XXX_DiscardUnknown ¶
func (m *ListSubscriptionsRequest) XXX_DiscardUnknown()
func (*ListSubscriptionsRequest) XXX_Marshal ¶
func (m *ListSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListSubscriptionsRequest) XXX_Merge ¶
func (m *ListSubscriptionsRequest) XXX_Merge(src proto.Message)
func (*ListSubscriptionsRequest) XXX_Size ¶
func (m *ListSubscriptionsRequest) XXX_Size() int
func (*ListSubscriptionsRequest) XXX_Unmarshal ¶
func (m *ListSubscriptionsRequest) XXX_Unmarshal(b []byte) error
type ListSubscriptionsResponse ¶
type ListSubscriptionsResponse struct { // The subscriptions that match the request. Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` // If not empty, indicates that there may be more subscriptions that match // the request; this value should be passed in a new // `ListSubscriptionsRequest` to get more subscriptions. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for the `ListSubscriptions` method.
func (*ListSubscriptionsResponse) Descriptor ¶
func (*ListSubscriptionsResponse) Descriptor() ([]byte, []int)
func (*ListSubscriptionsResponse) GetNextPageToken ¶
func (m *ListSubscriptionsResponse) GetNextPageToken() string
func (*ListSubscriptionsResponse) GetSubscriptions ¶
func (m *ListSubscriptionsResponse) GetSubscriptions() []*Subscription
func (*ListSubscriptionsResponse) ProtoMessage ¶
func (*ListSubscriptionsResponse) ProtoMessage()
func (*ListSubscriptionsResponse) Reset ¶
func (m *ListSubscriptionsResponse) Reset()
func (*ListSubscriptionsResponse) String ¶
func (m *ListSubscriptionsResponse) String() string
func (*ListSubscriptionsResponse) XXX_DiscardUnknown ¶
func (m *ListSubscriptionsResponse) XXX_DiscardUnknown()
func (*ListSubscriptionsResponse) XXX_Marshal ¶
func (m *ListSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListSubscriptionsResponse) XXX_Merge ¶
func (m *ListSubscriptionsResponse) XXX_Merge(src proto.Message)
func (*ListSubscriptionsResponse) XXX_Size ¶
func (m *ListSubscriptionsResponse) XXX_Size() int
func (*ListSubscriptionsResponse) XXX_Unmarshal ¶
func (m *ListSubscriptionsResponse) XXX_Unmarshal(b []byte) error
type ListTopicSnapshotsRequest ¶
type ListTopicSnapshotsRequest struct { // Required. The name of the topic that snapshots are attached to. // Format is `projects/{project}/topics/{topic}`. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` // Maximum number of snapshot names to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListTopicSnapshotsResponse`; indicates // that this is a continuation of a prior `ListTopicSnapshots` call, and // that the system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `ListTopicSnapshots` method.
func (*ListTopicSnapshotsRequest) Descriptor ¶
func (*ListTopicSnapshotsRequest) Descriptor() ([]byte, []int)
func (*ListTopicSnapshotsRequest) GetPageSize ¶
func (m *ListTopicSnapshotsRequest) GetPageSize() int32
func (*ListTopicSnapshotsRequest) GetPageToken ¶
func (m *ListTopicSnapshotsRequest) GetPageToken() string
func (*ListTopicSnapshotsRequest) GetTopic ¶
func (m *ListTopicSnapshotsRequest) GetTopic() string
func (*ListTopicSnapshotsRequest) ProtoMessage ¶
func (*ListTopicSnapshotsRequest) ProtoMessage()
func (*ListTopicSnapshotsRequest) Reset ¶
func (m *ListTopicSnapshotsRequest) Reset()
func (*ListTopicSnapshotsRequest) String ¶
func (m *ListTopicSnapshotsRequest) String() string
func (*ListTopicSnapshotsRequest) XXX_DiscardUnknown ¶
func (m *ListTopicSnapshotsRequest) XXX_DiscardUnknown()
func (*ListTopicSnapshotsRequest) XXX_Marshal ¶
func (m *ListTopicSnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTopicSnapshotsRequest) XXX_Merge ¶
func (m *ListTopicSnapshotsRequest) XXX_Merge(src proto.Message)
func (*ListTopicSnapshotsRequest) XXX_Size ¶
func (m *ListTopicSnapshotsRequest) XXX_Size() int
func (*ListTopicSnapshotsRequest) XXX_Unmarshal ¶
func (m *ListTopicSnapshotsRequest) XXX_Unmarshal(b []byte) error
type ListTopicSnapshotsResponse ¶
type ListTopicSnapshotsResponse struct { // The names of the snapshots that match the request. Snapshots []string `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"` // If not empty, indicates that there may be more snapshots that match // the request; this value should be passed in a new // `ListTopicSnapshotsRequest` to get more snapshots. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for the `ListTopicSnapshots` method.
func (*ListTopicSnapshotsResponse) Descriptor ¶
func (*ListTopicSnapshotsResponse) Descriptor() ([]byte, []int)
func (*ListTopicSnapshotsResponse) GetNextPageToken ¶
func (m *ListTopicSnapshotsResponse) GetNextPageToken() string
func (*ListTopicSnapshotsResponse) GetSnapshots ¶
func (m *ListTopicSnapshotsResponse) GetSnapshots() []string
func (*ListTopicSnapshotsResponse) ProtoMessage ¶
func (*ListTopicSnapshotsResponse) ProtoMessage()
func (*ListTopicSnapshotsResponse) Reset ¶
func (m *ListTopicSnapshotsResponse) Reset()
func (*ListTopicSnapshotsResponse) String ¶
func (m *ListTopicSnapshotsResponse) String() string
func (*ListTopicSnapshotsResponse) XXX_DiscardUnknown ¶
func (m *ListTopicSnapshotsResponse) XXX_DiscardUnknown()
func (*ListTopicSnapshotsResponse) XXX_Marshal ¶
func (m *ListTopicSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTopicSnapshotsResponse) XXX_Merge ¶
func (m *ListTopicSnapshotsResponse) XXX_Merge(src proto.Message)
func (*ListTopicSnapshotsResponse) XXX_Size ¶
func (m *ListTopicSnapshotsResponse) XXX_Size() int
func (*ListTopicSnapshotsResponse) XXX_Unmarshal ¶
func (m *ListTopicSnapshotsResponse) XXX_Unmarshal(b []byte) error
type ListTopicSubscriptionsRequest ¶
type ListTopicSubscriptionsRequest struct { // Required. The name of the topic that subscriptions are attached to. // Format is `projects/{project}/topics/{topic}`. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` // Maximum number of subscription names to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListTopicSubscriptionsResponse`; indicates // that this is a continuation of a prior `ListTopicSubscriptions` call, and // that the system should return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `ListTopicSubscriptions` method.
func (*ListTopicSubscriptionsRequest) Descriptor ¶
func (*ListTopicSubscriptionsRequest) Descriptor() ([]byte, []int)
func (*ListTopicSubscriptionsRequest) GetPageSize ¶
func (m *ListTopicSubscriptionsRequest) GetPageSize() int32
func (*ListTopicSubscriptionsRequest) GetPageToken ¶
func (m *ListTopicSubscriptionsRequest) GetPageToken() string
func (*ListTopicSubscriptionsRequest) GetTopic ¶
func (m *ListTopicSubscriptionsRequest) GetTopic() string
func (*ListTopicSubscriptionsRequest) ProtoMessage ¶
func (*ListTopicSubscriptionsRequest) ProtoMessage()
func (*ListTopicSubscriptionsRequest) Reset ¶
func (m *ListTopicSubscriptionsRequest) Reset()
func (*ListTopicSubscriptionsRequest) String ¶
func (m *ListTopicSubscriptionsRequest) String() string
func (*ListTopicSubscriptionsRequest) XXX_DiscardUnknown ¶
func (m *ListTopicSubscriptionsRequest) XXX_DiscardUnknown()
func (*ListTopicSubscriptionsRequest) XXX_Marshal ¶
func (m *ListTopicSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTopicSubscriptionsRequest) XXX_Merge ¶
func (m *ListTopicSubscriptionsRequest) XXX_Merge(src proto.Message)
func (*ListTopicSubscriptionsRequest) XXX_Size ¶
func (m *ListTopicSubscriptionsRequest) XXX_Size() int
func (*ListTopicSubscriptionsRequest) XXX_Unmarshal ¶
func (m *ListTopicSubscriptionsRequest) XXX_Unmarshal(b []byte) error
type ListTopicSubscriptionsResponse ¶
type ListTopicSubscriptionsResponse struct { // The names of the subscriptions that match the request. Subscriptions []string `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` // If not empty, indicates that there may be more subscriptions that match // the request; this value should be passed in a new // `ListTopicSubscriptionsRequest` to get more subscriptions. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for the `ListTopicSubscriptions` method.
func (*ListTopicSubscriptionsResponse) Descriptor ¶
func (*ListTopicSubscriptionsResponse) Descriptor() ([]byte, []int)
func (*ListTopicSubscriptionsResponse) GetNextPageToken ¶
func (m *ListTopicSubscriptionsResponse) GetNextPageToken() string
func (*ListTopicSubscriptionsResponse) GetSubscriptions ¶
func (m *ListTopicSubscriptionsResponse) GetSubscriptions() []string
func (*ListTopicSubscriptionsResponse) ProtoMessage ¶
func (*ListTopicSubscriptionsResponse) ProtoMessage()
func (*ListTopicSubscriptionsResponse) Reset ¶
func (m *ListTopicSubscriptionsResponse) Reset()
func (*ListTopicSubscriptionsResponse) String ¶
func (m *ListTopicSubscriptionsResponse) String() string
func (*ListTopicSubscriptionsResponse) XXX_DiscardUnknown ¶
func (m *ListTopicSubscriptionsResponse) XXX_DiscardUnknown()
func (*ListTopicSubscriptionsResponse) XXX_Marshal ¶
func (m *ListTopicSubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTopicSubscriptionsResponse) XXX_Merge ¶
func (m *ListTopicSubscriptionsResponse) XXX_Merge(src proto.Message)
func (*ListTopicSubscriptionsResponse) XXX_Size ¶
func (m *ListTopicSubscriptionsResponse) XXX_Size() int
func (*ListTopicSubscriptionsResponse) XXX_Unmarshal ¶
func (m *ListTopicSubscriptionsResponse) XXX_Unmarshal(b []byte) error
type ListTopicsRequest ¶
type ListTopicsRequest struct { // Required. The name of the project in which to list topics. // Format is `projects/{project-id}`. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Maximum number of topics to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListTopicsResponse`; indicates that this is // a continuation of a prior `ListTopics` call, and that the system should // return the next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `ListTopics` method.
func (*ListTopicsRequest) Descriptor ¶
func (*ListTopicsRequest) Descriptor() ([]byte, []int)
func (*ListTopicsRequest) GetPageSize ¶
func (m *ListTopicsRequest) GetPageSize() int32
func (*ListTopicsRequest) GetPageToken ¶
func (m *ListTopicsRequest) GetPageToken() string
func (*ListTopicsRequest) GetProject ¶
func (m *ListTopicsRequest) GetProject() string
func (*ListTopicsRequest) ProtoMessage ¶
func (*ListTopicsRequest) ProtoMessage()
func (*ListTopicsRequest) Reset ¶
func (m *ListTopicsRequest) Reset()
func (*ListTopicsRequest) String ¶
func (m *ListTopicsRequest) String() string
func (*ListTopicsRequest) XXX_DiscardUnknown ¶
func (m *ListTopicsRequest) XXX_DiscardUnknown()
func (*ListTopicsRequest) XXX_Marshal ¶
func (m *ListTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTopicsRequest) XXX_Merge ¶
func (m *ListTopicsRequest) XXX_Merge(src proto.Message)
func (*ListTopicsRequest) XXX_Size ¶
func (m *ListTopicsRequest) XXX_Size() int
func (*ListTopicsRequest) XXX_Unmarshal ¶
func (m *ListTopicsRequest) XXX_Unmarshal(b []byte) error
type ListTopicsResponse ¶
type ListTopicsResponse struct { // The resulting topics. Topics []*Topic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` // If not empty, indicates that there may be more topics that match the // request; this value should be passed in a new `ListTopicsRequest`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for the `ListTopics` method.
func (*ListTopicsResponse) Descriptor ¶
func (*ListTopicsResponse) Descriptor() ([]byte, []int)
func (*ListTopicsResponse) GetNextPageToken ¶
func (m *ListTopicsResponse) GetNextPageToken() string
func (*ListTopicsResponse) GetTopics ¶
func (m *ListTopicsResponse) GetTopics() []*Topic
func (*ListTopicsResponse) ProtoMessage ¶
func (*ListTopicsResponse) ProtoMessage()
func (*ListTopicsResponse) Reset ¶
func (m *ListTopicsResponse) Reset()
func (*ListTopicsResponse) String ¶
func (m *ListTopicsResponse) String() string
func (*ListTopicsResponse) XXX_DiscardUnknown ¶
func (m *ListTopicsResponse) XXX_DiscardUnknown()
func (*ListTopicsResponse) XXX_Marshal ¶
func (m *ListTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTopicsResponse) XXX_Merge ¶
func (m *ListTopicsResponse) XXX_Merge(src proto.Message)
func (*ListTopicsResponse) XXX_Size ¶
func (m *ListTopicsResponse) XXX_Size() int
func (*ListTopicsResponse) XXX_Unmarshal ¶
func (m *ListTopicsResponse) XXX_Unmarshal(b []byte) error
type MessageStoragePolicy ¶
type MessageStoragePolicy struct { // A list of IDs of GCP regions where messages that are published to the topic // may be persisted in storage. Messages published by publishers running in // non-allowed GCP regions (or running outside of GCP altogether) will be // routed for storage in one of the allowed regions. An empty list means that // no regions are allowed, and is not a valid configuration. AllowedPersistenceRegions []string `` /* 138-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MessageStoragePolicy) Descriptor ¶
func (*MessageStoragePolicy) Descriptor() ([]byte, []int)
func (*MessageStoragePolicy) GetAllowedPersistenceRegions ¶
func (m *MessageStoragePolicy) GetAllowedPersistenceRegions() []string
func (*MessageStoragePolicy) ProtoMessage ¶
func (*MessageStoragePolicy) ProtoMessage()
func (*MessageStoragePolicy) Reset ¶
func (m *MessageStoragePolicy) Reset()
func (*MessageStoragePolicy) String ¶
func (m *MessageStoragePolicy) String() string
func (*MessageStoragePolicy) XXX_DiscardUnknown ¶
func (m *MessageStoragePolicy) XXX_DiscardUnknown()
func (*MessageStoragePolicy) XXX_Marshal ¶
func (m *MessageStoragePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MessageStoragePolicy) XXX_Merge ¶
func (m *MessageStoragePolicy) XXX_Merge(src proto.Message)
func (*MessageStoragePolicy) XXX_Size ¶
func (m *MessageStoragePolicy) XXX_Size() int
func (*MessageStoragePolicy) XXX_Unmarshal ¶
func (m *MessageStoragePolicy) XXX_Unmarshal(b []byte) error
type ModifyAckDeadlineRequest ¶
type ModifyAckDeadlineRequest struct { // Required. The name of the subscription. // Format is `projects/{project}/subscriptions/{sub}`. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` // Required. List of acknowledgment IDs. AckIds []string `protobuf:"bytes,4,rep,name=ack_ids,json=ackIds,proto3" json:"ack_ids,omitempty"` // Required. The new ack deadline with respect to the time this request was // sent to the Pub/Sub system. For example, if the value is 10, the new ack // deadline will expire 10 seconds after the `ModifyAckDeadline` call was // made. Specifying zero might immediately make the message available for // delivery to another subscriber client. This typically results in an // increase in the rate of message redeliveries (that is, duplicates). // The minimum deadline you can specify is 0 seconds. // The maximum deadline you can specify is 600 seconds (10 minutes). AckDeadlineSeconds int32 `protobuf:"varint,3,opt,name=ack_deadline_seconds,json=ackDeadlineSeconds,proto3" json:"ack_deadline_seconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the ModifyAckDeadline method.
func (*ModifyAckDeadlineRequest) Descriptor ¶
func (*ModifyAckDeadlineRequest) Descriptor() ([]byte, []int)
func (*ModifyAckDeadlineRequest) GetAckDeadlineSeconds ¶
func (m *ModifyAckDeadlineRequest) GetAckDeadlineSeconds() int32
func (*ModifyAckDeadlineRequest) GetAckIds ¶
func (m *ModifyAckDeadlineRequest) GetAckIds() []string
func (*ModifyAckDeadlineRequest) GetSubscription ¶
func (m *ModifyAckDeadlineRequest) GetSubscription() string
func (*ModifyAckDeadlineRequest) ProtoMessage ¶
func (*ModifyAckDeadlineRequest) ProtoMessage()
func (*ModifyAckDeadlineRequest) Reset ¶
func (m *ModifyAckDeadlineRequest) Reset()
func (*ModifyAckDeadlineRequest) String ¶
func (m *ModifyAckDeadlineRequest) String() string
func (*ModifyAckDeadlineRequest) XXX_DiscardUnknown ¶
func (m *ModifyAckDeadlineRequest) XXX_DiscardUnknown()
func (*ModifyAckDeadlineRequest) XXX_Marshal ¶
func (m *ModifyAckDeadlineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModifyAckDeadlineRequest) XXX_Merge ¶
func (m *ModifyAckDeadlineRequest) XXX_Merge(src proto.Message)
func (*ModifyAckDeadlineRequest) XXX_Size ¶
func (m *ModifyAckDeadlineRequest) XXX_Size() int
func (*ModifyAckDeadlineRequest) XXX_Unmarshal ¶
func (m *ModifyAckDeadlineRequest) XXX_Unmarshal(b []byte) error
type ModifyPushConfigRequest ¶
type ModifyPushConfigRequest struct { // Required. The name of the subscription. // Format is `projects/{project}/subscriptions/{sub}`. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` // Required. The push configuration for future deliveries. // // An empty `pushConfig` indicates that the Pub/Sub system should // stop pushing messages from the given subscription and allow // messages to be pulled and acknowledged - effectively pausing // the subscription if `Pull` or `StreamingPull` is not called. PushConfig *PushConfig `protobuf:"bytes,2,opt,name=push_config,json=pushConfig,proto3" json:"push_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the ModifyPushConfig method.
func (*ModifyPushConfigRequest) Descriptor ¶
func (*ModifyPushConfigRequest) Descriptor() ([]byte, []int)
func (*ModifyPushConfigRequest) GetPushConfig ¶
func (m *ModifyPushConfigRequest) GetPushConfig() *PushConfig
func (*ModifyPushConfigRequest) GetSubscription ¶
func (m *ModifyPushConfigRequest) GetSubscription() string
func (*ModifyPushConfigRequest) ProtoMessage ¶
func (*ModifyPushConfigRequest) ProtoMessage()
func (*ModifyPushConfigRequest) Reset ¶
func (m *ModifyPushConfigRequest) Reset()
func (*ModifyPushConfigRequest) String ¶
func (m *ModifyPushConfigRequest) String() string
func (*ModifyPushConfigRequest) XXX_DiscardUnknown ¶
func (m *ModifyPushConfigRequest) XXX_DiscardUnknown()
func (*ModifyPushConfigRequest) XXX_Marshal ¶
func (m *ModifyPushConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModifyPushConfigRequest) XXX_Merge ¶
func (m *ModifyPushConfigRequest) XXX_Merge(src proto.Message)
func (*ModifyPushConfigRequest) XXX_Size ¶
func (m *ModifyPushConfigRequest) XXX_Size() int
func (*ModifyPushConfigRequest) XXX_Unmarshal ¶
func (m *ModifyPushConfigRequest) XXX_Unmarshal(b []byte) error
type PublishRequest ¶
type PublishRequest struct { // Required. The messages in the request will be published on this topic. // Format is `projects/{project}/topics/{topic}`. Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` // Required. The messages to publish. Messages []*PubsubMessage `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the Publish method.
func (*PublishRequest) Descriptor ¶
func (*PublishRequest) Descriptor() ([]byte, []int)
func (*PublishRequest) GetMessages ¶
func (m *PublishRequest) GetMessages() []*PubsubMessage
func (*PublishRequest) GetTopic ¶
func (m *PublishRequest) GetTopic() string
func (*PublishRequest) ProtoMessage ¶
func (*PublishRequest) ProtoMessage()
func (*PublishRequest) Reset ¶
func (m *PublishRequest) Reset()
func (*PublishRequest) String ¶
func (m *PublishRequest) String() string
func (*PublishRequest) XXX_DiscardUnknown ¶
func (m *PublishRequest) XXX_DiscardUnknown()
func (*PublishRequest) XXX_Marshal ¶
func (m *PublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublishRequest) XXX_Merge ¶
func (m *PublishRequest) XXX_Merge(src proto.Message)
func (*PublishRequest) XXX_Size ¶
func (m *PublishRequest) XXX_Size() int
func (*PublishRequest) XXX_Unmarshal ¶
func (m *PublishRequest) XXX_Unmarshal(b []byte) error
type PublishResponse ¶
type PublishResponse struct { // The server-assigned ID of each published message, in the same order as // the messages in the request. IDs are guaranteed to be unique within // the topic. MessageIds []string `protobuf:"bytes,1,rep,name=message_ids,json=messageIds,proto3" json:"message_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for the `Publish` method.
func (*PublishResponse) Descriptor ¶
func (*PublishResponse) Descriptor() ([]byte, []int)
func (*PublishResponse) GetMessageIds ¶
func (m *PublishResponse) GetMessageIds() []string
func (*PublishResponse) ProtoMessage ¶
func (*PublishResponse) ProtoMessage()
func (*PublishResponse) Reset ¶
func (m *PublishResponse) Reset()
func (*PublishResponse) String ¶
func (m *PublishResponse) String() string
func (*PublishResponse) XXX_DiscardUnknown ¶
func (m *PublishResponse) XXX_DiscardUnknown()
func (*PublishResponse) XXX_Marshal ¶
func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublishResponse) XXX_Merge ¶
func (m *PublishResponse) XXX_Merge(src proto.Message)
func (*PublishResponse) XXX_Size ¶
func (m *PublishResponse) XXX_Size() int
func (*PublishResponse) XXX_Unmarshal ¶
func (m *PublishResponse) XXX_Unmarshal(b []byte) error
type PublisherClient ¶
type PublisherClient interface { // Creates the given topic with the given name. See the // <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> // resource name rules</a>. CreateTopic(ctx context.Context, in *Topic, opts ...grpc.CallOption) (*Topic, error) // Updates an existing topic. Note that certain properties of a // topic are not modifiable. UpdateTopic(ctx context.Context, in *UpdateTopicRequest, opts ...grpc.CallOption) (*Topic, error) // Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic // does not exist. Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error) // Gets the configuration of a topic. GetTopic(ctx context.Context, in *GetTopicRequest, opts ...grpc.CallOption) (*Topic, error) // Lists matching topics. ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error) // Lists the names of the subscriptions on this topic. ListTopicSubscriptions(ctx context.Context, in *ListTopicSubscriptionsRequest, opts ...grpc.CallOption) (*ListTopicSubscriptionsResponse, error) // Lists the names of the snapshots on this topic. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. ListTopicSnapshots(ctx context.Context, in *ListTopicSnapshotsRequest, opts ...grpc.CallOption) (*ListTopicSnapshotsResponse, error) // Deletes the topic with the given name. Returns `NOT_FOUND` if the topic // does not exist. After a topic is deleted, a new topic may be created with // the same name; this is an entirely new topic with none of the old // configuration or subscriptions. Existing subscriptions to this topic are // not deleted, but their `topic` field is set to `_deleted-topic_`. DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
PublisherClient is the client API for Publisher service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPublisherClient ¶
func NewPublisherClient(cc grpc.ClientConnInterface) PublisherClient
type PublisherServer ¶
type PublisherServer interface { // Creates the given topic with the given name. See the // <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> // resource name rules</a>. CreateTopic(context.Context, *Topic) (*Topic, error) // Updates an existing topic. Note that certain properties of a // topic are not modifiable. UpdateTopic(context.Context, *UpdateTopicRequest) (*Topic, error) // Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic // does not exist. Publish(context.Context, *PublishRequest) (*PublishResponse, error) // Gets the configuration of a topic. GetTopic(context.Context, *GetTopicRequest) (*Topic, error) // Lists matching topics. ListTopics(context.Context, *ListTopicsRequest) (*ListTopicsResponse, error) // Lists the names of the subscriptions on this topic. ListTopicSubscriptions(context.Context, *ListTopicSubscriptionsRequest) (*ListTopicSubscriptionsResponse, error) // Lists the names of the snapshots on this topic. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. ListTopicSnapshots(context.Context, *ListTopicSnapshotsRequest) (*ListTopicSnapshotsResponse, error) // Deletes the topic with the given name. Returns `NOT_FOUND` if the topic // does not exist. After a topic is deleted, a new topic may be created with // the same name; this is an entirely new topic with none of the old // configuration or subscriptions. Existing subscriptions to this topic are // not deleted, but their `topic` field is set to `_deleted-topic_`. DeleteTopic(context.Context, *DeleteTopicRequest) (*empty.Empty, error) }
PublisherServer is the server API for Publisher service.
type PubsubMessage ¶
type PubsubMessage struct { // The message data field. If this field is empty, the message must contain // at least one attribute. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Attributes for this message. If this field is empty, the message must // contain non-empty data. Attributes map[string]string `` /* 161-byte string literal not displayed */ // ID of this message, assigned by the server when the message is published. // Guaranteed to be unique within the topic. This value may be read by a // subscriber that receives a `PubsubMessage` via a `Pull` call or a push // delivery. It must not be populated by the publisher in a `Publish` call. MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // The time at which the message was published, populated by the server when // it receives the `Publish` call. It must not be populated by the // publisher in a `Publish` call. PublishTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"` // If non-empty, identifies related messages for which publish order should be // respected. If a `Subscription` has `enable_message_ordering` set to `true`, // messages published with the same non-empty `ordering_key` value will be // delivered to subscribers in the order in which they are received by the // Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest` // must specify the same `ordering_key` value. // <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This // API might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. OrderingKey string `protobuf:"bytes,5,opt,name=ordering_key,json=orderingKey,proto3" json:"ordering_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client library documentation</a> for more information. See <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a> for more information about message limits.
func (*PubsubMessage) Descriptor ¶
func (*PubsubMessage) Descriptor() ([]byte, []int)
func (*PubsubMessage) GetAttributes ¶
func (m *PubsubMessage) GetAttributes() map[string]string
func (*PubsubMessage) GetData ¶
func (m *PubsubMessage) GetData() []byte
func (*PubsubMessage) GetMessageId ¶
func (m *PubsubMessage) GetMessageId() string
func (*PubsubMessage) GetOrderingKey ¶
func (m *PubsubMessage) GetOrderingKey() string
func (*PubsubMessage) GetPublishTime ¶
func (m *PubsubMessage) GetPublishTime() *timestamp.Timestamp
func (*PubsubMessage) ProtoMessage ¶
func (*PubsubMessage) ProtoMessage()
func (*PubsubMessage) Reset ¶
func (m *PubsubMessage) Reset()
func (*PubsubMessage) String ¶
func (m *PubsubMessage) String() string
func (*PubsubMessage) XXX_DiscardUnknown ¶
func (m *PubsubMessage) XXX_DiscardUnknown()
func (*PubsubMessage) XXX_Marshal ¶
func (m *PubsubMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PubsubMessage) XXX_Merge ¶
func (m *PubsubMessage) XXX_Merge(src proto.Message)
func (*PubsubMessage) XXX_Size ¶
func (m *PubsubMessage) XXX_Size() int
func (*PubsubMessage) XXX_Unmarshal ¶
func (m *PubsubMessage) XXX_Unmarshal(b []byte) error
type PullRequest ¶
type PullRequest struct { // Required. The subscription from which messages should be pulled. // Format is `projects/{project}/subscriptions/{sub}`. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` // Optional. If this field set to true, the system will respond immediately // even if it there are no messages available to return in the `Pull` // response. Otherwise, the system may wait (for a bounded amount of time) // until at least one message is available, rather than returning no messages. // Warning: setting this field to `true` is discouraged because it adversely // impacts the performance of `Pull` operations. We recommend that users do // not set this field. ReturnImmediately bool `protobuf:"varint,2,opt,name=return_immediately,json=returnImmediately,proto3" json:"return_immediately,omitempty"` // Deprecated: Do not use. // Required. The maximum number of messages to return for this request. Must // be a positive integer. The Pub/Sub system may return fewer than the number // specified. MaxMessages int32 `protobuf:"varint,3,opt,name=max_messages,json=maxMessages,proto3" json:"max_messages,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `Pull` method.
func (*PullRequest) Descriptor ¶
func (*PullRequest) Descriptor() ([]byte, []int)
func (*PullRequest) GetMaxMessages ¶
func (m *PullRequest) GetMaxMessages() int32
func (*PullRequest) GetReturnImmediately
deprecated
func (m *PullRequest) GetReturnImmediately() bool
Deprecated: Do not use.
func (*PullRequest) GetSubscription ¶
func (m *PullRequest) GetSubscription() string
func (*PullRequest) ProtoMessage ¶
func (*PullRequest) ProtoMessage()
func (*PullRequest) Reset ¶
func (m *PullRequest) Reset()
func (*PullRequest) String ¶
func (m *PullRequest) String() string
func (*PullRequest) XXX_DiscardUnknown ¶
func (m *PullRequest) XXX_DiscardUnknown()
func (*PullRequest) XXX_Marshal ¶
func (m *PullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PullRequest) XXX_Merge ¶
func (m *PullRequest) XXX_Merge(src proto.Message)
func (*PullRequest) XXX_Size ¶
func (m *PullRequest) XXX_Size() int
func (*PullRequest) XXX_Unmarshal ¶
func (m *PullRequest) XXX_Unmarshal(b []byte) error
type PullResponse ¶
type PullResponse struct { // Received Pub/Sub messages. The list will be empty if there are no more // messages available in the backlog. For JSON, the response can be entirely // empty. The Pub/Sub system may return fewer than the `maxMessages` requested // even if there are more messages available in the backlog. ReceivedMessages []*ReceivedMessage `protobuf:"bytes,1,rep,name=received_messages,json=receivedMessages,proto3" json:"received_messages,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for the `Pull` method.
func (*PullResponse) Descriptor ¶
func (*PullResponse) Descriptor() ([]byte, []int)
func (*PullResponse) GetReceivedMessages ¶
func (m *PullResponse) GetReceivedMessages() []*ReceivedMessage
func (*PullResponse) ProtoMessage ¶
func (*PullResponse) ProtoMessage()
func (*PullResponse) Reset ¶
func (m *PullResponse) Reset()
func (*PullResponse) String ¶
func (m *PullResponse) String() string
func (*PullResponse) XXX_DiscardUnknown ¶
func (m *PullResponse) XXX_DiscardUnknown()
func (*PullResponse) XXX_Marshal ¶
func (m *PullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PullResponse) XXX_Merge ¶
func (m *PullResponse) XXX_Merge(src proto.Message)
func (*PullResponse) XXX_Size ¶
func (m *PullResponse) XXX_Size() int
func (*PullResponse) XXX_Unmarshal ¶
func (m *PullResponse) XXX_Unmarshal(b []byte) error
type PushConfig ¶
type PushConfig struct { // A URL locating the endpoint to which messages should be pushed. // For example, a Webhook endpoint might use `https://example.com/push`. PushEndpoint string `protobuf:"bytes,1,opt,name=push_endpoint,json=pushEndpoint,proto3" json:"push_endpoint,omitempty"` // Endpoint configuration attributes that can be used to control different // aspects of the message delivery. // // The only currently supported attribute is `x-goog-version`, which you can // use to change the format of the pushed message. This attribute // indicates the version of the data expected by the endpoint. This // controls the shape of the pushed message (i.e., its fields and metadata). // // If not present during the `CreateSubscription` call, it will default to // the version of the Pub/Sub API used to make such call. If not present in a // `ModifyPushConfig` call, its value will not be changed. `GetSubscription` // calls will always return a valid version, even if the subscription was // created without this attribute. // // The only supported values for the `x-goog-version` attribute are: // // * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. // * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. // // For example: // <pre><code>attributes { "x-goog-version": "v1" } </code></pre> Attributes map[string]string `` /* 161-byte string literal not displayed */ // An authentication method used by push endpoints to verify the source of // push requests. This can be used with push endpoints that are private by // default to allow requests only from the Cloud Pub/Sub system, for example. // This field is optional and should be set only by users interested in // authenticated push. // // Types that are valid to be assigned to AuthenticationMethod: // *PushConfig_OidcToken_ AuthenticationMethod isPushConfig_AuthenticationMethod `protobuf_oneof:"authentication_method"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Configuration for a push delivery endpoint.
func (*PushConfig) Descriptor ¶
func (*PushConfig) Descriptor() ([]byte, []int)
func (*PushConfig) GetAttributes ¶
func (m *PushConfig) GetAttributes() map[string]string
func (*PushConfig) GetAuthenticationMethod ¶
func (m *PushConfig) GetAuthenticationMethod() isPushConfig_AuthenticationMethod
func (*PushConfig) GetOidcToken ¶
func (m *PushConfig) GetOidcToken() *PushConfig_OidcToken
func (*PushConfig) GetPushEndpoint ¶
func (m *PushConfig) GetPushEndpoint() string
func (*PushConfig) ProtoMessage ¶
func (*PushConfig) ProtoMessage()
func (*PushConfig) Reset ¶
func (m *PushConfig) Reset()
func (*PushConfig) String ¶
func (m *PushConfig) String() string
func (*PushConfig) XXX_DiscardUnknown ¶
func (m *PushConfig) XXX_DiscardUnknown()
func (*PushConfig) XXX_Marshal ¶
func (m *PushConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PushConfig) XXX_Merge ¶
func (m *PushConfig) XXX_Merge(src proto.Message)
func (*PushConfig) XXX_OneofWrappers ¶
func (*PushConfig) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*PushConfig) XXX_Size ¶
func (m *PushConfig) XXX_Size() int
func (*PushConfig) XXX_Unmarshal ¶
func (m *PushConfig) XXX_Unmarshal(b []byte) error
type PushConfig_OidcToken ¶
type PushConfig_OidcToken struct { // [Service account // email](https://cloud.google.com/iam/docs/service-accounts) // to be used for generating the OIDC token. The caller (for // CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must // have the iam.serviceAccounts.actAs permission for the service account. ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` // Audience to be used when generating OIDC token. The audience claim // identifies the recipients that the JWT is intended for. The audience // value is a single case-sensitive string. Having multiple values (array) // for the audience field is not supported. More info about the OIDC JWT // token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 // Note: if not specified, the Push endpoint URL will be used. Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Contains information needed for generating an [OpenID Connect token](https://developers.google.com/identity/protocols/OpenIDConnect).
func (*PushConfig_OidcToken) Descriptor ¶
func (*PushConfig_OidcToken) Descriptor() ([]byte, []int)
func (*PushConfig_OidcToken) GetAudience ¶
func (m *PushConfig_OidcToken) GetAudience() string
func (*PushConfig_OidcToken) GetServiceAccountEmail ¶
func (m *PushConfig_OidcToken) GetServiceAccountEmail() string
func (*PushConfig_OidcToken) ProtoMessage ¶
func (*PushConfig_OidcToken) ProtoMessage()
func (*PushConfig_OidcToken) Reset ¶
func (m *PushConfig_OidcToken) Reset()
func (*PushConfig_OidcToken) String ¶
func (m *PushConfig_OidcToken) String() string
func (*PushConfig_OidcToken) XXX_DiscardUnknown ¶
func (m *PushConfig_OidcToken) XXX_DiscardUnknown()
func (*PushConfig_OidcToken) XXX_Marshal ¶
func (m *PushConfig_OidcToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PushConfig_OidcToken) XXX_Merge ¶
func (m *PushConfig_OidcToken) XXX_Merge(src proto.Message)
func (*PushConfig_OidcToken) XXX_Size ¶
func (m *PushConfig_OidcToken) XXX_Size() int
func (*PushConfig_OidcToken) XXX_Unmarshal ¶
func (m *PushConfig_OidcToken) XXX_Unmarshal(b []byte) error
type PushConfig_OidcToken_ ¶
type PushConfig_OidcToken_ struct {
OidcToken *PushConfig_OidcToken `protobuf:"bytes,3,opt,name=oidc_token,json=oidcToken,proto3,oneof"`
}
type ReceivedMessage ¶
type ReceivedMessage struct { // This ID can be used to acknowledge the received message. AckId string `protobuf:"bytes,1,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"` // The message. Message *PubsubMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // The approximate number of times that Cloud Pub/Sub has attempted to deliver // the associated message to a subscriber. // // More precisely, this is 1 + (number of NACKs) + // (number of ack_deadline exceeds) for this message. // // A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline // exceeds event is whenever a message is not acknowledged within // ack_deadline. Note that ack_deadline is initially // Subscription.ackDeadlineSeconds, but may get extended automatically by // the client library. // // Upon the first delivery of a given message, `delivery_attempt` will have a // value of 1. The value is calculated at best effort and is approximate. // // If a DeadLetterPolicy is not set on the subscription, this will be 0. DeliveryAttempt int32 `protobuf:"varint,3,opt,name=delivery_attempt,json=deliveryAttempt,proto3" json:"delivery_attempt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A message and its corresponding acknowledgment ID.
func (*ReceivedMessage) Descriptor ¶
func (*ReceivedMessage) Descriptor() ([]byte, []int)
func (*ReceivedMessage) GetAckId ¶
func (m *ReceivedMessage) GetAckId() string
func (*ReceivedMessage) GetDeliveryAttempt ¶
func (m *ReceivedMessage) GetDeliveryAttempt() int32
func (*ReceivedMessage) GetMessage ¶
func (m *ReceivedMessage) GetMessage() *PubsubMessage
func (*ReceivedMessage) ProtoMessage ¶
func (*ReceivedMessage) ProtoMessage()
func (*ReceivedMessage) Reset ¶
func (m *ReceivedMessage) Reset()
func (*ReceivedMessage) String ¶
func (m *ReceivedMessage) String() string
func (*ReceivedMessage) XXX_DiscardUnknown ¶
func (m *ReceivedMessage) XXX_DiscardUnknown()
func (*ReceivedMessage) XXX_Marshal ¶
func (m *ReceivedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceivedMessage) XXX_Merge ¶
func (m *ReceivedMessage) XXX_Merge(src proto.Message)
func (*ReceivedMessage) XXX_Size ¶
func (m *ReceivedMessage) XXX_Size() int
func (*ReceivedMessage) XXX_Unmarshal ¶
func (m *ReceivedMessage) XXX_Unmarshal(b []byte) error
type RetryPolicy ¶
type RetryPolicy struct { // The minimum delay between consecutive deliveries of a given message. // Value should be between 0 and 600 seconds. Defaults to 10 seconds. MinimumBackoff *duration.Duration `protobuf:"bytes,1,opt,name=minimum_backoff,json=minimumBackoff,proto3" json:"minimum_backoff,omitempty"` // The maximum delay between consecutive deliveries of a given message. // Value should be between 0 and 600 seconds. Defaults to 600 seconds. MaximumBackoff *duration.Duration `protobuf:"bytes,2,opt,name=maximum_backoff,json=maximumBackoff,proto3" json:"maximum_backoff,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A policy that specifies how Cloud Pub/Sub retries message delivery.
Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff.
RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded events for a given message.
Retry Policy is implemented on a best effort basis. At times, the delay between consecutive deliveries may not match the configuration. That is, delay can be more or less than configured backoff.
func (*RetryPolicy) Descriptor ¶
func (*RetryPolicy) Descriptor() ([]byte, []int)
func (*RetryPolicy) GetMaximumBackoff ¶
func (m *RetryPolicy) GetMaximumBackoff() *duration.Duration
func (*RetryPolicy) GetMinimumBackoff ¶
func (m *RetryPolicy) GetMinimumBackoff() *duration.Duration
func (*RetryPolicy) ProtoMessage ¶
func (*RetryPolicy) ProtoMessage()
func (*RetryPolicy) Reset ¶
func (m *RetryPolicy) Reset()
func (*RetryPolicy) String ¶
func (m *RetryPolicy) String() string
func (*RetryPolicy) XXX_DiscardUnknown ¶
func (m *RetryPolicy) XXX_DiscardUnknown()
func (*RetryPolicy) XXX_Marshal ¶
func (m *RetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RetryPolicy) XXX_Merge ¶
func (m *RetryPolicy) XXX_Merge(src proto.Message)
func (*RetryPolicy) XXX_Size ¶
func (m *RetryPolicy) XXX_Size() int
func (*RetryPolicy) XXX_Unmarshal ¶
func (m *RetryPolicy) XXX_Unmarshal(b []byte) error
type SeekRequest ¶
type SeekRequest struct { // Required. The subscription to affect. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` // Types that are valid to be assigned to Target: // *SeekRequest_Time // *SeekRequest_Snapshot Target isSeekRequest_Target `protobuf_oneof:"target"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `Seek` method.
func (*SeekRequest) Descriptor ¶
func (*SeekRequest) Descriptor() ([]byte, []int)
func (*SeekRequest) GetSnapshot ¶
func (m *SeekRequest) GetSnapshot() string
func (*SeekRequest) GetSubscription ¶
func (m *SeekRequest) GetSubscription() string
func (*SeekRequest) GetTarget ¶
func (m *SeekRequest) GetTarget() isSeekRequest_Target
func (*SeekRequest) GetTime ¶
func (m *SeekRequest) GetTime() *timestamp.Timestamp
func (*SeekRequest) ProtoMessage ¶
func (*SeekRequest) ProtoMessage()
func (*SeekRequest) Reset ¶
func (m *SeekRequest) Reset()
func (*SeekRequest) String ¶
func (m *SeekRequest) String() string
func (*SeekRequest) XXX_DiscardUnknown ¶
func (m *SeekRequest) XXX_DiscardUnknown()
func (*SeekRequest) XXX_Marshal ¶
func (m *SeekRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SeekRequest) XXX_Merge ¶
func (m *SeekRequest) XXX_Merge(src proto.Message)
func (*SeekRequest) XXX_OneofWrappers ¶
func (*SeekRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*SeekRequest) XXX_Size ¶
func (m *SeekRequest) XXX_Size() int
func (*SeekRequest) XXX_Unmarshal ¶
func (m *SeekRequest) XXX_Unmarshal(b []byte) error
type SeekRequest_Snapshot ¶
type SeekRequest_Snapshot struct {
Snapshot string `protobuf:"bytes,3,opt,name=snapshot,proto3,oneof"`
}
type SeekRequest_Time ¶
type SeekResponse ¶
type SeekResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for the `Seek` method (this response is empty).
func (*SeekResponse) Descriptor ¶
func (*SeekResponse) Descriptor() ([]byte, []int)
func (*SeekResponse) ProtoMessage ¶
func (*SeekResponse) ProtoMessage()
func (*SeekResponse) Reset ¶
func (m *SeekResponse) Reset()
func (*SeekResponse) String ¶
func (m *SeekResponse) String() string
func (*SeekResponse) XXX_DiscardUnknown ¶
func (m *SeekResponse) XXX_DiscardUnknown()
func (*SeekResponse) XXX_Marshal ¶
func (m *SeekResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SeekResponse) XXX_Merge ¶
func (m *SeekResponse) XXX_Merge(src proto.Message)
func (*SeekResponse) XXX_Size ¶
func (m *SeekResponse) XXX_Size() int
func (*SeekResponse) XXX_Unmarshal ¶
func (m *SeekResponse) XXX_Unmarshal(b []byte) error
type Snapshot ¶
type Snapshot struct { // The name of the snapshot. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of the topic from which this snapshot is retaining messages. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` // The snapshot is guaranteed to exist up until this time. // A newly-created snapshot expires no later than 7 days from the time of its // creation. Its exact lifetime is determined at creation by the existing // backlog in the source subscription. Specifically, the lifetime of the // snapshot is `7 days - (age of oldest unacked message in the subscription)`. // For example, consider a subscription whose oldest unacked message is 3 days // old. If a snapshot is created from this subscription, the snapshot -- which // will always capture this 3-day-old backlog as long as the snapshot // exists -- will expire in 4 days. The service will refuse to create a // snapshot that would expire in less than 1 hour after creation. ExpireTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and // managing labels</a>. Labels map[string]string `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A snapshot resource. Snapshots are used in <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.
func (*Snapshot) Descriptor ¶
func (*Snapshot) GetExpireTime ¶
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
func (*Snapshot) XXX_DiscardUnknown ¶
func (m *Snapshot) XXX_DiscardUnknown()
func (*Snapshot) XXX_Marshal ¶
func (*Snapshot) XXX_Unmarshal ¶
type StreamingPullRequest ¶
type StreamingPullRequest struct { // Required. The subscription for which to initialize the new stream. This // must be provided in the first request on the stream, and must not be set in // subsequent requests from client to server. // Format is `projects/{project}/subscriptions/{sub}`. Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` // List of acknowledgement IDs for acknowledging previously received messages // (received on this stream or a different stream). If an ack ID has expired, // the corresponding message may be redelivered later. Acknowledging a message // more than once will not result in an error. If the acknowledgement ID is // malformed, the stream will be aborted with status `INVALID_ARGUMENT`. AckIds []string `protobuf:"bytes,2,rep,name=ack_ids,json=ackIds,proto3" json:"ack_ids,omitempty"` // The list of new ack deadlines for the IDs listed in // `modify_deadline_ack_ids`. The size of this list must be the same as the // size of `modify_deadline_ack_ids`. If it differs the stream will be aborted // with `INVALID_ARGUMENT`. Each element in this list is applied to the // element in the same position in `modify_deadline_ack_ids`. The new ack // deadline is with respect to the time this request was sent to the Pub/Sub // system. Must be >= 0. For example, if the value is 10, the new ack deadline // will expire 10 seconds after this request is received. If the value is 0, // the message is immediately made available for another streaming or // non-streaming pull request. If the value is < 0 (an error), the stream will // be aborted with status `INVALID_ARGUMENT`. ModifyDeadlineSeconds []int32 `` /* 134-byte string literal not displayed */ // List of acknowledgement IDs whose deadline will be modified based on the // corresponding element in `modify_deadline_seconds`. This field can be used // to indicate that more time is needed to process a message by the // subscriber, or to make the message available for redelivery if the // processing was interrupted. ModifyDeadlineAckIds []string `protobuf:"bytes,4,rep,name=modify_deadline_ack_ids,json=modifyDeadlineAckIds,proto3" json:"modify_deadline_ack_ids,omitempty"` // Required. The ack deadline to use for the stream. This must be provided in // the first request on the stream, but it can also be updated on subsequent // requests from client to server. The minimum deadline you can specify is 10 // seconds. The maximum deadline you can specify is 600 seconds (10 minutes). StreamAckDeadlineSeconds int32 `` /* 138-byte string literal not displayed */ // A unique identifier that is used to distinguish client instances from each // other. Only needs to be provided on the initial request. When a stream // disconnects and reconnects for the same stream, the client_id should be set // to the same value so that state associated with the old stream can be // transferred to the new stream. The same client_id should not be used for // different client instances. ClientId string `protobuf:"bytes,6,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the `StreamingPull` streaming RPC method. This request is used to establish the initial stream as well as to stream acknowledgements and ack deadline modifications from the client to the server.
func (*StreamingPullRequest) Descriptor ¶
func (*StreamingPullRequest) Descriptor() ([]byte, []int)
func (*StreamingPullRequest) GetAckIds ¶
func (m *StreamingPullRequest) GetAckIds() []string
func (*StreamingPullRequest) GetClientId ¶
func (m *StreamingPullRequest) GetClientId() string
func (*StreamingPullRequest) GetModifyDeadlineAckIds ¶
func (m *StreamingPullRequest) GetModifyDeadlineAckIds() []string
func (*StreamingPullRequest) GetModifyDeadlineSeconds ¶
func (m *StreamingPullRequest) GetModifyDeadlineSeconds() []int32
func (*StreamingPullRequest) GetStreamAckDeadlineSeconds ¶
func (m *StreamingPullRequest) GetStreamAckDeadlineSeconds() int32
func (*StreamingPullRequest) GetSubscription ¶
func (m *StreamingPullRequest) GetSubscription() string
func (*StreamingPullRequest) ProtoMessage ¶
func (*StreamingPullRequest) ProtoMessage()
func (*StreamingPullRequest) Reset ¶
func (m *StreamingPullRequest) Reset()
func (*StreamingPullRequest) String ¶
func (m *StreamingPullRequest) String() string
func (*StreamingPullRequest) XXX_DiscardUnknown ¶
func (m *StreamingPullRequest) XXX_DiscardUnknown()
func (*StreamingPullRequest) XXX_Marshal ¶
func (m *StreamingPullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamingPullRequest) XXX_Merge ¶
func (m *StreamingPullRequest) XXX_Merge(src proto.Message)
func (*StreamingPullRequest) XXX_Size ¶
func (m *StreamingPullRequest) XXX_Size() int
func (*StreamingPullRequest) XXX_Unmarshal ¶
func (m *StreamingPullRequest) XXX_Unmarshal(b []byte) error
type StreamingPullResponse ¶
type StreamingPullResponse struct { // Received Pub/Sub messages. This will not be empty. ReceivedMessages []*ReceivedMessage `protobuf:"bytes,1,rep,name=received_messages,json=receivedMessages,proto3" json:"received_messages,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for the `StreamingPull` method. This response is used to stream messages from the server to the client.
func (*StreamingPullResponse) Descriptor ¶
func (*StreamingPullResponse) Descriptor() ([]byte, []int)
func (*StreamingPullResponse) GetReceivedMessages ¶
func (m *StreamingPullResponse) GetReceivedMessages() []*ReceivedMessage
func (*StreamingPullResponse) ProtoMessage ¶
func (*StreamingPullResponse) ProtoMessage()
func (*StreamingPullResponse) Reset ¶
func (m *StreamingPullResponse) Reset()
func (*StreamingPullResponse) String ¶
func (m *StreamingPullResponse) String() string
func (*StreamingPullResponse) XXX_DiscardUnknown ¶
func (m *StreamingPullResponse) XXX_DiscardUnknown()
func (*StreamingPullResponse) XXX_Marshal ¶
func (m *StreamingPullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamingPullResponse) XXX_Merge ¶
func (m *StreamingPullResponse) XXX_Merge(src proto.Message)
func (*StreamingPullResponse) XXX_Size ¶
func (m *StreamingPullResponse) XXX_Size() int
func (*StreamingPullResponse) XXX_Unmarshal ¶
func (m *StreamingPullResponse) XXX_Unmarshal(b []byte) error
type SubscriberClient ¶
type SubscriberClient interface { // Creates a subscription to a given topic. See the // <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> // resource name rules</a>. // If the subscription already exists, returns `ALREADY_EXISTS`. // If the corresponding topic doesn't exist, returns `NOT_FOUND`. // // If the name is not provided in the request, the server will assign a random // name for this subscription on the same project as the topic, conforming // to the // [resource name // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The // generated name is populated in the returned Subscription object. Note that // for REST API requests, you must specify a name in the request. CreateSubscription(ctx context.Context, in *Subscription, opts ...grpc.CallOption) (*Subscription, error) // Gets the configuration details of a subscription. GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error) // Updates an existing subscription. Note that certain properties of a // subscription, such as its topic, are not modifiable. UpdateSubscription(ctx context.Context, in *UpdateSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error) // Lists matching subscriptions. ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error) // Deletes an existing subscription. All messages retained in the subscription // are immediately dropped. Calls to `Pull` after deletion will return // `NOT_FOUND`. After a subscription is deleted, a new one may be created with // the same name, but the new one has no association with the old // subscription or its topic unless the same topic is specified. DeleteSubscription(ctx context.Context, in *DeleteSubscriptionRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Modifies the ack deadline for a specific message. This method is useful // to indicate that more time is needed to process a message by the // subscriber, or to make the message available for redelivery if the // processing was interrupted. Note that this does not modify the // subscription-level `ackDeadlineSeconds` used for subsequent messages. ModifyAckDeadline(ctx context.Context, in *ModifyAckDeadlineRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Acknowledges the messages associated with the `ack_ids` in the // `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages // from the subscription. // // Acknowledging a message whose ack deadline has expired may succeed, // but such a message may be redelivered later. Acknowledging a message more // than once will not result in an error. Acknowledge(ctx context.Context, in *AcknowledgeRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Pulls messages from the server. The server may return `UNAVAILABLE` if // there are too many concurrent pull requests pending for the given // subscription. Pull(ctx context.Context, in *PullRequest, opts ...grpc.CallOption) (*PullResponse, error) // Establishes a stream with the server, which sends messages down to the // client. The client streams acknowledgements and ack deadline modifications // back to the server. The server will close the stream and return the status // on any error. The server may close the stream with status `UNAVAILABLE` to // reassign server-side resources, in which case, the client should // re-establish the stream. Flow control can be achieved by configuring the // underlying RPC channel. StreamingPull(ctx context.Context, opts ...grpc.CallOption) (Subscriber_StreamingPullClient, error) // Modifies the `PushConfig` for a specified subscription. // // This may be used to change a push subscription to a pull one (signified by // an empty `PushConfig`) or vice versa, or change the endpoint URL and other // attributes of a push subscription. Messages will accumulate for delivery // continuously through the call regardless of changes to the `PushConfig`. ModifyPushConfig(ctx context.Context, in *ModifyPushConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets the configuration details of a snapshot. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow you to manage message acknowledgments in bulk. That // is, you can set the acknowledgment state of messages in an existing // subscription to the state captured by a snapshot. GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error) // Lists the existing snapshots. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error) // Creates a snapshot from the requested subscription. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. // <br><br>If the snapshot already exists, returns `ALREADY_EXISTS`. // If the requested subscription doesn't exist, returns `NOT_FOUND`. // If the backlog in the subscription is too old -- and the resulting snapshot // would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. // See also the `Snapshot.expire_time` field. If the name is not provided in // the request, the server will assign a random // name for this snapshot on the same project as the subscription, conforming // to the // [resource name // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The // generated name is populated in the returned Snapshot object. Note that for // REST API requests, you must specify a name in the request. CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error) // Updates an existing snapshot. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. UpdateSnapshot(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error) // Removes an existing snapshot. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot.<br><br> // When the snapshot is deleted, all messages retained in the snapshot // are immediately dropped. After a snapshot is deleted, a new one may be // created with the same name, but the new one has no association with the old // snapshot or its subscription, unless the same subscription is specified. DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Seeks an existing subscription to a point in time or to a given snapshot, // whichever is provided in the request. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. Note that both the subscription and the snapshot // must be on the same topic. Seek(ctx context.Context, in *SeekRequest, opts ...grpc.CallOption) (*SeekResponse, error) }
SubscriberClient is the client API for Subscriber service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSubscriberClient ¶
func NewSubscriberClient(cc grpc.ClientConnInterface) SubscriberClient
type SubscriberServer ¶
type SubscriberServer interface { // Creates a subscription to a given topic. See the // <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> // resource name rules</a>. // If the subscription already exists, returns `ALREADY_EXISTS`. // If the corresponding topic doesn't exist, returns `NOT_FOUND`. // // If the name is not provided in the request, the server will assign a random // name for this subscription on the same project as the topic, conforming // to the // [resource name // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The // generated name is populated in the returned Subscription object. Note that // for REST API requests, you must specify a name in the request. CreateSubscription(context.Context, *Subscription) (*Subscription, error) // Gets the configuration details of a subscription. GetSubscription(context.Context, *GetSubscriptionRequest) (*Subscription, error) // Updates an existing subscription. Note that certain properties of a // subscription, such as its topic, are not modifiable. UpdateSubscription(context.Context, *UpdateSubscriptionRequest) (*Subscription, error) // Lists matching subscriptions. ListSubscriptions(context.Context, *ListSubscriptionsRequest) (*ListSubscriptionsResponse, error) // Deletes an existing subscription. All messages retained in the subscription // are immediately dropped. Calls to `Pull` after deletion will return // `NOT_FOUND`. After a subscription is deleted, a new one may be created with // the same name, but the new one has no association with the old // subscription or its topic unless the same topic is specified. DeleteSubscription(context.Context, *DeleteSubscriptionRequest) (*empty.Empty, error) // Modifies the ack deadline for a specific message. This method is useful // to indicate that more time is needed to process a message by the // subscriber, or to make the message available for redelivery if the // processing was interrupted. Note that this does not modify the // subscription-level `ackDeadlineSeconds` used for subsequent messages. ModifyAckDeadline(context.Context, *ModifyAckDeadlineRequest) (*empty.Empty, error) // Acknowledges the messages associated with the `ack_ids` in the // `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages // from the subscription. // // Acknowledging a message whose ack deadline has expired may succeed, // but such a message may be redelivered later. Acknowledging a message more // than once will not result in an error. Acknowledge(context.Context, *AcknowledgeRequest) (*empty.Empty, error) // Pulls messages from the server. The server may return `UNAVAILABLE` if // there are too many concurrent pull requests pending for the given // subscription. Pull(context.Context, *PullRequest) (*PullResponse, error) // Establishes a stream with the server, which sends messages down to the // client. The client streams acknowledgements and ack deadline modifications // back to the server. The server will close the stream and return the status // on any error. The server may close the stream with status `UNAVAILABLE` to // reassign server-side resources, in which case, the client should // re-establish the stream. Flow control can be achieved by configuring the // underlying RPC channel. StreamingPull(Subscriber_StreamingPullServer) error // Modifies the `PushConfig` for a specified subscription. // // This may be used to change a push subscription to a pull one (signified by // an empty `PushConfig`) or vice versa, or change the endpoint URL and other // attributes of a push subscription. Messages will accumulate for delivery // continuously through the call regardless of changes to the `PushConfig`. ModifyPushConfig(context.Context, *ModifyPushConfigRequest) (*empty.Empty, error) // Gets the configuration details of a snapshot. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow you to manage message acknowledgments in bulk. That // is, you can set the acknowledgment state of messages in an existing // subscription to the state captured by a snapshot. GetSnapshot(context.Context, *GetSnapshotRequest) (*Snapshot, error) // Lists the existing snapshots. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error) // Creates a snapshot from the requested subscription. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. // <br><br>If the snapshot already exists, returns `ALREADY_EXISTS`. // If the requested subscription doesn't exist, returns `NOT_FOUND`. // If the backlog in the subscription is too old -- and the resulting snapshot // would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. // See also the `Snapshot.expire_time` field. If the name is not provided in // the request, the server will assign a random // name for this snapshot on the same project as the subscription, conforming // to the // [resource name // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The // generated name is populated in the returned Snapshot object. Note that for // REST API requests, you must specify a name in the request. CreateSnapshot(context.Context, *CreateSnapshotRequest) (*Snapshot, error) // Updates an existing snapshot. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. UpdateSnapshot(context.Context, *UpdateSnapshotRequest) (*Snapshot, error) // Removes an existing snapshot. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot.<br><br> // When the snapshot is deleted, all messages retained in the snapshot // are immediately dropped. After a snapshot is deleted, a new one may be // created with the same name, but the new one has no association with the old // snapshot or its subscription, unless the same subscription is specified. DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*empty.Empty, error) // Seeks an existing subscription to a point in time or to a given snapshot, // whichever is provided in the request. Snapshots are used in // <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> // operations, which allow // you to manage message acknowledgments in bulk. That is, you can set the // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. Note that both the subscription and the snapshot // must be on the same topic. Seek(context.Context, *SeekRequest) (*SeekResponse, error) }
SubscriberServer is the server API for Subscriber service.
type Subscriber_StreamingPullClient ¶
type Subscriber_StreamingPullClient interface { Send(*StreamingPullRequest) error Recv() (*StreamingPullResponse, error) grpc.ClientStream }
type Subscriber_StreamingPullServer ¶
type Subscriber_StreamingPullServer interface { Send(*StreamingPullResponse) error Recv() (*StreamingPullRequest, error) grpc.ServerStream }
type Subscription ¶
type Subscription struct { // Required. The name of the subscription. It must have the format // `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must // start with a letter, and contain only letters (`[A-Za-z]`), numbers // (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), // plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters // in length, and it must not start with `"goog"`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The name of the topic from which this subscription is receiving // messages. Format is `projects/{project}/topics/{topic}`. The value of this // field will be `_deleted-topic_` if the topic has been deleted. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` // If push delivery is used with this subscription, this field is // used to configure it. An empty `pushConfig` signifies that the subscriber // will pull and ack messages using API methods. PushConfig *PushConfig `protobuf:"bytes,4,opt,name=push_config,json=pushConfig,proto3" json:"push_config,omitempty"` // The approximate amount of time (on a best-effort basis) Pub/Sub waits for // the subscriber to acknowledge receipt before resending the message. In the // interval after the message is delivered and before it is acknowledged, it // is considered to be <i>outstanding</i>. During that time period, the // message will not be redelivered (on a best-effort basis). // // For pull subscriptions, this value is used as the initial value for the ack // deadline. To override this value for a given message, call // `ModifyAckDeadline` with the corresponding `ack_id` if using // non-streaming pull or send the `ack_id` in a // `StreamingModifyAckDeadlineRequest` if using streaming pull. // The minimum custom deadline you can specify is 10 seconds. // The maximum custom deadline you can specify is 600 seconds (10 minutes). // If this parameter is 0, a default value of 10 seconds is used. // // For push delivery, this value is also used to set the request timeout for // the call to the push endpoint. // // If the subscriber never acknowledges the message, the Pub/Sub // system will eventually redeliver the message. AckDeadlineSeconds int32 `protobuf:"varint,5,opt,name=ack_deadline_seconds,json=ackDeadlineSeconds,proto3" json:"ack_deadline_seconds,omitempty"` // Indicates whether to retain acknowledged messages. If true, then // messages are not expunged from the subscription's backlog, even if they are // acknowledged, until they fall out of the `message_retention_duration` // window. This must be true if you would like to // <a // href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> // Seek to a timestamp</a>. RetainAckedMessages bool `protobuf:"varint,7,opt,name=retain_acked_messages,json=retainAckedMessages,proto3" json:"retain_acked_messages,omitempty"` // How long to retain unacknowledged messages in the subscription's backlog, // from the moment a message is published. // If `retain_acked_messages` is true, then this also configures the retention // of acknowledged messages, and thus configures how far back in time a `Seek` // can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10 // minutes. MessageRetentionDuration *duration.Duration `` /* 135-byte string literal not displayed */ // See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and // managing labels</a>. Labels map[string]string `` /* 153-byte string literal not displayed */ // If true, messages published with the same `ordering_key` in `PubsubMessage` // will be delivered to the subscribers in the order in which they // are received by the Pub/Sub system. Otherwise, they may be delivered in // any order. // <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This // API might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. EnableMessageOrdering bool `` /* 128-byte string literal not displayed */ // A policy that specifies the conditions for this subscription's expiration. // A subscription is considered active as long as any connected subscriber is // successfully consuming messages from the subscription or is issuing // operations on the subscription. If `expiration_policy` is not set, a // *default policy* with `ttl` of 31 days will be used. The minimum allowed // value for `expiration_policy.ttl` is 1 day. ExpirationPolicy *ExpirationPolicy `protobuf:"bytes,11,opt,name=expiration_policy,json=expirationPolicy,proto3" json:"expiration_policy,omitempty"` // An expression written in the Cloud Pub/Sub filter language. If non-empty, // then only `PubsubMessage`s whose `attributes` field matches the filter are // delivered on this subscription. If empty, then no messages are filtered // out. // <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This // API might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. Filter string `protobuf:"bytes,12,opt,name=filter,proto3" json:"filter,omitempty"` // A policy that specifies the conditions for dead lettering messages in // this subscription. If dead_letter_policy is not set, dead lettering // is disabled. // // The Cloud Pub/Sub service account associated with this subscriptions's // parent project (i.e., // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have // permission to Acknowledge() messages on this subscription. DeadLetterPolicy *DeadLetterPolicy `protobuf:"bytes,13,opt,name=dead_letter_policy,json=deadLetterPolicy,proto3" json:"dead_letter_policy,omitempty"` // A policy that specifies how Cloud Pub/Sub retries message delivery for this // subscription. // // If not set, the default retry policy is applied. This generally implies // that messages will be retried as soon as possible for healthy subscribers. // RetryPolicy will be triggered on NACKs or acknowledgement deadline // exceeded events for a given message. // <b>EXPERIMENTAL:</b> This API might be changed in backward-incompatible // ways and is not recommended for production use. It is not subject to any // SLA or deprecation policy. RetryPolicy *RetryPolicy `protobuf:"bytes,14,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A subscription resource.
func (*Subscription) Descriptor ¶
func (*Subscription) Descriptor() ([]byte, []int)
func (*Subscription) GetAckDeadlineSeconds ¶
func (m *Subscription) GetAckDeadlineSeconds() int32
func (*Subscription) GetDeadLetterPolicy ¶
func (m *Subscription) GetDeadLetterPolicy() *DeadLetterPolicy
func (*Subscription) GetEnableMessageOrdering ¶
func (m *Subscription) GetEnableMessageOrdering() bool
func (*Subscription) GetExpirationPolicy ¶
func (m *Subscription) GetExpirationPolicy() *ExpirationPolicy
func (*Subscription) GetFilter ¶
func (m *Subscription) GetFilter() string
func (*Subscription) GetLabels ¶
func (m *Subscription) GetLabels() map[string]string
func (*Subscription) GetMessageRetentionDuration ¶
func (m *Subscription) GetMessageRetentionDuration() *duration.Duration
func (*Subscription) GetName ¶
func (m *Subscription) GetName() string
func (*Subscription) GetPushConfig ¶
func (m *Subscription) GetPushConfig() *PushConfig
func (*Subscription) GetRetainAckedMessages ¶
func (m *Subscription) GetRetainAckedMessages() bool
func (*Subscription) GetRetryPolicy ¶
func (m *Subscription) GetRetryPolicy() *RetryPolicy
func (*Subscription) GetTopic ¶
func (m *Subscription) GetTopic() string
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) Reset ¶
func (m *Subscription) Reset()
func (*Subscription) String ¶
func (m *Subscription) String() string
func (*Subscription) XXX_DiscardUnknown ¶
func (m *Subscription) XXX_DiscardUnknown()
func (*Subscription) XXX_Marshal ¶
func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Subscription) XXX_Merge ¶
func (m *Subscription) XXX_Merge(src proto.Message)
func (*Subscription) XXX_Size ¶
func (m *Subscription) XXX_Size() int
func (*Subscription) XXX_Unmarshal ¶
func (m *Subscription) XXX_Unmarshal(b []byte) error
type Topic ¶
type Topic struct { // Required. The name of the topic. It must have the format // `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, // and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), // underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent // signs (`%`). It must be between 3 and 255 characters in length, and it // must not start with `"goog"`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and // managing labels</a>. Labels map[string]string `` /* 153-byte string literal not displayed */ // Policy constraining the set of Google Cloud Platform regions where messages // published to the topic may be stored. If not present, then no constraints // are in effect. MessageStoragePolicy *MessageStoragePolicy `protobuf:"bytes,3,opt,name=message_storage_policy,json=messageStoragePolicy,proto3" json:"message_storage_policy,omitempty"` // The resource name of the Cloud KMS CryptoKey to be used to protect access // to messages published on this topic. // // The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. KmsKeyName string `protobuf:"bytes,5,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A topic resource.
func (*Topic) Descriptor ¶
func (*Topic) GetKmsKeyName ¶
func (*Topic) GetMessageStoragePolicy ¶
func (m *Topic) GetMessageStoragePolicy() *MessageStoragePolicy
func (*Topic) ProtoMessage ¶
func (*Topic) ProtoMessage()
func (*Topic) XXX_DiscardUnknown ¶
func (m *Topic) XXX_DiscardUnknown()
func (*Topic) XXX_Marshal ¶
func (*Topic) XXX_Unmarshal ¶
type UnimplementedPublisherServer ¶
type UnimplementedPublisherServer struct { }
UnimplementedPublisherServer can be embedded to have forward compatible implementations.
func (*UnimplementedPublisherServer) CreateTopic ¶
func (*UnimplementedPublisherServer) DeleteTopic ¶
func (*UnimplementedPublisherServer) DeleteTopic(ctx context.Context, req *DeleteTopicRequest) (*empty.Empty, error)
func (*UnimplementedPublisherServer) GetTopic ¶
func (*UnimplementedPublisherServer) GetTopic(ctx context.Context, req *GetTopicRequest) (*Topic, error)
func (*UnimplementedPublisherServer) ListTopicSnapshots ¶
func (*UnimplementedPublisherServer) ListTopicSnapshots(ctx context.Context, req *ListTopicSnapshotsRequest) (*ListTopicSnapshotsResponse, error)
func (*UnimplementedPublisherServer) ListTopicSubscriptions ¶
func (*UnimplementedPublisherServer) ListTopicSubscriptions(ctx context.Context, req *ListTopicSubscriptionsRequest) (*ListTopicSubscriptionsResponse, error)
func (*UnimplementedPublisherServer) ListTopics ¶
func (*UnimplementedPublisherServer) ListTopics(ctx context.Context, req *ListTopicsRequest) (*ListTopicsResponse, error)
func (*UnimplementedPublisherServer) Publish ¶
func (*UnimplementedPublisherServer) Publish(ctx context.Context, req *PublishRequest) (*PublishResponse, error)
func (*UnimplementedPublisherServer) UpdateTopic ¶
func (*UnimplementedPublisherServer) UpdateTopic(ctx context.Context, req *UpdateTopicRequest) (*Topic, error)
type UnimplementedSubscriberServer ¶
type UnimplementedSubscriberServer struct { }
UnimplementedSubscriberServer can be embedded to have forward compatible implementations.
func (*UnimplementedSubscriberServer) Acknowledge ¶
func (*UnimplementedSubscriberServer) Acknowledge(ctx context.Context, req *AcknowledgeRequest) (*empty.Empty, error)
func (*UnimplementedSubscriberServer) CreateSnapshot ¶
func (*UnimplementedSubscriberServer) CreateSnapshot(ctx context.Context, req *CreateSnapshotRequest) (*Snapshot, error)
func (*UnimplementedSubscriberServer) CreateSubscription ¶
func (*UnimplementedSubscriberServer) CreateSubscription(ctx context.Context, req *Subscription) (*Subscription, error)
func (*UnimplementedSubscriberServer) DeleteSnapshot ¶
func (*UnimplementedSubscriberServer) DeleteSnapshot(ctx context.Context, req *DeleteSnapshotRequest) (*empty.Empty, error)
func (*UnimplementedSubscriberServer) DeleteSubscription ¶
func (*UnimplementedSubscriberServer) DeleteSubscription(ctx context.Context, req *DeleteSubscriptionRequest) (*empty.Empty, error)
func (*UnimplementedSubscriberServer) GetSnapshot ¶
func (*UnimplementedSubscriberServer) GetSnapshot(ctx context.Context, req *GetSnapshotRequest) (*Snapshot, error)
func (*UnimplementedSubscriberServer) GetSubscription ¶
func (*UnimplementedSubscriberServer) GetSubscription(ctx context.Context, req *GetSubscriptionRequest) (*Subscription, error)
func (*UnimplementedSubscriberServer) ListSnapshots ¶
func (*UnimplementedSubscriberServer) ListSnapshots(ctx context.Context, req *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
func (*UnimplementedSubscriberServer) ListSubscriptions ¶
func (*UnimplementedSubscriberServer) ListSubscriptions(ctx context.Context, req *ListSubscriptionsRequest) (*ListSubscriptionsResponse, error)
func (*UnimplementedSubscriberServer) ModifyAckDeadline ¶
func (*UnimplementedSubscriberServer) ModifyAckDeadline(ctx context.Context, req *ModifyAckDeadlineRequest) (*empty.Empty, error)
func (*UnimplementedSubscriberServer) ModifyPushConfig ¶
func (*UnimplementedSubscriberServer) ModifyPushConfig(ctx context.Context, req *ModifyPushConfigRequest) (*empty.Empty, error)
func (*UnimplementedSubscriberServer) Pull ¶
func (*UnimplementedSubscriberServer) Pull(ctx context.Context, req *PullRequest) (*PullResponse, error)
func (*UnimplementedSubscriberServer) Seek ¶
func (*UnimplementedSubscriberServer) Seek(ctx context.Context, req *SeekRequest) (*SeekResponse, error)
func (*UnimplementedSubscriberServer) StreamingPull ¶
func (*UnimplementedSubscriberServer) StreamingPull(srv Subscriber_StreamingPullServer) error
func (*UnimplementedSubscriberServer) UpdateSnapshot ¶
func (*UnimplementedSubscriberServer) UpdateSnapshot(ctx context.Context, req *UpdateSnapshotRequest) (*Snapshot, error)
func (*UnimplementedSubscriberServer) UpdateSubscription ¶
func (*UnimplementedSubscriberServer) UpdateSubscription(ctx context.Context, req *UpdateSubscriptionRequest) (*Subscription, error)
type UpdateSnapshotRequest ¶
type UpdateSnapshotRequest struct { // Required. The updated snapshot object. Snapshot *Snapshot `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"` // Required. Indicates which fields in the provided snapshot to update. // Must be specified and non-empty. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the UpdateSnapshot method.
func (*UpdateSnapshotRequest) Descriptor ¶
func (*UpdateSnapshotRequest) Descriptor() ([]byte, []int)
func (*UpdateSnapshotRequest) GetSnapshot ¶
func (m *UpdateSnapshotRequest) GetSnapshot() *Snapshot
func (*UpdateSnapshotRequest) GetUpdateMask ¶
func (m *UpdateSnapshotRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateSnapshotRequest) ProtoMessage ¶
func (*UpdateSnapshotRequest) ProtoMessage()
func (*UpdateSnapshotRequest) Reset ¶
func (m *UpdateSnapshotRequest) Reset()
func (*UpdateSnapshotRequest) String ¶
func (m *UpdateSnapshotRequest) String() string
func (*UpdateSnapshotRequest) XXX_DiscardUnknown ¶
func (m *UpdateSnapshotRequest) XXX_DiscardUnknown()
func (*UpdateSnapshotRequest) XXX_Marshal ¶
func (m *UpdateSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateSnapshotRequest) XXX_Merge ¶
func (m *UpdateSnapshotRequest) XXX_Merge(src proto.Message)
func (*UpdateSnapshotRequest) XXX_Size ¶
func (m *UpdateSnapshotRequest) XXX_Size() int
func (*UpdateSnapshotRequest) XXX_Unmarshal ¶
func (m *UpdateSnapshotRequest) XXX_Unmarshal(b []byte) error
type UpdateSubscriptionRequest ¶
type UpdateSubscriptionRequest struct { // Required. The updated subscription object. Subscription *Subscription `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` // Required. Indicates which fields in the provided subscription to update. // Must be specified and non-empty. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the UpdateSubscription method.
func (*UpdateSubscriptionRequest) Descriptor ¶
func (*UpdateSubscriptionRequest) Descriptor() ([]byte, []int)
func (*UpdateSubscriptionRequest) GetSubscription ¶
func (m *UpdateSubscriptionRequest) GetSubscription() *Subscription
func (*UpdateSubscriptionRequest) GetUpdateMask ¶
func (m *UpdateSubscriptionRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateSubscriptionRequest) ProtoMessage ¶
func (*UpdateSubscriptionRequest) ProtoMessage()
func (*UpdateSubscriptionRequest) Reset ¶
func (m *UpdateSubscriptionRequest) Reset()
func (*UpdateSubscriptionRequest) String ¶
func (m *UpdateSubscriptionRequest) String() string
func (*UpdateSubscriptionRequest) XXX_DiscardUnknown ¶
func (m *UpdateSubscriptionRequest) XXX_DiscardUnknown()
func (*UpdateSubscriptionRequest) XXX_Marshal ¶
func (m *UpdateSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateSubscriptionRequest) XXX_Merge ¶
func (m *UpdateSubscriptionRequest) XXX_Merge(src proto.Message)
func (*UpdateSubscriptionRequest) XXX_Size ¶
func (m *UpdateSubscriptionRequest) XXX_Size() int
func (*UpdateSubscriptionRequest) XXX_Unmarshal ¶
func (m *UpdateSubscriptionRequest) XXX_Unmarshal(b []byte) error
type UpdateTopicRequest ¶
type UpdateTopicRequest struct { // Required. The updated topic object. Topic *Topic `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` // Required. Indicates which fields in the provided topic to update. Must be // specified and non-empty. Note that if `update_mask` contains // "message_storage_policy" but the `message_storage_policy` is not set in // the `topic` provided above, then the updated value is determined by the // policy configured at the project or organization level. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request for the UpdateTopic method.
func (*UpdateTopicRequest) Descriptor ¶
func (*UpdateTopicRequest) Descriptor() ([]byte, []int)
func (*UpdateTopicRequest) GetTopic ¶
func (m *UpdateTopicRequest) GetTopic() *Topic
func (*UpdateTopicRequest) GetUpdateMask ¶
func (m *UpdateTopicRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateTopicRequest) ProtoMessage ¶
func (*UpdateTopicRequest) ProtoMessage()
func (*UpdateTopicRequest) Reset ¶
func (m *UpdateTopicRequest) Reset()
func (*UpdateTopicRequest) String ¶
func (m *UpdateTopicRequest) String() string
func (*UpdateTopicRequest) XXX_DiscardUnknown ¶
func (m *UpdateTopicRequest) XXX_DiscardUnknown()
func (*UpdateTopicRequest) XXX_Marshal ¶
func (m *UpdateTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateTopicRequest) XXX_Merge ¶
func (m *UpdateTopicRequest) XXX_Merge(src proto.Message)
func (*UpdateTopicRequest) XXX_Size ¶
func (m *UpdateTopicRequest) XXX_Size() int
func (*UpdateTopicRequest) XXX_Unmarshal ¶
func (m *UpdateTopicRequest) XXX_Unmarshal(b []byte) error