Class: Google::Apis::PubsubV1::TextFormat
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::TextFormat
- 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 reading Cloud Storage data in text format. Each line of text
as specified by the delimiter will be set to the data
field of a Pub/Sub
message.
Instance Attribute Summary collapse
-
#delimiter ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextFormat
constructor
A new instance of TextFormat.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextFormat
Returns a new instance of TextFormat.
2025 2026 2027 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 2025 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delimiter ⇒ String
Optional. When unset, '\n' is used.
Corresponds to the JSON property delimiter
2023 2024 2025 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 2023 def delimiter @delimiter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2030 2031 2032 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 2030 def update!(**args) @delimiter = args[:delimiter] if args.key?(:delimiter) end |