remove x-protocol in vendor (#7662)

This commit is contained in:
Jack Yu
2018-09-11 13:28:29 +08:00
committed by Ewan Chou
parent 2c26243b4c
commit ef499e8efb
12 changed files with 2 additions and 16642 deletions

24
Gopkg.lock generated
View File

@ -306,25 +306,15 @@
[[projects]]
branch = "master"
digest = "1:5e1b2e652f622ac5cfe4501c7671f13977e94da543f5fc2874be90c3d1bade05"
digest = "1:14d83225e335cfa449b1f74d03c03ed70db64bf6af83a6e04c43e6e0021d6b94"
name = "github.com/pingcap/tipb"
packages = [
"go-binlog",
"go-mysqlx",
"go-mysqlx/Connection",
"go-mysqlx/Crud",
"go-mysqlx/Datatypes",
"go-mysqlx/Expect",
"go-mysqlx/Expr",
"go-mysqlx/Notice",
"go-mysqlx/Resultset",
"go-mysqlx/Session",
"go-mysqlx/Sql",
"go-tipb",
"sharedbytes",
]
pruneopts = "NUT"
revision = "6955fd729f32049517924d75dbac21294f1dda55"
revision = "371b48b15d93924a3a5375019e42b4420bc13d17"
[[projects]]
digest = "1:5cf3f025cbee5951a4ee961de067c8a89fc95a5adabead774f82822efabab121"
@ -566,16 +556,6 @@
"github.com/pingcap/kvproto/pkg/tikvpb",
"github.com/pingcap/pd/pd-client",
"github.com/pingcap/tipb/go-binlog",
"github.com/pingcap/tipb/go-mysqlx",
"github.com/pingcap/tipb/go-mysqlx/Connection",
"github.com/pingcap/tipb/go-mysqlx/Crud",
"github.com/pingcap/tipb/go-mysqlx/Datatypes",
"github.com/pingcap/tipb/go-mysqlx/Expect",
"github.com/pingcap/tipb/go-mysqlx/Expr",
"github.com/pingcap/tipb/go-mysqlx/Notice",
"github.com/pingcap/tipb/go-mysqlx/Resultset",
"github.com/pingcap/tipb/go-mysqlx/Session",
"github.com/pingcap/tipb/go-mysqlx/Sql",
"github.com/pingcap/tipb/go-tipb",
"github.com/prometheus/client_golang/prometheus",
"github.com/prometheus/client_golang/prometheus/push",

View File

@ -1,905 +0,0 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: github.com/pingcap/tipb/go-mysqlx/Connection/mysqlx_connection.proto
/*
Package Mysqlx_Connection is a generated protocol buffer package.
It is generated from these files:
github.com/pingcap/tipb/go-mysqlx/Connection/mysqlx_connection.proto
It has these top-level messages:
Capability
Capabilities
CapabilitiesGet
CapabilitiesSet
Close
*/
package Mysqlx_Connection
import (
"fmt"
proto "github.com/golang/protobuf/proto"
math "math"
Mysqlx_Datatypes "github.com/pingcap/tipb/go-mysqlx/Datatypes"
github_com_golang_protobuf_proto "github.com/golang/protobuf/proto"
io "io"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// a Capability
//
// a tuple of a ``name`` and a :protobuf:msg:`Mysqlx.Datatypes::Any`
type Capability struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Value *Mysqlx_Datatypes.Any `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Capability) Reset() { *m = Capability{} }
func (m *Capability) String() string { return proto.CompactTextString(m) }
func (*Capability) ProtoMessage() {}
func (*Capability) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxConnection, []int{0} }
func (m *Capability) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *Capability) GetValue() *Mysqlx_Datatypes.Any {
if m != nil {
return m.Value
}
return nil
}
// Capabilities
type Capabilities struct {
Capabilities []*Capability `protobuf:"bytes,1,rep,name=capabilities" json:"capabilities,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Capabilities) Reset() { *m = Capabilities{} }
func (m *Capabilities) String() string { return proto.CompactTextString(m) }
func (*Capabilities) ProtoMessage() {}
func (*Capabilities) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxConnection, []int{1} }
func (m *Capabilities) GetCapabilities() []*Capability {
if m != nil {
return m.Capabilities
}
return nil
}
// get supported connection capabilities and their current state
//
// :returns: :protobuf:msg:`Mysqlx.Connection::Capabilities` or :protobuf:msg:`Mysqlx::Error`
//
type CapabilitiesGet struct {
XXX_unrecognized []byte `json:"-"`
}
func (m *CapabilitiesGet) Reset() { *m = CapabilitiesGet{} }
func (m *CapabilitiesGet) String() string { return proto.CompactTextString(m) }
func (*CapabilitiesGet) ProtoMessage() {}
func (*CapabilitiesGet) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxConnection, []int{2} }
// sets connection capabilities atomically
//
// only provided values are changed, other values are left unchanged.
// If any of the changes fails, all changes are discarded.
//
// :precond: active sessions == 0
// :returns: :protobuf:msg:`Mysqlx::Ok` or :protobuf:msg:`Mysqlx::Error`
type CapabilitiesSet struct {
Capabilities *Capabilities `protobuf:"bytes,1,req,name=capabilities" json:"capabilities,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CapabilitiesSet) Reset() { *m = CapabilitiesSet{} }
func (m *CapabilitiesSet) String() string { return proto.CompactTextString(m) }
func (*CapabilitiesSet) ProtoMessage() {}
func (*CapabilitiesSet) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxConnection, []int{3} }
func (m *CapabilitiesSet) GetCapabilities() *Capabilities {
if m != nil {
return m.Capabilities
}
return nil
}
// announce to the server that the client wants to close the connection
//
// it discards any session state of the server
//
// :Returns: :protobuf:msg:`Mysqlx::Ok`
type Close struct {
XXX_unrecognized []byte `json:"-"`
}
func (m *Close) Reset() { *m = Close{} }
func (m *Close) String() string { return proto.CompactTextString(m) }
func (*Close) ProtoMessage() {}
func (*Close) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxConnection, []int{4} }
func init() {
proto.RegisterType((*Capability)(nil), "Mysqlx.Connection.Capability")
proto.RegisterType((*Capabilities)(nil), "Mysqlx.Connection.Capabilities")
proto.RegisterType((*CapabilitiesGet)(nil), "Mysqlx.Connection.CapabilitiesGet")
proto.RegisterType((*CapabilitiesSet)(nil), "Mysqlx.Connection.CapabilitiesSet")
proto.RegisterType((*Close)(nil), "Mysqlx.Connection.Close")
}
func (m *Capability) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Capability) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Name == nil {
return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError)
} else {
dAtA[i] = 0xa
i++
i = encodeVarintMysqlxConnection(dAtA, i, uint64(len(*m.Name)))
i += copy(dAtA[i:], *m.Name)
}
if m.Value == nil {
return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError)
} else {
dAtA[i] = 0x12
i++
i = encodeVarintMysqlxConnection(dAtA, i, uint64(m.Value.Size()))
n1, err := m.Value.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n1
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Capabilities) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Capabilities) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Capabilities) > 0 {
for _, msg := range m.Capabilities {
dAtA[i] = 0xa
i++
i = encodeVarintMysqlxConnection(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *CapabilitiesGet) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CapabilitiesGet) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *CapabilitiesSet) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CapabilitiesSet) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Capabilities == nil {
return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError)
} else {
dAtA[i] = 0xa
i++
i = encodeVarintMysqlxConnection(dAtA, i, uint64(m.Capabilities.Size()))
n2, err := m.Capabilities.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Close) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Close) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func encodeVarintMysqlxConnection(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return offset + 1
}
func (m *Capability) Size() (n int) {
var l int
_ = l
if m.Name != nil {
l = len(*m.Name)
n += 1 + l + sovMysqlxConnection(uint64(l))
}
if m.Value != nil {
l = m.Value.Size()
n += 1 + l + sovMysqlxConnection(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Capabilities) Size() (n int) {
var l int
_ = l
if len(m.Capabilities) > 0 {
for _, e := range m.Capabilities {
l = e.Size()
n += 1 + l + sovMysqlxConnection(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *CapabilitiesGet) Size() (n int) {
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *CapabilitiesSet) Size() (n int) {
var l int
_ = l
if m.Capabilities != nil {
l = m.Capabilities.Size()
n += 1 + l + sovMysqlxConnection(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Close) Size() (n int) {
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovMysqlxConnection(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozMysqlxConnection(x uint64) (n int) {
return sovMysqlxConnection(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Capability) Unmarshal(dAtA []byte) error {
var hasFields [1]uint64
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Capability: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Capability: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthMysqlxConnection
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
s := string(dAtA[iNdEx:postIndex])
m.Name = &s
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthMysqlxConnection
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Value == nil {
m.Value = &Mysqlx_Datatypes.Any{}
}
if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000002)
default:
iNdEx = preIndex
skippy, err := skipMysqlxConnection(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxConnection
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return new(github_com_golang_protobuf_proto.RequiredNotSetError)
}
if hasFields[0]&uint64(0x00000002) == 0 {
return new(github_com_golang_protobuf_proto.RequiredNotSetError)
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Capabilities) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Capabilities: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Capabilities: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthMysqlxConnection
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Capabilities = append(m.Capabilities, &Capability{})
if err := m.Capabilities[len(m.Capabilities)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipMysqlxConnection(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxConnection
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CapabilitiesGet) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: CapabilitiesGet: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CapabilitiesGet: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipMysqlxConnection(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxConnection
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CapabilitiesSet) Unmarshal(dAtA []byte) error {
var hasFields [1]uint64
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: CapabilitiesSet: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CapabilitiesSet: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthMysqlxConnection
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Capabilities == nil {
m.Capabilities = &Capabilities{}
}
if err := m.Capabilities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
default:
iNdEx = preIndex
skippy, err := skipMysqlxConnection(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxConnection
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return new(github_com_golang_protobuf_proto.RequiredNotSetError)
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Close) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Close: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Close: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipMysqlxConnection(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxConnection
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipMysqlxConnection(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthMysqlxConnection
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxConnection
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipMysqlxConnection(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthMysqlxConnection = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowMysqlxConnection = fmt.Errorf("proto: integer overflow")
)
func init() {
proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/Connection/mysqlx_connection.proto", fileDescriptorMysqlxConnection)
}
var fileDescriptorMysqlxConnection = []byte{
// 255 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xf4, 0xad, 0x2c, 0x2e,
0xcc, 0xa9, 0xd0, 0x77, 0xce, 0xcf, 0xcb, 0x4b, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0xcf, 0x05,
0x8b, 0xc4, 0x27, 0xc3, 0x45, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x04, 0x21, 0x4a, 0xf5,
0x10, 0x4a, 0xa5, 0xd4, 0xa1, 0xba, 0x5d, 0x12, 0x4b, 0x12, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x61,
0x9a, 0x53, 0x60, 0x02, 0x10, 0xbd, 0x4a, 0xbe, 0x5c, 0x5c, 0xce, 0x89, 0x05, 0x89, 0x49, 0x99,
0x39, 0x99, 0x25, 0x95, 0x42, 0x42, 0x5c, 0x2c, 0x79, 0x89, 0xb9, 0xa9, 0x12, 0x8c, 0x0a, 0x4c,
0x1a, 0x9c, 0x41, 0x60, 0xb6, 0x90, 0x36, 0x17, 0x6b, 0x59, 0x62, 0x4e, 0x69, 0xaa, 0x04, 0x93,
0x02, 0x93, 0x06, 0xb7, 0x91, 0xa8, 0x1e, 0xd4, 0x36, 0xb8, 0xd1, 0x7a, 0x8e, 0x79, 0x95, 0x41,
0x10, 0x35, 0x4a, 0x81, 0x5c, 0x3c, 0x70, 0xe3, 0x32, 0x53, 0x8b, 0x85, 0x1c, 0xb9, 0x78, 0x92,
0x91, 0xf8, 0x12, 0x8c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0xb2, 0x7a, 0x18, 0x2e, 0xd6, 0x43, 0xb8,
0x22, 0x08, 0x45, 0x8b, 0x92, 0x20, 0x17, 0x3f, 0xb2, 0x91, 0xee, 0xa9, 0x25, 0x4a, 0x61, 0xa8,
0x42, 0xc1, 0xa9, 0x25, 0x42, 0xce, 0x18, 0x16, 0x81, 0x1c, 0x2b, 0x8f, 0xcf, 0xa2, 0xcc, 0xd4,
0x62, 0x34, 0xab, 0xd8, 0xb9, 0x58, 0x9d, 0x73, 0xf2, 0x8b, 0x53, 0x9d, 0xf4, 0x4e, 0x3c, 0x92,
0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x19, 0x8f, 0xe5, 0x18, 0xb8, 0x64,
0x92, 0xf3, 0x73, 0xf5, 0xc0, 0x61, 0xa8, 0x97, 0x9c, 0x05, 0x61, 0x54, 0x40, 0x82, 0x30, 0xa9,
0x34, 0x0d, 0x10, 0x00, 0x00, 0xff, 0xff, 0x5b, 0xc3, 0xc4, 0x23, 0xad, 0x01, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,789 +0,0 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: github.com/pingcap/tipb/go-mysqlx/Expect/mysqlx_expect.proto
/*
Package Mysqlx_Expect is a generated protocol buffer package.
Expect operations
It is generated from these files:
github.com/pingcap/tipb/go-mysqlx/Expect/mysqlx_expect.proto
It has these top-level messages:
Open
Close
*/
package Mysqlx_Expect
import (
"fmt"
proto "github.com/golang/protobuf/proto"
math "math"
github_com_golang_protobuf_proto "github.com/golang/protobuf/proto"
io "io"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Open_CtxOperation int32
const (
// copy the operations from the parent Expect-block
Open_EXPECT_CTX_COPY_PREV Open_CtxOperation = 0
// start with a empty set of operations
Open_EXPECT_CTX_EMPTY Open_CtxOperation = 1
)
var Open_CtxOperation_name = map[int32]string{
0: "EXPECT_CTX_COPY_PREV",
1: "EXPECT_CTX_EMPTY",
}
var Open_CtxOperation_value = map[string]int32{
"EXPECT_CTX_COPY_PREV": 0,
"EXPECT_CTX_EMPTY": 1,
}
func (x Open_CtxOperation) Enum() *Open_CtxOperation {
p := new(Open_CtxOperation)
*p = x
return p
}
func (x Open_CtxOperation) String() string {
return proto.EnumName(Open_CtxOperation_name, int32(x))
}
func (x *Open_CtxOperation) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Open_CtxOperation_value, data, "Open_CtxOperation")
if err != nil {
return err
}
*x = Open_CtxOperation(value)
return nil
}
func (Open_CtxOperation) EnumDescriptor() ([]byte, []int) {
return fileDescriptorMysqlxExpect, []int{0, 0}
}
type Open_Condition_ConditionOperation int32
const (
// set the condition
//
// set, if not set
// overwrite, if set
Open_Condition_EXPECT_OP_SET Open_Condition_ConditionOperation = 0
// unset the condition
Open_Condition_EXPECT_OP_UNSET Open_Condition_ConditionOperation = 1
)
var Open_Condition_ConditionOperation_name = map[int32]string{
0: "EXPECT_OP_SET",
1: "EXPECT_OP_UNSET",
}
var Open_Condition_ConditionOperation_value = map[string]int32{
"EXPECT_OP_SET": 0,
"EXPECT_OP_UNSET": 1,
}
func (x Open_Condition_ConditionOperation) Enum() *Open_Condition_ConditionOperation {
p := new(Open_Condition_ConditionOperation)
*p = x
return p
}
func (x Open_Condition_ConditionOperation) String() string {
return proto.EnumName(Open_Condition_ConditionOperation_name, int32(x))
}
func (x *Open_Condition_ConditionOperation) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Open_Condition_ConditionOperation_value, data, "Open_Condition_ConditionOperation")
if err != nil {
return err
}
*x = Open_Condition_ConditionOperation(value)
return nil
}
func (Open_Condition_ConditionOperation) EnumDescriptor() ([]byte, []int) {
return fileDescriptorMysqlxExpect, []int{0, 0, 0}
}
// open an Expect block and set/unset the conditions that have to be fulfilled
//
// if any of the conditions fail, all enclosed messages will fail with
// a Mysqlx.Error message.
//
// :returns: :protobuf:msg:`Mysqlx::Ok` on success, :protobuf:msg:`Mysqlx::Error` on error
//
type Open struct {
Op *Open_CtxOperation `protobuf:"varint,1,opt,name=op,enum=Mysqlx.Expect.Open_CtxOperation,def=0" json:"op,omitempty"`
Cond []*Open_Condition `protobuf:"bytes,2,rep,name=cond" json:"cond,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Open) Reset() { *m = Open{} }
func (m *Open) String() string { return proto.CompactTextString(m) }
func (*Open) ProtoMessage() {}
func (*Open) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpect, []int{0} }
const Default_Open_Op Open_CtxOperation = Open_EXPECT_CTX_COPY_PREV
func (m *Open) GetOp() Open_CtxOperation {
if m != nil && m.Op != nil {
return *m.Op
}
return Default_Open_Op
}
func (m *Open) GetCond() []*Open_Condition {
if m != nil {
return m.Cond
}
return nil
}
type Open_Condition struct {
ConditionKey *uint32 `protobuf:"varint,1,req,name=condition_key,json=conditionKey" json:"condition_key,omitempty"`
ConditionValue []byte `protobuf:"bytes,2,opt,name=condition_value,json=conditionValue" json:"condition_value,omitempty"`
Op *Open_Condition_ConditionOperation `protobuf:"varint,3,opt,name=op,enum=Mysqlx.Expect.Open_Condition_ConditionOperation,def=0" json:"op,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Open_Condition) Reset() { *m = Open_Condition{} }
func (m *Open_Condition) String() string { return proto.CompactTextString(m) }
func (*Open_Condition) ProtoMessage() {}
func (*Open_Condition) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpect, []int{0, 0} }
const Default_Open_Condition_Op Open_Condition_ConditionOperation = Open_Condition_EXPECT_OP_SET
func (m *Open_Condition) GetConditionKey() uint32 {
if m != nil && m.ConditionKey != nil {
return *m.ConditionKey
}
return 0
}
func (m *Open_Condition) GetConditionValue() []byte {
if m != nil {
return m.ConditionValue
}
return nil
}
func (m *Open_Condition) GetOp() Open_Condition_ConditionOperation {
if m != nil && m.Op != nil {
return *m.Op
}
return Default_Open_Condition_Op
}
// close a Expect block
//
// closing a Expect block restores the state of the previous Expect block
// for the following messages
//
// :returns: :protobuf:msg:`Mysqlx::Ok` on success, :protobuf:msg:`Mysqlx::Error` on error
type Close struct {
XXX_unrecognized []byte `json:"-"`
}
func (m *Close) Reset() { *m = Close{} }
func (m *Close) String() string { return proto.CompactTextString(m) }
func (*Close) ProtoMessage() {}
func (*Close) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpect, []int{1} }
func init() {
proto.RegisterType((*Open)(nil), "Mysqlx.Expect.Open")
proto.RegisterType((*Open_Condition)(nil), "Mysqlx.Expect.Open.Condition")
proto.RegisterType((*Close)(nil), "Mysqlx.Expect.Close")
proto.RegisterEnum("Mysqlx.Expect.Open_CtxOperation", Open_CtxOperation_name, Open_CtxOperation_value)
proto.RegisterEnum("Mysqlx.Expect.Open_Condition_ConditionOperation", Open_Condition_ConditionOperation_name, Open_Condition_ConditionOperation_value)
}
func (m *Open) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Open) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Op != nil {
dAtA[i] = 0x8
i++
i = encodeVarintMysqlxExpect(dAtA, i, uint64(*m.Op))
}
if len(m.Cond) > 0 {
for _, msg := range m.Cond {
dAtA[i] = 0x12
i++
i = encodeVarintMysqlxExpect(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Open_Condition) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Open_Condition) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.ConditionKey == nil {
return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError)
} else {
dAtA[i] = 0x8
i++
i = encodeVarintMysqlxExpect(dAtA, i, uint64(*m.ConditionKey))
}
if m.ConditionValue != nil {
dAtA[i] = 0x12
i++
i = encodeVarintMysqlxExpect(dAtA, i, uint64(len(m.ConditionValue)))
i += copy(dAtA[i:], m.ConditionValue)
}
if m.Op != nil {
dAtA[i] = 0x18
i++
i = encodeVarintMysqlxExpect(dAtA, i, uint64(*m.Op))
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Close) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Close) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func encodeVarintMysqlxExpect(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return offset + 1
}
func (m *Open) Size() (n int) {
var l int
_ = l
if m.Op != nil {
n += 1 + sovMysqlxExpect(uint64(*m.Op))
}
if len(m.Cond) > 0 {
for _, e := range m.Cond {
l = e.Size()
n += 1 + l + sovMysqlxExpect(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Open_Condition) Size() (n int) {
var l int
_ = l
if m.ConditionKey != nil {
n += 1 + sovMysqlxExpect(uint64(*m.ConditionKey))
}
if m.ConditionValue != nil {
l = len(m.ConditionValue)
n += 1 + l + sovMysqlxExpect(uint64(l))
}
if m.Op != nil {
n += 1 + sovMysqlxExpect(uint64(*m.Op))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Close) Size() (n int) {
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovMysqlxExpect(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozMysqlxExpect(x uint64) (n int) {
return sovMysqlxExpect(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Open) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Open: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Open: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType)
}
var v Open_CtxOperation
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (Open_CtxOperation(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.Op = &v
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Cond", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthMysqlxExpect
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Cond = append(m.Cond, &Open_Condition{})
if err := m.Cond[len(m.Cond)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipMysqlxExpect(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxExpect
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Open_Condition) Unmarshal(dAtA []byte) error {
var hasFields [1]uint64
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Condition: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Condition: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ConditionKey", wireType)
}
var v uint32
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (uint32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.ConditionKey = &v
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ConditionValue", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthMysqlxExpect
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ConditionValue = append(m.ConditionValue[:0], dAtA[iNdEx:postIndex]...)
if m.ConditionValue == nil {
m.ConditionValue = []byte{}
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType)
}
var v Open_Condition_ConditionOperation
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (Open_Condition_ConditionOperation(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.Op = &v
default:
iNdEx = preIndex
skippy, err := skipMysqlxExpect(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxExpect
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return new(github_com_golang_protobuf_proto.RequiredNotSetError)
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Close) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Close: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Close: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipMysqlxExpect(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxExpect
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipMysqlxExpect(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthMysqlxExpect
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxExpect
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipMysqlxExpect(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthMysqlxExpect = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowMysqlxExpect = fmt.Errorf("proto: integer overflow")
)
func init() {
proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/Expect/mysqlx_expect.proto", fileDescriptorMysqlxExpect)
}
var fileDescriptorMysqlxExpect = []byte{
// 335 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xf4, 0xad, 0x2c, 0x2e,
0xcc, 0xa9, 0xd0, 0x77, 0xad, 0x28, 0x48, 0x4d, 0x2e, 0xd1, 0xcf, 0x05, 0xf3, 0xe2, 0x53, 0xc1,
0x3c, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0x5e, 0x88, 0x12, 0x3d, 0x88, 0x12, 0xa5, 0x35,
0xcc, 0x5c, 0x2c, 0xfe, 0x05, 0xa9, 0x79, 0x42, 0x6e, 0x5c, 0x4c, 0xf9, 0x05, 0x12, 0x8c, 0x0a,
0x8c, 0x1a, 0x7c, 0x46, 0x0a, 0x7a, 0x28, 0x8a, 0xf4, 0x40, 0x0a, 0xf4, 0x9c, 0x4b, 0x2a, 0xfc,
0x0b, 0x52, 0x8b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0xac, 0x44, 0x5c, 0x23, 0x02, 0x5c, 0x9d, 0x43,
0xe2, 0x9d, 0x43, 0x22, 0xe2, 0x9d, 0xfd, 0x03, 0x22, 0xe3, 0x03, 0x82, 0x5c, 0xc3, 0x82, 0x98,
0xf2, 0x0b, 0x84, 0x0c, 0xb9, 0x58, 0x92, 0xf3, 0xf3, 0x52, 0x24, 0x98, 0x14, 0x98, 0x35, 0xb8,
0x8d, 0x64, 0xb1, 0x9a, 0x94, 0x9f, 0x97, 0x92, 0x09, 0x32, 0x26, 0x08, 0xac, 0x54, 0xea, 0x05,
0x23, 0x17, 0x27, 0x5c, 0x4c, 0x48, 0x99, 0x8b, 0x37, 0x19, 0xc6, 0x89, 0xcf, 0x4e, 0xad, 0x94,
0x60, 0x54, 0x60, 0xd2, 0xe0, 0x0d, 0xe2, 0x81, 0x0b, 0x7a, 0xa7, 0x56, 0x0a, 0xa9, 0x73, 0xf1,
0x23, 0x14, 0x95, 0x25, 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x29, 0x30, 0x6a, 0xf0, 0x04, 0xf1, 0xc1,
0x85, 0xc3, 0x40, 0xa2, 0x42, 0xfe, 0x60, 0x6f, 0x31, 0x83, 0xbd, 0x65, 0x80, 0xd7, 0x31, 0x08,
0x16, 0xc2, 0x9b, 0xbc, 0x50, 0x6f, 0xfa, 0x07, 0xc4, 0x07, 0xbb, 0x86, 0x80, 0xfc, 0xa7, 0x64,
0xc3, 0x25, 0x84, 0xa9, 0x50, 0x48, 0x90, 0x0b, 0x55, 0xa9, 0x00, 0x83, 0x90, 0x30, 0x17, 0x3f,
0x42, 0x28, 0xd4, 0x0f, 0x24, 0xc8, 0xa8, 0x64, 0xc7, 0xc5, 0x83, 0x1c, 0x8e, 0x42, 0x12, 0x5c,
0x58, 0x43, 0x52, 0x80, 0x41, 0x48, 0x84, 0x4b, 0x00, 0x49, 0xc6, 0xd5, 0x37, 0x20, 0x24, 0x52,
0x80, 0x51, 0x89, 0x9d, 0x8b, 0xd5, 0x39, 0x27, 0xbf, 0x38, 0xd5, 0x49, 0xef, 0xc4, 0x23, 0x39,
0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf1, 0x58, 0x8e, 0x81, 0x4b, 0x26,
0x39, 0x3f, 0x57, 0x0f, 0x1c, 0xe3, 0x7a, 0xc9, 0x59, 0x10, 0x46, 0x05, 0x24, 0xce, 0x93, 0x4a,
0xd3, 0x00, 0x01, 0x00, 0x00, 0xff, 0xff, 0x37, 0x7c, 0x25, 0xf1, 0x1a, 0x02, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,953 +0,0 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: github.com/pingcap/tipb/go-mysqlx/Session/mysqlx_session.proto
/*
Package Mysqlx_Session is a generated protocol buffer package.
Messages to manage Sessions
.. uml::
== session start ==
Client -> Server: AuthenticateStart
opt
Server --> Client: AuthenticateContinue
Client --> Server: AuthenticateContinue
end
alt
Server --> Client: AuthenticateOk
else
Server --> Client: Error
end
...
== session reset ==
Client -> Server: Reset
Server --> Client: Ok
== session end ==
Client -> Server: Close
Server --> Client: Ok
It is generated from these files:
github.com/pingcap/tipb/go-mysqlx/Session/mysqlx_session.proto
It has these top-level messages:
AuthenticateStart
AuthenticateContinue
AuthenticateOk
Reset
Close
*/
package Mysqlx_Session
import (
"fmt"
proto "github.com/golang/protobuf/proto"
math "math"
github_com_golang_protobuf_proto "github.com/golang/protobuf/proto"
io "io"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// the initial message send from the client to the server to start the
// authentication proccess
//
// :param mech_name: authentication mechanism name
// :param auth_data: authentication data
// :param initial_response: initial response
// :Returns: :protobuf:msg:`Mysqlx.Session::AuthenticateContinue`
type AuthenticateStart struct {
MechName *string `protobuf:"bytes,1,req,name=mech_name,json=mechName" json:"mech_name,omitempty"`
AuthData []byte `protobuf:"bytes,2,opt,name=auth_data,json=authData" json:"auth_data,omitempty"`
InitialResponse []byte `protobuf:"bytes,3,opt,name=initial_response,json=initialResponse" json:"initial_response,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *AuthenticateStart) Reset() { *m = AuthenticateStart{} }
func (m *AuthenticateStart) String() string { return proto.CompactTextString(m) }
func (*AuthenticateStart) ProtoMessage() {}
func (*AuthenticateStart) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxSession, []int{0} }
func (m *AuthenticateStart) GetMechName() string {
if m != nil && m.MechName != nil {
return *m.MechName
}
return ""
}
func (m *AuthenticateStart) GetAuthData() []byte {
if m != nil {
return m.AuthData
}
return nil
}
func (m *AuthenticateStart) GetInitialResponse() []byte {
if m != nil {
return m.InitialResponse
}
return nil
}
// send by client or server after a :protobuf:msg:`Mysqlx.Session::AuthenticateStart` to
// exchange more auth data
//
// :param auth_data: authentication data
// :Returns: :protobuf:msg:`Mysqlx.Session::AuthenticateContinue`
type AuthenticateContinue struct {
AuthData []byte `protobuf:"bytes,1,req,name=auth_data,json=authData" json:"auth_data,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *AuthenticateContinue) Reset() { *m = AuthenticateContinue{} }
func (m *AuthenticateContinue) String() string { return proto.CompactTextString(m) }
func (*AuthenticateContinue) ProtoMessage() {}
func (*AuthenticateContinue) Descriptor() ([]byte, []int) {
return fileDescriptorMysqlxSession, []int{1}
}
func (m *AuthenticateContinue) GetAuthData() []byte {
if m != nil {
return m.AuthData
}
return nil
}
// sent by the server after successful authentication
//
// :param auth_data: authentication data
type AuthenticateOk struct {
AuthData []byte `protobuf:"bytes,1,opt,name=auth_data,json=authData" json:"auth_data,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *AuthenticateOk) Reset() { *m = AuthenticateOk{} }
func (m *AuthenticateOk) String() string { return proto.CompactTextString(m) }
func (*AuthenticateOk) ProtoMessage() {}
func (*AuthenticateOk) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxSession, []int{2} }
func (m *AuthenticateOk) GetAuthData() []byte {
if m != nil {
return m.AuthData
}
return nil
}
// reset the current session
//
// :Returns: :protobuf:msg:`Mysqlx::Ok`
type Reset struct {
XXX_unrecognized []byte `json:"-"`
}
func (m *Reset) Reset() { *m = Reset{} }
func (m *Reset) String() string { return proto.CompactTextString(m) }
func (*Reset) ProtoMessage() {}
func (*Reset) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxSession, []int{3} }
// close the current session
//
// :Returns: :protobuf:msg:`Mysqlx::Ok`
type Close struct {
XXX_unrecognized []byte `json:"-"`
}
func (m *Close) Reset() { *m = Close{} }
func (m *Close) String() string { return proto.CompactTextString(m) }
func (*Close) ProtoMessage() {}
func (*Close) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxSession, []int{4} }
func init() {
proto.RegisterType((*AuthenticateStart)(nil), "Mysqlx.Session.AuthenticateStart")
proto.RegisterType((*AuthenticateContinue)(nil), "Mysqlx.Session.AuthenticateContinue")
proto.RegisterType((*AuthenticateOk)(nil), "Mysqlx.Session.AuthenticateOk")
proto.RegisterType((*Reset)(nil), "Mysqlx.Session.Reset")
proto.RegisterType((*Close)(nil), "Mysqlx.Session.Close")
}
func (m *AuthenticateStart) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *AuthenticateStart) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.MechName == nil {
return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError)
} else {
dAtA[i] = 0xa
i++
i = encodeVarintMysqlxSession(dAtA, i, uint64(len(*m.MechName)))
i += copy(dAtA[i:], *m.MechName)
}
if m.AuthData != nil {
dAtA[i] = 0x12
i++
i = encodeVarintMysqlxSession(dAtA, i, uint64(len(m.AuthData)))
i += copy(dAtA[i:], m.AuthData)
}
if m.InitialResponse != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintMysqlxSession(dAtA, i, uint64(len(m.InitialResponse)))
i += copy(dAtA[i:], m.InitialResponse)
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *AuthenticateContinue) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *AuthenticateContinue) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.AuthData == nil {
return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError)
} else {
dAtA[i] = 0xa
i++
i = encodeVarintMysqlxSession(dAtA, i, uint64(len(m.AuthData)))
i += copy(dAtA[i:], m.AuthData)
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *AuthenticateOk) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *AuthenticateOk) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.AuthData != nil {
dAtA[i] = 0xa
i++
i = encodeVarintMysqlxSession(dAtA, i, uint64(len(m.AuthData)))
i += copy(dAtA[i:], m.AuthData)
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Reset) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Reset) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Close) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Close) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func encodeVarintMysqlxSession(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return offset + 1
}
func (m *AuthenticateStart) Size() (n int) {
var l int
_ = l
if m.MechName != nil {
l = len(*m.MechName)
n += 1 + l + sovMysqlxSession(uint64(l))
}
if m.AuthData != nil {
l = len(m.AuthData)
n += 1 + l + sovMysqlxSession(uint64(l))
}
if m.InitialResponse != nil {
l = len(m.InitialResponse)
n += 1 + l + sovMysqlxSession(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *AuthenticateContinue) Size() (n int) {
var l int
_ = l
if m.AuthData != nil {
l = len(m.AuthData)
n += 1 + l + sovMysqlxSession(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *AuthenticateOk) Size() (n int) {
var l int
_ = l
if m.AuthData != nil {
l = len(m.AuthData)
n += 1 + l + sovMysqlxSession(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Reset) Size() (n int) {
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Close) Size() (n int) {
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovMysqlxSession(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozMysqlxSession(x uint64) (n int) {
return sovMysqlxSession(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *AuthenticateStart) Unmarshal(dAtA []byte) error {
var hasFields [1]uint64
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: AuthenticateStart: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: AuthenticateStart: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field MechName", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthMysqlxSession
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
s := string(dAtA[iNdEx:postIndex])
m.MechName = &s
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field AuthData", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthMysqlxSession
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.AuthData = append(m.AuthData[:0], dAtA[iNdEx:postIndex]...)
if m.AuthData == nil {
m.AuthData = []byte{}
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field InitialResponse", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthMysqlxSession
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.InitialResponse = append(m.InitialResponse[:0], dAtA[iNdEx:postIndex]...)
if m.InitialResponse == nil {
m.InitialResponse = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipMysqlxSession(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxSession
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return new(github_com_golang_protobuf_proto.RequiredNotSetError)
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *AuthenticateContinue) Unmarshal(dAtA []byte) error {
var hasFields [1]uint64
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: AuthenticateContinue: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: AuthenticateContinue: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field AuthData", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthMysqlxSession
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.AuthData = append(m.AuthData[:0], dAtA[iNdEx:postIndex]...)
if m.AuthData == nil {
m.AuthData = []byte{}
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
default:
iNdEx = preIndex
skippy, err := skipMysqlxSession(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxSession
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return new(github_com_golang_protobuf_proto.RequiredNotSetError)
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *AuthenticateOk) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: AuthenticateOk: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: AuthenticateOk: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field AuthData", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthMysqlxSession
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.AuthData = append(m.AuthData[:0], dAtA[iNdEx:postIndex]...)
if m.AuthData == nil {
m.AuthData = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipMysqlxSession(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxSession
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Reset) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Reset: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Reset: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipMysqlxSession(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxSession
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Close) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Close: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Close: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipMysqlxSession(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxSession
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipMysqlxSession(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthMysqlxSession
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxSession
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipMysqlxSession(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthMysqlxSession = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowMysqlxSession = fmt.Errorf("proto: integer overflow")
)
func init() {
proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/Session/mysqlx_session.proto", fileDescriptorMysqlxSession)
}
var fileDescriptorMysqlxSession = []byte{
// 250 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xf6, 0xad, 0x2c, 0x2e,
0xcc, 0xa9, 0xd0, 0x0f, 0x4e, 0x2d, 0x2e, 0xce, 0xcc, 0xcf, 0xd3, 0xcf, 0x05, 0x73, 0xe3, 0x8b,
0x21, 0x5c, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0x3e, 0x88, 0x22, 0x3d, 0xa8, 0x22, 0xa5,
0x0a, 0x2e, 0x41, 0xc7, 0xd2, 0x92, 0x8c, 0xd4, 0xbc, 0x92, 0xcc, 0xe4, 0xc4, 0x92, 0xd4, 0xe0,
0x92, 0xc4, 0xa2, 0x12, 0x21, 0x69, 0x2e, 0xce, 0xdc, 0xd4, 0xe4, 0x8c, 0xf8, 0xbc, 0xc4, 0xdc,
0x54, 0x09, 0x46, 0x05, 0x26, 0x0d, 0xce, 0x20, 0x0e, 0x90, 0x80, 0x5f, 0x62, 0x6e, 0x2a, 0x48,
0x32, 0xb1, 0xb4, 0x24, 0x23, 0x3e, 0x25, 0xb1, 0x24, 0x51, 0x82, 0x49, 0x81, 0x51, 0x83, 0x27,
0x88, 0x03, 0x24, 0xe0, 0x92, 0x58, 0x92, 0x28, 0xa4, 0xc9, 0x25, 0x90, 0x99, 0x97, 0x59, 0x92,
0x99, 0x98, 0x13, 0x5f, 0x94, 0x5a, 0x5c, 0x90, 0x9f, 0x57, 0x9c, 0x2a, 0xc1, 0x0c, 0x56, 0xc3,
0x0f, 0x15, 0x0f, 0x82, 0x0a, 0x2b, 0x19, 0x73, 0x89, 0x20, 0xdb, 0xec, 0x9c, 0x9f, 0x57, 0x92,
0x99, 0x57, 0x8a, 0x66, 0x3e, 0xc8, 0x72, 0x24, 0xf3, 0x95, 0x74, 0xb9, 0xf8, 0x90, 0x35, 0xf9,
0x67, 0xa3, 0x2b, 0x47, 0x71, 0x8e, 0x12, 0x3b, 0x17, 0x6b, 0x50, 0x6a, 0x71, 0x6a, 0x09, 0x88,
0xe1, 0x9c, 0x93, 0x5f, 0x9c, 0xea, 0xa4, 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c,
0x0f, 0x1e, 0xc9, 0x31, 0xce, 0x78, 0x2c, 0xc7, 0xc0, 0x25, 0x93, 0x9c, 0x9f, 0xab, 0x07, 0x0e,
0x2b, 0xbd, 0xe4, 0x2c, 0x08, 0xa3, 0x02, 0x12, 0x58, 0x49, 0xa5, 0x69, 0x80, 0x00, 0x00, 0x00,
0xff, 0xff, 0x35, 0x4f, 0x12, 0x2a, 0x55, 0x01, 0x00, 0x00,
}

View File

@ -1,601 +0,0 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: github.com/pingcap/tipb/go-mysqlx/Sql/mysqlx_sql.proto
/*
Package Mysqlx_Sql is a generated protocol buffer package.
Messages of the MySQL Package
It is generated from these files:
github.com/pingcap/tipb/go-mysqlx/Sql/mysqlx_sql.proto
It has these top-level messages:
StmtExecute
StmtExecuteOk
*/
package Mysqlx_Sql
import (
"fmt"
proto "github.com/golang/protobuf/proto"
math "math"
Mysqlx_Datatypes "github.com/pingcap/tipb/go-mysqlx/Datatypes"
github_com_golang_protobuf_proto "github.com/golang/protobuf/proto"
io "io"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// execute a statement in the given namespace
//
// .. uml::
//
// client -> server: StmtExecute
// ... zero or more Resultsets ...
// server --> client: StmtExecuteOk
//
// Notices:
// This message may generate a notice containing WARNINGs generated by its execution.
// This message may generate a notice containing INFO messages generated by its execution.
//
// :param namespace: namespace of the statement to be executed
// :param stmt: statement that shall be executed.
// :param args: values for wildcard replacements
// :param compact_metadata: send only type information for :protobuf:msg:`Mysqlx.Resultset::ColumnMetadata`, skipping names and others
// :returns:
// * zero or one :protobuf:msg:`Mysqlx.Resultset::` followed by :protobuf:msg:`Mysqlx.Sql::StmtExecuteOk`
type StmtExecute struct {
Namespace *string `protobuf:"bytes,3,opt,name=namespace,def=sql" json:"namespace,omitempty"`
Stmt []byte `protobuf:"bytes,1,req,name=stmt" json:"stmt,omitempty"`
Args []*Mysqlx_Datatypes.Any `protobuf:"bytes,2,rep,name=args" json:"args,omitempty"`
CompactMetadata *bool `protobuf:"varint,4,opt,name=compact_metadata,json=compactMetadata,def=0" json:"compact_metadata,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *StmtExecute) Reset() { *m = StmtExecute{} }
func (m *StmtExecute) String() string { return proto.CompactTextString(m) }
func (*StmtExecute) ProtoMessage() {}
func (*StmtExecute) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxSql, []int{0} }
const Default_StmtExecute_Namespace string = "sql"
const Default_StmtExecute_CompactMetadata bool = false
func (m *StmtExecute) GetNamespace() string {
if m != nil && m.Namespace != nil {
return *m.Namespace
}
return Default_StmtExecute_Namespace
}
func (m *StmtExecute) GetStmt() []byte {
if m != nil {
return m.Stmt
}
return nil
}
func (m *StmtExecute) GetArgs() []*Mysqlx_Datatypes.Any {
if m != nil {
return m.Args
}
return nil
}
func (m *StmtExecute) GetCompactMetadata() bool {
if m != nil && m.CompactMetadata != nil {
return *m.CompactMetadata
}
return Default_StmtExecute_CompactMetadata
}
// statement executed successful
type StmtExecuteOk struct {
XXX_unrecognized []byte `json:"-"`
}
func (m *StmtExecuteOk) Reset() { *m = StmtExecuteOk{} }
func (m *StmtExecuteOk) String() string { return proto.CompactTextString(m) }
func (*StmtExecuteOk) ProtoMessage() {}
func (*StmtExecuteOk) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxSql, []int{1} }
func init() {
proto.RegisterType((*StmtExecute)(nil), "Mysqlx.Sql.StmtExecute")
proto.RegisterType((*StmtExecuteOk)(nil), "Mysqlx.Sql.StmtExecuteOk")
}
func (m *StmtExecute) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *StmtExecute) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Stmt == nil {
return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError)
} else {
dAtA[i] = 0xa
i++
i = encodeVarintMysqlxSql(dAtA, i, uint64(len(m.Stmt)))
i += copy(dAtA[i:], m.Stmt)
}
if len(m.Args) > 0 {
for _, msg := range m.Args {
dAtA[i] = 0x12
i++
i = encodeVarintMysqlxSql(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.Namespace != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintMysqlxSql(dAtA, i, uint64(len(*m.Namespace)))
i += copy(dAtA[i:], *m.Namespace)
}
if m.CompactMetadata != nil {
dAtA[i] = 0x20
i++
if *m.CompactMetadata {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *StmtExecuteOk) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *StmtExecuteOk) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func encodeVarintMysqlxSql(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return offset + 1
}
func (m *StmtExecute) Size() (n int) {
var l int
_ = l
if m.Stmt != nil {
l = len(m.Stmt)
n += 1 + l + sovMysqlxSql(uint64(l))
}
if len(m.Args) > 0 {
for _, e := range m.Args {
l = e.Size()
n += 1 + l + sovMysqlxSql(uint64(l))
}
}
if m.Namespace != nil {
l = len(*m.Namespace)
n += 1 + l + sovMysqlxSql(uint64(l))
}
if m.CompactMetadata != nil {
n += 2
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *StmtExecuteOk) Size() (n int) {
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovMysqlxSql(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozMysqlxSql(x uint64) (n int) {
return sovMysqlxSql(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *StmtExecute) Unmarshal(dAtA []byte) error {
var hasFields [1]uint64
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: StmtExecute: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: StmtExecute: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Stmt", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthMysqlxSql
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Stmt = append(m.Stmt[:0], dAtA[iNdEx:postIndex]...)
if m.Stmt == nil {
m.Stmt = []byte{}
}
iNdEx = postIndex
hasFields[0] |= uint64(0x00000001)
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthMysqlxSql
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Args = append(m.Args, &Mysqlx_Datatypes.Any{})
if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthMysqlxSql
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
s := string(dAtA[iNdEx:postIndex])
m.Namespace = &s
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CompactMetadata", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
b := bool(v != 0)
m.CompactMetadata = &b
default:
iNdEx = preIndex
skippy, err := skipMysqlxSql(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxSql
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return new(github_com_golang_protobuf_proto.RequiredNotSetError)
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *StmtExecuteOk) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: StmtExecuteOk: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: StmtExecuteOk: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipMysqlxSql(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMysqlxSql
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipMysqlxSql(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthMysqlxSql
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMysqlxSql
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipMysqlxSql(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthMysqlxSql = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowMysqlxSql = fmt.Errorf("proto: integer overflow")
)
func init() {
proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/Sql/mysqlx_sql.proto", fileDescriptorMysqlxSql)
}
var fileDescriptorMysqlxSql = []byte{
// 250 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xf6, 0xad, 0x2c, 0x2e,
0xcc, 0xa9, 0xd0, 0x0f, 0x2e, 0xcc, 0xd1, 0xcf, 0x05, 0x33, 0xe3, 0x8b, 0x0b, 0x73, 0xf4, 0x0a,
0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xb8, 0x20, 0x92, 0x7a, 0xc1, 0x85, 0x39, 0x52, 0xea, 0x50, 0x85,
0x2e, 0x89, 0x25, 0x89, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x30, 0xe5, 0x29, 0x30, 0x01, 0x88, 0x26,
0xa5, 0x85, 0x8c, 0x5c, 0xdc, 0xc1, 0x25, 0xb9, 0x25, 0xae, 0x15, 0xa9, 0xc9, 0xa5, 0x25, 0xa9,
0x42, 0x42, 0x5c, 0x2c, 0xc5, 0x25, 0xb9, 0x25, 0x12, 0x8c, 0x0a, 0x4c, 0x1a, 0x3c, 0x41, 0x60,
0xb6, 0x90, 0x26, 0x17, 0x4b, 0x62, 0x51, 0x7a, 0xb1, 0x04, 0x93, 0x02, 0xb3, 0x06, 0xb7, 0x91,
0xa8, 0x1e, 0xd4, 0x1e, 0xb8, 0xd9, 0x7a, 0x8e, 0x79, 0x95, 0x41, 0x60, 0x25, 0x42, 0x8a, 0x5c,
0x9c, 0x79, 0x89, 0xb9, 0xa9, 0xc5, 0x05, 0x89, 0xc9, 0xa9, 0x12, 0xcc, 0x0a, 0x8c, 0x1a, 0x9c,
0x56, 0xcc, 0xc5, 0x85, 0x39, 0x41, 0x08, 0x51, 0x21, 0x03, 0x2e, 0x81, 0xe4, 0xfc, 0xdc, 0x82,
0xc4, 0xe4, 0x92, 0xf8, 0xdc, 0xd4, 0x92, 0x44, 0x90, 0x83, 0x24, 0x58, 0x14, 0x18, 0x35, 0x38,
0xac, 0x58, 0xd3, 0x12, 0x73, 0x8a, 0x53, 0x83, 0xf8, 0xa1, 0xd2, 0xbe, 0x50, 0x59, 0x25, 0x7e,
0x2e, 0x5e, 0x24, 0x27, 0xfa, 0x67, 0x3b, 0xe9, 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c,
0xe3, 0x83, 0x47, 0x72, 0x8c, 0x33, 0x1e, 0xcb, 0x31, 0x70, 0xc9, 0x24, 0xe7, 0xe7, 0xea, 0x81,
0xbd, 0xa8, 0x97, 0x9c, 0x05, 0x61, 0x54, 0x40, 0x7c, 0x98, 0x54, 0x9a, 0x06, 0x08, 0x00, 0x00,
0xff, 0xff, 0x69, 0x0b, 0x10, 0xa9, 0x37, 0x01, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -27,17 +27,6 @@ import (
"github.com/pingcap/tidb/util"
"github.com/pingcap/tidb/util/arena"
log "github.com/sirupsen/logrus"
// For MySQL X Protocol
_ "github.com/pingcap/tipb/go-mysqlx"
_ "github.com/pingcap/tipb/go-mysqlx/Connection"
_ "github.com/pingcap/tipb/go-mysqlx/Crud"
_ "github.com/pingcap/tipb/go-mysqlx/Datatypes"
_ "github.com/pingcap/tipb/go-mysqlx/Expect"
_ "github.com/pingcap/tipb/go-mysqlx/Expr"
_ "github.com/pingcap/tipb/go-mysqlx/Notice"
_ "github.com/pingcap/tipb/go-mysqlx/Resultset"
_ "github.com/pingcap/tipb/go-mysqlx/Session"
_ "github.com/pingcap/tipb/go-mysqlx/Sql"
)
var (