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.
765 766 767 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 765 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
758 759 760 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 758 def compression_algorithm @compression_algorithm end |
#compression_mode ⇒ String
Required. Specifies whether to compress or decompress the message.
Corresponds to the JSON property compressionMode
763 764 765 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 763 def compression_mode @compression_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
770 771 772 773 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 770 def update!(**args) @compression_algorithm = args[:compression_algorithm] if args.key?(:compression_algorithm) @compression_mode = args[:compression_mode] if args.key?(:compression_mode) end |