Class: Google::Apis::PubsubV1::Compression
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::Compression
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsub_v1/classes.rb,
lib/google/apis/pubsub_v1/representations.rb,
lib/google/apis/pubsub_v1/representations.rb
Overview
Configuration for compressing/decompressing message data using a user- specified compression algorithm.
Instance Attribute Summary collapse
-
#compression_algorithm ⇒ String
Required.
-
#compression_mode ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Compression
constructor
A new instance of Compression.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Compression
Returns a new instance of Compression.
767 768 769 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 767 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compression_algorithm ⇒ String
Required. Specifies the compression algorithm to use.
Corresponds to the JSON property compressionAlgorithm
760 761 762 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 760 def compression_algorithm @compression_algorithm end |
#compression_mode ⇒ String
Required. Specifies whether to compress or decompress the message.
Corresponds to the JSON property compressionMode
765 766 767 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 765 def compression_mode @compression_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
772 773 774 775 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 772 def update!(**args) @compression_algorithm = args[:compression_algorithm] if args.key?(:compression_algorithm) @compression_mode = args[:compression_mode] if args.key?(:compression_mode) end |