Mysqlx_Datatypes

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package Mysqlx_Datatypes is a generated protocol buffer package.

It is generated from these files:

github.com/pingcap/tipb/go-mysqlx/Datatypes/mysqlx_datatypes.proto

It has these top-level messages:

Scalar
Object
Array
Any

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMysqlxDatatypes = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMysqlxDatatypes   = fmt.Errorf("proto: integer overflow")
)
View Source
var Any_Type_name = map[int32]string{
	1: "SCALAR",
	2: "OBJECT",
	3: "ARRAY",
}
View Source
var Any_Type_value = map[string]int32{
	"SCALAR": 1,
	"OBJECT": 2,
	"ARRAY":  3,
}
View Source
var Scalar_Type_name = map[int32]string{
	1: "V_SINT",
	2: "V_UINT",
	3: "V_NULL",
	4: "V_OCTETS",
	5: "V_DOUBLE",
	6: "V_FLOAT",
	7: "V_BOOL",
	8: "V_STRING",
}
View Source
var Scalar_Type_value = map[string]int32{
	"V_SINT":   1,
	"V_UINT":   2,
	"V_NULL":   3,
	"V_OCTETS": 4,
	"V_DOUBLE": 5,
	"V_FLOAT":  6,
	"V_BOOL":   7,
	"V_STRING": 8,
}

Functions

This section is empty.

Types

type Any

type Any struct {
	Type             *Any_Type `protobuf:"varint,1,req,name=type,enum=Mysqlx.Datatypes.Any_Type" json:"type,omitempty"`
	Scalar           *Scalar   `protobuf:"bytes,2,opt,name=scalar" json:"scalar,omitempty"`
	Obj              *Object   `protobuf:"bytes,3,opt,name=obj" json:"obj,omitempty"`
	Array            *Array    `protobuf:"bytes,4,opt,name=array" json:"array,omitempty"`
	XXX_unrecognized []byte    `json:"-"`
}

a helper to allow all field types

func (*Any) Descriptor

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

func (*Any) GetArray

func (m *Any) GetArray() *Array

func (*Any) GetObj

func (m *Any) GetObj() *Object

func (*Any) GetScalar

func (m *Any) GetScalar() *Scalar

func (*Any) GetType

func (m *Any) GetType() Any_Type

func (*Any) Marshal

func (m *Any) Marshal() (dAtA []byte, err error)

func (*Any) MarshalTo

func (m *Any) MarshalTo(dAtA []byte) (int, error)

func (*Any) ProtoMessage

func (*Any) ProtoMessage()

func (*Any) Reset

func (m *Any) Reset()

func (*Any) Size

func (m *Any) Size() (n int)

func (*Any) String

func (m *Any) String() string

func (*Any) Unmarshal

func (m *Any) Unmarshal(dAtA []byte) error

type Any_Type

type Any_Type int32
const (
	Any_SCALAR Any_Type = 1
	Any_OBJECT Any_Type = 2
	Any_ARRAY  Any_Type = 3
)

func (Any_Type) Enum

func (x Any_Type) Enum() *Any_Type

func (Any_Type) EnumDescriptor

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

func (Any_Type) String

func (x Any_Type) String() string

func (*Any_Type) UnmarshalJSON

func (x *Any_Type) UnmarshalJSON(data []byte) error

type Array

type Array struct {
	Value            []*Any `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

a Array

func (*Array) Descriptor

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

func (*Array) GetValue

func (m *Array) GetValue() []*Any

func (*Array) Marshal

func (m *Array) Marshal() (dAtA []byte, err error)

func (*Array) MarshalTo

func (m *Array) MarshalTo(dAtA []byte) (int, error)

func (*Array) ProtoMessage

func (*Array) ProtoMessage()

func (*Array) Reset

func (m *Array) Reset()

func (*Array) Size

func (m *Array) Size() (n int)

func (*Array) String

func (m *Array) String() string

func (*Array) Unmarshal

func (m *Array) Unmarshal(dAtA []byte) error

type Object

type Object struct {
	Fld              []*Object_ObjectField `protobuf:"bytes,1,rep,name=fld" json:"fld,omitempty"`
	XXX_unrecognized []byte                `json:"-"`
}

a object

func (*Object) Descriptor

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

func (*Object) GetFld

func (m *Object) GetFld() []*Object_ObjectField

func (*Object) Marshal

func (m *Object) Marshal() (dAtA []byte, err error)

func (*Object) MarshalTo

func (m *Object) MarshalTo(dAtA []byte) (int, error)

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) Reset

func (m *Object) Reset()

func (*Object) Size

func (m *Object) Size() (n int)

func (*Object) String

func (m *Object) String() string

func (*Object) Unmarshal

func (m *Object) Unmarshal(dAtA []byte) error

type Object_ObjectField

type Object_ObjectField struct {
	Key              *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
	Value            *Any    `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Object_ObjectField) Descriptor

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

func (*Object_ObjectField) GetKey

func (m *Object_ObjectField) GetKey() string

func (*Object_ObjectField) GetValue

func (m *Object_ObjectField) GetValue() *Any

func (*Object_ObjectField) Marshal

func (m *Object_ObjectField) Marshal() (dAtA []byte, err error)

func (*Object_ObjectField) MarshalTo

func (m *Object_ObjectField) MarshalTo(dAtA []byte) (int, error)

func (*Object_ObjectField) ProtoMessage

func (*Object_ObjectField) ProtoMessage()

func (*Object_ObjectField) Reset

func (m *Object_ObjectField) Reset()

func (*Object_ObjectField) Size

func (m *Object_ObjectField) Size() (n int)

func (*Object_ObjectField) String

func (m *Object_ObjectField) String() string

func (*Object_ObjectField) Unmarshal

func (m *Object_ObjectField) Unmarshal(dAtA []byte) error

type Scalar

type Scalar struct {
	Type         *Scalar_Type `protobuf:"varint,1,req,name=type,enum=Mysqlx.Datatypes.Scalar_Type" json:"type,omitempty"`
	VSignedInt   *int64       `protobuf:"zigzag64,2,opt,name=v_signed_int,json=vSignedInt" json:"v_signed_int,omitempty"`
	VUnsignedInt *uint64      `protobuf:"varint,3,opt,name=v_unsigned_int,json=vUnsignedInt" json:"v_unsigned_int,omitempty"`
	// 4 is unused, was Null which doesn't have a storage anymore
	VOctets          *Scalar_Octets `protobuf:"bytes,5,opt,name=v_octets,json=vOctets" json:"v_octets,omitempty"`
	VDouble          *float64       `protobuf:"fixed64,6,opt,name=v_double,json=vDouble" json:"v_double,omitempty"`
	VFloat           *float32       `protobuf:"fixed32,7,opt,name=v_float,json=vFloat" json:"v_float,omitempty"`
	VBool            *bool          `protobuf:"varint,8,opt,name=v_bool,json=vBool" json:"v_bool,omitempty"`
	VString          *Scalar_String `protobuf:"bytes,9,opt,name=v_string,json=vString" json:"v_string,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

a scalar

func (*Scalar) Descriptor

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

func (*Scalar) GetType

func (m *Scalar) GetType() Scalar_Type

func (*Scalar) GetVBool

func (m *Scalar) GetVBool() bool

func (*Scalar) GetVDouble

func (m *Scalar) GetVDouble() float64

func (*Scalar) GetVFloat

func (m *Scalar) GetVFloat() float32

func (*Scalar) GetVOctets

func (m *Scalar) GetVOctets() *Scalar_Octets

func (*Scalar) GetVSignedInt

func (m *Scalar) GetVSignedInt() int64

func (*Scalar) GetVString

func (m *Scalar) GetVString() *Scalar_String

func (*Scalar) GetVUnsignedInt

func (m *Scalar) GetVUnsignedInt() uint64

func (*Scalar) Marshal

func (m *Scalar) Marshal() (dAtA []byte, err error)

func (*Scalar) MarshalTo

func (m *Scalar) MarshalTo(dAtA []byte) (int, error)

func (*Scalar) ProtoMessage

func (*Scalar) ProtoMessage()

func (*Scalar) Reset

func (m *Scalar) Reset()

func (*Scalar) Size

func (m *Scalar) Size() (n int)

func (*Scalar) String

func (m *Scalar) String() string

func (*Scalar) Unmarshal

func (m *Scalar) Unmarshal(dAtA []byte) error

type Scalar_Octets

type Scalar_Octets struct {
	Value            []byte  `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
	ContentType      *uint32 `protobuf:"varint,2,opt,name=content_type,json=contentType" json:"content_type,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

an opaque octet sequence, with an optional content_type See “Mysqlx.Resultset.ColumnMetadata“ for list of known values.

func (*Scalar_Octets) Descriptor

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

func (*Scalar_Octets) GetContentType

func (m *Scalar_Octets) GetContentType() uint32

func (*Scalar_Octets) GetValue

func (m *Scalar_Octets) GetValue() []byte

func (*Scalar_Octets) Marshal

func (m *Scalar_Octets) Marshal() (dAtA []byte, err error)

func (*Scalar_Octets) MarshalTo

func (m *Scalar_Octets) MarshalTo(dAtA []byte) (int, error)

func (*Scalar_Octets) ProtoMessage

func (*Scalar_Octets) ProtoMessage()

func (*Scalar_Octets) Reset

func (m *Scalar_Octets) Reset()

func (*Scalar_Octets) Size

func (m *Scalar_Octets) Size() (n int)

func (*Scalar_Octets) String

func (m *Scalar_Octets) String() string

func (*Scalar_Octets) Unmarshal

func (m *Scalar_Octets) Unmarshal(dAtA []byte) error

type Scalar_String

type Scalar_String struct {
	Value            []byte  `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
	Collation        *uint64 `protobuf:"varint,2,opt,name=collation" json:"collation,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

a string with a charset/collation

func (*Scalar_String) Descriptor

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

func (*Scalar_String) GetCollation

func (m *Scalar_String) GetCollation() uint64

func (*Scalar_String) GetValue

func (m *Scalar_String) GetValue() []byte

func (*Scalar_String) Marshal

func (m *Scalar_String) Marshal() (dAtA []byte, err error)

func (*Scalar_String) MarshalTo

func (m *Scalar_String) MarshalTo(dAtA []byte) (int, error)

func (*Scalar_String) ProtoMessage

func (*Scalar_String) ProtoMessage()

func (*Scalar_String) Reset

func (m *Scalar_String) Reset()

func (*Scalar_String) Size

func (m *Scalar_String) Size() (n int)

func (*Scalar_String) String

func (m *Scalar_String) String() string

func (*Scalar_String) Unmarshal

func (m *Scalar_String) Unmarshal(dAtA []byte) error

type Scalar_Type

type Scalar_Type int32
const (
	Scalar_V_SINT   Scalar_Type = 1
	Scalar_V_UINT   Scalar_Type = 2
	Scalar_V_NULL   Scalar_Type = 3
	Scalar_V_OCTETS Scalar_Type = 4
	Scalar_V_DOUBLE Scalar_Type = 5
	Scalar_V_FLOAT  Scalar_Type = 6
	Scalar_V_BOOL   Scalar_Type = 7
	Scalar_V_STRING Scalar_Type = 8
)

func (Scalar_Type) Enum

func (x Scalar_Type) Enum() *Scalar_Type

func (Scalar_Type) EnumDescriptor

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

func (Scalar_Type) String

func (x Scalar_Type) String() string

func (*Scalar_Type) UnmarshalJSON

func (x *Scalar_Type) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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