Cloud Pub/Sub V1 API - Class Google::Cloud::PubSub::V1::Schema (v1.1.0)

Reference documentation and code samples for the Cloud Pub/Sub V1 API class Google::Cloud::PubSub::V1::Schema.

A schema resource.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#definition

def definition() -> ::String
Returns
  • (::String) — The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.

#definition=

def definition=(value) -> ::String
Parameter
  • value (::String) — The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.
Returns
  • (::String) — The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.

#name

def name() -> ::String
Returns
  • (::String) — Required. Name of the schema. Format is projects/{project}/schemas/{schema}.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Required. Name of the schema. Format is projects/{project}/schemas/{schema}.
Returns
  • (::String) — Required. Name of the schema. Format is projects/{project}/schemas/{schema}.

#revision_create_time

def revision_create_time() -> ::Google::Protobuf::Timestamp
Returns

#revision_id

def revision_id() -> ::String
Returns
  • (::String) — Output only. Immutable. The revision ID of the schema.

#type

def type() -> ::Google::Cloud::PubSub::V1::Schema::Type
Returns

#type=

def type=(value) -> ::Google::Cloud::PubSub::V1::Schema::Type
Parameter
Returns