2019-09-20 18:37:22 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2020-07-23 15:24:20 +00:00
|
|
|
// source: proto/pbacl/acl.proto
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2020-07-23 15:24:20 +00:00
|
|
|
package pbacl
|
2019-09-20 18:37:22 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
io "io"
|
|
|
|
math "math"
|
2020-07-29 16:09:10 +00:00
|
|
|
math_bits "math/bits"
|
2019-09-20 18:37:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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.
|
2021-08-12 18:05:46 +00:00
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2019-09-20 18:37:22 +00:00
|
|
|
|
|
|
|
type ACLLink struct {
|
|
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty" hash:"ignore"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ACLLink) Reset() { *m = ACLLink{} }
|
|
|
|
func (m *ACLLink) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ACLLink) ProtoMessage() {}
|
|
|
|
func (*ACLLink) Descriptor() ([]byte, []int) {
|
2020-07-23 15:24:20 +00:00
|
|
|
return fileDescriptor_ad2d2c73a6a0d8b5, []int{0}
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
func (m *ACLLink) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ACLLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_ACLLink.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
2020-07-29 16:09:10 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
2019-09-20 18:37:22 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *ACLLink) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ACLLink.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ACLLink) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ACLLink) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ACLLink.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ACLLink proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func init() {
|
2020-07-23 15:24:20 +00:00
|
|
|
proto.RegisterType((*ACLLink)(nil), "acl.ACLLink")
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
2020-07-23 15:24:20 +00:00
|
|
|
func init() { proto.RegisterFile("proto/pbacl/acl.proto", fileDescriptor_ad2d2c73a6a0d8b5) }
|
2019-09-20 18:37:22 +00:00
|
|
|
|
2020-07-23 15:24:20 +00:00
|
|
|
var fileDescriptor_ad2d2c73a6a0d8b5 = []byte{
|
|
|
|
// 193 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2d, 0x28, 0xca, 0x2f,
|
|
|
|
0xc9, 0xd7, 0x2f, 0x48, 0x4a, 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x00,
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ACLLink) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-07-29 16:09:10 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-09-20 18:37:22 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ACLLink) MarshalTo(dAtA []byte) (int, error) {
|
2020-07-29 16:09:10 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ACLLink) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-09-20 18:37:22 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Name) > 0 {
|
2020-07-29 16:09:10 +00:00
|
|
|
i -= len(m.Name)
|
|
|
|
copy(dAtA[i:], m.Name)
|
2019-09-20 18:37:22 +00:00
|
|
|
i = encodeVarintAcl(dAtA, i, uint64(len(m.Name)))
|
2020-07-29 16:09:10 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if len(m.ID) > 0 {
|
|
|
|
i -= len(m.ID)
|
|
|
|
copy(dAtA[i:], m.ID)
|
|
|
|
i = encodeVarintAcl(dAtA, i, uint64(len(m.ID)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2020-07-29 16:09:10 +00:00
|
|
|
return len(dAtA) - i, nil
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func encodeVarintAcl(dAtA []byte, offset int, v uint64) int {
|
2020-07-29 16:09:10 +00:00
|
|
|
offset -= sovAcl(v)
|
|
|
|
base := offset
|
2019-09-20 18:37:22 +00:00
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
2020-07-29 16:09:10 +00:00
|
|
|
return base
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
func (m *ACLLink) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.ID)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovAcl(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Name)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovAcl(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovAcl(x uint64) (n int) {
|
2020-07-29 16:09:10 +00:00
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
func sozAcl(x uint64) (n int) {
|
|
|
|
return sovAcl(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (m *ACLLink) 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 ErrIntOverflowAcl
|
|
|
|
}
|
|
|
|
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: ACLLink: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ACLLink: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowAcl
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthAcl
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthAcl
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.ID = string(dAtA[iNdEx:postIndex])
|
|
|
|
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 ErrIntOverflowAcl
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthAcl
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthAcl
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipAcl(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-08-12 18:05:46 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-09-20 18:37:22 +00:00
|
|
|
return ErrInvalidLengthAcl
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func skipAcl(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
2021-08-12 18:05:46 +00:00
|
|
|
depth := 0
|
2019-09-20 18:37:22 +00:00
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowAcl
|
|
|
|
}
|
|
|
|
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, ErrIntOverflowAcl
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowAcl
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthAcl
|
|
|
|
}
|
|
|
|
iNdEx += length
|
|
|
|
case 3:
|
2021-08-12 18:05:46 +00:00
|
|
|
depth++
|
2019-09-20 18:37:22 +00:00
|
|
|
case 4:
|
2021-08-12 18:05:46 +00:00
|
|
|
if depth == 0 {
|
|
|
|
return 0, ErrUnexpectedEndOfGroupAcl
|
|
|
|
}
|
|
|
|
depth--
|
2019-09-20 18:37:22 +00:00
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
2021-08-12 18:05:46 +00:00
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthAcl
|
|
|
|
}
|
|
|
|
if depth == 0 {
|
|
|
|
return iNdEx, nil
|
|
|
|
}
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
2021-08-12 18:05:46 +00:00
|
|
|
return 0, io.ErrUnexpectedEOF
|
2019-09-20 18:37:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2021-08-12 18:05:46 +00:00
|
|
|
ErrInvalidLengthAcl = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowAcl = fmt.Errorf("proto: integer overflow")
|
|
|
|
ErrUnexpectedEndOfGroupAcl = fmt.Errorf("proto: unexpected end of group")
|
2019-09-20 18:37:22 +00:00
|
|
|
)
|