Cloud Pub/Sub V1 API - Class Google::Cloud::PubSub::V1::SchemaSettings (v0.20.0)

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

#encoding=

def encoding=(value) -> ::Google::Cloud::PubSub::V1::Encoding
Parameter
Returns

#first_revision_id

def first_revision_id() -> ::String
Returns
  • (::String) — The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.

#first_revision_id=

def first_revision_id=(value) -> ::String
Parameter
  • value (::String) — The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.
Returns
  • (::String) — The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.

#last_revision_id

def last_revision_id() -> ::String
Returns
  • (::String) — The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.

#last_revision_id=

def last_revision_id=(value) -> ::String
Parameter
  • value (::String) — The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.
Returns
  • (::String) — The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.

#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.