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 ¶
- Variables
- type Any
- func (*Any) Descriptor() ([]byte, []int)
- func (m *Any) GetArray() *Array
- func (m *Any) GetObj() *Object
- func (m *Any) GetScalar() *Scalar
- func (m *Any) GetType() Any_Type
- func (m *Any) Marshal() (dAtA []byte, err error)
- func (m *Any) MarshalTo(dAtA []byte) (int, error)
- func (*Any) ProtoMessage()
- func (m *Any) Reset()
- func (m *Any) Size() (n int)
- func (m *Any) String() string
- func (m *Any) Unmarshal(dAtA []byte) error
- type Any_Type
- type Array
- func (*Array) Descriptor() ([]byte, []int)
- func (m *Array) GetValue() []*Any
- func (m *Array) Marshal() (dAtA []byte, err error)
- func (m *Array) MarshalTo(dAtA []byte) (int, error)
- func (*Array) ProtoMessage()
- func (m *Array) Reset()
- func (m *Array) Size() (n int)
- func (m *Array) String() string
- func (m *Array) Unmarshal(dAtA []byte) error
- type Object
- func (*Object) Descriptor() ([]byte, []int)
- func (m *Object) GetFld() []*Object_ObjectField
- func (m *Object) Marshal() (dAtA []byte, err error)
- func (m *Object) MarshalTo(dAtA []byte) (int, error)
- func (*Object) ProtoMessage()
- func (m *Object) Reset()
- func (m *Object) Size() (n int)
- func (m *Object) String() string
- func (m *Object) Unmarshal(dAtA []byte) error
- type Object_ObjectField
- func (*Object_ObjectField) Descriptor() ([]byte, []int)
- func (m *Object_ObjectField) GetKey() string
- func (m *Object_ObjectField) GetValue() *Any
- func (m *Object_ObjectField) Marshal() (dAtA []byte, err error)
- func (m *Object_ObjectField) MarshalTo(dAtA []byte) (int, error)
- func (*Object_ObjectField) ProtoMessage()
- func (m *Object_ObjectField) Reset()
- func (m *Object_ObjectField) Size() (n int)
- func (m *Object_ObjectField) String() string
- func (m *Object_ObjectField) Unmarshal(dAtA []byte) error
- type Scalar
- func (*Scalar) Descriptor() ([]byte, []int)
- func (m *Scalar) GetType() Scalar_Type
- func (m *Scalar) GetVBool() bool
- func (m *Scalar) GetVDouble() float64
- func (m *Scalar) GetVFloat() float32
- func (m *Scalar) GetVOctets() *Scalar_Octets
- func (m *Scalar) GetVSignedInt() int64
- func (m *Scalar) GetVString() *Scalar_String
- func (m *Scalar) GetVUnsignedInt() uint64
- func (m *Scalar) Marshal() (dAtA []byte, err error)
- func (m *Scalar) MarshalTo(dAtA []byte) (int, error)
- func (*Scalar) ProtoMessage()
- func (m *Scalar) Reset()
- func (m *Scalar) Size() (n int)
- func (m *Scalar) String() string
- func (m *Scalar) Unmarshal(dAtA []byte) error
- type Scalar_Octets
- func (*Scalar_Octets) Descriptor() ([]byte, []int)
- func (m *Scalar_Octets) GetContentType() uint32
- func (m *Scalar_Octets) GetValue() []byte
- func (m *Scalar_Octets) Marshal() (dAtA []byte, err error)
- func (m *Scalar_Octets) MarshalTo(dAtA []byte) (int, error)
- func (*Scalar_Octets) ProtoMessage()
- func (m *Scalar_Octets) Reset()
- func (m *Scalar_Octets) Size() (n int)
- func (m *Scalar_Octets) String() string
- func (m *Scalar_Octets) Unmarshal(dAtA []byte) error
- type Scalar_String
- func (*Scalar_String) Descriptor() ([]byte, []int)
- func (m *Scalar_String) GetCollation() uint64
- func (m *Scalar_String) GetValue() []byte
- func (m *Scalar_String) Marshal() (dAtA []byte, err error)
- func (m *Scalar_String) MarshalTo(dAtA []byte) (int, error)
- func (*Scalar_String) ProtoMessage()
- func (m *Scalar_String) Reset()
- func (m *Scalar_String) Size() (n int)
- func (m *Scalar_String) String() string
- func (m *Scalar_String) Unmarshal(dAtA []byte) error
- type Scalar_Type
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) ProtoMessage ¶
func (*Any) ProtoMessage()
type Any_Type ¶
type Any_Type int32
func (Any_Type) EnumDescriptor ¶
func (*Any_Type) UnmarshalJSON ¶
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) ProtoMessage ¶
func (*Array) ProtoMessage()
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) GetFld ¶
func (m *Object) GetFld() []*Object_ObjectField
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
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) GetType ¶
func (m *Scalar) GetType() Scalar_Type
func (*Scalar) GetVDouble ¶
func (*Scalar) GetVOctets ¶
func (m *Scalar) GetVOctets() *Scalar_Octets
func (*Scalar) GetVSignedInt ¶
func (*Scalar) GetVString ¶
func (m *Scalar) GetVString() *Scalar_String
func (*Scalar) GetVUnsignedInt ¶
func (*Scalar) ProtoMessage ¶
func (*Scalar) ProtoMessage()
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) 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) 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
Click to show internal directories.
Click to hide internal directories.