encoding

package
v0.0.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Type_name = map[int32]string{
	0: "NONE",
	1: "JSON",
	2: "JSON_SCHEMA",
	3: "PROTOBUF",
	4: "AVRO",
}
View Source
var Type_value = map[string]int32{
	"NONE":        0,
	"JSON":        1,
	"JSON_SCHEMA": 2,
	"PROTOBUF":    3,
	"AVRO":        4,
}

Functions

This section is empty.

Types

type Avro

type Avro struct {
	Schema               []byte   `protobuf:"bytes,1,opt,name=Schema,proto3" json:"Schema,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Avro) Descriptor

func (*Avro) Descriptor() ([]byte, []int)

func (*Avro) GetSchema added in v0.0.12

func (m *Avro) GetSchema() []byte

func (*Avro) ProtoMessage

func (*Avro) ProtoMessage()

func (*Avro) Reset

func (m *Avro) Reset()

func (*Avro) String

func (m *Avro) String() string

func (*Avro) XXX_DiscardUnknown

func (m *Avro) XXX_DiscardUnknown()

func (*Avro) XXX_Marshal

func (m *Avro) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Avro) XXX_Merge

func (m *Avro) XXX_Merge(src proto.Message)

func (*Avro) XXX_Size

func (m *Avro) XXX_Size() int

func (*Avro) XXX_Unmarshal

func (m *Avro) XXX_Unmarshal(b []byte) error

type JSONSchema

type JSONSchema struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*JSONSchema) Descriptor

func (*JSONSchema) Descriptor() ([]byte, []int)

func (*JSONSchema) ProtoMessage

func (*JSONSchema) ProtoMessage()

func (*JSONSchema) Reset

func (m *JSONSchema) Reset()

func (*JSONSchema) String

func (m *JSONSchema) String() string

func (*JSONSchema) XXX_DiscardUnknown

func (m *JSONSchema) XXX_DiscardUnknown()

func (*JSONSchema) XXX_Marshal

func (m *JSONSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JSONSchema) XXX_Merge

func (m *JSONSchema) XXX_Merge(src proto.Message)

func (*JSONSchema) XXX_Size

func (m *JSONSchema) XXX_Size() int

func (*JSONSchema) XXX_Unmarshal

func (m *JSONSchema) XXX_Unmarshal(b []byte) error

type Options

type Options struct {
	Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.encoding.Type" json:"type,omitempty"`
	// Only filled out if "type" is not NONE or JSON
	//
	// Types that are valid to be assigned to Encoding:
	//	*Options_Protobuf
	//	*Options_Avro
	//	*Options_JsonSchema
	Encoding             isOptions_Encoding `protobuf_oneof:"Encoding"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*Options) Descriptor

func (*Options) Descriptor() ([]byte, []int)

func (*Options) GetAvro

func (m *Options) GetAvro() *Avro

func (*Options) GetEncoding

func (m *Options) GetEncoding() isOptions_Encoding

func (*Options) GetJsonSchema

func (m *Options) GetJsonSchema() *JSONSchema

func (*Options) GetProtobuf

func (m *Options) GetProtobuf() *Protobuf

func (*Options) GetType

func (m *Options) GetType() Type

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) Reset

func (m *Options) Reset()

func (*Options) String

func (m *Options) String() string

func (*Options) XXX_DiscardUnknown

func (m *Options) XXX_DiscardUnknown()

func (*Options) XXX_Marshal

func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Options) XXX_Merge

func (m *Options) XXX_Merge(src proto.Message)

func (*Options) XXX_OneofWrappers

func (*Options) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Options) XXX_Size

func (m *Options) XXX_Size() int

func (*Options) XXX_Unmarshal

func (m *Options) XXX_Unmarshal(b []byte) error

type Options_Avro

type Options_Avro struct {
	Avro *Avro `protobuf:"bytes,102,opt,name=avro,proto3,oneof"`
}

type Options_JsonSchema

type Options_JsonSchema struct {
	JsonSchema *JSONSchema `protobuf:"bytes,101,opt,name=json_schema,json=jsonSchema,proto3,oneof"`
}

type Options_Protobuf

type Options_Protobuf struct {
	Protobuf *Protobuf `protobuf:"bytes,100,opt,name=protobuf,proto3,oneof"`
}

type Protobuf

type Protobuf struct {
	RootType             string   `protobuf:"bytes,1,opt,name=root_type,json=rootType,proto3" json:"root_type,omitempty"`
	ZipArchive           []byte   `protobuf:"bytes,2,opt,name=zip_archive,json=zipArchive,proto3" json:"zip_archive,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Protobuf) Descriptor

func (*Protobuf) Descriptor() ([]byte, []int)

func (*Protobuf) GetRootType

func (m *Protobuf) GetRootType() string

func (*Protobuf) GetZipArchive

func (m *Protobuf) GetZipArchive() []byte

func (*Protobuf) ProtoMessage

func (*Protobuf) ProtoMessage()

func (*Protobuf) Reset

func (m *Protobuf) Reset()

func (*Protobuf) String

func (m *Protobuf) String() string

func (*Protobuf) XXX_DiscardUnknown

func (m *Protobuf) XXX_DiscardUnknown()

func (*Protobuf) XXX_Marshal

func (m *Protobuf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Protobuf) XXX_Merge

func (m *Protobuf) XXX_Merge(src proto.Message)

func (*Protobuf) XXX_Size

func (m *Protobuf) XXX_Size() int

func (*Protobuf) XXX_Unmarshal

func (m *Protobuf) XXX_Unmarshal(b []byte) error

type Type

type Type int32
const (
	Type_NONE        Type = 0
	Type_JSON        Type = 1
	Type_JSON_SCHEMA Type = 2
	Type_PROTOBUF    Type = 3
	Type_AVRO        Type = 4
)

func (Type) EnumDescriptor

func (Type) EnumDescriptor() ([]byte, []int)

func (Type) String

func (x Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL