Class: Google::Cloud::PubSub::V1::Subscription

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/pubsub/v1/pubsub.rb

Overview

A subscription resource. If none of push_config, bigquery_config, or cloud_storage_config is set, then the subscriber will pull and ack messages using API methods. At most one of these fields may be set.

Defined Under Namespace

Modules: State Classes: AnalyticsHubSubscriptionInfo, LabelsEntry

Instance Attribute Summary collapse

Instance Attribute Details

#ack_deadline_seconds::Integer



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#analytics_hub_subscription_info::Google::Cloud::PubSub::V1::Subscription::AnalyticsHubSubscriptionInfo (readonly)



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#bigquery_config::Google::Cloud::PubSub::V1::BigQueryConfig



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#cloud_storage_config::Google::Cloud::PubSub::V1::CloudStorageConfig



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#dead_letter_policy::Google::Cloud::PubSub::V1::DeadLetterPolicy



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#detached::Boolean



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#enable_exactly_once_delivery::Boolean



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#enable_message_ordering::Boolean



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#expiration_policy::Google::Cloud::PubSub::V1::ExpirationPolicy



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#filter::String



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#labels::Google::Protobuf::Map{::String => ::String}



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#message_retention_duration::Google::Protobuf::Duration



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#name::String



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#push_config::Google::Cloud::PubSub::V1::PushConfig



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#retain_acked_messages::Boolean



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#retry_policy::Google::Cloud::PubSub::V1::RetryPolicy



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#state::Google::Cloud::PubSub::V1::Subscription::State (readonly)



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#topic::String



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end

#topic_message_retention_duration::Google::Protobuf::Duration (readonly)



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 777

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Information about an associated Analytics Hub subscription
  # (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
  # @!attribute [rw] listing
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub listing resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/dataExchanges/\\{data_exchange}/listings/\\{listing}"
  # @!attribute [rw] subscription
  #   @return [::String]
  #     Optional. The name of the associated Analytics Hub subscription resource.
  #     Pattern:
  #     "projects/\\{project}/locations/\\{location}/subscriptions/\\{subscription}"
  class AnalyticsHubSubscriptionInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible states for a subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription can actively receive messages
    ACTIVE = 1

    # The subscription cannot receive messages because of an error with the
    # resource to which it pushes messages. See the more detailed error state
    # in the corresponding configuration.
    RESOURCE_ERROR = 2
  end
end