class Google::Apis::PubsubV1::ValidateMessageRequest
Request for the `ValidateMessage` method.
Attributes
encoding[RW]
The encoding expected for messages Corresponds to the JSON property `encoding` @return [String]
message[RW]
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. @return [String]
name[RW]
Name of the schema against which to validate. Format is `projects/`project`/ schemas/`schema“. Corresponds to the JSON property `name` @return [String]
schema[RW]
A schema resource. Corresponds to the JSON property `schema` @return [Google::Apis::PubsubV1::Schema]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/pubsub_v1/classes.rb, line 1624 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/pubsub_v1/classes.rb, line 1629 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