Class: Google::Cloud::PubSub::V1::Schema

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/pubsub/v1/schema.rb

Overview

A schema resource.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#definition::String

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



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'proto_docs/google/pubsub/v1/schema.rb', line 37

class Schema
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible schema definition types.
  module Type
    # Default value. This value is unused.
    TYPE_UNSPECIFIED = 0

    # A Protocol Buffer schema definition.
    PROTOCOL_BUFFER = 1

    # An Avro schema definition.
    AVRO = 2
  end
end

#name::String

Returns Required. Name of the schema. Format is projects/{project}/schemas/{schema}.

Returns:

  • (::String)

    Required. Name of the schema. Format is projects/{project}/schemas/{schema}.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'proto_docs/google/pubsub/v1/schema.rb', line 37

class Schema
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible schema definition types.
  module Type
    # Default value. This value is unused.
    TYPE_UNSPECIFIED = 0

    # A Protocol Buffer schema definition.
    PROTOCOL_BUFFER = 1

    # An Avro schema definition.
    AVRO = 2
  end
end

#type::Google::Cloud::PubSub::V1::Schema::Type

Returns The type of the schema definition.

Returns:



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'proto_docs/google/pubsub/v1/schema.rb', line 37

class Schema
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible schema definition types.
  module Type
    # Default value. This value is unused.
    TYPE_UNSPECIFIED = 0

    # A Protocol Buffer schema definition.
    PROTOCOL_BUFFER = 1

    # An Avro schema definition.
    AVRO = 2
  end
end