Class: Google::Apis::PubsubV1::ValidateMessageRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::ValidateMessageRequest
- 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
Request for the ValidateMessage method.
Instance Attribute Summary collapse
-
#encoding ⇒ String
The encoding expected for messages Corresponds to the JSON property
encoding. -
#message ⇒ String
Message to validate against the provided
schema_spec. -
#name ⇒ String
Name of the schema against which to validate.
-
#schema ⇒ Google::Apis::PubsubV1::Schema
A schema resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ValidateMessageRequest
constructor
A new instance of ValidateMessageRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ValidateMessageRequest
Returns a new instance of ValidateMessageRequest.
1541 1542 1543 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1541 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encoding ⇒ String
The encoding expected for messages
Corresponds to the JSON property encoding
1522 1523 1524 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1522 def encoding @encoding end |
#message ⇒ String
Message to validate against the provided schema_spec.
Corresponds to the JSON property message
NOTE: Values are automatically base64 encoded/decoded in the client library.
1528 1529 1530 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1528 def @message end |
#name ⇒ String
Name of the schema against which to validate. Format is projects/project/
schemas/schema`.
Corresponds to the JSON propertyname`
1534 1535 1536 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1534 def name @name end |
#schema ⇒ Google::Apis::PubsubV1::Schema
A schema resource.
Corresponds to the JSON property schema
1539 1540 1541 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1539 def schema @schema end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1546 1547 1548 1549 1550 1551 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1546 def update!(**args) @encoding = args[:encoding] if args.key?(:encoding) @message = args[:message] if args.key?(:message) @name = args[:name] if args.key?(:name) @schema = args[:schema] if args.key?(:schema) end |