Reference documentation and code samples for the Cloud Pub/Sub V1 API class Google::Cloud::PubSub::V1::SchemaSettings.
Settings for validating messages published against a schema.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#encoding
def encoding() -> ::Google::Cloud::PubSub::V1::Encoding
Returns
-
(::Google::Cloud::PubSub::V1::Encoding) — The encoding of messages validated against
schema
.
#encoding=
def encoding=(value) -> ::Google::Cloud::PubSub::V1::Encoding
Parameter
-
value (::Google::Cloud::PubSub::V1::Encoding) — The encoding of messages validated against
schema
.
Returns
-
(::Google::Cloud::PubSub::V1::Encoding) — The encoding of messages validated against
schema
.
#schema
def schema() -> ::String
Returns
-
(::String) — 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.
#schema=
def schema=(value) -> ::String
Parameter
-
value (::String) — 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.
Returns
-
(::String) — 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.