Class: Google::Cloud::PubSub::V1::Schema
- Inherits:
-
Object
- Object
- Google::Cloud::PubSub::V1::Schema
- 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
-
#definition ⇒ ::String
The definition of the schema.
-
#name ⇒ ::String
Required.
-
#revision_create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#revision_id ⇒ ::String
readonly
Output only.
-
#type ⇒ ::Google::Cloud::PubSub::V1::Schema::Type
The type of the schema definition.
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
.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'proto_docs/google/pubsub/v1/schema.rb', line 43 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}
.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'proto_docs/google/pubsub/v1/schema.rb', line 43 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 |
#revision_create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The timestamp that the revision was created.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'proto_docs/google/pubsub/v1/schema.rb', line 43 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 |
#revision_id ⇒ ::String (readonly)
Returns Output only. Immutable. The revision ID of the schema.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'proto_docs/google/pubsub/v1/schema.rb', line 43 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.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'proto_docs/google/pubsub/v1/schema.rb', line 43 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 |