Documentation ¶
Index ¶
- Variables
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- func (x *Schema) GetBytes() []byte
- func (x *Schema) GetId() int32
- func (x *Schema) GetSubject() string
- func (x *Schema) GetType() Schema_Type
- func (x *Schema) GetVersion() int32
- func (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (x *Schema) String() string
- type Schema_Type
- func (Schema_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Schema_Type) Enum() *Schema_Type
- func (Schema_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Schema_Type) Number() protoreflect.EnumNumber
- func (x Schema_Type) String() string
- func (Schema_Type) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Schema_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "TYPE_AVRO", } Schema_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "TYPE_AVRO": 1, } )
Enum value maps for Schema_Type.
View Source
var File_schema_v1_schema_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Schema ¶
type Schema struct { // The subject of the schema. Together with the version, this uniquely // identifies the schema. Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` // The version of the schema. Together with the subject, this uniquely // identifies the schema. Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // Uniquely identifies the schema contents (not the schema itself!). Id int32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // The schema type. Type Schema_Type `protobuf:"varint,4,opt,name=type,proto3,enum=schema.v1.Schema_Type" json:"type,omitempty"` // The schema contents. Bytes []byte `protobuf:"bytes,5,opt,name=bytes,proto3" json:"bytes,omitempty"` // contains filtered or unexported fields }
Schema is a representation of a schema in the schema registry.
func (*Schema) Descriptor
deprecated
func (*Schema) GetSubject ¶
func (*Schema) GetType ¶
func (x *Schema) GetType() Schema_Type
func (*Schema) GetVersion ¶
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
type Schema_Type ¶
type Schema_Type int32
const ( Schema_TYPE_UNSPECIFIED Schema_Type = 0 Schema_TYPE_AVRO Schema_Type = 1 )
func (Schema_Type) Descriptor ¶
func (Schema_Type) Descriptor() protoreflect.EnumDescriptor
func (Schema_Type) Enum ¶
func (x Schema_Type) Enum() *Schema_Type
func (Schema_Type) EnumDescriptor
deprecated
func (Schema_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Schema_Type.Descriptor instead.
func (Schema_Type) Number ¶
func (x Schema_Type) Number() protoreflect.EnumNumber
func (Schema_Type) String ¶
func (x Schema_Type) String() string
func (Schema_Type) Type ¶
func (Schema_Type) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.