class Google::Apis::PubsubV1::SchemaSettings
Settings for validating messages published against a schema.
Attributes
encoding[RW]
The encoding of messages validated against `schema`. Corresponds to the JSON property `encoding` @return [String]
schema[RW]
Required. The name of the schema that messages published should be validated against. Format is `projects/`project`/schemas/`schema“. The value of this field will be `deleted-schema` if the schema has been deleted. Corresponds to the JSON property `schema` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/pubsub_v1/classes.rb, line 976 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 981 def update!(**args) @encoding = args[:encoding] if args.key?(:encoding) @schema = args[:schema] if args.key?(:schema) end