diff --git a/Gopkg.lock b/Gopkg.lock index 577fc44689..17c60e9968 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -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", diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/Connection/mysqlx_connection.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/Connection/mysqlx_connection.pb.go deleted file mode 100644 index 7e30b8eb34..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/Connection/mysqlx_connection.pb.go +++ /dev/null @@ -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, -} diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/Crud/mysqlx_crud.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/Crud/mysqlx_crud.pb.go deleted file mode 100644 index ce6ad71896..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/Crud/mysqlx_crud.pb.go +++ /dev/null @@ -1,4884 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: github.com/pingcap/tipb/go-mysqlx/Crud/mysqlx_crud.proto - -/* - Package Mysqlx_Crud is a generated protocol buffer package. - - Basic CRUD operations - - It is generated from these files: - github.com/pingcap/tipb/go-mysqlx/Crud/mysqlx_crud.proto - - It has these top-level messages: - Column - Projection - Collection - Limit - Order - UpdateOperation - Find - Insert - Update - Delete - CreateView - ModifyView - DropView -*/ -package Mysqlx_Crud - -import ( - "fmt" - - proto "github.com/golang/protobuf/proto" - - math "math" - - Mysqlx_Expr "github.com/pingcap/tipb/go-mysqlx/Expr" - - 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 - -// DataModel to use for filters, names, ... -type DataModel int32 - -const ( - DataModel_DOCUMENT DataModel = 1 - DataModel_TABLE DataModel = 2 -) - -var DataModel_name = map[int32]string{ - 1: "DOCUMENT", - 2: "TABLE", -} -var DataModel_value = map[string]int32{ - "DOCUMENT": 1, - "TABLE": 2, -} - -func (x DataModel) Enum() *DataModel { - p := new(DataModel) - *p = x - return p -} -func (x DataModel) String() string { - return proto.EnumName(DataModel_name, int32(x)) -} -func (x *DataModel) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(DataModel_value, data, "DataModel") - if err != nil { - return err - } - *x = DataModel(value) - return nil -} -func (DataModel) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{0} } - -// ViewAlgorithm defines how MySQL Server processes the view -type ViewAlgorithm int32 - -const ( - ViewAlgorithm_UNDEFINED ViewAlgorithm = 1 - ViewAlgorithm_MERGE ViewAlgorithm = 2 - ViewAlgorithm_TEMPTABLE ViewAlgorithm = 3 -) - -var ViewAlgorithm_name = map[int32]string{ - 1: "UNDEFINED", - 2: "MERGE", - 3: "TEMPTABLE", -} -var ViewAlgorithm_value = map[string]int32{ - "UNDEFINED": 1, - "MERGE": 2, - "TEMPTABLE": 3, -} - -func (x ViewAlgorithm) Enum() *ViewAlgorithm { - p := new(ViewAlgorithm) - *p = x - return p -} -func (x ViewAlgorithm) String() string { - return proto.EnumName(ViewAlgorithm_name, int32(x)) -} -func (x *ViewAlgorithm) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(ViewAlgorithm_value, data, "ViewAlgorithm") - if err != nil { - return err - } - *x = ViewAlgorithm(value) - return nil -} -func (ViewAlgorithm) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{1} } - -// ViewSqlSecurity defines the security context in which the view is going to be -// executed, this means that VIEW can be executed with current user permissions or -// with permissions of the uses who defined the VIEW -type ViewSqlSecurity int32 - -const ( - ViewSqlSecurity_INVOKER ViewSqlSecurity = 1 - ViewSqlSecurity_DEFINER ViewSqlSecurity = 2 -) - -var ViewSqlSecurity_name = map[int32]string{ - 1: "INVOKER", - 2: "DEFINER", -} -var ViewSqlSecurity_value = map[string]int32{ - "INVOKER": 1, - "DEFINER": 2, -} - -func (x ViewSqlSecurity) Enum() *ViewSqlSecurity { - p := new(ViewSqlSecurity) - *p = x - return p -} -func (x ViewSqlSecurity) String() string { - return proto.EnumName(ViewSqlSecurity_name, int32(x)) -} -func (x *ViewSqlSecurity) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(ViewSqlSecurity_value, data, "ViewSqlSecurity") - if err != nil { - return err - } - *x = ViewSqlSecurity(value) - return nil -} -func (ViewSqlSecurity) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{2} } - -// ViewCheckOption limits the write operations done on a `VIEW` -// (`INSERT`, `UPDATE`, `DELETE`) to rows in which the `WHERE` clause is `TRUE` -type ViewCheckOption int32 - -const ( - ViewCheckOption_LOCAL ViewCheckOption = 1 - ViewCheckOption_CASCADED ViewCheckOption = 2 -) - -var ViewCheckOption_name = map[int32]string{ - 1: "LOCAL", - 2: "CASCADED", -} -var ViewCheckOption_value = map[string]int32{ - "LOCAL": 1, - "CASCADED": 2, -} - -func (x ViewCheckOption) Enum() *ViewCheckOption { - p := new(ViewCheckOption) - *p = x - return p -} -func (x ViewCheckOption) String() string { - return proto.EnumName(ViewCheckOption_name, int32(x)) -} -func (x *ViewCheckOption) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(ViewCheckOption_value, data, "ViewCheckOption") - if err != nil { - return err - } - *x = ViewCheckOption(value) - return nil -} -func (ViewCheckOption) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{3} } - -type Order_Direction int32 - -const ( - Order_ASC Order_Direction = 1 - Order_DESC Order_Direction = 2 -) - -var Order_Direction_name = map[int32]string{ - 1: "ASC", - 2: "DESC", -} -var Order_Direction_value = map[string]int32{ - "ASC": 1, - "DESC": 2, -} - -func (x Order_Direction) Enum() *Order_Direction { - p := new(Order_Direction) - *p = x - return p -} -func (x Order_Direction) String() string { - return proto.EnumName(Order_Direction_name, int32(x)) -} -func (x *Order_Direction) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Order_Direction_value, data, "Order_Direction") - if err != nil { - return err - } - *x = Order_Direction(value) - return nil -} -func (Order_Direction) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{4, 0} } - -type UpdateOperation_UpdateType int32 - -const ( - UpdateOperation_SET UpdateOperation_UpdateType = 1 - UpdateOperation_ITEM_REMOVE UpdateOperation_UpdateType = 2 - UpdateOperation_ITEM_SET UpdateOperation_UpdateType = 3 - UpdateOperation_ITEM_REPLACE UpdateOperation_UpdateType = 4 - UpdateOperation_ITEM_MERGE UpdateOperation_UpdateType = 5 - UpdateOperation_ARRAY_INSERT UpdateOperation_UpdateType = 6 - UpdateOperation_ARRAY_APPEND UpdateOperation_UpdateType = 7 -) - -var UpdateOperation_UpdateType_name = map[int32]string{ - 1: "SET", - 2: "ITEM_REMOVE", - 3: "ITEM_SET", - 4: "ITEM_REPLACE", - 5: "ITEM_MERGE", - 6: "ARRAY_INSERT", - 7: "ARRAY_APPEND", -} -var UpdateOperation_UpdateType_value = map[string]int32{ - "SET": 1, - "ITEM_REMOVE": 2, - "ITEM_SET": 3, - "ITEM_REPLACE": 4, - "ITEM_MERGE": 5, - "ARRAY_INSERT": 6, - "ARRAY_APPEND": 7, -} - -func (x UpdateOperation_UpdateType) Enum() *UpdateOperation_UpdateType { - p := new(UpdateOperation_UpdateType) - *p = x - return p -} -func (x UpdateOperation_UpdateType) String() string { - return proto.EnumName(UpdateOperation_UpdateType_name, int32(x)) -} -func (x *UpdateOperation_UpdateType) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(UpdateOperation_UpdateType_value, data, "UpdateOperation_UpdateType") - if err != nil { - return err - } - *x = UpdateOperation_UpdateType(value) - return nil -} -func (UpdateOperation_UpdateType) EnumDescriptor() ([]byte, []int) { - return fileDescriptorMysqlxCrud, []int{5, 0} -} - -// column definition -type Column struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Alias *string `protobuf:"bytes,2,opt,name=alias" json:"alias,omitempty"` - DocumentPath []*Mysqlx_Expr.DocumentPathItem `protobuf:"bytes,3,rep,name=document_path,json=documentPath" json:"document_path,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Column) Reset() { *m = Column{} } -func (m *Column) String() string { return proto.CompactTextString(m) } -func (*Column) ProtoMessage() {} -func (*Column) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{0} } - -func (m *Column) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *Column) GetAlias() string { - if m != nil && m.Alias != nil { - return *m.Alias - } - return "" -} - -func (m *Column) GetDocumentPath() []*Mysqlx_Expr.DocumentPathItem { - if m != nil { - return m.DocumentPath - } - return nil -} - -// a projection -// -// :param source: the expression identifying an element from the source data -// which can include a column identifier or any expression -// :param alias: optional alias. Required for DOCUMENTs (clients may use -// the source string as default) -type Projection struct { - Source *Mysqlx_Expr.Expr `protobuf:"bytes,1,req,name=source" json:"source,omitempty"` - Alias *string `protobuf:"bytes,2,opt,name=alias" json:"alias,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Projection) Reset() { *m = Projection{} } -func (m *Projection) String() string { return proto.CompactTextString(m) } -func (*Projection) ProtoMessage() {} -func (*Projection) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{1} } - -func (m *Projection) GetSource() *Mysqlx_Expr.Expr { - if m != nil { - return m.Source - } - return nil -} - -func (m *Projection) GetAlias() string { - if m != nil && m.Alias != nil { - return *m.Alias - } - return "" -} - -// collection -type Collection struct { - Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` - Schema *string `protobuf:"bytes,2,opt,name=schema" json:"schema,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Collection) Reset() { *m = Collection{} } -func (m *Collection) String() string { return proto.CompactTextString(m) } -func (*Collection) ProtoMessage() {} -func (*Collection) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{2} } - -func (m *Collection) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *Collection) GetSchema() string { - if m != nil && m.Schema != nil { - return *m.Schema - } - return "" -} - -// limit -// -// :param row_count: maximum rows to filter -// :param offset: maximum rows to skip before applying the row_count -type Limit struct { - RowCount *uint64 `protobuf:"varint,1,req,name=row_count,json=rowCount" json:"row_count,omitempty"` - Offset *uint64 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Limit) Reset() { *m = Limit{} } -func (m *Limit) String() string { return proto.CompactTextString(m) } -func (*Limit) ProtoMessage() {} -func (*Limit) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{3} } - -func (m *Limit) GetRowCount() uint64 { - if m != nil && m.RowCount != nil { - return *m.RowCount - } - return 0 -} - -func (m *Limit) GetOffset() uint64 { - if m != nil && m.Offset != nil { - return *m.Offset - } - return 0 -} - -// sort order -type Order struct { - Expr *Mysqlx_Expr.Expr `protobuf:"bytes,1,req,name=expr" json:"expr,omitempty"` - Direction *Order_Direction `protobuf:"varint,2,opt,name=direction,enum=Mysqlx.Crud.Order_Direction,def=1" json:"direction,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Order) Reset() { *m = Order{} } -func (m *Order) String() string { return proto.CompactTextString(m) } -func (*Order) ProtoMessage() {} -func (*Order) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{4} } - -const Default_Order_Direction Order_Direction = Order_ASC - -func (m *Order) GetExpr() *Mysqlx_Expr.Expr { - if m != nil { - return m.Expr - } - return nil -} - -func (m *Order) GetDirection() Order_Direction { - if m != nil && m.Direction != nil { - return *m.Direction - } - return Default_Order_Direction -} - -// update operations -// -// :param source: specification of the value to be updated -// if data_model is TABLE, a column name may be specified and also a document path, if the column has type JSON -// if data_model is DOCUMENT, only document paths are allowed -// in both cases, schema and table must be not set -// :param operation: the type of operation to be performed -// :param value: an expression to be computed as the new value for the operation -type UpdateOperation struct { - Source *Mysqlx_Expr.ColumnIdentifier `protobuf:"bytes,1,req,name=source" json:"source,omitempty"` - Operation *UpdateOperation_UpdateType `protobuf:"varint,2,req,name=operation,enum=Mysqlx.Crud.UpdateOperation_UpdateType" json:"operation,omitempty"` - Value *Mysqlx_Expr.Expr `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *UpdateOperation) Reset() { *m = UpdateOperation{} } -func (m *UpdateOperation) String() string { return proto.CompactTextString(m) } -func (*UpdateOperation) ProtoMessage() {} -func (*UpdateOperation) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{5} } - -func (m *UpdateOperation) GetSource() *Mysqlx_Expr.ColumnIdentifier { - if m != nil { - return m.Source - } - return nil -} - -func (m *UpdateOperation) GetOperation() UpdateOperation_UpdateType { - if m != nil && m.Operation != nil { - return *m.Operation - } - return UpdateOperation_SET -} - -func (m *UpdateOperation) GetValue() *Mysqlx_Expr.Expr { - if m != nil { - return m.Value - } - return nil -} - -// Find Documents/Rows in a Collection/Table -// -// .. uml:: -// -// client -> server: Find -// ... one or more Resultset ... -// -// :param collection: collection to insert into -// :param data_model: datamodel that the operations refer to -// :param projection: list of column projections that shall be returned -// :param args: values for parameters used in filter expression -// :param criteria: filter criteria -// :param limit: numbers of rows that shall be skipped and returned -// :param order: sort-order in which the rows/document shall be returned in -// :param grouping: column expression list for aggregation (GROUP BY) -// :param grouping_criteria: filter criteria for aggregated groups -// :Returns: :protobuf:msg:`Mysqlx.Resultset::` -type Find struct { - Collection *Collection `protobuf:"bytes,2,req,name=collection" json:"collection,omitempty"` - DataModel *DataModel `protobuf:"varint,3,opt,name=data_model,json=dataModel,enum=Mysqlx.Crud.DataModel" json:"data_model,omitempty"` - Projection []*Projection `protobuf:"bytes,4,rep,name=projection" json:"projection,omitempty"` - Criteria *Mysqlx_Expr.Expr `protobuf:"bytes,5,opt,name=criteria" json:"criteria,omitempty"` - Args []*Mysqlx_Datatypes.Scalar `protobuf:"bytes,11,rep,name=args" json:"args,omitempty"` - Limit *Limit `protobuf:"bytes,6,opt,name=limit" json:"limit,omitempty"` - Order []*Order `protobuf:"bytes,7,rep,name=order" json:"order,omitempty"` - Grouping []*Mysqlx_Expr.Expr `protobuf:"bytes,8,rep,name=grouping" json:"grouping,omitempty"` - GroupingCriteria *Mysqlx_Expr.Expr `protobuf:"bytes,9,opt,name=grouping_criteria,json=groupingCriteria" json:"grouping_criteria,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Find) Reset() { *m = Find{} } -func (m *Find) String() string { return proto.CompactTextString(m) } -func (*Find) ProtoMessage() {} -func (*Find) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{6} } - -func (m *Find) GetCollection() *Collection { - if m != nil { - return m.Collection - } - return nil -} - -func (m *Find) GetDataModel() DataModel { - if m != nil && m.DataModel != nil { - return *m.DataModel - } - return DataModel_DOCUMENT -} - -func (m *Find) GetProjection() []*Projection { - if m != nil { - return m.Projection - } - return nil -} - -func (m *Find) GetCriteria() *Mysqlx_Expr.Expr { - if m != nil { - return m.Criteria - } - return nil -} - -func (m *Find) GetArgs() []*Mysqlx_Datatypes.Scalar { - if m != nil { - return m.Args - } - return nil -} - -func (m *Find) GetLimit() *Limit { - if m != nil { - return m.Limit - } - return nil -} - -func (m *Find) GetOrder() []*Order { - if m != nil { - return m.Order - } - return nil -} - -func (m *Find) GetGrouping() []*Mysqlx_Expr.Expr { - if m != nil { - return m.Grouping - } - return nil -} - -func (m *Find) GetGroupingCriteria() *Mysqlx_Expr.Expr { - if m != nil { - return m.GroupingCriteria - } - return nil -} - -// Insert documents/rows into a collection/table -// -// :param collection: collection to insert into -// :param data_model: datamodel that the operations refer to -// :param projection: name of the columns to insert data into (empty if data_model is DOCUMENT) -// :param row: set of rows to insert into the collection/table (a single expression with a JSON document literal or an OBJECT expression) -// :param args: values for parameters used in row expressions -// :Returns: :protobuf:msg:`Mysqlx.Resultset::` -type Insert struct { - Collection *Collection `protobuf:"bytes,1,req,name=collection" json:"collection,omitempty"` - DataModel *DataModel `protobuf:"varint,2,opt,name=data_model,json=dataModel,enum=Mysqlx.Crud.DataModel" json:"data_model,omitempty"` - Projection []*Column `protobuf:"bytes,3,rep,name=projection" json:"projection,omitempty"` - Row []*Insert_TypedRow `protobuf:"bytes,4,rep,name=row" json:"row,omitempty"` - Args []*Mysqlx_Datatypes.Scalar `protobuf:"bytes,5,rep,name=args" json:"args,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Insert) Reset() { *m = Insert{} } -func (m *Insert) String() string { return proto.CompactTextString(m) } -func (*Insert) ProtoMessage() {} -func (*Insert) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{7} } - -func (m *Insert) GetCollection() *Collection { - if m != nil { - return m.Collection - } - return nil -} - -func (m *Insert) GetDataModel() DataModel { - if m != nil && m.DataModel != nil { - return *m.DataModel - } - return DataModel_DOCUMENT -} - -func (m *Insert) GetProjection() []*Column { - if m != nil { - return m.Projection - } - return nil -} - -func (m *Insert) GetRow() []*Insert_TypedRow { - if m != nil { - return m.Row - } - return nil -} - -func (m *Insert) GetArgs() []*Mysqlx_Datatypes.Scalar { - if m != nil { - return m.Args - } - return nil -} - -type Insert_TypedRow struct { - Field []*Mysqlx_Expr.Expr `protobuf:"bytes,1,rep,name=field" json:"field,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Insert_TypedRow) Reset() { *m = Insert_TypedRow{} } -func (m *Insert_TypedRow) String() string { return proto.CompactTextString(m) } -func (*Insert_TypedRow) ProtoMessage() {} -func (*Insert_TypedRow) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{7, 0} } - -func (m *Insert_TypedRow) GetField() []*Mysqlx_Expr.Expr { - if m != nil { - return m.Field - } - return nil -} - -// Update documents/rows in a collection/table -// -// :param collection: collection to change -// :param data_model: datamodel that the operations refer to -// :param criteria: filter expression to match rows that the operations will apply on -// :param args: values for parameters used in filter expression -// :param limit: limits the number of rows to match -// :param order: specifies order of matched rows -// :param operation: list of operations to be applied. Valid operations will depend on the data_model. -// :Returns: :protobuf:msg:`Mysqlx.Resultset::` -type Update struct { - Collection *Collection `protobuf:"bytes,2,req,name=collection" json:"collection,omitempty"` - DataModel *DataModel `protobuf:"varint,3,opt,name=data_model,json=dataModel,enum=Mysqlx.Crud.DataModel" json:"data_model,omitempty"` - Criteria *Mysqlx_Expr.Expr `protobuf:"bytes,4,opt,name=criteria" json:"criteria,omitempty"` - Args []*Mysqlx_Datatypes.Scalar `protobuf:"bytes,8,rep,name=args" json:"args,omitempty"` - Limit *Limit `protobuf:"bytes,5,opt,name=limit" json:"limit,omitempty"` - Order []*Order `protobuf:"bytes,6,rep,name=order" json:"order,omitempty"` - Operation []*UpdateOperation `protobuf:"bytes,7,rep,name=operation" json:"operation,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Update) Reset() { *m = Update{} } -func (m *Update) String() string { return proto.CompactTextString(m) } -func (*Update) ProtoMessage() {} -func (*Update) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{8} } - -func (m *Update) GetCollection() *Collection { - if m != nil { - return m.Collection - } - return nil -} - -func (m *Update) GetDataModel() DataModel { - if m != nil && m.DataModel != nil { - return *m.DataModel - } - return DataModel_DOCUMENT -} - -func (m *Update) GetCriteria() *Mysqlx_Expr.Expr { - if m != nil { - return m.Criteria - } - return nil -} - -func (m *Update) GetArgs() []*Mysqlx_Datatypes.Scalar { - if m != nil { - return m.Args - } - return nil -} - -func (m *Update) GetLimit() *Limit { - if m != nil { - return m.Limit - } - return nil -} - -func (m *Update) GetOrder() []*Order { - if m != nil { - return m.Order - } - return nil -} - -func (m *Update) GetOperation() []*UpdateOperation { - if m != nil { - return m.Operation - } - return nil -} - -// Delete documents/rows from a Collection/Table -// -// :param collection: collection to change -// :param data_model: datamodel that the operations refer to -// :param criteria: filter expression to match rows that the operations will apply on -// :param args: values for parameters used in filter expression -// :param limit: limits the number of rows to match -// :param order: specifies order of matched rows -// :Returns: :protobuf:msg:`Mysqlx.Resultset::` -type Delete struct { - Collection *Collection `protobuf:"bytes,1,req,name=collection" json:"collection,omitempty"` - DataModel *DataModel `protobuf:"varint,2,opt,name=data_model,json=dataModel,enum=Mysqlx.Crud.DataModel" json:"data_model,omitempty"` - Criteria *Mysqlx_Expr.Expr `protobuf:"bytes,3,opt,name=criteria" json:"criteria,omitempty"` - Args []*Mysqlx_Datatypes.Scalar `protobuf:"bytes,6,rep,name=args" json:"args,omitempty"` - Limit *Limit `protobuf:"bytes,4,opt,name=limit" json:"limit,omitempty"` - Order []*Order `protobuf:"bytes,5,rep,name=order" json:"order,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Delete) Reset() { *m = Delete{} } -func (m *Delete) String() string { return proto.CompactTextString(m) } -func (*Delete) ProtoMessage() {} -func (*Delete) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{9} } - -func (m *Delete) GetCollection() *Collection { - if m != nil { - return m.Collection - } - return nil -} - -func (m *Delete) GetDataModel() DataModel { - if m != nil && m.DataModel != nil { - return *m.DataModel - } - return DataModel_DOCUMENT -} - -func (m *Delete) GetCriteria() *Mysqlx_Expr.Expr { - if m != nil { - return m.Criteria - } - return nil -} - -func (m *Delete) GetArgs() []*Mysqlx_Datatypes.Scalar { - if m != nil { - return m.Args - } - return nil -} - -func (m *Delete) GetLimit() *Limit { - if m != nil { - return m.Limit - } - return nil -} - -func (m *Delete) GetOrder() []*Order { - if m != nil { - return m.Order - } - return nil -} - -type CreateView struct { - Collection *Collection `protobuf:"bytes,1,req,name=collection" json:"collection,omitempty"` - Definer *string `protobuf:"bytes,2,opt,name=definer" json:"definer,omitempty"` - Algorithm *ViewAlgorithm `protobuf:"varint,3,opt,name=algorithm,enum=Mysqlx.Crud.ViewAlgorithm,def=1" json:"algorithm,omitempty"` - Security *ViewSqlSecurity `protobuf:"varint,4,opt,name=security,enum=Mysqlx.Crud.ViewSqlSecurity,def=2" json:"security,omitempty"` - Check *ViewCheckOption `protobuf:"varint,5,opt,name=check,enum=Mysqlx.Crud.ViewCheckOption" json:"check,omitempty"` - Column []string `protobuf:"bytes,6,rep,name=column" json:"column,omitempty"` - Stmt *Find `protobuf:"bytes,7,req,name=stmt" json:"stmt,omitempty"` - ReplaceExisting *bool `protobuf:"varint,8,opt,name=replace_existing,json=replaceExisting,def=0" json:"replace_existing,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CreateView) Reset() { *m = CreateView{} } -func (m *CreateView) String() string { return proto.CompactTextString(m) } -func (*CreateView) ProtoMessage() {} -func (*CreateView) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{10} } - -const Default_CreateView_Algorithm ViewAlgorithm = ViewAlgorithm_UNDEFINED -const Default_CreateView_Security ViewSqlSecurity = ViewSqlSecurity_DEFINER -const Default_CreateView_ReplaceExisting bool = false - -func (m *CreateView) GetCollection() *Collection { - if m != nil { - return m.Collection - } - return nil -} - -func (m *CreateView) GetDefiner() string { - if m != nil && m.Definer != nil { - return *m.Definer - } - return "" -} - -func (m *CreateView) GetAlgorithm() ViewAlgorithm { - if m != nil && m.Algorithm != nil { - return *m.Algorithm - } - return Default_CreateView_Algorithm -} - -func (m *CreateView) GetSecurity() ViewSqlSecurity { - if m != nil && m.Security != nil { - return *m.Security - } - return Default_CreateView_Security -} - -func (m *CreateView) GetCheck() ViewCheckOption { - if m != nil && m.Check != nil { - return *m.Check - } - return ViewCheckOption_LOCAL -} - -func (m *CreateView) GetColumn() []string { - if m != nil { - return m.Column - } - return nil -} - -func (m *CreateView) GetStmt() *Find { - if m != nil { - return m.Stmt - } - return nil -} - -func (m *CreateView) GetReplaceExisting() bool { - if m != nil && m.ReplaceExisting != nil { - return *m.ReplaceExisting - } - return Default_CreateView_ReplaceExisting -} - -type ModifyView struct { - Collection *Collection `protobuf:"bytes,1,req,name=collection" json:"collection,omitempty"` - Definer *string `protobuf:"bytes,2,opt,name=definer" json:"definer,omitempty"` - Algorithm *ViewAlgorithm `protobuf:"varint,3,opt,name=algorithm,enum=Mysqlx.Crud.ViewAlgorithm" json:"algorithm,omitempty"` - Security *ViewSqlSecurity `protobuf:"varint,4,opt,name=security,enum=Mysqlx.Crud.ViewSqlSecurity" json:"security,omitempty"` - Check *ViewCheckOption `protobuf:"varint,5,opt,name=check,enum=Mysqlx.Crud.ViewCheckOption" json:"check,omitempty"` - Column []string `protobuf:"bytes,6,rep,name=column" json:"column,omitempty"` - Stmt *Find `protobuf:"bytes,7,opt,name=stmt" json:"stmt,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ModifyView) Reset() { *m = ModifyView{} } -func (m *ModifyView) String() string { return proto.CompactTextString(m) } -func (*ModifyView) ProtoMessage() {} -func (*ModifyView) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{11} } - -func (m *ModifyView) GetCollection() *Collection { - if m != nil { - return m.Collection - } - return nil -} - -func (m *ModifyView) GetDefiner() string { - if m != nil && m.Definer != nil { - return *m.Definer - } - return "" -} - -func (m *ModifyView) GetAlgorithm() ViewAlgorithm { - if m != nil && m.Algorithm != nil { - return *m.Algorithm - } - return ViewAlgorithm_UNDEFINED -} - -func (m *ModifyView) GetSecurity() ViewSqlSecurity { - if m != nil && m.Security != nil { - return *m.Security - } - return ViewSqlSecurity_INVOKER -} - -func (m *ModifyView) GetCheck() ViewCheckOption { - if m != nil && m.Check != nil { - return *m.Check - } - return ViewCheckOption_LOCAL -} - -func (m *ModifyView) GetColumn() []string { - if m != nil { - return m.Column - } - return nil -} - -func (m *ModifyView) GetStmt() *Find { - if m != nil { - return m.Stmt - } - return nil -} - -type DropView struct { - Collection *Collection `protobuf:"bytes,1,req,name=collection" json:"collection,omitempty"` - IfExists *bool `protobuf:"varint,2,opt,name=if_exists,json=ifExists,def=0" json:"if_exists,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *DropView) Reset() { *m = DropView{} } -func (m *DropView) String() string { return proto.CompactTextString(m) } -func (*DropView) ProtoMessage() {} -func (*DropView) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxCrud, []int{12} } - -const Default_DropView_IfExists bool = false - -func (m *DropView) GetCollection() *Collection { - if m != nil { - return m.Collection - } - return nil -} - -func (m *DropView) GetIfExists() bool { - if m != nil && m.IfExists != nil { - return *m.IfExists - } - return Default_DropView_IfExists -} - -func init() { - proto.RegisterType((*Column)(nil), "Mysqlx.Crud.Column") - proto.RegisterType((*Projection)(nil), "Mysqlx.Crud.Projection") - proto.RegisterType((*Collection)(nil), "Mysqlx.Crud.Collection") - proto.RegisterType((*Limit)(nil), "Mysqlx.Crud.Limit") - proto.RegisterType((*Order)(nil), "Mysqlx.Crud.Order") - proto.RegisterType((*UpdateOperation)(nil), "Mysqlx.Crud.UpdateOperation") - proto.RegisterType((*Find)(nil), "Mysqlx.Crud.Find") - proto.RegisterType((*Insert)(nil), "Mysqlx.Crud.Insert") - proto.RegisterType((*Insert_TypedRow)(nil), "Mysqlx.Crud.Insert.TypedRow") - proto.RegisterType((*Update)(nil), "Mysqlx.Crud.Update") - proto.RegisterType((*Delete)(nil), "Mysqlx.Crud.Delete") - proto.RegisterType((*CreateView)(nil), "Mysqlx.Crud.CreateView") - proto.RegisterType((*ModifyView)(nil), "Mysqlx.Crud.ModifyView") - proto.RegisterType((*DropView)(nil), "Mysqlx.Crud.DropView") - proto.RegisterEnum("Mysqlx.Crud.DataModel", DataModel_name, DataModel_value) - proto.RegisterEnum("Mysqlx.Crud.ViewAlgorithm", ViewAlgorithm_name, ViewAlgorithm_value) - proto.RegisterEnum("Mysqlx.Crud.ViewSqlSecurity", ViewSqlSecurity_name, ViewSqlSecurity_value) - proto.RegisterEnum("Mysqlx.Crud.ViewCheckOption", ViewCheckOption_name, ViewCheckOption_value) - proto.RegisterEnum("Mysqlx.Crud.Order_Direction", Order_Direction_name, Order_Direction_value) - proto.RegisterEnum("Mysqlx.Crud.UpdateOperation_UpdateType", UpdateOperation_UpdateType_name, UpdateOperation_UpdateType_value) -} -func (m *Column) 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 *Column) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Name != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(len(*m.Name))) - i += copy(dAtA[i:], *m.Name) - } - if m.Alias != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(len(*m.Alias))) - i += copy(dAtA[i:], *m.Alias) - } - if len(m.DocumentPath) > 0 { - for _, msg := range m.DocumentPath { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxCrud(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 *Projection) 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 *Projection) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Source == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Source.Size())) - n1, err := m.Source.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if m.Alias != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(len(*m.Alias))) - i += copy(dAtA[i:], *m.Alias) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Collection) 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 *Collection) 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 = encodeVarintMysqlxCrud(dAtA, i, uint64(len(*m.Name))) - i += copy(dAtA[i:], *m.Name) - } - if m.Schema != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(len(*m.Schema))) - i += copy(dAtA[i:], *m.Schema) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Limit) 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 *Limit) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.RowCount == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.RowCount)) - } - if m.Offset != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.Offset)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Order) 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 *Order) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Expr == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Expr.Size())) - n2, err := m.Expr.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - } - if m.Direction != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.Direction)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *UpdateOperation) 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 *UpdateOperation) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Source == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Source.Size())) - n3, err := m.Source.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - } - if m.Operation == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.Operation)) - } - if m.Value != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Value.Size())) - n4, err := m.Value.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Find) 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 *Find) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Collection == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Collection.Size())) - n5, err := m.Collection.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - } - if m.DataModel != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.DataModel)) - } - if len(m.Projection) > 0 { - for _, msg := range m.Projection { - dAtA[i] = 0x22 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Criteria != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Criteria.Size())) - n6, err := m.Criteria.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - } - if m.Limit != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Limit.Size())) - n7, err := m.Limit.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - } - if len(m.Order) > 0 { - for _, msg := range m.Order { - dAtA[i] = 0x3a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Grouping) > 0 { - for _, msg := range m.Grouping { - dAtA[i] = 0x42 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.GroupingCriteria != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.GroupingCriteria.Size())) - n8, err := m.GroupingCriteria.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - } - if len(m.Args) > 0 { - for _, msg := range m.Args { - dAtA[i] = 0x5a - i++ - i = encodeVarintMysqlxCrud(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 *Insert) 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 *Insert) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Collection == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Collection.Size())) - n9, err := m.Collection.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - } - if m.DataModel != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.DataModel)) - } - if len(m.Projection) > 0 { - for _, msg := range m.Projection { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Row) > 0 { - for _, msg := range m.Row { - dAtA[i] = 0x22 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Args) > 0 { - for _, msg := range m.Args { - dAtA[i] = 0x2a - i++ - i = encodeVarintMysqlxCrud(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 *Insert_TypedRow) 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 *Insert_TypedRow) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Field) > 0 { - for _, msg := range m.Field { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(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 *Update) 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 *Update) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Collection == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Collection.Size())) - n10, err := m.Collection.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - } - if m.DataModel != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.DataModel)) - } - if m.Criteria != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Criteria.Size())) - n11, err := m.Criteria.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - } - if m.Limit != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Limit.Size())) - n12, err := m.Limit.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - } - if len(m.Order) > 0 { - for _, msg := range m.Order { - dAtA[i] = 0x32 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Operation) > 0 { - for _, msg := range m.Operation { - dAtA[i] = 0x3a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Args) > 0 { - for _, msg := range m.Args { - dAtA[i] = 0x42 - i++ - i = encodeVarintMysqlxCrud(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 *Delete) 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 *Delete) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Collection == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Collection.Size())) - n13, err := m.Collection.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - } - if m.DataModel != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.DataModel)) - } - if m.Criteria != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Criteria.Size())) - n14, err := m.Criteria.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - } - if m.Limit != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Limit.Size())) - n15, err := m.Limit.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - } - if len(m.Order) > 0 { - for _, msg := range m.Order { - dAtA[i] = 0x2a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Args) > 0 { - for _, msg := range m.Args { - dAtA[i] = 0x32 - i++ - i = encodeVarintMysqlxCrud(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 *CreateView) 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 *CreateView) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Collection == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Collection.Size())) - n16, err := m.Collection.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 - } - if m.Definer != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(len(*m.Definer))) - i += copy(dAtA[i:], *m.Definer) - } - if m.Algorithm != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.Algorithm)) - } - if m.Security != nil { - dAtA[i] = 0x20 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.Security)) - } - if m.Check != nil { - dAtA[i] = 0x28 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.Check)) - } - if len(m.Column) > 0 { - for _, s := range m.Column { - dAtA[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.Stmt == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x3a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Stmt.Size())) - n17, err := m.Stmt.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - } - if m.ReplaceExisting != nil { - dAtA[i] = 0x40 - i++ - if *m.ReplaceExisting { - 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 *ModifyView) 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 *ModifyView) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Collection == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Collection.Size())) - n18, err := m.Collection.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - } - if m.Definer != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(len(*m.Definer))) - i += copy(dAtA[i:], *m.Definer) - } - if m.Algorithm != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.Algorithm)) - } - if m.Security != nil { - dAtA[i] = 0x20 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.Security)) - } - if m.Check != nil { - dAtA[i] = 0x28 - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(*m.Check)) - } - if len(m.Column) > 0 { - for _, s := range m.Column { - dAtA[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.Stmt != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Stmt.Size())) - n19, err := m.Stmt.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *DropView) 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 *DropView) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Collection == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxCrud(dAtA, i, uint64(m.Collection.Size())) - n20, err := m.Collection.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n20 - } - if m.IfExists != nil { - dAtA[i] = 0x10 - i++ - if *m.IfExists { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func encodeVarintMysqlxCrud(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 *Column) Size() (n int) { - var l int - _ = l - if m.Name != nil { - l = len(*m.Name) - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Alias != nil { - l = len(*m.Alias) - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if len(m.DocumentPath) > 0 { - for _, e := range m.DocumentPath { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Projection) Size() (n int) { - var l int - _ = l - if m.Source != nil { - l = m.Source.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Alias != nil { - l = len(*m.Alias) - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Collection) Size() (n int) { - var l int - _ = l - if m.Name != nil { - l = len(*m.Name) - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Schema != nil { - l = len(*m.Schema) - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Limit) Size() (n int) { - var l int - _ = l - if m.RowCount != nil { - n += 1 + sovMysqlxCrud(uint64(*m.RowCount)) - } - if m.Offset != nil { - n += 1 + sovMysqlxCrud(uint64(*m.Offset)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Order) Size() (n int) { - var l int - _ = l - if m.Expr != nil { - l = m.Expr.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Direction != nil { - n += 1 + sovMysqlxCrud(uint64(*m.Direction)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *UpdateOperation) Size() (n int) { - var l int - _ = l - if m.Source != nil { - l = m.Source.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Operation != nil { - n += 1 + sovMysqlxCrud(uint64(*m.Operation)) - } - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Find) Size() (n int) { - var l int - _ = l - if m.Collection != nil { - l = m.Collection.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.DataModel != nil { - n += 1 + sovMysqlxCrud(uint64(*m.DataModel)) - } - if len(m.Projection) > 0 { - for _, e := range m.Projection { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.Criteria != nil { - l = m.Criteria.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Limit != nil { - l = m.Limit.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if len(m.Order) > 0 { - for _, e := range m.Order { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if len(m.Grouping) > 0 { - for _, e := range m.Grouping { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.GroupingCriteria != nil { - l = m.GroupingCriteria.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if len(m.Args) > 0 { - for _, e := range m.Args { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Insert) Size() (n int) { - var l int - _ = l - if m.Collection != nil { - l = m.Collection.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.DataModel != nil { - n += 1 + sovMysqlxCrud(uint64(*m.DataModel)) - } - if len(m.Projection) > 0 { - for _, e := range m.Projection { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if len(m.Row) > 0 { - for _, e := range m.Row { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if len(m.Args) > 0 { - for _, e := range m.Args { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Insert_TypedRow) Size() (n int) { - var l int - _ = l - if len(m.Field) > 0 { - for _, e := range m.Field { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Update) Size() (n int) { - var l int - _ = l - if m.Collection != nil { - l = m.Collection.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.DataModel != nil { - n += 1 + sovMysqlxCrud(uint64(*m.DataModel)) - } - if m.Criteria != nil { - l = m.Criteria.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Limit != nil { - l = m.Limit.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if len(m.Order) > 0 { - for _, e := range m.Order { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if len(m.Operation) > 0 { - for _, e := range m.Operation { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if len(m.Args) > 0 { - for _, e := range m.Args { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Delete) Size() (n int) { - var l int - _ = l - if m.Collection != nil { - l = m.Collection.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.DataModel != nil { - n += 1 + sovMysqlxCrud(uint64(*m.DataModel)) - } - if m.Criteria != nil { - l = m.Criteria.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Limit != nil { - l = m.Limit.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if len(m.Order) > 0 { - for _, e := range m.Order { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if len(m.Args) > 0 { - for _, e := range m.Args { - l = e.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CreateView) Size() (n int) { - var l int - _ = l - if m.Collection != nil { - l = m.Collection.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Definer != nil { - l = len(*m.Definer) - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Algorithm != nil { - n += 1 + sovMysqlxCrud(uint64(*m.Algorithm)) - } - if m.Security != nil { - n += 1 + sovMysqlxCrud(uint64(*m.Security)) - } - if m.Check != nil { - n += 1 + sovMysqlxCrud(uint64(*m.Check)) - } - if len(m.Column) > 0 { - for _, s := range m.Column { - l = len(s) - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.Stmt != nil { - l = m.Stmt.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.ReplaceExisting != nil { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ModifyView) Size() (n int) { - var l int - _ = l - if m.Collection != nil { - l = m.Collection.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Definer != nil { - l = len(*m.Definer) - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.Algorithm != nil { - n += 1 + sovMysqlxCrud(uint64(*m.Algorithm)) - } - if m.Security != nil { - n += 1 + sovMysqlxCrud(uint64(*m.Security)) - } - if m.Check != nil { - n += 1 + sovMysqlxCrud(uint64(*m.Check)) - } - if len(m.Column) > 0 { - for _, s := range m.Column { - l = len(s) - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - } - if m.Stmt != nil { - l = m.Stmt.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DropView) Size() (n int) { - var l int - _ = l - if m.Collection != nil { - l = m.Collection.Size() - n += 1 + l + sovMysqlxCrud(uint64(l)) - } - if m.IfExists != nil { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovMysqlxCrud(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozMysqlxCrud(x uint64) (n int) { - return sovMysqlxCrud(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Column) 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 ErrIntOverflowMysqlxCrud - } - 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: Column: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Column: 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 ErrIntOverflowMysqlxCrud - } - 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 ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Name = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - 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 ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Alias = &s - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DocumentPath", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DocumentPath = append(m.DocumentPath, &Mysqlx_Expr.DocumentPathItem{}) - if err := m.DocumentPath[len(m.DocumentPath)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *Projection) 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 ErrIntOverflowMysqlxCrud - } - 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: Projection: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Projection: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Source == nil { - m.Source = &Mysqlx_Expr.Expr{} - } - if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - 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 ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Alias = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *Collection) 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 ErrIntOverflowMysqlxCrud - } - 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: Collection: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Collection: 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 ErrIntOverflowMysqlxCrud - } - 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 ErrInvalidLengthMysqlxCrud - } - 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 Schema", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - 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 ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Schema = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *Limit) 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 ErrIntOverflowMysqlxCrud - } - 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: Limit: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Limit: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RowCount", wireType) - } - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.RowCount = &v - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) - } - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Offset = &v - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *Order) 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 ErrIntOverflowMysqlxCrud - } - 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: Order: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Order: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Expr", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Expr == nil { - m.Expr = &Mysqlx_Expr.Expr{} - } - if err := m.Expr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) - } - var v Order_Direction - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (Order_Direction(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Direction = &v - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *UpdateOperation) 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 ErrIntOverflowMysqlxCrud - } - 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: UpdateOperation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateOperation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Source == nil { - m.Source = &Mysqlx_Expr.ColumnIdentifier{} - } - if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType) - } - var v UpdateOperation_UpdateType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (UpdateOperation_UpdateType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Operation = &v - hasFields[0] |= uint64(0x00000002) - case 3: - 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 ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &Mysqlx_Expr.Expr{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *Find) 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 ErrIntOverflowMysqlxCrud - } - 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: Find: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Find: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Collection == nil { - m.Collection = &Collection{} - } - if err := m.Collection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DataModel", wireType) - } - var v DataModel - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (DataModel(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.DataModel = &v - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Projection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Projection = append(m.Projection, &Projection{}) - if err := m.Projection[len(m.Projection)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Criteria", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Criteria == nil { - m.Criteria = &Mysqlx_Expr.Expr{} - } - if err := m.Criteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Limit == nil { - m.Limit = &Limit{} - } - if err := m.Limit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Order = append(m.Order, &Order{}) - if err := m.Order[len(m.Order)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Grouping", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Grouping = append(m.Grouping, &Mysqlx_Expr.Expr{}) - if err := m.Grouping[len(m.Grouping)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupingCriteria", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GroupingCriteria == nil { - m.GroupingCriteria = &Mysqlx_Expr.Expr{} - } - if err := m.GroupingCriteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - 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 ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, &Mysqlx_Datatypes.Scalar{}) - if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *Insert) 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 ErrIntOverflowMysqlxCrud - } - 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: Insert: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Insert: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Collection == nil { - m.Collection = &Collection{} - } - if err := m.Collection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DataModel", wireType) - } - var v DataModel - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (DataModel(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.DataModel = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Projection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Projection = append(m.Projection, &Column{}) - if err := m.Projection[len(m.Projection)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Row", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Row = append(m.Row, &Insert_TypedRow{}) - if err := m.Row[len(m.Row)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - 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 ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, &Mysqlx_Datatypes.Scalar{}) - if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *Insert_TypedRow) 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 ErrIntOverflowMysqlxCrud - } - 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: TypedRow: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TypedRow: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Field", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Field = append(m.Field, &Mysqlx_Expr.Expr{}) - if err := m.Field[len(m.Field)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *Update) 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 ErrIntOverflowMysqlxCrud - } - 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: Update: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Collection == nil { - m.Collection = &Collection{} - } - if err := m.Collection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DataModel", wireType) - } - var v DataModel - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (DataModel(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.DataModel = &v - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Criteria", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Criteria == nil { - m.Criteria = &Mysqlx_Expr.Expr{} - } - if err := m.Criteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Limit == nil { - m.Limit = &Limit{} - } - if err := m.Limit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Order = append(m.Order, &Order{}) - if err := m.Order[len(m.Order)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operation = append(m.Operation, &UpdateOperation{}) - if err := m.Operation[len(m.Operation)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - 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 ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, &Mysqlx_Datatypes.Scalar{}) - if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *Delete) 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 ErrIntOverflowMysqlxCrud - } - 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: Delete: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Delete: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Collection == nil { - m.Collection = &Collection{} - } - if err := m.Collection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DataModel", wireType) - } - var v DataModel - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (DataModel(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.DataModel = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Criteria", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Criteria == nil { - m.Criteria = &Mysqlx_Expr.Expr{} - } - if err := m.Criteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Limit == nil { - m.Limit = &Limit{} - } - if err := m.Limit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Order = append(m.Order, &Order{}) - if err := m.Order[len(m.Order)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, &Mysqlx_Datatypes.Scalar{}) - if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *CreateView) 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 ErrIntOverflowMysqlxCrud - } - 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: CreateView: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateView: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Collection == nil { - m.Collection = &Collection{} - } - if err := m.Collection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Definer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - 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 ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Definer = &s - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Algorithm", wireType) - } - var v ViewAlgorithm - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (ViewAlgorithm(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Algorithm = &v - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Security", wireType) - } - var v ViewSqlSecurity - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (ViewSqlSecurity(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Security = &v - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Check", wireType) - } - var v ViewCheckOption - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (ViewCheckOption(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Check = &v - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - 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 ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Column = append(m.Column, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stmt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Stmt == nil { - m.Stmt = &Find{} - } - if err := m.Stmt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000002) - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplaceExisting", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.ReplaceExisting = &b - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *ModifyView) 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 ErrIntOverflowMysqlxCrud - } - 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: ModifyView: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModifyView: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Collection == nil { - m.Collection = &Collection{} - } - if err := m.Collection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Definer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - 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 ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Definer = &s - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Algorithm", wireType) - } - var v ViewAlgorithm - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (ViewAlgorithm(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Algorithm = &v - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Security", wireType) - } - var v ViewSqlSecurity - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (ViewSqlSecurity(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Security = &v - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Check", wireType) - } - var v ViewCheckOption - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (ViewCheckOption(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Check = &v - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - 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 ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Column = append(m.Column, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stmt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Stmt == nil { - m.Stmt = &Find{} - } - if err := m.Stmt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 *DropView) 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 ErrIntOverflowMysqlxCrud - } - 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: DropView: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DropView: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxCrud - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Collection == nil { - m.Collection = &Collection{} - } - if err := m.Collection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IfExists", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxCrud - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.IfExists = &b - default: - iNdEx = preIndex - skippy, err := skipMysqlxCrud(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxCrud - } - 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 skipMysqlxCrud(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, ErrIntOverflowMysqlxCrud - } - 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, ErrIntOverflowMysqlxCrud - } - 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, ErrIntOverflowMysqlxCrud - } - 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, ErrInvalidLengthMysqlxCrud - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMysqlxCrud - } - 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 := skipMysqlxCrud(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 ( - ErrInvalidLengthMysqlxCrud = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMysqlxCrud = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/Crud/mysqlx_crud.proto", fileDescriptorMysqlxCrud) -} - -var fileDescriptorMysqlxCrud = []byte{ - // 1187 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdd, 0x8e, 0xdb, 0xc4, - 0x17, 0xff, 0xdb, 0x89, 0x93, 0xf8, 0xa4, 0xdd, 0x75, 0xe7, 0x8f, 0x8a, 0xb5, 0xb4, 0xab, 0x95, - 0x05, 0x6a, 0x58, 0xc0, 0x45, 0xa9, 0x2a, 0x56, 0x2b, 0x04, 0x4a, 0x6d, 0x17, 0x45, 0x6c, 0x3e, - 0x34, 0x49, 0x2b, 0x71, 0x15, 0x19, 0x7b, 0xb2, 0xeb, 0x62, 0xc7, 0xee, 0xd8, 0xe9, 0xee, 0xf2, - 0x0c, 0x48, 0xdc, 0xf2, 0x0a, 0xdc, 0xf3, 0x00, 0x5c, 0x21, 0xee, 0xe0, 0x11, 0x50, 0x11, 0xef, - 0x81, 0x66, 0xc6, 0x4e, 0xe2, 0x74, 0x97, 0x66, 0x8b, 0x96, 0x9b, 0x68, 0x66, 0xce, 0xef, 0x9c, - 0x39, 0xe7, 0x77, 0x3e, 0x32, 0x86, 0xbb, 0xbd, 0xf3, 0xf4, 0x79, 0x78, 0x76, 0xdf, 0xa2, 0x73, - 0xff, 0x7e, 0xc4, 0xd7, 0x13, 0x8f, 0xce, 0x7d, 0x33, 0xa1, 0x71, 0x16, 0xa3, 0xa6, 0x10, 0x9b, - 0x4c, 0xbc, 0x53, 0x60, 0x9d, 0xb3, 0x84, 0x16, 0x58, 0x72, 0x96, 0x50, 0x81, 0xdd, 0xb9, 0x97, - 0x8b, 0x6d, 0x37, 0x73, 0xb3, 0xf3, 0x84, 0xa4, 0x05, 0xc6, 0x2f, 0x0e, 0x04, 0xd0, 0x78, 0x01, - 0x35, 0x2b, 0x0e, 0xe7, 0xd1, 0x0c, 0x21, 0xa8, 0xce, 0xdc, 0x88, 0xe8, 0xd2, 0x9e, 0xd4, 0x52, - 0x31, 0x5f, 0xa3, 0xb7, 0x40, 0x71, 0xc3, 0xc0, 0x4d, 0x75, 0x99, 0x1f, 0x8a, 0x0d, 0x7a, 0x04, - 0x37, 0xfd, 0xd8, 0x9b, 0x47, 0x64, 0x96, 0x4d, 0x12, 0x37, 0x3b, 0xd1, 0x2b, 0x7b, 0x95, 0x56, - 0xb3, 0x7d, 0xd7, 0xcc, 0x1d, 0x64, 0x3e, 0x99, 0x76, 0x8e, 0x18, 0xba, 0xd9, 0x49, 0x37, 0x23, - 0x11, 0xbe, 0xe1, 0xaf, 0x9c, 0x18, 0x3d, 0x80, 0x21, 0x8d, 0x9f, 0x11, 0x2f, 0x0b, 0xe2, 0x19, - 0x7a, 0x1f, 0x6a, 0x69, 0x3c, 0xa7, 0x1e, 0xbb, 0x5d, 0x6e, 0x35, 0xdb, 0xb7, 0x4a, 0xa6, 0xd8, - 0x0f, 0xce, 0x01, 0x17, 0xbb, 0x64, 0x1c, 0x00, 0x58, 0x71, 0x18, 0xe6, 0xe6, 0x96, 0xa1, 0xc8, - 0x8b, 0x50, 0x6e, 0x43, 0x2d, 0xf5, 0x4e, 0x48, 0xe4, 0xe6, 0x8a, 0xf9, 0xce, 0xf8, 0x14, 0x94, - 0xa3, 0x20, 0x0a, 0x32, 0xf4, 0x0e, 0xa8, 0x34, 0x3e, 0x9d, 0x78, 0xf1, 0x7c, 0x96, 0x71, 0xcd, - 0x2a, 0x6e, 0xd0, 0xf8, 0xd4, 0x62, 0x7b, 0xa6, 0x1d, 0x4f, 0xa7, 0x29, 0xc9, 0xb8, 0x76, 0x15, - 0xe7, 0x3b, 0xe3, 0x7b, 0x09, 0x94, 0x01, 0xf5, 0x09, 0x45, 0xef, 0x41, 0x95, 0xf1, 0x7f, 0x79, - 0x00, 0x5c, 0x8c, 0x3e, 0x07, 0xd5, 0x0f, 0xa8, 0xf0, 0x93, 0xdb, 0xda, 0x6a, 0xdf, 0x31, 0x57, - 0x12, 0x6b, 0x72, 0x6b, 0xa6, 0x5d, 0x60, 0x0e, 0x2b, 0x9d, 0x91, 0x85, 0x97, 0x3a, 0xc6, 0x2e, - 0xa8, 0x0b, 0x21, 0xaa, 0x03, 0x13, 0x6b, 0x12, 0x6a, 0x40, 0xd5, 0x76, 0x46, 0x96, 0x26, 0x1b, - 0x3f, 0xc9, 0xb0, 0xfd, 0x24, 0xf1, 0xdd, 0x8c, 0x0c, 0x12, 0x42, 0x5d, 0x0e, 0x7b, 0xb8, 0x46, - 0x6f, 0x39, 0x53, 0x22, 0xff, 0x5d, 0x9f, 0xcc, 0xb2, 0x60, 0x1a, 0x90, 0x25, 0xd5, 0x0e, 0xa8, - 0x71, 0x61, 0x43, 0x97, 0xf7, 0xe4, 0xd6, 0x56, 0xfb, 0x5e, 0xc9, 0xd7, 0xb5, 0x7b, 0xf2, 0xfd, - 0xf8, 0x3c, 0x21, 0x78, 0xa9, 0x89, 0xee, 0x81, 0xf2, 0xc2, 0x0d, 0xe7, 0x44, 0xaf, 0xec, 0x49, - 0x17, 0x53, 0x23, 0xe4, 0xc6, 0xb7, 0x00, 0x4b, 0x0b, 0x2c, 0xb6, 0x91, 0x33, 0xd6, 0x24, 0xb4, - 0x0d, 0xcd, 0xee, 0xd8, 0xe9, 0x4d, 0xb0, 0xd3, 0x1b, 0x3c, 0x75, 0x34, 0x19, 0xdd, 0x80, 0x06, - 0x3f, 0x60, 0xe2, 0x0a, 0xd2, 0xe0, 0x46, 0x2e, 0x1e, 0x1e, 0x75, 0x2c, 0x47, 0xab, 0xa2, 0x2d, - 0x00, 0x7e, 0xd2, 0x73, 0xf0, 0x17, 0x8e, 0xa6, 0x30, 0x44, 0x07, 0xe3, 0xce, 0x57, 0x93, 0x6e, - 0x7f, 0xe4, 0xe0, 0xb1, 0x56, 0x5b, 0x9e, 0x74, 0x86, 0x43, 0xa7, 0x6f, 0x6b, 0x75, 0xe3, 0xb7, - 0x0a, 0x54, 0x1f, 0x07, 0x33, 0x1f, 0x7d, 0x02, 0xe0, 0x2d, 0x2a, 0x89, 0x47, 0xdd, 0x6c, 0xbf, - 0x5d, 0x8a, 0x7a, 0x59, 0x68, 0x78, 0x05, 0x8a, 0x1e, 0x02, 0xb0, 0xe6, 0x9a, 0x44, 0xb1, 0x4f, - 0x42, 0x1e, 0xeb, 0x56, 0xfb, 0x76, 0x49, 0x91, 0x35, 0x63, 0x8f, 0x49, 0xb1, 0xea, 0x17, 0x4b, - 0x76, 0x5f, 0xb2, 0x68, 0x04, 0xbd, 0xca, 0x3b, 0xa9, 0x7c, 0xdf, 0xb2, 0x4f, 0xf0, 0x0a, 0x14, - 0x7d, 0x04, 0x0d, 0x8f, 0x06, 0x19, 0xa1, 0x81, 0xab, 0x2b, 0x97, 0x31, 0xbb, 0x80, 0xa0, 0x16, - 0x28, 0x21, 0xab, 0x73, 0xbd, 0xc6, 0xb1, 0xa8, 0x74, 0x05, 0xef, 0x00, 0x2c, 0x00, 0x0c, 0x19, - 0xb3, 0x22, 0xd4, 0xeb, 0xdc, 0x19, 0xf4, 0x6a, 0x79, 0x62, 0x01, 0x60, 0x2e, 0x1c, 0xd3, 0x78, - 0x9e, 0x04, 0xb3, 0x63, 0xbd, 0xc1, 0xc1, 0x17, 0xb9, 0x50, 0x40, 0xd0, 0x67, 0x70, 0xab, 0x58, - 0x4f, 0x16, 0xae, 0xab, 0x97, 0xb9, 0xae, 0x15, 0x58, 0xab, 0x08, 0xe1, 0x43, 0xa8, 0xba, 0xf4, - 0x38, 0xd5, 0x9b, 0xfc, 0x2a, 0xbd, 0x50, 0x59, 0xcc, 0x38, 0x73, 0xe4, 0xb9, 0xa1, 0x4b, 0x31, - 0x47, 0x19, 0x3f, 0xcb, 0x50, 0xeb, 0xce, 0x52, 0x42, 0xb3, 0xb5, 0x9c, 0x4a, 0x6f, 0x9a, 0x53, - 0x79, 0xd3, 0x9c, 0x3e, 0x28, 0xe5, 0x54, 0x4c, 0xc7, 0xff, 0xaf, 0xdf, 0x37, 0x8f, 0xca, 0xf9, - 0x34, 0xa1, 0x42, 0xe3, 0xd3, 0xbc, 0x02, 0xca, 0x33, 0x41, 0x84, 0x61, 0xb2, 0xb6, 0xf0, 0x71, - 0x7c, 0x8a, 0x19, 0x70, 0xc1, 0x86, 0xb2, 0x09, 0x1b, 0x3b, 0x0f, 0xa0, 0x51, 0xa8, 0xb3, 0x86, - 0x9c, 0x06, 0x24, 0xf4, 0x75, 0xe9, 0xb2, 0x9c, 0x09, 0xb9, 0xf1, 0x97, 0x0c, 0x35, 0xd1, 0x91, - 0xff, 0x79, 0x5b, 0xac, 0x56, 0x77, 0xf5, 0x0a, 0xd5, 0xad, 0x6c, 0x5c, 0xdd, 0xb5, 0xd7, 0x55, - 0xf7, 0xe1, 0xea, 0xf8, 0xab, 0x5f, 0x90, 0x96, 0xb5, 0xf1, 0xb7, 0x3a, 0xf3, 0x8a, 0xe4, 0x34, - 0x36, 0x2a, 0xd5, 0x1f, 0x65, 0xa8, 0xd9, 0x24, 0x24, 0xaf, 0xf0, 0x7c, 0xfd, 0xa5, 0xba, 0xca, - 0x73, 0xe5, 0x0a, 0x3c, 0x57, 0x37, 0xe6, 0x59, 0x79, 0x1d, 0xcf, 0x05, 0x57, 0xb5, 0x8d, 0xb8, - 0xfa, 0xae, 0x02, 0x60, 0x51, 0xe2, 0x66, 0xe4, 0x69, 0x40, 0x4e, 0xdf, 0x9c, 0x2f, 0x1d, 0xea, - 0x3e, 0x99, 0x06, 0x33, 0x42, 0xf3, 0x07, 0x41, 0xb1, 0x45, 0x16, 0xa8, 0x6e, 0x78, 0x1c, 0xd3, - 0x20, 0x3b, 0x89, 0xf2, 0x82, 0xdd, 0x29, 0x59, 0x64, 0x17, 0x77, 0x0a, 0xc4, 0xa1, 0xfa, 0xa4, - 0x6f, 0x3b, 0x8f, 0xbb, 0x7d, 0xc7, 0xc6, 0x4b, 0x3d, 0xd4, 0x81, 0x46, 0x4a, 0xbc, 0x39, 0x0d, - 0xb2, 0x73, 0xce, 0xd5, 0xfa, 0xdf, 0x3c, 0xb3, 0x31, 0x7a, 0x1e, 0x8e, 0x72, 0xcc, 0x61, 0x5d, - 0xd8, 0xc0, 0x78, 0xa1, 0x86, 0xda, 0xa0, 0x78, 0x27, 0xc4, 0xfb, 0x86, 0xd7, 0xf4, 0x45, 0xfa, - 0x16, 0x93, 0x0e, 0x12, 0x1e, 0x9a, 0x80, 0xb2, 0x77, 0x8a, 0xc7, 0x47, 0x0b, 0x67, 0x53, 0xc5, - 0xf9, 0x8e, 0xbd, 0x4e, 0xd2, 0x2c, 0xca, 0xf4, 0x7a, 0xf9, 0x75, 0xc2, 0x4d, 0xb1, 0xbf, 0x3d, - 0xcc, 0xc5, 0xe8, 0x63, 0xd0, 0x28, 0x49, 0x42, 0xd7, 0x23, 0x13, 0x72, 0x16, 0xa4, 0x99, 0x18, - 0xec, 0x52, 0xab, 0x71, 0xa8, 0x4c, 0xdd, 0x30, 0x25, 0x78, 0x3b, 0x17, 0x3b, 0xb9, 0xd4, 0xf8, - 0x45, 0x06, 0xe8, 0xc5, 0x7e, 0x30, 0x3d, 0xbf, 0xae, 0x74, 0x1c, 0x5c, 0x29, 0x1d, 0xab, 0x39, - 0x38, 0xb8, 0x5a, 0x0e, 0xae, 0x9d, 0x7a, 0xe9, 0x1f, 0xa8, 0x37, 0x8e, 0xa1, 0x61, 0xd3, 0x38, - 0xf9, 0x77, 0x2c, 0x1a, 0xa0, 0x06, 0x53, 0x91, 0x3a, 0xf1, 0x40, 0x5e, 0x24, 0xae, 0x11, 0x4c, - 0x79, 0xce, 0xd2, 0xfd, 0x77, 0x41, 0x5d, 0x4c, 0x02, 0xf6, 0x94, 0xb2, 0x07, 0xd6, 0x93, 0x9e, - 0xd3, 0x67, 0x2f, 0x2d, 0x15, 0x94, 0x71, 0xe7, 0xd1, 0x91, 0xa3, 0xc9, 0xfb, 0x07, 0x70, 0xb3, - 0xc4, 0x2b, 0xba, 0x09, 0xcb, 0x42, 0x17, 0x50, 0xf1, 0xbc, 0x92, 0x99, 0x64, 0xec, 0xf4, 0x86, - 0x42, 0xb3, 0xb2, 0xff, 0x01, 0x6c, 0xaf, 0x11, 0x8b, 0x9a, 0x50, 0xef, 0xf6, 0x9f, 0x0e, 0xbe, - 0x74, 0xb0, 0x26, 0xb1, 0x4d, 0x5e, 0xeb, 0x9a, 0xbc, 0xbf, 0x2f, 0xc0, 0x2b, 0x74, 0x32, 0xcb, - 0x47, 0x03, 0xab, 0x73, 0xa4, 0x49, 0xcc, 0x3b, 0xab, 0x33, 0xb2, 0x3a, 0xb6, 0x63, 0x6b, 0xf2, - 0x23, 0xf3, 0xd7, 0x97, 0xbb, 0xd2, 0xef, 0x2f, 0x77, 0xa5, 0x3f, 0x5e, 0xee, 0x4a, 0x3f, 0xfc, - 0xb9, 0xfb, 0x3f, 0xb8, 0xe3, 0xc5, 0x91, 0xc9, 0x3f, 0x6c, 0x4c, 0xef, 0x99, 0x58, 0x9c, 0x89, - 0xef, 0x9a, 0xaf, 0xe7, 0xd3, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x16, 0xd6, 0xa6, 0x4f, - 0x0d, 0x00, 0x00, -} diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/Datatypes/mysqlx_datatypes.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/Datatypes/mysqlx_datatypes.pb.go deleted file mode 100644 index 26340d36e5..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/Datatypes/mysqlx_datatypes.pb.go +++ /dev/null @@ -1,1904 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: github.com/pingcap/tipb/go-mysqlx/Datatypes/mysqlx_datatypes.proto - -/* - 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 -*/ -package Mysqlx_Datatypes - -import ( - "fmt" - - proto "github.com/golang/protobuf/proto" - - math "math" - - github_com_golang_protobuf_proto "github.com/golang/protobuf/proto" - - encoding_binary "encoding/binary" - - 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 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 -) - -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", -} -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, -} - -func (x Scalar_Type) Enum() *Scalar_Type { - p := new(Scalar_Type) - *p = x - return p -} -func (x Scalar_Type) String() string { - return proto.EnumName(Scalar_Type_name, int32(x)) -} -func (x *Scalar_Type) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Scalar_Type_value, data, "Scalar_Type") - if err != nil { - return err - } - *x = Scalar_Type(value) - return nil -} -func (Scalar_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxDatatypes, []int{0, 0} } - -type Any_Type int32 - -const ( - Any_SCALAR Any_Type = 1 - Any_OBJECT Any_Type = 2 - Any_ARRAY Any_Type = 3 -) - -var Any_Type_name = map[int32]string{ - 1: "SCALAR", - 2: "OBJECT", - 3: "ARRAY", -} -var Any_Type_value = map[string]int32{ - "SCALAR": 1, - "OBJECT": 2, - "ARRAY": 3, -} - -func (x Any_Type) Enum() *Any_Type { - p := new(Any_Type) - *p = x - return p -} -func (x Any_Type) String() string { - return proto.EnumName(Any_Type_name, int32(x)) -} -func (x *Any_Type) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Any_Type_value, data, "Any_Type") - if err != nil { - return err - } - *x = Any_Type(value) - return nil -} -func (Any_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxDatatypes, []int{3, 0} } - -// a 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:"-"` -} - -func (m *Scalar) Reset() { *m = Scalar{} } -func (m *Scalar) String() string { return proto.CompactTextString(m) } -func (*Scalar) ProtoMessage() {} -func (*Scalar) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxDatatypes, []int{0} } - -func (m *Scalar) GetType() Scalar_Type { - if m != nil && m.Type != nil { - return *m.Type - } - return Scalar_V_SINT -} - -func (m *Scalar) GetVSignedInt() int64 { - if m != nil && m.VSignedInt != nil { - return *m.VSignedInt - } - return 0 -} - -func (m *Scalar) GetVUnsignedInt() uint64 { - if m != nil && m.VUnsignedInt != nil { - return *m.VUnsignedInt - } - return 0 -} - -func (m *Scalar) GetVOctets() *Scalar_Octets { - if m != nil { - return m.VOctets - } - return nil -} - -func (m *Scalar) GetVDouble() float64 { - if m != nil && m.VDouble != nil { - return *m.VDouble - } - return 0 -} - -func (m *Scalar) GetVFloat() float32 { - if m != nil && m.VFloat != nil { - return *m.VFloat - } - return 0 -} - -func (m *Scalar) GetVBool() bool { - if m != nil && m.VBool != nil { - return *m.VBool - } - return false -} - -func (m *Scalar) GetVString() *Scalar_String { - if m != nil { - return m.VString - } - return nil -} - -// a string with a charset/collation -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:"-"` -} - -func (m *Scalar_String) Reset() { *m = Scalar_String{} } -func (m *Scalar_String) String() string { return proto.CompactTextString(m) } -func (*Scalar_String) ProtoMessage() {} -func (*Scalar_String) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxDatatypes, []int{0, 0} } - -func (m *Scalar_String) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -func (m *Scalar_String) GetCollation() uint64 { - if m != nil && m.Collation != nil { - return *m.Collation - } - return 0 -} - -// an opaque octet sequence, with an optional content_type -// See ``Mysqlx.Resultset.ColumnMetadata`` for list of known values. -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:"-"` -} - -func (m *Scalar_Octets) Reset() { *m = Scalar_Octets{} } -func (m *Scalar_Octets) String() string { return proto.CompactTextString(m) } -func (*Scalar_Octets) ProtoMessage() {} -func (*Scalar_Octets) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxDatatypes, []int{0, 1} } - -func (m *Scalar_Octets) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -func (m *Scalar_Octets) GetContentType() uint32 { - if m != nil && m.ContentType != nil { - return *m.ContentType - } - return 0 -} - -// a object -type Object struct { - Fld []*Object_ObjectField `protobuf:"bytes,1,rep,name=fld" json:"fld,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Object) Reset() { *m = Object{} } -func (m *Object) String() string { return proto.CompactTextString(m) } -func (*Object) ProtoMessage() {} -func (*Object) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxDatatypes, []int{1} } - -func (m *Object) GetFld() []*Object_ObjectField { - if m != nil { - return m.Fld - } - return nil -} - -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 (m *Object_ObjectField) Reset() { *m = Object_ObjectField{} } -func (m *Object_ObjectField) String() string { return proto.CompactTextString(m) } -func (*Object_ObjectField) ProtoMessage() {} -func (*Object_ObjectField) Descriptor() ([]byte, []int) { - return fileDescriptorMysqlxDatatypes, []int{1, 0} -} - -func (m *Object_ObjectField) GetKey() string { - if m != nil && m.Key != nil { - return *m.Key - } - return "" -} - -func (m *Object_ObjectField) GetValue() *Any { - if m != nil { - return m.Value - } - return nil -} - -// a Array -type Array struct { - Value []*Any `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Array) Reset() { *m = Array{} } -func (m *Array) String() string { return proto.CompactTextString(m) } -func (*Array) ProtoMessage() {} -func (*Array) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxDatatypes, []int{2} } - -func (m *Array) GetValue() []*Any { - if m != nil { - return m.Value - } - return nil -} - -// a helper to allow all field types -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:"-"` -} - -func (m *Any) Reset() { *m = Any{} } -func (m *Any) String() string { return proto.CompactTextString(m) } -func (*Any) ProtoMessage() {} -func (*Any) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxDatatypes, []int{3} } - -func (m *Any) GetType() Any_Type { - if m != nil && m.Type != nil { - return *m.Type - } - return Any_SCALAR -} - -func (m *Any) GetScalar() *Scalar { - if m != nil { - return m.Scalar - } - return nil -} - -func (m *Any) GetObj() *Object { - if m != nil { - return m.Obj - } - return nil -} - -func (m *Any) GetArray() *Array { - if m != nil { - return m.Array - } - return nil -} - -func init() { - proto.RegisterType((*Scalar)(nil), "Mysqlx.Datatypes.Scalar") - proto.RegisterType((*Scalar_String)(nil), "Mysqlx.Datatypes.Scalar.String") - proto.RegisterType((*Scalar_Octets)(nil), "Mysqlx.Datatypes.Scalar.Octets") - proto.RegisterType((*Object)(nil), "Mysqlx.Datatypes.Object") - proto.RegisterType((*Object_ObjectField)(nil), "Mysqlx.Datatypes.Object.ObjectField") - proto.RegisterType((*Array)(nil), "Mysqlx.Datatypes.Array") - proto.RegisterType((*Any)(nil), "Mysqlx.Datatypes.Any") - proto.RegisterEnum("Mysqlx.Datatypes.Scalar_Type", Scalar_Type_name, Scalar_Type_value) - proto.RegisterEnum("Mysqlx.Datatypes.Any_Type", Any_Type_name, Any_Type_value) -} -func (m *Scalar) 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 *Scalar) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(*m.Type)) - } - if m.VSignedInt != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64((uint64(*m.VSignedInt)<<1)^uint64((*m.VSignedInt>>63)))) - } - if m.VUnsignedInt != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(*m.VUnsignedInt)) - } - if m.VOctets != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(m.VOctets.Size())) - n1, err := m.VOctets.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if m.VDouble != nil { - dAtA[i] = 0x31 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.VDouble)))) - i += 8 - } - if m.VFloat != nil { - dAtA[i] = 0x3d - i++ - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.VFloat)))) - i += 4 - } - if m.VBool != nil { - dAtA[i] = 0x40 - i++ - if *m.VBool { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.VString != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(m.VString.Size())) - n2, err := m.VString.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 *Scalar_String) 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 *Scalar_String) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Value == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - } - if m.Collation != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(*m.Collation)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Scalar_Octets) 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 *Scalar_Octets) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Value == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - } - if m.ContentType != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(*m.ContentType)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Object) 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 *Object) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Fld) > 0 { - for _, msg := range m.Fld { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxDatatypes(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 *Object_ObjectField) 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 *Object_ObjectField) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Key == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(len(*m.Key))) - i += copy(dAtA[i:], *m.Key) - } - if m.Value == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(m.Value.Size())) - n3, err := m.Value.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Array) 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 *Array) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Value) > 0 { - for _, msg := range m.Value { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxDatatypes(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 *Any) 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 *Any) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(*m.Type)) - } - if m.Scalar != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(m.Scalar.Size())) - n4, err := m.Scalar.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - } - if m.Obj != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(m.Obj.Size())) - n5, err := m.Obj.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - } - if m.Array != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintMysqlxDatatypes(dAtA, i, uint64(m.Array.Size())) - n6, err := m.Array.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func encodeVarintMysqlxDatatypes(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 *Scalar) Size() (n int) { - var l int - _ = l - if m.Type != nil { - n += 1 + sovMysqlxDatatypes(uint64(*m.Type)) - } - if m.VSignedInt != nil { - n += 1 + sozMysqlxDatatypes(uint64(*m.VSignedInt)) - } - if m.VUnsignedInt != nil { - n += 1 + sovMysqlxDatatypes(uint64(*m.VUnsignedInt)) - } - if m.VOctets != nil { - l = m.VOctets.Size() - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - if m.VDouble != nil { - n += 9 - } - if m.VFloat != nil { - n += 5 - } - if m.VBool != nil { - n += 2 - } - if m.VString != nil { - l = m.VString.Size() - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Scalar_String) Size() (n int) { - var l int - _ = l - if m.Value != nil { - l = len(m.Value) - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - if m.Collation != nil { - n += 1 + sovMysqlxDatatypes(uint64(*m.Collation)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Scalar_Octets) Size() (n int) { - var l int - _ = l - if m.Value != nil { - l = len(m.Value) - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - if m.ContentType != nil { - n += 1 + sovMysqlxDatatypes(uint64(*m.ContentType)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Object) Size() (n int) { - var l int - _ = l - if len(m.Fld) > 0 { - for _, e := range m.Fld { - l = e.Size() - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Object_ObjectField) Size() (n int) { - var l int - _ = l - if m.Key != nil { - l = len(*m.Key) - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Array) Size() (n int) { - var l int - _ = l - if len(m.Value) > 0 { - for _, e := range m.Value { - l = e.Size() - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Any) Size() (n int) { - var l int - _ = l - if m.Type != nil { - n += 1 + sovMysqlxDatatypes(uint64(*m.Type)) - } - if m.Scalar != nil { - l = m.Scalar.Size() - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - if m.Obj != nil { - l = m.Obj.Size() - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - if m.Array != nil { - l = m.Array.Size() - n += 1 + l + sovMysqlxDatatypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovMysqlxDatatypes(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozMysqlxDatatypes(x uint64) (n int) { - return sovMysqlxDatatypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Scalar) 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 ErrIntOverflowMysqlxDatatypes - } - 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: Scalar: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Scalar: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var v Scalar_Type - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (Scalar_Type(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Type = &v - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VSignedInt", wireType) - } - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - v = (v >> 1) ^ uint64((int64(v&1)<<63)>>63) - v2 := int64(v) - m.VSignedInt = &v2 - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VUnsignedInt", wireType) - } - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.VUnsignedInt = &v - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VOctets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VOctets == nil { - m.VOctets = &Scalar_Octets{} - } - if err := m.VOctets.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field VDouble", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - v2 := float64(math.Float64frombits(v)) - m.VDouble = &v2 - case 7: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field VFloat", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - v2 := float32(math.Float32frombits(v)) - m.VFloat = &v2 - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VBool", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.VBool = &b - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VString", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VString == nil { - m.VString = &Scalar_String{} - } - if err := m.VString.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxDatatypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - 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 *Scalar_String) 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 ErrIntOverflowMysqlxDatatypes - } - 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: String: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: String: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Collation", wireType) - } - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Collation = &v - default: - iNdEx = preIndex - skippy, err := skipMysqlxDatatypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - 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 *Scalar_Octets) 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 ErrIntOverflowMysqlxDatatypes - } - 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: Octets: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Octets: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ContentType = &v - default: - iNdEx = preIndex - skippy, err := skipMysqlxDatatypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - 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 *Object) 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 ErrIntOverflowMysqlxDatatypes - } - 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: Object: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Object: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fld", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Fld = append(m.Fld, &Object_ObjectField{}) - if err := m.Fld[len(m.Fld)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxDatatypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - 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 *Object_ObjectField) 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 ErrIntOverflowMysqlxDatatypes - } - 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: ObjectField: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectField: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - 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 ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Key = &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 ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &Any{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000002) - default: - iNdEx = preIndex - skippy, err := skipMysqlxDatatypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - 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 *Array) 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 ErrIntOverflowMysqlxDatatypes - } - 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: Array: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Array: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value, &Any{}) - if err := m.Value[len(m.Value)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxDatatypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - 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 *Any) 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 ErrIntOverflowMysqlxDatatypes - } - 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: Any: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Any: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var v Any_Type - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (Any_Type(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Type = &v - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scalar", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Scalar == nil { - m.Scalar = &Scalar{} - } - if err := m.Scalar.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Obj", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Obj == nil { - m.Obj = &Object{} - } - if err := m.Obj.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Array", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxDatatypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Array == nil { - m.Array = &Array{} - } - if err := m.Array.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxDatatypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxDatatypes - } - 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 skipMysqlxDatatypes(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, ErrIntOverflowMysqlxDatatypes - } - 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, ErrIntOverflowMysqlxDatatypes - } - 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, ErrIntOverflowMysqlxDatatypes - } - 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, ErrInvalidLengthMysqlxDatatypes - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMysqlxDatatypes - } - 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 := skipMysqlxDatatypes(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 ( - ErrInvalidLengthMysqlxDatatypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMysqlxDatatypes = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/Datatypes/mysqlx_datatypes.proto", fileDescriptorMysqlxDatatypes) -} - -var fileDescriptorMysqlxDatatypes = []byte{ - // 616 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcd, 0x6e, 0xd3, 0x4a, - 0x14, 0xc7, 0xef, 0xc4, 0x5f, 0xc9, 0x71, 0x6e, 0x65, 0x8d, 0x6e, 0x55, 0xdf, 0xa8, 0x04, 0x13, - 0x55, 0xc2, 0x80, 0x70, 0x21, 0x42, 0x2c, 0x10, 0x1b, 0xa7, 0x1f, 0xa8, 0xc8, 0xd4, 0xd2, 0x38, - 0xa9, 0xc4, 0xca, 0x72, 0x1c, 0xb7, 0x4a, 0x71, 0x3d, 0x25, 0x99, 0x8c, 0x9a, 0x97, 0x60, 0xcd, - 0x93, 0xf0, 0x0c, 0x2c, 0x79, 0x04, 0x54, 0xd6, 0xbc, 0x03, 0x9a, 0x99, 0x94, 0x06, 0x9a, 0xc2, - 0xca, 0xff, 0xf3, 0xcf, 0xef, 0x4c, 0xce, 0x9c, 0x73, 0x34, 0x70, 0xff, 0xcd, 0x7c, 0xfa, 0xbe, - 0xbc, 0xd8, 0xde, 0xcd, 0x58, 0xc6, 0xe6, 0xe7, 0xc5, 0x74, 0xfb, 0x4c, 0x1a, 0xe9, 0xe8, 0xca, - 0x08, 0xce, 0x27, 0x94, 0x51, 0xec, 0x28, 0x30, 0xf8, 0x09, 0x76, 0x3e, 0xe9, 0x60, 0x26, 0x79, - 0x56, 0x66, 0x13, 0xfc, 0x14, 0x74, 0xe1, 0xb9, 0xc8, 0xab, 0xf9, 0x6b, 0xdd, 0x3b, 0xc1, 0xef, - 0x6c, 0xa0, 0xb8, 0xa0, 0x3f, 0x3f, 0x2f, 0x88, 0x44, 0xb1, 0x07, 0x4d, 0x9e, 0x4e, 0xc7, 0x27, - 0x55, 0x31, 0x4a, 0xc7, 0x15, 0x73, 0x6b, 0x1e, 0xf2, 0x31, 0x01, 0x9e, 0x48, 0xeb, 0xa0, 0x62, - 0x78, 0x0b, 0xd6, 0x78, 0x3a, 0xab, 0x96, 0x18, 0xcd, 0x43, 0xbe, 0x4e, 0x9a, 0x7c, 0xb0, 0x30, - 0x05, 0xf5, 0x02, 0xea, 0x3c, 0xa5, 0x39, 0x2b, 0xd8, 0xd4, 0x35, 0x3c, 0xe4, 0xdb, 0xdd, 0xbb, - 0xb7, 0xfe, 0x7d, 0x2c, 0x31, 0x62, 0x71, 0x25, 0xf0, 0xff, 0x22, 0x77, 0x44, 0x67, 0xc3, 0xb2, - 0x70, 0x4d, 0x0f, 0xf9, 0x88, 0x58, 0x7c, 0x57, 0x86, 0x78, 0x03, 0x2c, 0x9e, 0x1e, 0x97, 0x34, - 0x63, 0xae, 0xe5, 0x21, 0xbf, 0x46, 0x4c, 0xbe, 0x2f, 0x22, 0xbc, 0x0e, 0x26, 0x4f, 0x87, 0x94, - 0x96, 0x6e, 0xdd, 0x43, 0x7e, 0x9d, 0x18, 0xbc, 0x47, 0x69, 0xa9, 0xca, 0x98, 0xb2, 0xc9, 0xb8, - 0x3a, 0x71, 0x1b, 0x7f, 0x29, 0x23, 0x91, 0x18, 0xb1, 0xb8, 0x12, 0xad, 0x97, 0x60, 0x2a, 0x85, - 0xff, 0x03, 0x83, 0x67, 0xe5, 0x4c, 0x35, 0xb2, 0x49, 0x54, 0x80, 0x37, 0xa1, 0x91, 0xd3, 0xb2, - 0xcc, 0xd8, 0x98, 0x56, 0xb2, 0x4f, 0x3a, 0xb9, 0x36, 0x5a, 0x21, 0x98, 0x8b, 0xeb, 0xac, 0xce, - 0xbe, 0x07, 0xcd, 0x9c, 0x56, 0xac, 0xa8, 0x58, 0x2a, 0x67, 0x24, 0x0e, 0xf8, 0x97, 0xd8, 0x0b, - 0x4f, 0x4c, 0xa4, 0x73, 0x06, 0xba, 0xf8, 0x62, 0x00, 0xf3, 0x28, 0x4d, 0x0e, 0x0e, 0xfb, 0x0e, - 0x52, 0x7a, 0x20, 0x74, 0x4d, 0xe9, 0xc3, 0x41, 0x14, 0x39, 0x1a, 0x6e, 0x42, 0xfd, 0x28, 0x8d, - 0x77, 0xfa, 0x7b, 0xfd, 0xc4, 0xd1, 0x55, 0xb4, 0x1b, 0x0f, 0x7a, 0xd1, 0x9e, 0x63, 0x60, 0x1b, - 0xac, 0xa3, 0x74, 0x3f, 0x8a, 0xc3, 0xbe, 0x63, 0xaa, 0xa4, 0x5e, 0x1c, 0x47, 0x8e, 0xa5, 0xb0, - 0xa4, 0x4f, 0x0e, 0x0e, 0x5f, 0x39, 0xf5, 0xce, 0x07, 0x04, 0x66, 0x3c, 0x3c, 0x2d, 0x72, 0x86, - 0x9f, 0x83, 0x76, 0x5c, 0x8e, 0x5c, 0xe4, 0x69, 0xbe, 0xdd, 0xdd, 0xba, 0xd9, 0x31, 0x85, 0x2d, - 0x3e, 0xfb, 0xe3, 0xa2, 0x1c, 0x11, 0x91, 0xd0, 0x8a, 0xc0, 0x5e, 0xf2, 0xb0, 0x03, 0xda, 0xbb, - 0x62, 0x2e, 0xef, 0xdd, 0x20, 0x42, 0xe2, 0x47, 0x57, 0xbd, 0xa8, 0x79, 0x35, 0xdf, 0xee, 0xae, - 0xdf, 0x3c, 0x3a, 0xac, 0xe6, 0x8b, 0x16, 0x75, 0x9e, 0x81, 0x11, 0x4e, 0x26, 0xd9, 0x52, 0x96, - 0x2a, 0xe8, 0xcf, 0x59, 0xdf, 0x11, 0x68, 0x61, 0x35, 0xc7, 0xc1, 0x2f, 0xcb, 0xdf, 0x5a, 0x99, - 0xb3, 0xbc, 0xf9, 0x4f, 0xc0, 0x9c, 0xca, 0x45, 0x90, 0xa3, 0xb0, 0xbb, 0xee, 0x6d, 0x8b, 0x42, - 0x16, 0x1c, 0x7e, 0x08, 0x1a, 0x1d, 0x9e, 0xca, 0xf5, 0x5f, 0x89, 0xab, 0x56, 0x10, 0x01, 0xe1, - 0xc7, 0x60, 0x64, 0xe2, 0x2e, 0xae, 0x2e, 0xe9, 0x8d, 0x15, 0xe5, 0x88, 0x9f, 0x89, 0xa2, 0x3a, - 0x0f, 0xae, 0x47, 0x9f, 0xec, 0x84, 0x51, 0x48, 0xd4, 0xe8, 0xe3, 0xde, 0xeb, 0xbd, 0x1d, 0x31, - 0xfa, 0x06, 0x18, 0x21, 0x21, 0xe1, 0x5b, 0x47, 0xeb, 0x05, 0x9f, 0x2f, 0xdb, 0xe8, 0xcb, 0x65, - 0x1b, 0x7d, 0xbd, 0x6c, 0xa3, 0x8f, 0xdf, 0xda, 0xff, 0xc0, 0x66, 0x4e, 0xcf, 0x02, 0xf9, 0x5e, - 0x04, 0xf9, 0xa9, 0x12, 0x17, 0xea, 0xb9, 0x18, 0xce, 0x8e, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, - 0x15, 0x19, 0x37, 0x53, 0x5b, 0x04, 0x00, 0x00, -} diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/Expect/mysqlx_expect.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/Expect/mysqlx_expect.pb.go deleted file mode 100644 index c4b7bb4ea4..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/Expect/mysqlx_expect.pb.go +++ /dev/null @@ -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, -} diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/Expr/mysqlx_expr.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/Expr/mysqlx_expr.pb.go deleted file mode 100644 index 5eb3fd1c1d..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/Expr/mysqlx_expr.pb.go +++ /dev/null @@ -1,2651 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: github.com/pingcap/tipb/go-mysqlx/Expr/mysqlx_expr.proto - -/* - Package Mysqlx_Expr is a generated protocol buffer package. - - Expression syntax - - expr is the fundamental structure in various places - of the SQL language: - - * ``SELECT AS ...`` - * ``WHERE `` - - The structures can be used to: - - * build an Item-tree in the MySQL Server - * generate SQL from it - * use as filter condition in CRUD's Find(), Update() and Delete() calls. - - It is generated from these files: - github.com/pingcap/tipb/go-mysqlx/Expr/mysqlx_expr.proto - - It has these top-level messages: - Expr - Identifier - DocumentPathItem - ColumnIdentifier - FunctionCall - Operator - Object - Array -*/ -package Mysqlx_Expr - -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 - -type Expr_Type int32 - -const ( - Expr_IDENT Expr_Type = 1 - Expr_LITERAL Expr_Type = 2 - Expr_VARIABLE Expr_Type = 3 - Expr_FUNC_CALL Expr_Type = 4 - Expr_OPERATOR Expr_Type = 5 - Expr_PLACEHOLDER Expr_Type = 6 - Expr_OBJECT Expr_Type = 7 - Expr_ARRAY Expr_Type = 8 -) - -var Expr_Type_name = map[int32]string{ - 1: "IDENT", - 2: "LITERAL", - 3: "VARIABLE", - 4: "FUNC_CALL", - 5: "OPERATOR", - 6: "PLACEHOLDER", - 7: "OBJECT", - 8: "ARRAY", -} -var Expr_Type_value = map[string]int32{ - "IDENT": 1, - "LITERAL": 2, - "VARIABLE": 3, - "FUNC_CALL": 4, - "OPERATOR": 5, - "PLACEHOLDER": 6, - "OBJECT": 7, - "ARRAY": 8, -} - -func (x Expr_Type) Enum() *Expr_Type { - p := new(Expr_Type) - *p = x - return p -} -func (x Expr_Type) String() string { - return proto.EnumName(Expr_Type_name, int32(x)) -} -func (x *Expr_Type) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Expr_Type_value, data, "Expr_Type") - if err != nil { - return err - } - *x = Expr_Type(value) - return nil -} -func (Expr_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{0, 0} } - -type DocumentPathItem_Type int32 - -const ( - DocumentPathItem_MEMBER DocumentPathItem_Type = 1 - DocumentPathItem_MEMBER_ASTERISK DocumentPathItem_Type = 2 - DocumentPathItem_ARRAY_INDEX DocumentPathItem_Type = 3 - DocumentPathItem_ARRAY_INDEX_ASTERISK DocumentPathItem_Type = 4 - DocumentPathItem_DOUBLE_ASTERISK DocumentPathItem_Type = 5 -) - -var DocumentPathItem_Type_name = map[int32]string{ - 1: "MEMBER", - 2: "MEMBER_ASTERISK", - 3: "ARRAY_INDEX", - 4: "ARRAY_INDEX_ASTERISK", - 5: "DOUBLE_ASTERISK", -} -var DocumentPathItem_Type_value = map[string]int32{ - "MEMBER": 1, - "MEMBER_ASTERISK": 2, - "ARRAY_INDEX": 3, - "ARRAY_INDEX_ASTERISK": 4, - "DOUBLE_ASTERISK": 5, -} - -func (x DocumentPathItem_Type) Enum() *DocumentPathItem_Type { - p := new(DocumentPathItem_Type) - *p = x - return p -} -func (x DocumentPathItem_Type) String() string { - return proto.EnumName(DocumentPathItem_Type_name, int32(x)) -} -func (x *DocumentPathItem_Type) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(DocumentPathItem_Type_value, data, "DocumentPathItem_Type") - if err != nil { - return err - } - *x = DocumentPathItem_Type(value) - return nil -} -func (DocumentPathItem_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptorMysqlxExpr, []int{2, 0} -} - -// Expressions -// -// the "root" of the expression tree -// -// .. productionlist:: -// expr: `operator` | -// : `identifier` | -// : `function_call` | -// : variable | -// : `literal` | -// : placeholder -// -// If expression type is PLACEHOLDER then it refers to the value of a parameter -// specified when executing a statement (see `args` field of `StmtExecute` command). -// Field `position` (which must be present for such an expression) gives 0-based -// position of the parameter in the parameter list. -// -type Expr struct { - Type *Expr_Type `protobuf:"varint,1,req,name=type,enum=Mysqlx.Expr.Expr_Type" json:"type,omitempty"` - Identifier *ColumnIdentifier `protobuf:"bytes,2,opt,name=identifier" json:"identifier,omitempty"` - Variable *string `protobuf:"bytes,3,opt,name=variable" json:"variable,omitempty"` - Literal *Mysqlx_Datatypes.Scalar `protobuf:"bytes,4,opt,name=literal" json:"literal,omitempty"` - FunctionCall *FunctionCall `protobuf:"bytes,5,opt,name=function_call,json=functionCall" json:"function_call,omitempty"` - Operator *Operator `protobuf:"bytes,6,opt,name=operator" json:"operator,omitempty"` - Position *uint32 `protobuf:"varint,7,opt,name=position" json:"position,omitempty"` - Object *Object `protobuf:"bytes,8,opt,name=object" json:"object,omitempty"` - Array *Array `protobuf:"bytes,9,opt,name=array" json:"array,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Expr) Reset() { *m = Expr{} } -func (m *Expr) String() string { return proto.CompactTextString(m) } -func (*Expr) ProtoMessage() {} -func (*Expr) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{0} } - -func (m *Expr) GetType() Expr_Type { - if m != nil && m.Type != nil { - return *m.Type - } - return Expr_IDENT -} - -func (m *Expr) GetIdentifier() *ColumnIdentifier { - if m != nil { - return m.Identifier - } - return nil -} - -func (m *Expr) GetVariable() string { - if m != nil && m.Variable != nil { - return *m.Variable - } - return "" -} - -func (m *Expr) GetLiteral() *Mysqlx_Datatypes.Scalar { - if m != nil { - return m.Literal - } - return nil -} - -func (m *Expr) GetFunctionCall() *FunctionCall { - if m != nil { - return m.FunctionCall - } - return nil -} - -func (m *Expr) GetOperator() *Operator { - if m != nil { - return m.Operator - } - return nil -} - -func (m *Expr) GetPosition() uint32 { - if m != nil && m.Position != nil { - return *m.Position - } - return 0 -} - -func (m *Expr) GetObject() *Object { - if m != nil { - return m.Object - } - return nil -} - -func (m *Expr) GetArray() *Array { - if m != nil { - return m.Array - } - return nil -} - -// identifier: name, schame.name -// -// .. productionlist:: -// identifier: string "." string | -// : string -type Identifier struct { - Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` - SchemaName *string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName" json:"schema_name,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Identifier) Reset() { *m = Identifier{} } -func (m *Identifier) String() string { return proto.CompactTextString(m) } -func (*Identifier) ProtoMessage() {} -func (*Identifier) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{1} } - -func (m *Identifier) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *Identifier) GetSchemaName() string { - if m != nil && m.SchemaName != nil { - return *m.SchemaName - } - return "" -} - -// DocumentPathItem -// -// .. productionlist:: -// document_path: path_item | path_item document_path -// path_item : member | array_index | "**" -// member : "." string | "." "*" -// array_index : "[" number "]" | "[" "*" "]" -// -type DocumentPathItem struct { - Type *DocumentPathItem_Type `protobuf:"varint,1,req,name=type,enum=Mysqlx.Expr.DocumentPathItem_Type" json:"type,omitempty"` - Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` - Index *uint32 `protobuf:"varint,3,opt,name=index" json:"index,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *DocumentPathItem) Reset() { *m = DocumentPathItem{} } -func (m *DocumentPathItem) String() string { return proto.CompactTextString(m) } -func (*DocumentPathItem) ProtoMessage() {} -func (*DocumentPathItem) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{2} } - -func (m *DocumentPathItem) GetType() DocumentPathItem_Type { - if m != nil && m.Type != nil { - return *m.Type - } - return DocumentPathItem_MEMBER -} - -func (m *DocumentPathItem) GetValue() string { - if m != nil && m.Value != nil { - return *m.Value - } - return "" -} - -func (m *DocumentPathItem) GetIndex() uint32 { - if m != nil && m.Index != nil { - return *m.Index - } - return 0 -} - -// col_identifier (table): col@doc_path, tbl.col@doc_path col, tbl.col, schema.tbl.col -// col_identifier (document): doc_path -// -// .. productionlist:: -// col_identifier: string "." string "." string | -// : string "." string | -// : string | -// : string "." string "." string "@" document_path | -// : string "." string "@" document_path | -// : string "@" document_path | -// : document_path -// document_path: member | arrayLocation | doubleAsterisk -// member = "." string | "." "*" -// arrayLocation = "[" index "]" | "[" "*" "]" -// doubleAsterisk = "**" -// -type ColumnIdentifier struct { - DocumentPath []*DocumentPathItem `protobuf:"bytes,1,rep,name=document_path,json=documentPath" json:"document_path,omitempty"` - Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - TableName *string `protobuf:"bytes,3,opt,name=table_name,json=tableName" json:"table_name,omitempty"` - SchemaName *string `protobuf:"bytes,4,opt,name=schema_name,json=schemaName" json:"schema_name,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ColumnIdentifier) Reset() { *m = ColumnIdentifier{} } -func (m *ColumnIdentifier) String() string { return proto.CompactTextString(m) } -func (*ColumnIdentifier) ProtoMessage() {} -func (*ColumnIdentifier) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{3} } - -func (m *ColumnIdentifier) GetDocumentPath() []*DocumentPathItem { - if m != nil { - return m.DocumentPath - } - return nil -} - -func (m *ColumnIdentifier) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *ColumnIdentifier) GetTableName() string { - if m != nil && m.TableName != nil { - return *m.TableName - } - return "" -} - -func (m *ColumnIdentifier) GetSchemaName() string { - if m != nil && m.SchemaName != nil { - return *m.SchemaName - } - return "" -} - -// function call: ``func(a, b, "1", 3)`` -// -// .. productionlist:: -// function_call: `identifier` "(" [ `expr` ["," `expr` ]* ] ")" -type FunctionCall struct { - Name *Identifier `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` - Param []*Expr `protobuf:"bytes,2,rep,name=param" json:"param,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *FunctionCall) Reset() { *m = FunctionCall{} } -func (m *FunctionCall) String() string { return proto.CompactTextString(m) } -func (*FunctionCall) ProtoMessage() {} -func (*FunctionCall) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{4} } - -func (m *FunctionCall) GetName() *Identifier { - if m != nil { - return m.Name - } - return nil -} - -func (m *FunctionCall) GetParam() []*Expr { - if m != nil { - return m.Param - } - return nil -} - -// operator: ``<<(a, b)`` -// -// .. note:: -// -// Non-authoritative list of operators implemented (case sensitive): -// -// Nullary -// * ``*`` -// * ``default`` -// -// Unary -// * ``!`` -// * ``sign_plus`` -// * ``sign_minus`` -// * ``~`` -// -// Binary -// * ``&&`` -// * ``||`` -// * ``xor`` -// * ``==`` -// * ``!=`` -// * ``>`` -// * ``>=`` -// * ``<`` -// * ``<=`` -// * ``&`` -// * ``|`` -// * ``^`` -// * ``<<`` -// * ``>>`` -// * ``+`` -// * ``-`` -// * ``*`` -// * ``/`` -// * ``div`` -// * ``%`` -// * ``is`` -// * ``is_not`` -// * ``regexp`` -// * ``not_regexp`` -// * ``like`` -// * ``not_like`` -// * ``cast`` -// -// Using special representation, with more than 2 params -// * ``in`` (param[0] IN (param[1], param[2], ...)) -// * ``not_in`` (param[0] NOT IN (param[1], param[2], ...)) -// -// Ternary -// * ``between`` -// * ``between_not`` -// * ``date_add`` -// * ``date_sub`` -// -// Units for date_add/date_sub -// * ``MICROSECOND`` -// * ``SECOND`` -// * ``MINUTE`` -// * ``HOUR`` -// * ``DAY`` -// * ``WEEK`` -// * ``MONTH`` -// * ``QUARTER`` -// * ``YEAR`` -// * ``SECOND_MICROSECOND`` -// * ``MINUTE_MICROSECOND`` -// * ``MINUTE_SECOND`` -// * ``HOUR_MICROSECOND`` -// * ``HOUR_SECOND`` -// * ``HOUR_MINUTE`` -// * ``DAY_MICROSECOND`` -// * ``DAY_SECOND`` -// * ``DAY_MINUTE`` -// * ``DAY_HOUR`` -// -// Types for cast -// * ``BINARY[(N)]`` -// * ``CHAR[(N)]`` -// * ``DATE`` -// * ``DATETIME`` -// * ``DECIMAL[(M[,D])]`` -// * ``JSON`` -// * ``SIGNED [INTEGER]`` -// * ``TIME`` -// * ``UNSIGNED [INTEGER]`` -// -// .. productionlist:: -// operator: `name` "(" [ `expr` ["," `expr` ]* ] ")" -type Operator struct { - Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` - Param []*Expr `protobuf:"bytes,2,rep,name=param" json:"param,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Operator) Reset() { *m = Operator{} } -func (m *Operator) String() string { return proto.CompactTextString(m) } -func (*Operator) ProtoMessage() {} -func (*Operator) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{5} } - -func (m *Operator) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *Operator) GetParam() []*Expr { - if m != nil { - return m.Param - } - return nil -} - -// an object (with expression values) -type Object struct { - Fld []*Object_ObjectField `protobuf:"bytes,1,rep,name=fld" json:"fld,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Object) Reset() { *m = Object{} } -func (m *Object) String() string { return proto.CompactTextString(m) } -func (*Object) ProtoMessage() {} -func (*Object) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{6} } - -func (m *Object) GetFld() []*Object_ObjectField { - if m != nil { - return m.Fld - } - return nil -} - -type Object_ObjectField struct { - Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` - Value *Expr `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Object_ObjectField) Reset() { *m = Object_ObjectField{} } -func (m *Object_ObjectField) String() string { return proto.CompactTextString(m) } -func (*Object_ObjectField) ProtoMessage() {} -func (*Object_ObjectField) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{6, 0} } - -func (m *Object_ObjectField) GetKey() string { - if m != nil && m.Key != nil { - return *m.Key - } - return "" -} - -func (m *Object_ObjectField) GetValue() *Expr { - if m != nil { - return m.Value - } - return nil -} - -// a Array of expressions -type Array struct { - Value []*Expr `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Array) Reset() { *m = Array{} } -func (m *Array) String() string { return proto.CompactTextString(m) } -func (*Array) ProtoMessage() {} -func (*Array) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxExpr, []int{7} } - -func (m *Array) GetValue() []*Expr { - if m != nil { - return m.Value - } - return nil -} - -func init() { - proto.RegisterType((*Expr)(nil), "Mysqlx.Expr.Expr") - proto.RegisterType((*Identifier)(nil), "Mysqlx.Expr.Identifier") - proto.RegisterType((*DocumentPathItem)(nil), "Mysqlx.Expr.DocumentPathItem") - proto.RegisterType((*ColumnIdentifier)(nil), "Mysqlx.Expr.ColumnIdentifier") - proto.RegisterType((*FunctionCall)(nil), "Mysqlx.Expr.FunctionCall") - proto.RegisterType((*Operator)(nil), "Mysqlx.Expr.Operator") - proto.RegisterType((*Object)(nil), "Mysqlx.Expr.Object") - proto.RegisterType((*Object_ObjectField)(nil), "Mysqlx.Expr.Object.ObjectField") - proto.RegisterType((*Array)(nil), "Mysqlx.Expr.Array") - proto.RegisterEnum("Mysqlx.Expr.Expr_Type", Expr_Type_name, Expr_Type_value) - proto.RegisterEnum("Mysqlx.Expr.DocumentPathItem_Type", DocumentPathItem_Type_name, DocumentPathItem_Type_value) -} -func (m *Expr) 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 *Expr) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(*m.Type)) - } - if m.Identifier != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(m.Identifier.Size())) - n1, err := m.Identifier.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if m.Variable != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(len(*m.Variable))) - i += copy(dAtA[i:], *m.Variable) - } - if m.Literal != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(m.Literal.Size())) - n2, err := m.Literal.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - } - if m.FunctionCall != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(m.FunctionCall.Size())) - n3, err := m.FunctionCall.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - } - if m.Operator != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(m.Operator.Size())) - n4, err := m.Operator.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - } - if m.Position != nil { - dAtA[i] = 0x38 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(*m.Position)) - } - if m.Object != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(m.Object.Size())) - n5, err := m.Object.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - } - if m.Array != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(m.Array.Size())) - n6, err := m.Array.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Identifier) 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 *Identifier) 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 = encodeVarintMysqlxExpr(dAtA, i, uint64(len(*m.Name))) - i += copy(dAtA[i:], *m.Name) - } - if m.SchemaName != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(len(*m.SchemaName))) - i += copy(dAtA[i:], *m.SchemaName) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *DocumentPathItem) 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 *DocumentPathItem) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(*m.Type)) - } - if m.Value != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(len(*m.Value))) - i += copy(dAtA[i:], *m.Value) - } - if m.Index != nil { - dAtA[i] = 0x18 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(*m.Index)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *ColumnIdentifier) 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 *ColumnIdentifier) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.DocumentPath) > 0 { - for _, msg := range m.DocumentPath { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Name != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(len(*m.Name))) - i += copy(dAtA[i:], *m.Name) - } - if m.TableName != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(len(*m.TableName))) - i += copy(dAtA[i:], *m.TableName) - } - if m.SchemaName != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(len(*m.SchemaName))) - i += copy(dAtA[i:], *m.SchemaName) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *FunctionCall) 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 *FunctionCall) 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 = encodeVarintMysqlxExpr(dAtA, i, uint64(m.Name.Size())) - n7, err := m.Name.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - } - if len(m.Param) > 0 { - for _, msg := range m.Param { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxExpr(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 *Operator) 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 *Operator) 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 = encodeVarintMysqlxExpr(dAtA, i, uint64(len(*m.Name))) - i += copy(dAtA[i:], *m.Name) - } - if len(m.Param) > 0 { - for _, msg := range m.Param { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxExpr(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 *Object) 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 *Object) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Fld) > 0 { - for _, msg := range m.Fld { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxExpr(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 *Object_ObjectField) 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 *Object_ObjectField) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Key == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(len(*m.Key))) - i += copy(dAtA[i:], *m.Key) - } - if m.Value == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxExpr(dAtA, i, uint64(m.Value.Size())) - n8, err := m.Value.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Array) 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 *Array) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Value) > 0 { - for _, msg := range m.Value { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxExpr(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 encodeVarintMysqlxExpr(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 *Expr) Size() (n int) { - var l int - _ = l - if m.Type != nil { - n += 1 + sovMysqlxExpr(uint64(*m.Type)) - } - if m.Identifier != nil { - l = m.Identifier.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.Variable != nil { - l = len(*m.Variable) - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.Literal != nil { - l = m.Literal.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.FunctionCall != nil { - l = m.FunctionCall.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.Operator != nil { - l = m.Operator.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.Position != nil { - n += 1 + sovMysqlxExpr(uint64(*m.Position)) - } - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.Array != nil { - l = m.Array.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Identifier) Size() (n int) { - var l int - _ = l - if m.Name != nil { - l = len(*m.Name) - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.SchemaName != nil { - l = len(*m.SchemaName) - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DocumentPathItem) Size() (n int) { - var l int - _ = l - if m.Type != nil { - n += 1 + sovMysqlxExpr(uint64(*m.Type)) - } - if m.Value != nil { - l = len(*m.Value) - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.Index != nil { - n += 1 + sovMysqlxExpr(uint64(*m.Index)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ColumnIdentifier) Size() (n int) { - var l int - _ = l - if len(m.DocumentPath) > 0 { - for _, e := range m.DocumentPath { - l = e.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - } - if m.Name != nil { - l = len(*m.Name) - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.TableName != nil { - l = len(*m.TableName) - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.SchemaName != nil { - l = len(*m.SchemaName) - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *FunctionCall) Size() (n int) { - var l int - _ = l - if m.Name != nil { - l = m.Name.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if len(m.Param) > 0 { - for _, e := range m.Param { - l = e.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Operator) Size() (n int) { - var l int - _ = l - if m.Name != nil { - l = len(*m.Name) - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if len(m.Param) > 0 { - for _, e := range m.Param { - l = e.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Object) Size() (n int) { - var l int - _ = l - if len(m.Fld) > 0 { - for _, e := range m.Fld { - l = e.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Object_ObjectField) Size() (n int) { - var l int - _ = l - if m.Key != nil { - l = len(*m.Key) - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Array) Size() (n int) { - var l int - _ = l - if len(m.Value) > 0 { - for _, e := range m.Value { - l = e.Size() - n += 1 + l + sovMysqlxExpr(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovMysqlxExpr(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozMysqlxExpr(x uint64) (n int) { - return sovMysqlxExpr(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Expr) 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 ErrIntOverflowMysqlxExpr - } - 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: Expr: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Expr: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var v Expr_Type - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (Expr_Type(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Type = &v - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Identifier == nil { - m.Identifier = &ColumnIdentifier{} - } - if err := m.Identifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Variable", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - 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 ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Variable = &s - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Literal", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Literal == nil { - m.Literal = &Mysqlx_Datatypes.Scalar{} - } - if err := m.Literal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FunctionCall", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FunctionCall == nil { - m.FunctionCall = &FunctionCall{} - } - if err := m.FunctionCall.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Operator == nil { - m.Operator = &Operator{} - } - if err := m.Operator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Position = &v - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &Object{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Array", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Array == nil { - m.Array = &Array{} - } - if err := m.Array.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxExpr(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxExpr - } - 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 *Identifier) 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 ErrIntOverflowMysqlxExpr - } - 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: Identifier: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Identifier: 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 ErrIntOverflowMysqlxExpr - } - 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 ErrInvalidLengthMysqlxExpr - } - 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 SchemaName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - 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 ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.SchemaName = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxExpr(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxExpr - } - 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 *DocumentPathItem) 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 ErrIntOverflowMysqlxExpr - } - 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: DocumentPathItem: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DocumentPathItem: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var v DocumentPathItem_Type - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (DocumentPathItem_Type(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Type = &v - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - 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 ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Value = &s - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Index = &v - default: - iNdEx = preIndex - skippy, err := skipMysqlxExpr(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxExpr - } - 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 *ColumnIdentifier) 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 ErrIntOverflowMysqlxExpr - } - 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: ColumnIdentifier: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ColumnIdentifier: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DocumentPath", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DocumentPath = append(m.DocumentPath, &DocumentPathItem{}) - if err := m.DocumentPath[len(m.DocumentPath)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - 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 ErrIntOverflowMysqlxExpr - } - 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 ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Name = &s - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - 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 ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.TableName = &s - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SchemaName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - 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 ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.SchemaName = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxExpr(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxExpr - } - 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 *FunctionCall) 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 ErrIntOverflowMysqlxExpr - } - 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: FunctionCall: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FunctionCall: 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 msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Name == nil { - m.Name = &Identifier{} - } - if err := m.Name.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Param = append(m.Param, &Expr{}) - if err := m.Param[len(m.Param)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxExpr(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxExpr - } - 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 *Operator) 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 ErrIntOverflowMysqlxExpr - } - 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: Operator: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Operator: 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 ErrIntOverflowMysqlxExpr - } - 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 ErrInvalidLengthMysqlxExpr - } - 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 Param", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Param = append(m.Param, &Expr{}) - if err := m.Param[len(m.Param)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxExpr(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxExpr - } - 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 *Object) 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 ErrIntOverflowMysqlxExpr - } - 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: Object: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Object: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fld", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Fld = append(m.Fld, &Object_ObjectField{}) - if err := m.Fld[len(m.Fld)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxExpr(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxExpr - } - 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 *Object_ObjectField) 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 ErrIntOverflowMysqlxExpr - } - 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: ObjectField: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectField: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxExpr - } - 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 ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Key = &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 ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &Expr{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000002) - default: - iNdEx = preIndex - skippy, err := skipMysqlxExpr(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxExpr - } - 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 *Array) 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 ErrIntOverflowMysqlxExpr - } - 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: Array: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Array: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowMysqlxExpr - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxExpr - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value, &Expr{}) - if err := m.Value[len(m.Value)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxExpr(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxExpr - } - 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 skipMysqlxExpr(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, ErrIntOverflowMysqlxExpr - } - 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, ErrIntOverflowMysqlxExpr - } - 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, ErrIntOverflowMysqlxExpr - } - 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, ErrInvalidLengthMysqlxExpr - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMysqlxExpr - } - 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 := skipMysqlxExpr(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 ( - ErrInvalidLengthMysqlxExpr = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMysqlxExpr = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/Expr/mysqlx_expr.proto", fileDescriptorMysqlxExpr) -} - -var fileDescriptorMysqlxExpr = []byte{ - // 752 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x72, 0xda, 0x46, - 0x14, 0xae, 0x40, 0xe2, 0xe7, 0x00, 0xb5, 0xba, 0x76, 0x5b, 0xd5, 0x53, 0x63, 0x46, 0x37, 0x66, - 0xea, 0x19, 0x5c, 0x73, 0xd1, 0xbb, 0x76, 0x46, 0x80, 0x5c, 0xd3, 0xca, 0xe0, 0x59, 0xe3, 0x4c, - 0x72, 0xc5, 0xac, 0xa5, 0x25, 0x96, 0x23, 0x21, 0x59, 0x08, 0x0f, 0x3c, 0x40, 0xde, 0x21, 0x93, - 0x47, 0xc8, 0x93, 0xe4, 0x32, 0x6f, 0x90, 0x8c, 0xf3, 0x22, 0x99, 0xdd, 0x15, 0x20, 0xf9, 0x67, - 0x26, 0x37, 0xb0, 0x7b, 0xbe, 0xef, 0x3b, 0x3a, 0xbf, 0x0b, 0x7b, 0x67, 0xcb, 0xd9, 0xad, 0xb7, - 0x38, 0x32, 0x17, 0x61, 0x74, 0xe4, 0xf3, 0xf3, 0x98, 0x2e, 0xc2, 0xa8, 0x15, 0x46, 0x41, 0x1c, - 0xa0, 0x8a, 0x80, 0x5b, 0x0c, 0xde, 0x3d, 0x48, 0xb8, 0x3d, 0x12, 0x93, 0x78, 0x19, 0xd2, 0xd9, - 0x4a, 0xe0, 0xac, 0x0c, 0x42, 0xa5, 0xbf, 0x97, 0x41, 0x66, 0x0a, 0xf4, 0x07, 0xc8, 0xcc, 0xae, - 0x49, 0x8d, 0x5c, 0xf3, 0xc7, 0xf6, 0x2f, 0xad, 0x94, 0x37, 0xf1, 0x33, 0x5a, 0x86, 0x14, 0x73, - 0x0e, 0xfa, 0x1b, 0xc0, 0x75, 0xe8, 0x34, 0x76, 0x27, 0x2e, 0x8d, 0xb4, 0x5c, 0x43, 0x6a, 0x56, - 0xda, 0x7b, 0x19, 0x45, 0x37, 0xf0, 0xe6, 0xfe, 0xb4, 0xbf, 0x26, 0xe1, 0x94, 0x00, 0xed, 0x42, - 0xe9, 0x8e, 0x44, 0x2e, 0xb9, 0xf2, 0xa8, 0x96, 0x6f, 0x48, 0xcd, 0x32, 0x5e, 0xdf, 0x51, 0x1b, - 0x8a, 0x9e, 0x1b, 0xd3, 0x88, 0x78, 0x9a, 0xcc, 0xfd, 0x6a, 0x2b, 0xbf, 0xeb, 0x54, 0x5a, 0x17, - 0x36, 0xf1, 0x48, 0x84, 0x57, 0x44, 0xf4, 0x0f, 0xd4, 0x26, 0xf3, 0xa9, 0x1d, 0xbb, 0xc1, 0x74, - 0x6c, 0x13, 0xcf, 0xd3, 0x14, 0xae, 0xfc, 0x2d, 0x13, 0xd1, 0x49, 0xc2, 0xe8, 0x12, 0xcf, 0xc3, - 0xd5, 0x49, 0xea, 0x86, 0x8e, 0xa1, 0x14, 0x84, 0x34, 0x22, 0x71, 0x10, 0x69, 0x05, 0x2e, 0xfd, - 0x39, 0x23, 0x1d, 0x26, 0x20, 0x5e, 0xd3, 0x58, 0x0a, 0x61, 0x30, 0x73, 0x99, 0x0b, 0xad, 0xd8, - 0x90, 0x9a, 0x35, 0xbc, 0xbe, 0xa3, 0x43, 0x28, 0x04, 0x57, 0x37, 0xd4, 0x8e, 0xb5, 0x12, 0x77, - 0xb6, 0x9d, 0x75, 0xc6, 0x21, 0x9c, 0x50, 0x50, 0x13, 0x14, 0x12, 0x45, 0x64, 0xa9, 0x95, 0x39, - 0x17, 0x65, 0xb8, 0x06, 0x43, 0xb0, 0x20, 0xe8, 0xb7, 0x20, 0xb3, 0x16, 0xa0, 0x32, 0x28, 0xfd, - 0x9e, 0x39, 0x18, 0xa9, 0x12, 0xaa, 0x40, 0xd1, 0xea, 0x8f, 0x4c, 0x6c, 0x58, 0x6a, 0x0e, 0x55, - 0xa1, 0xf4, 0xc2, 0xc0, 0x7d, 0xa3, 0x63, 0x99, 0x6a, 0x1e, 0xd5, 0xa0, 0x7c, 0x72, 0x39, 0xe8, - 0x8e, 0xbb, 0x86, 0x65, 0xa9, 0x32, 0x03, 0x87, 0xe7, 0x26, 0x36, 0x46, 0x43, 0xac, 0x2a, 0x68, - 0x0b, 0x2a, 0xe7, 0x96, 0xd1, 0x35, 0x4f, 0x87, 0x56, 0xcf, 0xc4, 0x6a, 0x01, 0x01, 0x14, 0x86, - 0x9d, 0xff, 0xcc, 0xee, 0x48, 0x2d, 0x32, 0xff, 0x06, 0xc6, 0xc6, 0x2b, 0xb5, 0xa4, 0x1b, 0x00, - 0x9b, 0x16, 0x22, 0x04, 0xf2, 0x94, 0xf8, 0x62, 0x42, 0xca, 0x98, 0x9f, 0xd1, 0x3e, 0x54, 0x66, - 0xf6, 0x35, 0xf5, 0xc9, 0x98, 0x43, 0x39, 0xde, 0x4d, 0x10, 0xa6, 0x01, 0xf1, 0xa9, 0xfe, 0x59, - 0x02, 0xb5, 0x17, 0xd8, 0x73, 0x9f, 0x4e, 0xe3, 0x73, 0x12, 0x5f, 0xf7, 0x63, 0xea, 0xa3, 0xbf, - 0x32, 0xb3, 0xa6, 0x67, 0x72, 0x7e, 0x48, 0x4e, 0xcf, 0xdd, 0x0e, 0x28, 0x77, 0xc4, 0x9b, 0xaf, - 0xbe, 0x23, 0x2e, 0xcc, 0xea, 0x4e, 0x1d, 0xba, 0xe0, 0xb3, 0x54, 0xc3, 0xe2, 0xa2, 0xbf, 0x4e, - 0xca, 0x05, 0x50, 0x38, 0x33, 0xcf, 0x3a, 0x26, 0x56, 0x25, 0xb4, 0x0d, 0x5b, 0xe2, 0x3c, 0x36, - 0x2e, 0x46, 0x26, 0xee, 0x5f, 0xfc, 0xaf, 0xe6, 0x58, 0x31, 0x78, 0xbe, 0xe3, 0xfe, 0xa0, 0x67, - 0xbe, 0x54, 0xf3, 0x48, 0x83, 0x9d, 0x94, 0x61, 0x43, 0x95, 0x99, 0xbe, 0x37, 0xbc, 0xec, 0x58, - 0xe6, 0xc6, 0xa8, 0xe8, 0x1f, 0x24, 0x50, 0x1f, 0x8e, 0x3b, 0xea, 0x40, 0xcd, 0x49, 0x12, 0x19, - 0x87, 0x24, 0xbe, 0xd6, 0xa4, 0x46, 0xfe, 0xd1, 0x92, 0x3c, 0x4c, 0x15, 0x57, 0x9d, 0x94, 0x65, - 0x5d, 0x6f, 0x91, 0xac, 0xa8, 0xf7, 0x1e, 0x40, 0xcc, 0xf6, 0x44, 0x94, 0x5b, 0x2c, 0x4f, 0x99, - 0x5b, 0x06, 0x4f, 0xb4, 0x43, 0x7e, 0xd4, 0x0e, 0x07, 0xaa, 0xe9, 0x45, 0x40, 0x87, 0xa9, 0x9e, - 0x56, 0xda, 0xbf, 0x66, 0xc2, 0x4b, 0x6d, 0xaf, 0xf8, 0xf8, 0x01, 0x28, 0x21, 0x89, 0x88, 0xaf, - 0xe5, 0x78, 0x32, 0x3f, 0x3d, 0x7a, 0x23, 0xb0, 0xc0, 0xf5, 0x7f, 0xa1, 0xb4, 0xda, 0x99, 0x27, - 0xa7, 0xe6, 0xbb, 0x1d, 0xbd, 0x95, 0xa0, 0x20, 0x16, 0x06, 0x1d, 0x43, 0x7e, 0xe2, 0x39, 0x49, - 0x1d, 0xf7, 0x9f, 0x58, 0xa9, 0xe4, 0xef, 0xc4, 0xa5, 0x9e, 0x83, 0x19, 0x77, 0xf7, 0x14, 0x2a, - 0x29, 0x1b, 0x52, 0x21, 0xff, 0x86, 0x2e, 0x93, 0x40, 0xd8, 0x91, 0xc5, 0xb1, 0x9a, 0xa7, 0xdc, - 0x33, 0x71, 0x70, 0x5c, 0xff, 0x13, 0x14, 0xbe, 0x8b, 0x1b, 0x85, 0xf4, 0x6c, 0xe4, 0x1c, 0xef, - 0xb4, 0x3e, 0xde, 0xd7, 0xa5, 0x4f, 0xf7, 0x75, 0xe9, 0xcb, 0x7d, 0x5d, 0x7a, 0xf7, 0xb5, 0xfe, - 0x03, 0xfc, 0x6e, 0x07, 0x7e, 0x8b, 0xbf, 0xc2, 0x2d, 0xfb, 0x46, 0x1c, 0x16, 0xe2, 0x11, 0xbe, - 0x9a, 0x4f, 0xbe, 0x05, 0x00, 0x00, 0xff, 0xff, 0x35, 0x4f, 0xc9, 0xba, 0xdd, 0x05, 0x00, 0x00, -} diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/Notice/mysqlx_notice.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/Notice/mysqlx_notice.pb.go deleted file mode 100644 index d1d33ffc11..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/Notice/mysqlx_notice.pb.go +++ /dev/null @@ -1,1263 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: github.com/pingcap/tipb/go-mysqlx/Notice/mysqlx_notice.proto - -/* - Package Mysqlx_Notice is a generated protocol buffer package. - - Notices - - A notice - - * is sent from the server to the client - * may be global or relate to the current message sequence - - It is generated from these files: - github.com/pingcap/tipb/go-mysqlx/Notice/mysqlx_notice.proto - - It has these top-level messages: - Frame - Warning - SessionVariableChanged - SessionStateChanged -*/ -package Mysqlx_Notice - -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 - -type Frame_Scope int32 - -const ( - Frame_GLOBAL Frame_Scope = 1 - Frame_LOCAL Frame_Scope = 2 -) - -var Frame_Scope_name = map[int32]string{ - 1: "GLOBAL", - 2: "LOCAL", -} -var Frame_Scope_value = map[string]int32{ - "GLOBAL": 1, - "LOCAL": 2, -} - -func (x Frame_Scope) Enum() *Frame_Scope { - p := new(Frame_Scope) - *p = x - return p -} -func (x Frame_Scope) String() string { - return proto.EnumName(Frame_Scope_name, int32(x)) -} -func (x *Frame_Scope) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Frame_Scope_value, data, "Frame_Scope") - if err != nil { - return err - } - *x = Frame_Scope(value) - return nil -} -func (Frame_Scope) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxNotice, []int{0, 0} } - -type Warning_Level int32 - -const ( - Warning_NOTE Warning_Level = 1 - Warning_WARNING Warning_Level = 2 - Warning_ERROR Warning_Level = 3 -) - -var Warning_Level_name = map[int32]string{ - 1: "NOTE", - 2: "WARNING", - 3: "ERROR", -} -var Warning_Level_value = map[string]int32{ - "NOTE": 1, - "WARNING": 2, - "ERROR": 3, -} - -func (x Warning_Level) Enum() *Warning_Level { - p := new(Warning_Level) - *p = x - return p -} -func (x Warning_Level) String() string { - return proto.EnumName(Warning_Level_name, int32(x)) -} -func (x *Warning_Level) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Warning_Level_value, data, "Warning_Level") - if err != nil { - return err - } - *x = Warning_Level(value) - return nil -} -func (Warning_Level) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlxNotice, []int{1, 0} } - -type SessionStateChanged_Parameter int32 - -const ( - SessionStateChanged_CURRENT_SCHEMA SessionStateChanged_Parameter = 1 - SessionStateChanged_ACCOUNT_EXPIRED SessionStateChanged_Parameter = 2 - SessionStateChanged_GENERATED_INSERT_ID SessionStateChanged_Parameter = 3 - SessionStateChanged_ROWS_AFFECTED SessionStateChanged_Parameter = 4 - SessionStateChanged_ROWS_FOUND SessionStateChanged_Parameter = 5 - SessionStateChanged_ROWS_MATCHED SessionStateChanged_Parameter = 6 - SessionStateChanged_TRX_COMMITTED SessionStateChanged_Parameter = 7 - SessionStateChanged_TRX_ROLLEDBACK SessionStateChanged_Parameter = 9 - SessionStateChanged_PRODUCED_MESSAGE SessionStateChanged_Parameter = 10 - SessionStateChanged_CLIENT_ID_ASSIGNED SessionStateChanged_Parameter = 11 -) - -var SessionStateChanged_Parameter_name = map[int32]string{ - 1: "CURRENT_SCHEMA", - 2: "ACCOUNT_EXPIRED", - 3: "GENERATED_INSERT_ID", - 4: "ROWS_AFFECTED", - 5: "ROWS_FOUND", - 6: "ROWS_MATCHED", - 7: "TRX_COMMITTED", - 9: "TRX_ROLLEDBACK", - 10: "PRODUCED_MESSAGE", - 11: "CLIENT_ID_ASSIGNED", -} -var SessionStateChanged_Parameter_value = map[string]int32{ - "CURRENT_SCHEMA": 1, - "ACCOUNT_EXPIRED": 2, - "GENERATED_INSERT_ID": 3, - "ROWS_AFFECTED": 4, - "ROWS_FOUND": 5, - "ROWS_MATCHED": 6, - "TRX_COMMITTED": 7, - "TRX_ROLLEDBACK": 9, - "PRODUCED_MESSAGE": 10, - "CLIENT_ID_ASSIGNED": 11, -} - -func (x SessionStateChanged_Parameter) Enum() *SessionStateChanged_Parameter { - p := new(SessionStateChanged_Parameter) - *p = x - return p -} -func (x SessionStateChanged_Parameter) String() string { - return proto.EnumName(SessionStateChanged_Parameter_name, int32(x)) -} -func (x *SessionStateChanged_Parameter) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(SessionStateChanged_Parameter_value, data, "SessionStateChanged_Parameter") - if err != nil { - return err - } - *x = SessionStateChanged_Parameter(value) - return nil -} -func (SessionStateChanged_Parameter) EnumDescriptor() ([]byte, []int) { - return fileDescriptorMysqlxNotice, []int{3, 0} -} - -// Common Frame for all Notices -// -// ===================================================== ===== -// .type value -// ===================================================== ===== -// :protobuf:msg:`Mysqlx.Notice::Warning` 1 -// :protobuf:msg:`Mysqlx.Notice::SessionVariableChanged` 2 -// :protobuf:msg:`Mysqlx.Notice::SessionStateChanged` 3 -// ===================================================== ===== -// -// :param type: the type of the payload -// :param payload: the payload of the notification -// :param scope: global or local notification -// -type Frame struct { - Type *uint32 `protobuf:"varint,1,req,name=type" json:"type,omitempty"` - Scope *Frame_Scope `protobuf:"varint,2,opt,name=scope,enum=Mysqlx.Notice.Frame_Scope,def=1" json:"scope,omitempty"` - Payload []byte `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Frame) Reset() { *m = Frame{} } -func (m *Frame) String() string { return proto.CompactTextString(m) } -func (*Frame) ProtoMessage() {} -func (*Frame) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxNotice, []int{0} } - -const Default_Frame_Scope Frame_Scope = Frame_GLOBAL - -func (m *Frame) GetType() uint32 { - if m != nil && m.Type != nil { - return *m.Type - } - return 0 -} - -func (m *Frame) GetScope() Frame_Scope { - if m != nil && m.Scope != nil { - return *m.Scope - } - return Default_Frame_Scope -} - -func (m *Frame) GetPayload() []byte { - if m != nil { - return m.Payload - } - return nil -} - -// Server-side warnings and notes -// -// ``.scope`` == ``local`` -// ``.level``, ``.code`` and ``.msg`` map the content of -// -// .. code-block:: sql -// -// SHOW WARNINGS -// -// ``.scope`` == ``global`` -// (undefined) will be used for global, unstructured messages like: -// -// * server is shutting down -// * a node disconnected from group -// * schema or table dropped -// -// ========================================== ======================= -// :protobuf:msg:`Mysqlx.Notice::Frame` field value -// ========================================== ======================= -// ``.type`` 1 -// ``.scope`` ``local`` or ``global`` -// ========================================== ======================= -// -// :param level: warning level: Note or Warning -// :param code: warning code -// :param msg: warning message -type Warning struct { - Level *Warning_Level `protobuf:"varint,1,opt,name=level,enum=Mysqlx.Notice.Warning_Level,def=2" json:"level,omitempty"` - Code *uint32 `protobuf:"varint,2,req,name=code" json:"code,omitempty"` - Msg *string `protobuf:"bytes,3,req,name=msg" json:"msg,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Warning) Reset() { *m = Warning{} } -func (m *Warning) String() string { return proto.CompactTextString(m) } -func (*Warning) ProtoMessage() {} -func (*Warning) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxNotice, []int{1} } - -const Default_Warning_Level Warning_Level = Warning_WARNING - -func (m *Warning) GetLevel() Warning_Level { - if m != nil && m.Level != nil { - return *m.Level - } - return Default_Warning_Level -} - -func (m *Warning) GetCode() uint32 { - if m != nil && m.Code != nil { - return *m.Code - } - return 0 -} - -func (m *Warning) GetMsg() string { - if m != nil && m.Msg != nil { - return *m.Msg - } - return "" -} - -// Notify clients about changes to the current session variables -// -// Every change to a variable that is accessable through: -// -// .. code-block:: sql -// -// SHOW SESSION VARIABLES -// -// ========================================== ========= -// :protobuf:msg:`Mysqlx.Notice::Frame` field value -// ========================================== ========= -// ``.type`` 2 -// ``.scope`` ``local`` -// ========================================== ========= -// -// :param namespace: namespace that param belongs to -// :param param: name of the variable -// :param value: the changed value of param -type SessionVariableChanged struct { - Param *string `protobuf:"bytes,1,req,name=param" json:"param,omitempty"` - Value *Mysqlx_Datatypes.Scalar `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *SessionVariableChanged) Reset() { *m = SessionVariableChanged{} } -func (m *SessionVariableChanged) String() string { return proto.CompactTextString(m) } -func (*SessionVariableChanged) ProtoMessage() {} -func (*SessionVariableChanged) Descriptor() ([]byte, []int) { - return fileDescriptorMysqlxNotice, []int{2} -} - -func (m *SessionVariableChanged) GetParam() string { - if m != nil && m.Param != nil { - return *m.Param - } - return "" -} - -func (m *SessionVariableChanged) GetValue() *Mysqlx_Datatypes.Scalar { - if m != nil { - return m.Value - } - return nil -} - -// Notify clients about changes to the internal session state -// -// ========================================== ========= -// :protobuf:msg:`Mysqlx.Notice::Frame` field value -// ========================================== ========= -// ``.type`` 3 -// ``.scope`` ``local`` -// ========================================== ========= -// -// :param param: parameter key -// :param value: updated value -type SessionStateChanged struct { - Param *SessionStateChanged_Parameter `protobuf:"varint,1,req,name=param,enum=Mysqlx.Notice.SessionStateChanged_Parameter" json:"param,omitempty"` - Value *Mysqlx_Datatypes.Scalar `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *SessionStateChanged) Reset() { *m = SessionStateChanged{} } -func (m *SessionStateChanged) String() string { return proto.CompactTextString(m) } -func (*SessionStateChanged) ProtoMessage() {} -func (*SessionStateChanged) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxNotice, []int{3} } - -func (m *SessionStateChanged) GetParam() SessionStateChanged_Parameter { - if m != nil && m.Param != nil { - return *m.Param - } - return SessionStateChanged_CURRENT_SCHEMA -} - -func (m *SessionStateChanged) GetValue() *Mysqlx_Datatypes.Scalar { - if m != nil { - return m.Value - } - return nil -} - -func init() { - proto.RegisterType((*Frame)(nil), "Mysqlx.Notice.Frame") - proto.RegisterType((*Warning)(nil), "Mysqlx.Notice.Warning") - proto.RegisterType((*SessionVariableChanged)(nil), "Mysqlx.Notice.SessionVariableChanged") - proto.RegisterType((*SessionStateChanged)(nil), "Mysqlx.Notice.SessionStateChanged") - proto.RegisterEnum("Mysqlx.Notice.Frame_Scope", Frame_Scope_name, Frame_Scope_value) - proto.RegisterEnum("Mysqlx.Notice.Warning_Level", Warning_Level_name, Warning_Level_value) - proto.RegisterEnum("Mysqlx.Notice.SessionStateChanged_Parameter", SessionStateChanged_Parameter_name, SessionStateChanged_Parameter_value) -} -func (m *Frame) 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 *Frame) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlxNotice(dAtA, i, uint64(*m.Type)) - } - if m.Scope != nil { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxNotice(dAtA, i, uint64(*m.Scope)) - } - if m.Payload != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxNotice(dAtA, i, uint64(len(m.Payload))) - i += copy(dAtA[i:], m.Payload) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Warning) 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 *Warning) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Level != nil { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlxNotice(dAtA, i, uint64(*m.Level)) - } - if m.Code == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlxNotice(dAtA, i, uint64(*m.Code)) - } - if m.Msg == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxNotice(dAtA, i, uint64(len(*m.Msg))) - i += copy(dAtA[i:], *m.Msg) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *SessionVariableChanged) 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 *SessionVariableChanged) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Param == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxNotice(dAtA, i, uint64(len(*m.Param))) - i += copy(dAtA[i:], *m.Param) - } - if m.Value != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxNotice(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 *SessionStateChanged) 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 *SessionStateChanged) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Param == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlxNotice(dAtA, i, uint64(*m.Param)) - } - if m.Value != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxNotice(dAtA, i, uint64(m.Value.Size())) - n2, err := m.Value.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 encodeVarintMysqlxNotice(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 *Frame) Size() (n int) { - var l int - _ = l - if m.Type != nil { - n += 1 + sovMysqlxNotice(uint64(*m.Type)) - } - if m.Scope != nil { - n += 1 + sovMysqlxNotice(uint64(*m.Scope)) - } - if m.Payload != nil { - l = len(m.Payload) - n += 1 + l + sovMysqlxNotice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Warning) Size() (n int) { - var l int - _ = l - if m.Level != nil { - n += 1 + sovMysqlxNotice(uint64(*m.Level)) - } - if m.Code != nil { - n += 1 + sovMysqlxNotice(uint64(*m.Code)) - } - if m.Msg != nil { - l = len(*m.Msg) - n += 1 + l + sovMysqlxNotice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SessionVariableChanged) Size() (n int) { - var l int - _ = l - if m.Param != nil { - l = len(*m.Param) - n += 1 + l + sovMysqlxNotice(uint64(l)) - } - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovMysqlxNotice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SessionStateChanged) Size() (n int) { - var l int - _ = l - if m.Param != nil { - n += 1 + sovMysqlxNotice(uint64(*m.Param)) - } - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovMysqlxNotice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovMysqlxNotice(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozMysqlxNotice(x uint64) (n int) { - return sovMysqlxNotice(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Frame) 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 ErrIntOverflowMysqlxNotice - } - 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: Frame: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Frame: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxNotice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Type = &v - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) - } - var v Frame_Scope - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxNotice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (Frame_Scope(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Scope = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxNotice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxNotice - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxNotice(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxNotice - } - 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 *Warning) 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 ErrIntOverflowMysqlxNotice - } - 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: Warning: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Warning: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) - } - var v Warning_Level - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxNotice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (Warning_Level(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Level = &v - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxNotice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Code = &v - hasFields[0] |= uint64(0x00000001) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxNotice - } - 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 ErrInvalidLengthMysqlxNotice - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Msg = &s - iNdEx = postIndex - hasFields[0] |= uint64(0x00000002) - default: - iNdEx = preIndex - skippy, err := skipMysqlxNotice(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxNotice - } - 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 *SessionVariableChanged) 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 ErrIntOverflowMysqlxNotice - } - 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: SessionVariableChanged: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SessionVariableChanged: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxNotice - } - 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 ErrInvalidLengthMysqlxNotice - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Param = &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 ErrIntOverflowMysqlxNotice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxNotice - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &Mysqlx_Datatypes.Scalar{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxNotice(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxNotice - } - 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 *SessionStateChanged) 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 ErrIntOverflowMysqlxNotice - } - 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: SessionStateChanged: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SessionStateChanged: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType) - } - var v SessionStateChanged_Parameter - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxNotice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (SessionStateChanged_Parameter(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Param = &v - 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 ErrIntOverflowMysqlxNotice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMysqlxNotice - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &Mysqlx_Datatypes.Scalar{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxNotice(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxNotice - } - 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 skipMysqlxNotice(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, ErrIntOverflowMysqlxNotice - } - 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, ErrIntOverflowMysqlxNotice - } - 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, ErrIntOverflowMysqlxNotice - } - 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, ErrInvalidLengthMysqlxNotice - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMysqlxNotice - } - 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 := skipMysqlxNotice(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 ( - ErrInvalidLengthMysqlxNotice = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMysqlxNotice = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/Notice/mysqlx_notice.proto", fileDescriptorMysqlxNotice) -} - -var fileDescriptorMysqlxNotice = []byte{ - // 574 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0xc7, 0x71, 0xba, 0xac, 0xf4, 0x6d, 0x2b, 0xc6, 0x9b, 0x46, 0x34, 0x4d, 0x55, 0xe9, 0x85, - 0x22, 0xa1, 0x4c, 0xda, 0x09, 0x8d, 0x53, 0x6a, 0xbb, 0x5d, 0x44, 0x9a, 0x4c, 0x4e, 0xca, 0x76, - 0x22, 0xf2, 0xda, 0x30, 0x8a, 0xd2, 0xa6, 0x24, 0xd9, 0xb4, 0x7d, 0x0a, 0x8e, 0xf0, 0x91, 0x38, - 0x72, 0xe3, 0x8a, 0xb6, 0x2f, 0x82, 0xec, 0xb4, 0x13, 0x4c, 0x9c, 0xb8, 0xbd, 0xbf, 0xf3, 0xff, - 0xbd, 0xf7, 0xf7, 0x8b, 0x0c, 0xcf, 0x87, 0x37, 0xc5, 0xe7, 0xf4, 0xfa, 0xc0, 0xcf, 0xca, 0xe9, - 0x38, 0x39, 0x98, 0x69, 0x15, 0xcf, 0xb5, 0xb2, 0x17, 0x79, 0x56, 0x66, 0x64, 0xab, 0xb2, 0xd8, - 0x95, 0x65, 0xef, 0xc5, 0x92, 0x60, 0xb2, 0x94, 0xe5, 0xcd, 0x22, 0x29, 0x56, 0xd0, 0x64, 0x75, - 0x50, 0x71, 0x9d, 0x2f, 0x08, 0xcc, 0x7e, 0x2e, 0x67, 0x09, 0x21, 0xb0, 0xa6, 0x3e, 0x58, 0xa8, - 0x6d, 0x74, 0xb7, 0x84, 0xae, 0xc9, 0x6b, 0x30, 0x8b, 0x71, 0xb6, 0x48, 0x2c, 0xa3, 0x8d, 0xba, - 0xcd, 0xc3, 0x3d, 0xfb, 0xaf, 0x29, 0xb6, 0x06, 0xed, 0x50, 0x39, 0x8e, 0xd6, 0x07, 0x5e, 0xd0, - 0x73, 0x3c, 0x51, 0x01, 0xc4, 0x82, 0xfa, 0x42, 0xde, 0xa4, 0x99, 0x9c, 0x58, 0xb5, 0x36, 0xea, - 0x6e, 0x8a, 0x95, 0xec, 0xb4, 0xc0, 0xd4, 0x04, 0x01, 0x58, 0x32, 0x18, 0x91, 0x06, 0x98, 0x5e, - 0x40, 0x1d, 0x0f, 0x1b, 0x9d, 0xaf, 0x08, 0xea, 0xa7, 0x32, 0x9f, 0x4f, 0xe7, 0x17, 0xe4, 0x0d, - 0x98, 0x69, 0x72, 0x95, 0xa4, 0x16, 0xd2, 0xf3, 0xf7, 0x1f, 0xcc, 0x5f, 0xda, 0x6c, 0x4f, 0x79, - 0x8e, 0xea, 0xa7, 0x8e, 0xf0, 0x5d, 0x7f, 0x20, 0x2a, 0x46, 0x5d, 0x68, 0x9c, 0x4d, 0x54, 0x76, - 0x7d, 0x21, 0x55, 0x13, 0x0c, 0xb5, 0x59, 0x71, 0x61, 0xd5, 0xda, 0x46, 0xb7, 0x21, 0x54, 0xd9, - 0x79, 0x09, 0xa6, 0xc6, 0xc9, 0x63, 0x58, 0xf3, 0x83, 0x88, 0x63, 0x44, 0x36, 0x60, 0xd5, 0x0a, - 0x1b, 0x2a, 0x19, 0x17, 0x22, 0x10, 0xb8, 0xd6, 0x79, 0x0f, 0xbb, 0x61, 0x52, 0x14, 0xd3, 0x6c, - 0xfe, 0x4e, 0xe6, 0x53, 0x79, 0x9e, 0x26, 0xf4, 0xa3, 0x9c, 0x5f, 0x24, 0x13, 0xb2, 0x03, 0xe6, - 0x42, 0xe6, 0x72, 0xa6, 0x97, 0xd7, 0x10, 0x95, 0x20, 0x36, 0x98, 0x57, 0x32, 0xbd, 0xac, 0xb6, - 0xb7, 0x71, 0x68, 0xad, 0xd2, 0xdf, 0xff, 0x14, 0x3b, 0x1c, 0xcb, 0x54, 0xe6, 0xa2, 0xb2, 0x75, - 0xee, 0x0c, 0xd8, 0x5e, 0x0e, 0x08, 0x4b, 0x59, 0xde, 0x77, 0xef, 0xfd, 0xd9, 0xbd, 0x79, 0xf8, - 0xea, 0xc1, 0x16, 0xfe, 0x81, 0xd8, 0x27, 0xca, 0x9f, 0x94, 0x49, 0xfe, 0xbf, 0x59, 0x7e, 0x22, - 0x68, 0xdc, 0x37, 0x21, 0x04, 0x9a, 0x74, 0x24, 0x04, 0xf7, 0xa3, 0x38, 0xa4, 0xc7, 0x7c, 0xe8, - 0x60, 0x44, 0xb6, 0xe1, 0x89, 0x43, 0x69, 0x30, 0xf2, 0xa3, 0x98, 0x9f, 0x9d, 0xb8, 0x82, 0x33, - 0x6c, 0x90, 0x67, 0xb0, 0x3d, 0xe0, 0x3e, 0x17, 0x4e, 0xc4, 0x59, 0xec, 0xfa, 0x21, 0x17, 0x51, - 0xec, 0x32, 0x5c, 0x23, 0x4f, 0x61, 0x4b, 0x04, 0xa7, 0x61, 0xec, 0xf4, 0xfb, 0x9c, 0x46, 0x9c, - 0xe1, 0x35, 0xd2, 0x04, 0xd0, 0x47, 0xfd, 0x60, 0xe4, 0x33, 0x6c, 0x12, 0x0c, 0x9b, 0x5a, 0x0f, - 0x9d, 0x88, 0x1e, 0x73, 0x86, 0xd7, 0x15, 0x14, 0x89, 0xb3, 0x98, 0x06, 0xc3, 0xa1, 0x1b, 0x29, - 0xa8, 0xae, 0x92, 0xa8, 0x23, 0x11, 0x78, 0x1e, 0x67, 0x3d, 0x87, 0xbe, 0xc5, 0x0d, 0xb2, 0x03, - 0xf8, 0x44, 0x04, 0x6c, 0x44, 0x39, 0x8b, 0x87, 0x3c, 0x0c, 0x9d, 0x01, 0xc7, 0x40, 0x76, 0x81, - 0x50, 0xcf, 0x55, 0x91, 0x5d, 0x16, 0x3b, 0x61, 0xe8, 0x0e, 0x7c, 0xce, 0xf0, 0x46, 0xcf, 0xfe, - 0x7e, 0xdb, 0x42, 0x3f, 0x6e, 0x5b, 0xe8, 0xd7, 0x6d, 0x0b, 0x7d, 0xbb, 0x6b, 0x3d, 0x82, 0xfd, - 0x71, 0x36, 0xb3, 0xf5, 0xfb, 0xb0, 0xc7, 0x9f, 0xaa, 0xe2, 0xba, 0x7a, 0x1e, 0xe7, 0x97, 0x1f, - 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0xcb, 0x90, 0x2d, 0x0e, 0x7d, 0x03, 0x00, 0x00, -} diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/Resultset/mysqlx_resultset.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/Resultset/mysqlx_resultset.pb.go deleted file mode 100644 index 22c182930b..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/Resultset/mysqlx_resultset.pb.go +++ /dev/null @@ -1,1632 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: github.com/pingcap/tipb/go-mysqlx/Resultset/mysqlx_resultset.proto - -/* - Package Mysqlx_Resultset is a generated protocol buffer package. - - It is generated from these files: - github.com/pingcap/tipb/go-mysqlx/Resultset/mysqlx_resultset.proto - - It has these top-level messages: - FetchDoneMoreOutParams - FetchDoneMoreResultsets - FetchDone - ColumnMetaData - Row -*/ -package Mysqlx_Resultset - -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 ColumnMetaData_FieldType int32 - -const ( - ColumnMetaData_SINT ColumnMetaData_FieldType = 1 - ColumnMetaData_UINT ColumnMetaData_FieldType = 2 - ColumnMetaData_DOUBLE ColumnMetaData_FieldType = 5 - ColumnMetaData_FLOAT ColumnMetaData_FieldType = 6 - ColumnMetaData_BYTES ColumnMetaData_FieldType = 7 - ColumnMetaData_TIME ColumnMetaData_FieldType = 10 - ColumnMetaData_DATETIME ColumnMetaData_FieldType = 12 - ColumnMetaData_SET ColumnMetaData_FieldType = 15 - ColumnMetaData_ENUM ColumnMetaData_FieldType = 16 - ColumnMetaData_BIT ColumnMetaData_FieldType = 17 - ColumnMetaData_DECIMAL ColumnMetaData_FieldType = 18 -) - -var ColumnMetaData_FieldType_name = map[int32]string{ - 1: "SINT", - 2: "UINT", - 5: "DOUBLE", - 6: "FLOAT", - 7: "BYTES", - 10: "TIME", - 12: "DATETIME", - 15: "SET", - 16: "ENUM", - 17: "BIT", - 18: "DECIMAL", -} -var ColumnMetaData_FieldType_value = map[string]int32{ - "SINT": 1, - "UINT": 2, - "DOUBLE": 5, - "FLOAT": 6, - "BYTES": 7, - "TIME": 10, - "DATETIME": 12, - "SET": 15, - "ENUM": 16, - "BIT": 17, - "DECIMAL": 18, -} - -func (x ColumnMetaData_FieldType) Enum() *ColumnMetaData_FieldType { - p := new(ColumnMetaData_FieldType) - *p = x - return p -} -func (x ColumnMetaData_FieldType) String() string { - return proto.EnumName(ColumnMetaData_FieldType_name, int32(x)) -} -func (x *ColumnMetaData_FieldType) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(ColumnMetaData_FieldType_value, data, "ColumnMetaData_FieldType") - if err != nil { - return err - } - *x = ColumnMetaData_FieldType(value) - return nil -} -func (ColumnMetaData_FieldType) EnumDescriptor() ([]byte, []int) { - return fileDescriptorMysqlxResultset, []int{3, 0} -} - -// resultsets are finished, OUT paramset is next -type FetchDoneMoreOutParams struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *FetchDoneMoreOutParams) Reset() { *m = FetchDoneMoreOutParams{} } -func (m *FetchDoneMoreOutParams) String() string { return proto.CompactTextString(m) } -func (*FetchDoneMoreOutParams) ProtoMessage() {} -func (*FetchDoneMoreOutParams) Descriptor() ([]byte, []int) { - return fileDescriptorMysqlxResultset, []int{0} -} - -// resultset and out-params are finished, but more resultsets available -type FetchDoneMoreResultsets struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *FetchDoneMoreResultsets) Reset() { *m = FetchDoneMoreResultsets{} } -func (m *FetchDoneMoreResultsets) String() string { return proto.CompactTextString(m) } -func (*FetchDoneMoreResultsets) ProtoMessage() {} -func (*FetchDoneMoreResultsets) Descriptor() ([]byte, []int) { - return fileDescriptorMysqlxResultset, []int{1} -} - -// all resultsets are finished -type FetchDone struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *FetchDone) Reset() { *m = FetchDone{} } -func (m *FetchDone) String() string { return proto.CompactTextString(m) } -func (*FetchDone) ProtoMessage() {} -func (*FetchDone) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxResultset, []int{2} } - -// meta data of a Column -// -// .. note:: the encoding used for the different ``bytes`` fields in the meta data is externally -// controlled. -// .. seealso:: https://dev.mysql.com/doc/refman/5.0/en/charset-connection.html -// -// .. note:: -// The server may not set the ``original_{table|name}`` fields if they are equal to the plain -// ``{table|name}`` field. -// -// A client has to reconstruct it like:: -// -// if .original_name is empty and .name is not empty: -// .original_name = .name -// -// if .original_table is empty and .table is not empty: -// .original_table = .table -// -// .. note:: -// ``compact metadata format`` can be requested by the client. In that case only ``.type`` is set and -// all other fields are empty. -// -// -// :param type: -// .. table:: Expected Datatype of Mysqlx.Resultset.Row per SQL Type for non NULL values -// -// ================= ============ ======= ========== ====== ======== -// SQL Type .type .length .frac_dig .flags .charset -// ================= ============ ======= ========== ====== ======== -// TINY SINT x -// TINY UNSIGNED UINT x x -// SHORT SINT x -// SHORT UNSIGNED UINT x x -// INT24 SINT x -// INT24 UNSIGNED UINT x x -// INT SINT x -// INT UNSIGNED UINT x x -// LONGLONG SINT x -// LONGLONG UNSIGNED UINT x x -// DOUBLE DOUBLE x x x -// FLOAT FLOAT x x x -// DECIMAL DECIMAL x x x -// VARCHAR,CHAR,... BYTES x x x -// GEOMETRY BYTES -// TIME TIME x -// DATE DATETIME x -// DATETIME DATETIME x -// YEAR UINT x x -// TIMESTAMP DATETIME x -// SET SET x -// ENUM ENUM x -// NULL BYTES -// BIT BIT x -// ================= ============ ======= ========== ====== ======== -// -// .. note:: the SQL "NULL" value is sent as an empty field value in :protobuf:msg:`Mysqlx.Resultset::Row` -// .. seealso:: protobuf encoding of primitive datatypes are decribed in https://developers.google.com/protocol-buffers/docs/encoding -// -// SINT -// -// ``.length`` -// maximum number of displayable decimal digits (including minus sign) of the type -// -// .. note:: -// valid range is 0-255, but usually you'll see 1-20 -// -// =============== == -// SQL Type max digits per type -// =============== == -// TINY SIGNED 4 -// SHORT SIGNED 6 -// INT24 SIGNED 8 -// INT SIGNED 11 -// LONGLONG SIGNED 20 -// =============== == -// -// .. seealso:: definition of ``M`` in https://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html -// -// ``value`` -// variable length encoded signed 64 integer -// -// UINT -// -// ``.flags & 1`` (zerofill) -// the client has to left pad with 0's up to .length -// -// ``.length`` -// maximum number of displayable decimal digits of the type -// -// .. note:: -// valid range is 0-255, but usually you'll see 1-20 -// -// ================= == -// SQL Type max digits per type -// ================= == -// TINY UNSIGNED 3 -// SHORT UNSIGNED 5 -// INT24 UNSIGNED 8 -// INT UNSIGNED 10 -// LONGLONG UNSIGNED 20 -// ================= == -// -// .. seealso:: definition of ``M`` in https://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html -// -// ``value`` -// variable length encoded unsigned 64 integer -// -// BIT -// -// ``.length`` -// maximum number of displayable binary digits -// -// .. note:: valid range for M of the ``BIT`` type is 1 - 64 -// .. seealso:: https://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html -// -// ``value`` -// variable length encoded unsigned 64 integer -// -// DOUBLE -// -// ``.length`` -// maximum number of displayable decimal digits (including the decimal point and ``.fractional_digits``) -// -// ``.fractional_digits`` -// maximum number of displayable decimal digits following the decimal point -// -// ``value`` -// encoded as Protobuf's 'double' -// -// FLOAT -// -// ``.length`` -// maximum number of displayable decimal digits (including the decimal point and ``.fractional_digits``) -// -// ``.fractional_digits`` -// maximum number of displayable decimal digits following the decimal point -// -// ``value`` -// encoded as Protobuf's 'float' -// -// BYTES, ENUM -// BYTES is used for all opaque byte strings that may have a charset -// -// * TINYBLOB, BLOB, MEDIUMBLOB, LONGBLOB -// * TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT -// * VARCHAR, VARBINARY -// * CHAR, BINARY -// * ENUM -// -// ``.length`` -// the maximum length of characters of the underlying type -// -// ``.flags & 1`` (rightpad) -// if the length of the field is less than ``.length``, the receiver is -// supposed to add padding characters to the right end of the string. -// If the ``.charset`` is "binary", the padding character is ``0x00``, -// otherwise it is a space character as defined by that character set. -// -// ============= ======= ======== ======= -// SQL Type .length .charset .flags -// ============= ======= ======== ======= -// TINYBLOB 256 binary -// BLOB 65535 binary -// VARCHAR(32) 32 utf8 -// VARBINARY(32) 32 utf8_bin -// BINARY(32) 32 binary rightpad -// CHAR(32) 32 utf8 rightpad -// ============= ======= ======== ======= -// -// ``value`` -// sequence of bytes with added one extra '\0' byte at the end. To obtain the -// original string, the extra '\0' should be removed. -// .. note:: the length of the string can be acquired with protobuf's field length() method -// length of sequence-of-bytes = length-of-field - 1 -// .. note:: the extra byte allows to distinguish between a NULL and empty byte sequence -// -// TIME -// A time value. -// -// ``value`` -// the following bytes sequence: -// -// ``| negate [ | hour | [ | minutes | [ | seconds | [ | useconds | ]]]]`` -// -// * negate - one byte, should be one of: 0x00 for "+", 0x01 for "-" -// * hour - optional variable length encoded unsigned64 value for the hour -// * minutes - optional variable length encoded unsigned64 value for the minutes -// * seconds - optional variable length encoded unsigned64 value for the seconds -// * useconds - optional variable length encoded unsigned64 value for the microseconds -// -// .. seealso:: protobuf encoding in https://developers.google.com/protocol-buffers/docs/encoding -// .. note:: hour, minutes, seconds, useconds are optional if all the values to the right are 0 -// -// Example: 0x00 -> +00:00:00.000000 -// -// DATETIME -// A date or date and time value. -// -// ``value`` -// a sequence of variants, arranged as follows: -// -// ``| year | month | day | [ | hour | [ | minutes | [ | seconds | [ | useconds | ]]]]`` -// -// * year - variable length encoded unsigned64 value for the year -// * month - variable length encoded unsigned64 value for the month -// * day - variable length encoded unsigned64 value for the day -// * hour - optional variable length encoded unsigned64 value for the hour -// * minutes - optional variable length encoded unsigned64 value for the minutes -// * seconds - optional variable length encoded unsigned64 value for the seconds -// * useconds - optional variable length encoded unsigned64 value for the microseconds -// -// .. note:: hour, minutes, seconds, useconds are optional if all the values to the right are 0 -// -// ``.flags & 1`` (timestamp) -// -// ============= ======= -// SQL Type .flags -// ============= ======= -// DATETIME -// TIMESTAMP 1 -// -// DECIMAL -// An arbitrary length number. The number is encoded as a single byte -// indicating the position of the decimal point followed by the Packed BCD -// encoded number. Packed BCD is used to simplify conversion to and -// from strings and other native arbitrary precision math datatypes. -// .. seealso:: packed BCD in https://en.wikipedia.org/wiki/Binary-coded_decimal -// -// ``.length`` -// maximum number of displayable decimal digits (*excluding* the decimal point and sign, but including ``.fractional_digits``) -// -// .. note:: should be in the range of 1 - 65 -// -// ``.fractional_digits`` -// is the decimal digits to display out of length -// -// .. note:: should be in the range of 0 - 30 -// -// ``value`` -// the following bytes sequence: -// -// ``| scale | BCD | sign | [0x0] |`` -// -// * scale - 8bit scale value (number of decimal digit after the '.') -// * BCD - BCD encoded digits (4 bits for each digit) -// * sign - sign encoded on 4 bits (0xc = "+", 0xd = "-") -// * 0x0 - last 4bits if length(digits) % 2 == 0 -// -// Example: x04 0x12 0x34 0x01 0xd0 -> -12.3401 -// -// SET -// A list of strings representing a SET of values. -// -// ``value`` -// A sequence of 0 or more of protobuf's bytes (length prepended octets) or one of -// the special sequences with a predefined meaning listed below. -// -// Example (length of the bytes array shown in brackets): -// * ``[0]`` - the NULL value -// * ``[1] 0x00`` - a set containing a blank string '' -// * ``[1] 0x01`` - this would be an invalid value, but is to be treated as the empty set -// * ``[2] 0x01 0x00`` - a set with a single item, which is the '\0' character -// * ``[8] 0x03 F O O 0x03 B A R`` - a set with 2 items: FOO,BAR -// -// -// :param name: name of the column -// :param original_name: name of the column before an alias was applied -// :param table: name of the table the column orginates from -// :param original_table: name of the table the column orginates from before an alias was applied -// :param schema: schema the column originates from -// :param catalog: -// catalog the schema originates from -// -// .. note:: -// as there is current no support for catalogs in MySQL, don't expect this field to be set. -// In the MySQL C/S protocol the field had the value ``def`` all the time. -// -// :param fractional_digits: displayed factional decimal digits for floating point and fixed point numbers -// :param length: maximum count of displayable characters of .type -// :param flags: -// ``.type`` specific flags -// -// ======= ====== =========== -// type value description -// ======= ====== =========== -// UINT 0x0001 zerofill -// DOUBLE 0x0001 unsigned -// FLOAT 0x0001 unsigned -// DECIMAL 0x0001 unsigned -// BYTES 0x0001 rightpad -// ======= ====== =========== -// -// ====== ================ -// value description -// ====== ================ -// 0x0010 NOT_NULL -// 0x0020 PRIMARY_KEY -// 0x0040 UNIQUE_KEY -// 0x0080 MULTIPLE_KEY -// 0x0100 AUTO_INCREMENT -// ====== ================ -// -// default: 0 -// :param content_type: -// a hint about the higher-level encoding of a BYTES field -// -// ====== ====== =========== -// type value description -// ====== ====== =========== -// BYTES 0x0001 GEOMETRY (WKB encoding) -// BYTES 0x0002 JSON (text encoding) -// BYTES 0x0003 XML (text encoding) -// ====== ====== =========== -// -// .. note:: -// this list isn't comprehensive. As guideline: the field's value is expected -// to pass a validator check on client and server if this field is set. -// If the server adds more internal datatypes that rely on BLOB storage -// like image manipulation, seeking into complex types in BLOBs, ... more -// types will be added. -// -type ColumnMetaData struct { - // datatype of the field in a row - Type *ColumnMetaData_FieldType `protobuf:"varint,1,req,name=type,enum=Mysqlx.Resultset.ColumnMetaData_FieldType" json:"type,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - OriginalName []byte `protobuf:"bytes,3,opt,name=original_name,json=originalName" json:"original_name,omitempty"` - Table []byte `protobuf:"bytes,4,opt,name=table" json:"table,omitempty"` - OriginalTable []byte `protobuf:"bytes,5,opt,name=original_table,json=originalTable" json:"original_table,omitempty"` - Schema []byte `protobuf:"bytes,6,opt,name=schema" json:"schema,omitempty"` - Catalog []byte `protobuf:"bytes,7,opt,name=catalog" json:"catalog,omitempty"` - Collation *uint64 `protobuf:"varint,8,opt,name=collation" json:"collation,omitempty"` - FractionalDigits *uint32 `protobuf:"varint,9,opt,name=fractional_digits,json=fractionalDigits" json:"fractional_digits,omitempty"` - Length *uint32 `protobuf:"varint,10,opt,name=length" json:"length,omitempty"` - Flags *uint32 `protobuf:"varint,11,opt,name=flags" json:"flags,omitempty"` - ContentType *uint32 `protobuf:"varint,12,opt,name=content_type,json=contentType" json:"content_type,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ColumnMetaData) Reset() { *m = ColumnMetaData{} } -func (m *ColumnMetaData) String() string { return proto.CompactTextString(m) } -func (*ColumnMetaData) ProtoMessage() {} -func (*ColumnMetaData) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxResultset, []int{3} } - -func (m *ColumnMetaData) GetType() ColumnMetaData_FieldType { - if m != nil && m.Type != nil { - return *m.Type - } - return ColumnMetaData_SINT -} - -func (m *ColumnMetaData) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *ColumnMetaData) GetOriginalName() []byte { - if m != nil { - return m.OriginalName - } - return nil -} - -func (m *ColumnMetaData) GetTable() []byte { - if m != nil { - return m.Table - } - return nil -} - -func (m *ColumnMetaData) GetOriginalTable() []byte { - if m != nil { - return m.OriginalTable - } - return nil -} - -func (m *ColumnMetaData) GetSchema() []byte { - if m != nil { - return m.Schema - } - return nil -} - -func (m *ColumnMetaData) GetCatalog() []byte { - if m != nil { - return m.Catalog - } - return nil -} - -func (m *ColumnMetaData) GetCollation() uint64 { - if m != nil && m.Collation != nil { - return *m.Collation - } - return 0 -} - -func (m *ColumnMetaData) GetFractionalDigits() uint32 { - if m != nil && m.FractionalDigits != nil { - return *m.FractionalDigits - } - return 0 -} - -func (m *ColumnMetaData) GetLength() uint32 { - if m != nil && m.Length != nil { - return *m.Length - } - return 0 -} - -func (m *ColumnMetaData) GetFlags() uint32 { - if m != nil && m.Flags != nil { - return *m.Flags - } - return 0 -} - -func (m *ColumnMetaData) GetContentType() uint32 { - if m != nil && m.ContentType != nil { - return *m.ContentType - } - return 0 -} - -// Row in a Resultset -// -// a row is represented as a list of fields encoded as byte blobs. -// Blob of size 0 represents the NULL value. Otherwise, if it contains at least -// one byte, it encodes a non-null value of the field using encoding appropriate for the -// type of the value given by ``ColumnMetadata``, as specified -// in the :protobuf:msg:`Mysqlx.Resultset::ColumnMetaData` description. -// -type Row struct { - Field [][]byte `protobuf:"bytes,1,rep,name=field" json:"field,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Row) Reset() { *m = Row{} } -func (m *Row) String() string { return proto.CompactTextString(m) } -func (*Row) ProtoMessage() {} -func (*Row) Descriptor() ([]byte, []int) { return fileDescriptorMysqlxResultset, []int{4} } - -func (m *Row) GetField() [][]byte { - if m != nil { - return m.Field - } - return nil -} - -func init() { - proto.RegisterType((*FetchDoneMoreOutParams)(nil), "Mysqlx.Resultset.FetchDoneMoreOutParams") - proto.RegisterType((*FetchDoneMoreResultsets)(nil), "Mysqlx.Resultset.FetchDoneMoreResultsets") - proto.RegisterType((*FetchDone)(nil), "Mysqlx.Resultset.FetchDone") - proto.RegisterType((*ColumnMetaData)(nil), "Mysqlx.Resultset.ColumnMetaData") - proto.RegisterType((*Row)(nil), "Mysqlx.Resultset.Row") - proto.RegisterEnum("Mysqlx.Resultset.ColumnMetaData_FieldType", ColumnMetaData_FieldType_name, ColumnMetaData_FieldType_value) -} -func (m *FetchDoneMoreOutParams) 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 *FetchDoneMoreOutParams) 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 *FetchDoneMoreResultsets) 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 *FetchDoneMoreResultsets) 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 *FetchDone) 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 *FetchDone) 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 *ColumnMetaData) 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 *ColumnMetaData) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(*m.Type)) - } - if m.Name != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.OriginalName != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(len(m.OriginalName))) - i += copy(dAtA[i:], m.OriginalName) - } - if m.Table != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(len(m.Table))) - i += copy(dAtA[i:], m.Table) - } - if m.OriginalTable != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(len(m.OriginalTable))) - i += copy(dAtA[i:], m.OriginalTable) - } - if m.Schema != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(len(m.Schema))) - i += copy(dAtA[i:], m.Schema) - } - if m.Catalog != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(len(m.Catalog))) - i += copy(dAtA[i:], m.Catalog) - } - if m.Collation != nil { - dAtA[i] = 0x40 - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(*m.Collation)) - } - if m.FractionalDigits != nil { - dAtA[i] = 0x48 - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(*m.FractionalDigits)) - } - if m.Length != nil { - dAtA[i] = 0x50 - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(*m.Length)) - } - if m.Flags != nil { - dAtA[i] = 0x58 - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(*m.Flags)) - } - if m.ContentType != nil { - dAtA[i] = 0x60 - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(*m.ContentType)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Row) 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 *Row) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Field) > 0 { - for _, b := range m.Field { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlxResultset(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func encodeVarintMysqlxResultset(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 *FetchDoneMoreOutParams) Size() (n int) { - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *FetchDoneMoreResultsets) Size() (n int) { - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *FetchDone) Size() (n int) { - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ColumnMetaData) Size() (n int) { - var l int - _ = l - if m.Type != nil { - n += 1 + sovMysqlxResultset(uint64(*m.Type)) - } - if m.Name != nil { - l = len(m.Name) - n += 1 + l + sovMysqlxResultset(uint64(l)) - } - if m.OriginalName != nil { - l = len(m.OriginalName) - n += 1 + l + sovMysqlxResultset(uint64(l)) - } - if m.Table != nil { - l = len(m.Table) - n += 1 + l + sovMysqlxResultset(uint64(l)) - } - if m.OriginalTable != nil { - l = len(m.OriginalTable) - n += 1 + l + sovMysqlxResultset(uint64(l)) - } - if m.Schema != nil { - l = len(m.Schema) - n += 1 + l + sovMysqlxResultset(uint64(l)) - } - if m.Catalog != nil { - l = len(m.Catalog) - n += 1 + l + sovMysqlxResultset(uint64(l)) - } - if m.Collation != nil { - n += 1 + sovMysqlxResultset(uint64(*m.Collation)) - } - if m.FractionalDigits != nil { - n += 1 + sovMysqlxResultset(uint64(*m.FractionalDigits)) - } - if m.Length != nil { - n += 1 + sovMysqlxResultset(uint64(*m.Length)) - } - if m.Flags != nil { - n += 1 + sovMysqlxResultset(uint64(*m.Flags)) - } - if m.ContentType != nil { - n += 1 + sovMysqlxResultset(uint64(*m.ContentType)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Row) Size() (n int) { - var l int - _ = l - if len(m.Field) > 0 { - for _, b := range m.Field { - l = len(b) - n += 1 + l + sovMysqlxResultset(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovMysqlxResultset(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozMysqlxResultset(x uint64) (n int) { - return sovMysqlxResultset(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *FetchDoneMoreOutParams) 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 ErrIntOverflowMysqlxResultset - } - 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: FetchDoneMoreOutParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FetchDoneMoreOutParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMysqlxResultset(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxResultset - } - 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 *FetchDoneMoreResultsets) 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 ErrIntOverflowMysqlxResultset - } - 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: FetchDoneMoreResultsets: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FetchDoneMoreResultsets: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMysqlxResultset(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxResultset - } - 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 *FetchDone) 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 ErrIntOverflowMysqlxResultset - } - 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: FetchDone: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FetchDone: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMysqlxResultset(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxResultset - } - 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 *ColumnMetaData) 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 ErrIntOverflowMysqlxResultset - } - 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: ColumnMetaData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ColumnMetaData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var v ColumnMetaData_FieldType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (ColumnMetaData_FieldType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Type = &v - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxResultset - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = append(m.Name[:0], dAtA[iNdEx:postIndex]...) - if m.Name == nil { - m.Name = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OriginalName", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxResultset - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OriginalName = append(m.OriginalName[:0], dAtA[iNdEx:postIndex]...) - if m.OriginalName == nil { - m.OriginalName = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxResultset - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Table = append(m.Table[:0], dAtA[iNdEx:postIndex]...) - if m.Table == nil { - m.Table = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OriginalTable", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxResultset - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OriginalTable = append(m.OriginalTable[:0], dAtA[iNdEx:postIndex]...) - if m.OriginalTable == nil { - m.OriginalTable = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxResultset - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Schema = append(m.Schema[:0], dAtA[iNdEx:postIndex]...) - if m.Schema == nil { - m.Schema = []byte{} - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Catalog", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxResultset - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Catalog = append(m.Catalog[:0], dAtA[iNdEx:postIndex]...) - if m.Catalog == nil { - m.Catalog = []byte{} - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Collation", wireType) - } - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Collation = &v - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FractionalDigits", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.FractionalDigits = &v - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Length = &v - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Flags = &v - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ContentType = &v - default: - iNdEx = preIndex - skippy, err := skipMysqlxResultset(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxResultset - } - 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 *Row) 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 ErrIntOverflowMysqlxResultset - } - 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: Row: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Row: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Field", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlxResultset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMysqlxResultset - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Field = append(m.Field, make([]byte, postIndex-iNdEx)) - copy(m.Field[len(m.Field)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlxResultset(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlxResultset - } - 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 skipMysqlxResultset(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, ErrIntOverflowMysqlxResultset - } - 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, ErrIntOverflowMysqlxResultset - } - 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, ErrIntOverflowMysqlxResultset - } - 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, ErrInvalidLengthMysqlxResultset - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMysqlxResultset - } - 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 := skipMysqlxResultset(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 ( - ErrInvalidLengthMysqlxResultset = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMysqlxResultset = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/Resultset/mysqlx_resultset.proto", fileDescriptorMysqlxResultset) -} - -var fileDescriptorMysqlxResultset = []byte{ - // 487 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0xdf, 0x8e, 0xd2, 0x40, - 0x18, 0xc5, 0xed, 0x52, 0xfe, 0x7d, 0x74, 0x71, 0x76, 0x62, 0xd6, 0x31, 0x6e, 0x08, 0xd6, 0x18, - 0x89, 0x26, 0xdd, 0xc4, 0x07, 0x30, 0x81, 0x6d, 0x49, 0x48, 0x28, 0x98, 0x52, 0x2e, 0xbc, 0x22, - 0xb3, 0xdd, 0xa1, 0xd4, 0x4c, 0x3b, 0xd8, 0x0e, 0x71, 0xb9, 0xf5, 0x29, 0xf4, 0x8d, 0xbc, 0xf4, - 0x11, 0x0c, 0xbe, 0x88, 0x99, 0x29, 0x74, 0xb3, 0xde, 0x9d, 0x73, 0x7e, 0xe7, 0x63, 0x98, 0xaf, - 0x03, 0x6f, 0xfd, 0x7d, 0xf1, 0x95, 0xdf, 0x5f, 0x07, 0xac, 0xd8, 0x71, 0x59, 0x30, 0x79, 0x9d, - 0xea, 0x60, 0x95, 0x9f, 0x02, 0x67, 0x9b, 0x0b, 0x29, 0x30, 0x2a, 0x8b, 0x4e, 0x55, 0xb4, 0x09, - 0x5c, 0x8e, 0x99, 0x8c, 0x36, 0xae, 0xc8, 0x98, 0x2f, 0x72, 0x36, 0xdf, 0xc9, 0x4f, 0x34, 0xa7, - 0x69, 0x61, 0xbf, 0x80, 0xe7, 0x8f, 0x48, 0x35, 0x53, 0xd8, 0x1d, 0x68, 0x57, 0xc8, 0xfe, 0x69, - 0x42, 0xf7, 0x46, 0xf0, 0x5d, 0x9a, 0xf9, 0x4c, 0x52, 0x97, 0x4a, 0x8a, 0x3f, 0x82, 0x29, 0xf7, - 0x5b, 0x46, 0x8c, 0xfe, 0xd9, 0xa0, 0xfb, 0xe1, 0x9d, 0xf3, 0xff, 0xa9, 0xce, 0xe3, 0xbe, 0x33, - 0x4e, 0x18, 0xbf, 0x0b, 0xf7, 0x5b, 0x16, 0xe8, 0x39, 0x8c, 0xc1, 0xcc, 0x68, 0xca, 0xc8, 0x59, - 0xdf, 0x18, 0x58, 0x81, 0xd6, 0xf8, 0x35, 0x9c, 0x8b, 0x3c, 0x89, 0x93, 0x8c, 0xf2, 0x95, 0x86, - 0x35, 0x0d, 0xad, 0x53, 0x38, 0x53, 0xa5, 0x67, 0x50, 0x97, 0xf4, 0x96, 0x33, 0x62, 0x6a, 0x58, - 0x1a, 0xfc, 0x06, 0xba, 0xd5, 0x68, 0x89, 0xeb, 0x1a, 0x57, 0x3f, 0x18, 0xea, 0xda, 0x25, 0x34, - 0x8a, 0x68, 0xc3, 0x52, 0x4a, 0x1a, 0x1a, 0x1f, 0x1d, 0x26, 0xd0, 0x8c, 0xa8, 0xa4, 0x5c, 0xc4, - 0xa4, 0xa9, 0xc1, 0xc9, 0xe2, 0x2b, 0x68, 0x47, 0x82, 0x73, 0x2a, 0x13, 0x91, 0x91, 0x56, 0xdf, - 0x18, 0x98, 0xc1, 0x43, 0x80, 0xdf, 0xc3, 0xc5, 0x3a, 0xa7, 0x91, 0xd2, 0x94, 0xaf, 0xee, 0x92, - 0x38, 0x91, 0x05, 0x69, 0xf7, 0x8d, 0xc1, 0x79, 0x80, 0x1e, 0x80, 0xab, 0x73, 0x75, 0x38, 0x67, - 0x59, 0x2c, 0x37, 0x04, 0x74, 0xe3, 0xe8, 0xd4, 0x8d, 0xd6, 0x9c, 0xc6, 0x05, 0xe9, 0xe8, 0xb8, - 0x34, 0xf8, 0x15, 0x58, 0x91, 0xc8, 0x24, 0xcb, 0xe4, 0x4a, 0x2f, 0xda, 0xd2, 0xb0, 0x73, 0xcc, - 0xd4, 0x26, 0xed, 0xef, 0x06, 0xb4, 0xab, 0xbd, 0xe2, 0x16, 0x98, 0x8b, 0xc9, 0x2c, 0x44, 0x86, - 0x52, 0x4b, 0xa5, 0xce, 0x30, 0x40, 0xc3, 0x9d, 0x2f, 0x47, 0x53, 0x0f, 0xd5, 0x71, 0x1b, 0xea, - 0xe3, 0xe9, 0x7c, 0x18, 0xa2, 0x86, 0x92, 0xa3, 0xcf, 0xa1, 0xb7, 0x40, 0x4d, 0xd5, 0x0d, 0x27, - 0xbe, 0x87, 0x00, 0x5b, 0xd0, 0x72, 0x87, 0xa1, 0xa7, 0x9d, 0x85, 0x9b, 0x50, 0x5b, 0x78, 0x21, - 0x7a, 0xaa, 0x0a, 0xde, 0x6c, 0xe9, 0x23, 0xa4, 0xa2, 0xd1, 0x24, 0x44, 0x17, 0xb8, 0x03, 0x4d, - 0xd7, 0xbb, 0x99, 0xf8, 0xc3, 0x29, 0xc2, 0xf6, 0x4b, 0xa8, 0x05, 0xe2, 0x9b, 0xbe, 0x84, 0xfa, - 0x2b, 0xc4, 0xe8, 0xd7, 0xd4, 0x67, 0xd1, 0x66, 0xe4, 0xfc, 0x3a, 0xf4, 0x8c, 0xdf, 0x87, 0x9e, - 0xf1, 0xe7, 0xd0, 0x33, 0x7e, 0xfc, 0xed, 0x3d, 0x81, 0xab, 0x48, 0xa4, 0x8e, 0x7e, 0xba, 0x4e, - 0xf4, 0xa5, 0x14, 0xf7, 0xe5, 0xcb, 0xbd, 0xdd, 0xad, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xb6, - 0x6d, 0xea, 0xb7, 0xe6, 0x02, 0x00, 0x00, -} diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/Session/mysqlx_session.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/Session/mysqlx_session.pb.go deleted file mode 100644 index 083b7d0003..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/Session/mysqlx_session.pb.go +++ /dev/null @@ -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, -} diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/Sql/mysqlx_sql.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/Sql/mysqlx_sql.pb.go deleted file mode 100644 index 107f284176..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/Sql/mysqlx_sql.pb.go +++ /dev/null @@ -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, -} diff --git a/vendor/github.com/pingcap/tipb/go-mysqlx/mysqlx.pb.go b/vendor/github.com/pingcap/tipb/go-mysqlx/mysqlx.pb.go deleted file mode 100644 index 604504d0e7..0000000000 --- a/vendor/github.com/pingcap/tipb/go-mysqlx/mysqlx.pb.go +++ /dev/null @@ -1,1027 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: github.com/pingcap/tipb/go-mysqlx/mysqlx.proto - -/* - Package Mysqlx is a generated protocol buffer package. - - It is generated from these files: - github.com/pingcap/tipb/go-mysqlx/mysqlx.proto - - It has these top-level messages: - ClientMessages - ServerMessages - Ok - Error -*/ -package Mysqlx - -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 ClientMessages_Type int32 - -const ( - ClientMessages_CON_CAPABILITIES_GET ClientMessages_Type = 1 - ClientMessages_CON_CAPABILITIES_SET ClientMessages_Type = 2 - ClientMessages_CON_CLOSE ClientMessages_Type = 3 - ClientMessages_SESS_AUTHENTICATE_START ClientMessages_Type = 4 - ClientMessages_SESS_AUTHENTICATE_CONTINUE ClientMessages_Type = 5 - ClientMessages_SESS_RESET ClientMessages_Type = 6 - ClientMessages_SESS_CLOSE ClientMessages_Type = 7 - ClientMessages_SQL_STMT_EXECUTE ClientMessages_Type = 12 - ClientMessages_CRUD_FIND ClientMessages_Type = 17 - ClientMessages_CRUD_INSERT ClientMessages_Type = 18 - ClientMessages_CRUD_UPDATE ClientMessages_Type = 19 - ClientMessages_CRUD_DELETE ClientMessages_Type = 20 - ClientMessages_EXPECT_OPEN ClientMessages_Type = 24 - ClientMessages_EXPECT_CLOSE ClientMessages_Type = 25 - ClientMessages_CRUD_CREATE_VIEW ClientMessages_Type = 30 - ClientMessages_CRUD_MODIFY_VIEW ClientMessages_Type = 31 - ClientMessages_CRUD_DROP_VIEW ClientMessages_Type = 32 -) - -var ClientMessages_Type_name = map[int32]string{ - 1: "CON_CAPABILITIES_GET", - 2: "CON_CAPABILITIES_SET", - 3: "CON_CLOSE", - 4: "SESS_AUTHENTICATE_START", - 5: "SESS_AUTHENTICATE_CONTINUE", - 6: "SESS_RESET", - 7: "SESS_CLOSE", - 12: "SQL_STMT_EXECUTE", - 17: "CRUD_FIND", - 18: "CRUD_INSERT", - 19: "CRUD_UPDATE", - 20: "CRUD_DELETE", - 24: "EXPECT_OPEN", - 25: "EXPECT_CLOSE", - 30: "CRUD_CREATE_VIEW", - 31: "CRUD_MODIFY_VIEW", - 32: "CRUD_DROP_VIEW", -} -var ClientMessages_Type_value = map[string]int32{ - "CON_CAPABILITIES_GET": 1, - "CON_CAPABILITIES_SET": 2, - "CON_CLOSE": 3, - "SESS_AUTHENTICATE_START": 4, - "SESS_AUTHENTICATE_CONTINUE": 5, - "SESS_RESET": 6, - "SESS_CLOSE": 7, - "SQL_STMT_EXECUTE": 12, - "CRUD_FIND": 17, - "CRUD_INSERT": 18, - "CRUD_UPDATE": 19, - "CRUD_DELETE": 20, - "EXPECT_OPEN": 24, - "EXPECT_CLOSE": 25, - "CRUD_CREATE_VIEW": 30, - "CRUD_MODIFY_VIEW": 31, - "CRUD_DROP_VIEW": 32, -} - -func (x ClientMessages_Type) Enum() *ClientMessages_Type { - p := new(ClientMessages_Type) - *p = x - return p -} -func (x ClientMessages_Type) String() string { - return proto.EnumName(ClientMessages_Type_name, int32(x)) -} -func (x *ClientMessages_Type) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(ClientMessages_Type_value, data, "ClientMessages_Type") - if err != nil { - return err - } - *x = ClientMessages_Type(value) - return nil -} -func (ClientMessages_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlx, []int{0, 0} } - -type ServerMessages_Type int32 - -const ( - ServerMessages_OK ServerMessages_Type = 0 - ServerMessages_ERROR ServerMessages_Type = 1 - ServerMessages_CONN_CAPABILITIES ServerMessages_Type = 2 - ServerMessages_SESS_AUTHENTICATE_CONTINUE ServerMessages_Type = 3 - ServerMessages_SESS_AUTHENTICATE_OK ServerMessages_Type = 4 - // NOTICE has to stay at 11 forever - ServerMessages_NOTICE ServerMessages_Type = 11 - ServerMessages_RESULTSET_COLUMN_META_DATA ServerMessages_Type = 12 - ServerMessages_RESULTSET_ROW ServerMessages_Type = 13 - ServerMessages_RESULTSET_FETCH_DONE ServerMessages_Type = 14 - ServerMessages_RESULTSET_FETCH_SUSPENDED ServerMessages_Type = 15 - ServerMessages_RESULTSET_FETCH_DONE_MORE_RESULTSETS ServerMessages_Type = 16 - ServerMessages_SQL_STMT_EXECUTE_OK ServerMessages_Type = 17 - ServerMessages_RESULTSET_FETCH_DONE_MORE_OUT_PARAMS ServerMessages_Type = 18 -) - -var ServerMessages_Type_name = map[int32]string{ - 0: "OK", - 1: "ERROR", - 2: "CONN_CAPABILITIES", - 3: "SESS_AUTHENTICATE_CONTINUE", - 4: "SESS_AUTHENTICATE_OK", - 11: "NOTICE", - 12: "RESULTSET_COLUMN_META_DATA", - 13: "RESULTSET_ROW", - 14: "RESULTSET_FETCH_DONE", - 15: "RESULTSET_FETCH_SUSPENDED", - 16: "RESULTSET_FETCH_DONE_MORE_RESULTSETS", - 17: "SQL_STMT_EXECUTE_OK", - 18: "RESULTSET_FETCH_DONE_MORE_OUT_PARAMS", -} -var ServerMessages_Type_value = map[string]int32{ - "OK": 0, - "ERROR": 1, - "CONN_CAPABILITIES": 2, - "SESS_AUTHENTICATE_CONTINUE": 3, - "SESS_AUTHENTICATE_OK": 4, - "NOTICE": 11, - "RESULTSET_COLUMN_META_DATA": 12, - "RESULTSET_ROW": 13, - "RESULTSET_FETCH_DONE": 14, - "RESULTSET_FETCH_SUSPENDED": 15, - "RESULTSET_FETCH_DONE_MORE_RESULTSETS": 16, - "SQL_STMT_EXECUTE_OK": 17, - "RESULTSET_FETCH_DONE_MORE_OUT_PARAMS": 18, -} - -func (x ServerMessages_Type) Enum() *ServerMessages_Type { - p := new(ServerMessages_Type) - *p = x - return p -} -func (x ServerMessages_Type) String() string { - return proto.EnumName(ServerMessages_Type_name, int32(x)) -} -func (x *ServerMessages_Type) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(ServerMessages_Type_value, data, "ServerMessages_Type") - if err != nil { - return err - } - *x = ServerMessages_Type(value) - return nil -} -func (ServerMessages_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlx, []int{1, 0} } - -type Error_Severity int32 - -const ( - Error_ERROR Error_Severity = 0 - Error_FATAL Error_Severity = 1 -) - -var Error_Severity_name = map[int32]string{ - 0: "ERROR", - 1: "FATAL", -} -var Error_Severity_value = map[string]int32{ - "ERROR": 0, - "FATAL": 1, -} - -func (x Error_Severity) Enum() *Error_Severity { - p := new(Error_Severity) - *p = x - return p -} -func (x Error_Severity) String() string { - return proto.EnumName(Error_Severity_name, int32(x)) -} -func (x *Error_Severity) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Error_Severity_value, data, "Error_Severity") - if err != nil { - return err - } - *x = Error_Severity(value) - return nil -} -func (Error_Severity) EnumDescriptor() ([]byte, []int) { return fileDescriptorMysqlx, []int{3, 0} } - -// IDs of messages that can be sent from client to the server -// -// .. note:: -// this message is never sent on the wire. It is only used to let ``protoc`` -// -// * generate constants -// * check for uniqueness -type ClientMessages struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *ClientMessages) Reset() { *m = ClientMessages{} } -func (m *ClientMessages) String() string { return proto.CompactTextString(m) } -func (*ClientMessages) ProtoMessage() {} -func (*ClientMessages) Descriptor() ([]byte, []int) { return fileDescriptorMysqlx, []int{0} } - -// IDs of messages that can be sent from server to client -// -// .. note:: -// this message is never sent on the wire. It is only used to let ``protoc`` -// -// * generate constants -// * check for uniqueness -type ServerMessages struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *ServerMessages) Reset() { *m = ServerMessages{} } -func (m *ServerMessages) String() string { return proto.CompactTextString(m) } -func (*ServerMessages) ProtoMessage() {} -func (*ServerMessages) Descriptor() ([]byte, []int) { return fileDescriptorMysqlx, []int{1} } - -// generic Ok message -type Ok struct { - Msg *string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Ok) Reset() { *m = Ok{} } -func (m *Ok) String() string { return proto.CompactTextString(m) } -func (*Ok) ProtoMessage() {} -func (*Ok) Descriptor() ([]byte, []int) { return fileDescriptorMysqlx, []int{2} } - -func (m *Ok) GetMsg() string { - if m != nil && m.Msg != nil { - return *m.Msg - } - return "" -} - -// generic Error message -// -// A ``severity`` of ``ERROR`` indicates the current message sequence is -// aborted for the given error and the session is ready for more. -// -// In case of a ``FATAL`` error message the client should not expect -// the server to continue handling any further messages and should -// close the connection. -// -// :param severity: severity of the error message -// :param code: error-code -// :param sql_state: SQL state -// :param msg: human readable error message -type Error struct { - Severity *Error_Severity `protobuf:"varint,1,opt,name=severity,enum=Mysqlx.Error_Severity,def=0" json:"severity,omitempty"` - Code *uint32 `protobuf:"varint,2,req,name=code" json:"code,omitempty"` - SqlState *string `protobuf:"bytes,4,req,name=sql_state,json=sqlState" json:"sql_state,omitempty"` - Msg *string `protobuf:"bytes,3,req,name=msg" json:"msg,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorMysqlx, []int{3} } - -const Default_Error_Severity Error_Severity = Error_ERROR - -func (m *Error) GetSeverity() Error_Severity { - if m != nil && m.Severity != nil { - return *m.Severity - } - return Default_Error_Severity -} - -func (m *Error) GetCode() uint32 { - if m != nil && m.Code != nil { - return *m.Code - } - return 0 -} - -func (m *Error) GetSqlState() string { - if m != nil && m.SqlState != nil { - return *m.SqlState - } - return "" -} - -func (m *Error) GetMsg() string { - if m != nil && m.Msg != nil { - return *m.Msg - } - return "" -} - -func init() { - proto.RegisterType((*ClientMessages)(nil), "Mysqlx.ClientMessages") - proto.RegisterType((*ServerMessages)(nil), "Mysqlx.ServerMessages") - proto.RegisterType((*Ok)(nil), "Mysqlx.Ok") - proto.RegisterType((*Error)(nil), "Mysqlx.Error") - proto.RegisterEnum("Mysqlx.ClientMessages_Type", ClientMessages_Type_name, ClientMessages_Type_value) - proto.RegisterEnum("Mysqlx.ServerMessages_Type", ServerMessages_Type_name, ServerMessages_Type_value) - proto.RegisterEnum("Mysqlx.Error_Severity", Error_Severity_name, Error_Severity_value) -} -func (m *ClientMessages) 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 *ClientMessages) 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 *ServerMessages) 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 *ServerMessages) 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 *Ok) 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 *Ok) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Msg != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMysqlx(dAtA, i, uint64(len(*m.Msg))) - i += copy(dAtA[i:], *m.Msg) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Error) 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 *Error) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Severity != nil { - dAtA[i] = 0x8 - i++ - i = encodeVarintMysqlx(dAtA, i, uint64(*m.Severity)) - } - if m.Code == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x10 - i++ - i = encodeVarintMysqlx(dAtA, i, uint64(*m.Code)) - } - if m.Msg == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x1a - i++ - i = encodeVarintMysqlx(dAtA, i, uint64(len(*m.Msg))) - i += copy(dAtA[i:], *m.Msg) - } - if m.SqlState == nil { - return 0, new(github_com_golang_protobuf_proto.RequiredNotSetError) - } else { - dAtA[i] = 0x22 - i++ - i = encodeVarintMysqlx(dAtA, i, uint64(len(*m.SqlState))) - i += copy(dAtA[i:], *m.SqlState) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func encodeVarintMysqlx(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 *ClientMessages) Size() (n int) { - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ServerMessages) Size() (n int) { - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Ok) Size() (n int) { - var l int - _ = l - if m.Msg != nil { - l = len(*m.Msg) - n += 1 + l + sovMysqlx(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Error) Size() (n int) { - var l int - _ = l - if m.Severity != nil { - n += 1 + sovMysqlx(uint64(*m.Severity)) - } - if m.Code != nil { - n += 1 + sovMysqlx(uint64(*m.Code)) - } - if m.Msg != nil { - l = len(*m.Msg) - n += 1 + l + sovMysqlx(uint64(l)) - } - if m.SqlState != nil { - l = len(*m.SqlState) - n += 1 + l + sovMysqlx(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovMysqlx(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozMysqlx(x uint64) (n int) { - return sovMysqlx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ClientMessages) 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 ErrIntOverflowMysqlx - } - 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: ClientMessages: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClientMessages: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMysqlx(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlx - } - 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 *ServerMessages) 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 ErrIntOverflowMysqlx - } - 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: ServerMessages: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServerMessages: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMysqlx(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlx - } - 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 *Ok) 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 ErrIntOverflowMysqlx - } - 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: Ok: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Ok: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlx - } - 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 ErrInvalidLengthMysqlx - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Msg = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMysqlx(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlx - } - 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 *Error) 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 ErrIntOverflowMysqlx - } - 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: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType) - } - var v Error_Severity - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (Error_Severity(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Severity = &v - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Code = &v - hasFields[0] |= uint64(0x00000001) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlx - } - 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 ErrInvalidLengthMysqlx - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Msg = &s - iNdEx = postIndex - hasFields[0] |= uint64(0x00000002) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SqlState", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMysqlx - } - 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 ErrInvalidLengthMysqlx - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.SqlState = &s - iNdEx = postIndex - hasFields[0] |= uint64(0x00000004) - default: - iNdEx = preIndex - skippy, err := skipMysqlx(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMysqlx - } - 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 hasFields[0]&uint64(0x00000004) == 0 { - return new(github_com_golang_protobuf_proto.RequiredNotSetError) - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMysqlx(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, ErrIntOverflowMysqlx - } - 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, ErrIntOverflowMysqlx - } - 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, ErrIntOverflowMysqlx - } - 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, ErrInvalidLengthMysqlx - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMysqlx - } - 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 := skipMysqlx(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 ( - ErrInvalidLengthMysqlx = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMysqlx = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("github.com/pingcap/tipb/go-mysqlx/mysqlx.proto", fileDescriptorMysqlx) -} - -var fileDescriptorMysqlx = []byte{ - // 593 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xd1, 0x52, 0xd3, 0x5c, - 0x10, 0xc7, 0x49, 0x5a, 0xfa, 0xd1, 0x85, 0x96, 0xed, 0x81, 0x0f, 0x8a, 0x68, 0xed, 0x74, 0xbc, - 0xe0, 0x2a, 0xce, 0x78, 0xa7, 0x77, 0x21, 0xd9, 0x4a, 0x86, 0x24, 0x27, 0x9e, 0x73, 0x22, 0x78, - 0x75, 0x06, 0x31, 0x32, 0x68, 0xb1, 0x90, 0x54, 0x46, 0xde, 0xc4, 0x37, 0xf0, 0x55, 0xbc, 0xd3, - 0x47, 0xd0, 0xfa, 0x0a, 0x3e, 0x80, 0x93, 0x04, 0x52, 0x05, 0x46, 0xaf, 0x92, 0xfd, 0xfd, 0xf7, - 0xfc, 0x77, 0x67, 0x77, 0x16, 0x56, 0x82, 0x8b, 0xec, 0x6c, 0xf4, 0xe1, 0xe1, 0x49, 0xf1, 0xb1, - 0x4e, 0xd3, 0xf1, 0x64, 0xcc, 0x1a, 0x25, 0x1c, 0xfc, 0x34, 0xa1, 0xed, 0x8c, 0x8e, 0x93, 0x77, - 0x93, 0x20, 0xc9, 0xb2, 0x83, 0xa3, 0x24, 0x1b, 0x7c, 0x37, 0xa1, 0xae, 0x2e, 0x4e, 0x13, 0xd6, - 0x85, 0x55, 0x87, 0x87, 0xda, 0xb1, 0x23, 0x7b, 0xdb, 0xf3, 0x3d, 0xe5, 0x91, 0xd4, 0x4f, 0x49, - 0xa1, 0x71, 0xab, 0x22, 0x49, 0xa1, 0xc9, 0x5a, 0xd0, 0x2c, 0x14, 0x9f, 0x4b, 0xc2, 0x1a, 0xdb, - 0x84, 0x75, 0x49, 0x52, 0x6a, 0x3b, 0x56, 0x3b, 0x14, 0x2a, 0xcf, 0xb1, 0x15, 0x69, 0xa9, 0x6c, - 0xa1, 0xb0, 0xce, 0x7a, 0x70, 0xe7, 0xa6, 0xe8, 0xf0, 0x50, 0x79, 0x61, 0x4c, 0x38, 0xcf, 0xda, - 0x00, 0x85, 0x2e, 0x28, 0xf7, 0x6e, 0x54, 0x71, 0x69, 0xfe, 0x1f, 0x5b, 0x05, 0x94, 0xcf, 0x7c, - 0x2d, 0x55, 0xa0, 0x34, 0xed, 0x93, 0x13, 0x2b, 0xc2, 0xa5, 0xa2, 0x03, 0x11, 0xbb, 0x7a, 0xe8, - 0x85, 0x2e, 0x76, 0xd8, 0x32, 0x2c, 0x16, 0xa1, 0x17, 0x4a, 0x12, 0x0a, 0x59, 0x05, 0xe2, 0xc8, - 0xb5, 0x15, 0xe1, 0x4a, 0x05, 0x5c, 0xf2, 0x49, 0x11, 0xae, 0xe6, 0x80, 0xf6, 0x23, 0x72, 0x94, - 0xe6, 0x11, 0x85, 0xd8, 0x65, 0x08, 0x4b, 0x97, 0xa0, 0x2c, 0xbd, 0x91, 0x97, 0x2e, 0xde, 0x38, - 0x82, 0xf2, 0xa6, 0x9f, 0x7b, 0xb4, 0x87, 0xbd, 0x8a, 0x06, 0xdc, 0xf5, 0x86, 0x2f, 0x4a, 0x7a, - 0x9f, 0x31, 0x68, 0x97, 0xfe, 0x82, 0x47, 0x25, 0xeb, 0x0f, 0xa6, 0x26, 0xb4, 0x65, 0x92, 0x9e, - 0x27, 0x69, 0x35, 0xf6, 0x2f, 0x57, 0x63, 0x6f, 0x80, 0xc9, 0x77, 0x71, 0x8e, 0x35, 0x61, 0x9e, - 0x84, 0xe0, 0x02, 0x0d, 0xf6, 0x3f, 0x74, 0x1c, 0x1e, 0xfe, 0x39, 0x70, 0x34, 0xff, 0x31, 0xc0, - 0x5a, 0xbe, 0xa6, 0x9b, 0x3a, 0xdf, 0xc5, 0x3a, 0x03, 0x68, 0x84, 0x5c, 0x79, 0x0e, 0xe1, 0x62, - 0xee, 0x22, 0x48, 0xc6, 0xbe, 0x92, 0xa4, 0xb4, 0xc3, 0xfd, 0x38, 0x08, 0x75, 0x40, 0xca, 0xd6, - 0xae, 0xad, 0x6c, 0x5c, 0x62, 0x1d, 0x68, 0xcd, 0x74, 0xc1, 0xf7, 0xb0, 0x95, 0x1b, 0xcf, 0xd0, - 0x90, 0x94, 0xb3, 0xa3, 0x5d, 0x1e, 0x12, 0xb6, 0xd9, 0x3d, 0xd8, 0xb8, 0xae, 0xc8, 0x58, 0x46, - 0x14, 0xba, 0xe4, 0xe2, 0x32, 0xdb, 0x82, 0x07, 0xb7, 0x3d, 0xd4, 0x01, 0x17, 0xa4, 0x2b, 0x45, - 0x22, 0xb2, 0x75, 0x58, 0xb9, 0xbe, 0xdc, 0xbc, 0xf5, 0xce, 0xdf, 0x2d, 0x78, 0xac, 0x74, 0x64, - 0x0b, 0x3b, 0x90, 0xc8, 0x06, 0x6b, 0x60, 0xf2, 0xb7, 0x0c, 0xa1, 0x76, 0x92, 0x1d, 0x75, 0x8d, - 0xbe, 0xb1, 0xd5, 0x14, 0xf9, 0xef, 0xe0, 0x93, 0x01, 0xf3, 0x94, 0xa6, 0xe3, 0x94, 0x3d, 0x86, - 0x85, 0x2c, 0x39, 0x4f, 0xd2, 0xe3, 0xc9, 0x45, 0x91, 0xd0, 0x7e, 0xb4, 0x66, 0x95, 0x87, 0x61, - 0x15, 0x09, 0x96, 0xbc, 0x54, 0x9f, 0x94, 0xab, 0x10, 0x55, 0x3a, 0x63, 0x50, 0x3f, 0x1c, 0xbf, - 0x4a, 0xba, 0x66, 0xdf, 0xdc, 0x6a, 0x89, 0xe2, 0xff, 0xaa, 0x54, 0xad, 0x6f, 0x5e, 0x96, 0x62, - 0x9b, 0xd0, 0xcc, 0xce, 0x46, 0x3a, 0x9b, 0x1c, 0x4c, 0x92, 0x6e, 0xbd, 0xe0, 0x0b, 0xd9, 0xd9, - 0x48, 0xe6, 0xf1, 0xa0, 0x0f, 0x0b, 0x57, 0xfe, 0xb3, 0x65, 0x17, 0x7b, 0x1f, 0xda, 0xca, 0xf6, - 0xd1, 0xd8, 0xb6, 0x3e, 0x4f, 0x7b, 0xc6, 0xd7, 0x69, 0xcf, 0xf8, 0x36, 0xed, 0x19, 0x1f, 0x7f, - 0xf4, 0xe6, 0xe0, 0xee, 0xe1, 0xf8, 0xc4, 0x2a, 0x2e, 0xd9, 0x3a, 0x7c, 0x63, 0xfd, 0x7e, 0xd2, - 0x2f, 0xdf, 0xbf, 0xfe, 0x15, 0x00, 0x00, 0xff, 0xff, 0x03, 0xb4, 0x38, 0x6c, 0xeb, 0x03, 0x00, - 0x00, -} diff --git a/x-server/server.go b/x-server/server.go index b5000b8056..115a8b4566 100644 --- a/x-server/server.go +++ b/x-server/server.go @@ -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 (