Class: Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema
- Inherits:
-
Object
- Object
- Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources.rb
Overview
Schema for a Kafka message.
Defined Under Namespace
Modules: SchemaType Classes: SchemaReference
Instance Attribute Summary collapse
-
#references ⇒ ::Array<::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference>
Optional.
-
#schema_payload ⇒ ::String
The schema payload.
-
#schema_type ⇒ ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType
Optional.
Instance Attribute Details
#references ⇒ ::Array<::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference>
Returns Optional. The schema references used by the schema.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources.rb', line 69 class Schema include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # SchemaReference is a reference to a schema. # @!attribute [rw] name # @return [::String] # Required. The name of the reference. # @!attribute [rw] subject # @return [::String] # Required. The subject of the reference. # @!attribute [rw] version # @return [::Integer] # Required. The version of the reference. class SchemaReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Schema types. module SchemaType # No schema type. The default will be AVRO. SCHEMA_TYPE_UNSPECIFIED = 0 # Avro schema type. AVRO = 1 # JSON schema type. JSON = 2 # Protobuf schema type. PROTOBUF = 3 end end |
#schema_payload ⇒ ::String
Returns The schema payload.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources.rb', line 69 class Schema include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # SchemaReference is a reference to a schema. # @!attribute [rw] name # @return [::String] # Required. The name of the reference. # @!attribute [rw] subject # @return [::String] # Required. The subject of the reference. # @!attribute [rw] version # @return [::Integer] # Required. The version of the reference. class SchemaReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Schema types. module SchemaType # No schema type. The default will be AVRO. SCHEMA_TYPE_UNSPECIFIED = 0 # Avro schema type. AVRO = 1 # JSON schema type. JSON = 2 # Protobuf schema type. PROTOBUF = 3 end end |
#schema_type ⇒ ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType
Returns Optional. The schema type of the schema.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources.rb', line 69 class Schema include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # SchemaReference is a reference to a schema. # @!attribute [rw] name # @return [::String] # Required. The name of the reference. # @!attribute [rw] subject # @return [::String] # Required. The subject of the reference. # @!attribute [rw] version # @return [::Integer] # Required. The version of the reference. class SchemaReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Schema types. module SchemaType # No schema type. The default will be AVRO. SCHEMA_TYPE_UNSPECIFIED = 0 # Avro schema type. AVRO = 1 # JSON schema type. JSON = 2 # Protobuf schema type. PROTOBUF = 3 end end |