|
|
|
|
@ -303,6 +303,65 @@ func (m *StreamMetadata) GetTotalSize() uint64 { |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type StreamMetadataRecord struct { |
|
|
|
|
Zone string `protobuf:"bytes,1,opt,name=zone,proto3" json:"zone,omitempty"` |
|
|
|
|
Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"` |
|
|
|
|
Metadata *StreamMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *StreamMetadataRecord) Reset() { *m = StreamMetadataRecord{} } |
|
|
|
|
func (*StreamMetadataRecord) ProtoMessage() {} |
|
|
|
|
func (*StreamMetadataRecord) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_aaed9e7d5298ac0f, []int{6} |
|
|
|
|
} |
|
|
|
|
func (m *StreamMetadataRecord) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
} |
|
|
|
|
func (m *StreamMetadataRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
if deterministic { |
|
|
|
|
return xxx_messageInfo_StreamMetadataRecord.Marshal(b, m, deterministic) |
|
|
|
|
} else { |
|
|
|
|
b = b[:cap(b)] |
|
|
|
|
n, err := m.MarshalToSizedBuffer(b) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return b[:n], nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
func (m *StreamMetadataRecord) XXX_Merge(src proto.Message) { |
|
|
|
|
xxx_messageInfo_StreamMetadataRecord.Merge(m, src) |
|
|
|
|
} |
|
|
|
|
func (m *StreamMetadataRecord) XXX_Size() int { |
|
|
|
|
return m.Size() |
|
|
|
|
} |
|
|
|
|
func (m *StreamMetadataRecord) XXX_DiscardUnknown() { |
|
|
|
|
xxx_messageInfo_StreamMetadataRecord.DiscardUnknown(m) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_StreamMetadataRecord proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
|
func (m *StreamMetadataRecord) GetZone() string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Zone |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *StreamMetadataRecord) GetTenant() string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Tenant |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *StreamMetadataRecord) GetMetadata() *StreamMetadata { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Metadata |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
|
proto.RegisterType((*ExceedsLimitsRequest)(nil), "proto.ExceedsLimitsRequest") |
|
|
|
|
proto.RegisterType((*ExceedsLimitsResponse)(nil), "proto.ExceedsLimitsResponse") |
|
|
|
|
@ -311,41 +370,44 @@ func init() { |
|
|
|
|
proto.RegisterType((*GetAssignedPartitionsResponse)(nil), "proto.GetAssignedPartitionsResponse") |
|
|
|
|
proto.RegisterMapType((map[int32]int64)(nil), "proto.GetAssignedPartitionsResponse.AssignedPartitionsEntry") |
|
|
|
|
proto.RegisterType((*StreamMetadata)(nil), "proto.StreamMetadata") |
|
|
|
|
proto.RegisterType((*StreamMetadataRecord)(nil), "proto.StreamMetadataRecord") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("pkg/limits/proto/limits.proto", fileDescriptor_aaed9e7d5298ac0f) } |
|
|
|
|
|
|
|
|
|
var fileDescriptor_aaed9e7d5298ac0f = []byte{ |
|
|
|
|
// 449 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac,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0x17, 0xb6, 0xce, 0xa4, 0x25, 0xee, 0x56, |
|
|
|
|
0x67, 0xec, 0x8f, 0xdd, 0xee, 0xac, 0xf8, 0x01, 0xfc, 0x99, 0x14, 0x1b, 0x7e, 0xe7, 0x70, 0xfd, |
|
|
|
|
0xf4, 0x9a, 0xab, 0xc5, 0x8b, 0x10, 0x5a, 0x95, 0x41, 0x89, 0x7b, 0x97, 0xc7, 0x58, 0xd0, 0xef, |
|
|
|
|
0xff, 0x4f, 0xd6, 0x8a, 0x3d, 0xdd, 0x99, 0xcd, 0x25, 0x3b, 0x9a, 0x4b, 0x76, 0x3c, 0x97, 0xfc, |
|
|
|
|
0x4b, 0x2e, 0xf9, 0xb7, 0x5c, 0xf2, 0x1f, 0xb9, 0xe4, 0xb3, 0x5c, 0xf2, 0x5f, 0xb9, 0xe4, 0xbf, |
|
|
|
|
0x73, 0xc9, 0x8e, 0x73, 0xc9, 0xbf, 0x2e, 0x24, 0x9b, 0x2d, 0x24, 0x3b, 0x5a, 0x48, 0xf6, 0x76, |
|
|
|
|
0xdd, 0xc3, 0x1f, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x14, 0x3f, 0x94, 0x86, 0xd5, 0x03, 0x00, |
|
|
|
|
0x00, |
|
|
|
|
// 487 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xbf, 0x6e, 0x13, 0x41, |
|
|
|
|
0x10, 0xc6, 0x6f, 0xed, 0x38, 0x21, 0x03, 0x41, 0x68, 0xb1, 0xe1, 0x64, 0x9c, 0x95, 0x75, 0x50, |
|
|
|
|
0xb8, 0xb2, 0x85, 0x49, 0x81, 0x10, 0x0d, 0x48, 0xe6, 0x8f, 0x14, 0x23, 0xb4, 0x79, 0x00, 0xb4, |
|
|
|
|
0xe4, 0x46, 0xe6, 0x94, 0xf3, 0x9e, 0xb9, 0x9d, 0x43, 0x24,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d9, 0x1d, 0xd7, 0x1b, 0x6b, 0xb8, 0xb3, 0xdb, 0x09, 0xbc, |
|
|
|
|
0xee, 0x57, 0x06, 0xd7, 0xe6, 0xc7, 0xfc, 0x5f, 0x7b, 0x1e, 0x42, 0x6d, 0x25, 0x1f, 0xfc, 0xee, |
|
|
|
|
0xe5, 0xf4, 0x14, 0xee, 0xf7, 0xfe, 0x05, 0xb1, 0xc0, 0x7b, 0xba, 0x37, 0x9e, 0x08, 0xef, 0x74, |
|
|
|
|
0x22, 0xbc, 0xb3, 0x89, 0x60, 0x9f, 0x72, 0xc1, 0xbe, 0xe4, 0x82, 0x7d, 0xcb, 0x05, 0x1b, 0xe7, |
|
|
|
|
0x82, 0xfd, 0xc8, 0x05, 0xfb, 0x99, 0x0b, 0xef, 0x2c, 0x17, 0xec, 0xf3, 0x54, 0x78, 0xe3, 0xa9, |
|
|
|
|
0xf0, 0x4e, 0xa7, 0xc2, 0x7b, 0xbb, 0x69, 0xcd, 0x1f, 0xfc, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x36, |
|
|
|
|
0x1b, 0xa0, 0x70, 0x4c, 0x04, 0x00, 0x00, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (this *ExceedsLimitsRequest) Equal(that interface{}) bool { |
|
|
|
|
@ -513,6 +575,36 @@ func (this *StreamMetadata) Equal(that interface{}) bool { |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
func (this *StreamMetadataRecord) Equal(that interface{}) bool { |
|
|
|
|
if that == nil { |
|
|
|
|
return this == nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
that1, ok := that.(*StreamMetadataRecord) |
|
|
|
|
if !ok { |
|
|
|
|
that2, ok := that.(StreamMetadataRecord) |
|
|
|
|
if ok { |
|
|
|
|
that1 = &that2 |
|
|
|
|
} else { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if that1 == nil { |
|
|
|
|
return this == nil |
|
|
|
|
} else if this == nil { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if this.Zone != that1.Zone { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if this.Tenant != that1.Tenant { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if !this.Metadata.Equal(that1.Metadata) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
func (this *ExceedsLimitsRequest) GoString() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
@ -591,6 +683,20 @@ func (this *StreamMetadata) GoString() string { |
|
|
|
|
s = append(s, "}") |
|
|
|
|
return strings.Join(s, "") |
|
|
|
|
} |
|
|
|
|
func (this *StreamMetadataRecord) GoString() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
} |
|
|
|
|
s := make([]string, 0, 7) |
|
|
|
|
s = append(s, "&proto.StreamMetadataRecord{") |
|
|
|
|
s = append(s, "Zone: "+fmt.Sprintf("%#v", this.Zone)+",\n") |
|
|
|
|
s = append(s, "Tenant: "+fmt.Sprintf("%#v", this.Tenant)+",\n") |
|
|
|
|
if this.Metadata != nil { |
|
|
|
|
s = append(s, "Metadata: "+fmt.Sprintf("%#v", this.Metadata)+",\n") |
|
|
|
|
} |
|
|
|
|
s = append(s, "}") |
|
|
|
|
return strings.Join(s, "") |
|
|
|
|
} |
|
|
|
|
func valueToGoStringLimits(v interface{}, typ string) string { |
|
|
|
|
rv := reflect.ValueOf(v) |
|
|
|
|
if rv.IsNil() { |
|
|
|
|
@ -996,6 +1102,55 @@ func (m *StreamMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
|
return len(dAtA) - i, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *StreamMetadataRecord) Marshal() (dAtA []byte, err error) { |
|
|
|
|
size := m.Size() |
|
|
|
|
dAtA = make([]byte, size) |
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return dAtA[:n], nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *StreamMetadataRecord) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
size := m.Size() |
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *StreamMetadataRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
|
i := len(dAtA) |
|
|
|
|
_ = i |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
if m.Metadata != nil { |
|
|
|
|
{ |
|
|
|
|
size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i -= size |
|
|
|
|
i = encodeVarintLimits(dAtA, i, uint64(size)) |
|
|
|
|
} |
|
|
|
|
i-- |
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
} |
|
|
|
|
if len(m.Tenant) > 0 { |
|
|
|
|
i -= len(m.Tenant) |
|
|
|
|
copy(dAtA[i:], m.Tenant) |
|
|
|
|
i = encodeVarintLimits(dAtA, i, uint64(len(m.Tenant))) |
|
|
|
|
i-- |
|
|
|
|
dAtA[i] = 0x12 |
|
|
|
|
} |
|
|
|
|
if len(m.Zone) > 0 { |
|
|
|
|
i -= len(m.Zone) |
|
|
|
|
copy(dAtA[i:], m.Zone) |
|
|
|
|
i = encodeVarintLimits(dAtA, i, uint64(len(m.Zone))) |
|
|
|
|
i-- |
|
|
|
|
dAtA[i] = 0xa |
|
|
|
|
} |
|
|
|
|
return len(dAtA) - i, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func encodeVarintLimits(dAtA []byte, offset int, v uint64) int { |
|
|
|
|
offset -= sovLimits(v) |
|
|
|
|
base := offset |
|
|
|
|
@ -1097,6 +1252,27 @@ func (m *StreamMetadata) Size() (n int) { |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *StreamMetadataRecord) Size() (n int) { |
|
|
|
|
if m == nil { |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
l = len(m.Zone) |
|
|
|
|
if l > 0 { |
|
|
|
|
n += 1 + l + sovLimits(uint64(l)) |
|
|
|
|
} |
|
|
|
|
l = len(m.Tenant) |
|
|
|
|
if l > 0 { |
|
|
|
|
n += 1 + l + sovLimits(uint64(l)) |
|
|
|
|
} |
|
|
|
|
if m.Metadata != nil { |
|
|
|
|
l = m.Metadata.Size() |
|
|
|
|
n += 1 + l + sovLimits(uint64(l)) |
|
|
|
|
} |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func sovLimits(x uint64) (n int) { |
|
|
|
|
return (math_bits.Len64(x|1) + 6) / 7 |
|
|
|
|
} |
|
|
|
|
@ -1185,6 +1361,18 @@ func (this *StreamMetadata) String() string { |
|
|
|
|
}, "") |
|
|
|
|
return s |
|
|
|
|
} |
|
|
|
|
func (this *StreamMetadataRecord) String() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
} |
|
|
|
|
s := strings.Join([]string{`&StreamMetadataRecord{`, |
|
|
|
|
`Zone:` + fmt.Sprintf("%v", this.Zone) + `,`, |
|
|
|
|
`Tenant:` + fmt.Sprintf("%v", this.Tenant) + `,`, |
|
|
|
|
`Metadata:` + strings.Replace(this.Metadata.String(), "StreamMetadata", "StreamMetadata", 1) + `,`, |
|
|
|
|
`}`, |
|
|
|
|
}, "") |
|
|
|
|
return s |
|
|
|
|
} |
|
|
|
|
func valueToStringLimits(v interface{}) string { |
|
|
|
|
rv := reflect.ValueOf(v) |
|
|
|
|
if rv.IsNil() { |
|
|
|
|
@ -1786,6 +1974,159 @@ func (m *StreamMetadata) Unmarshal(dAtA []byte) error { |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
func (m *StreamMetadataRecord) 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 ErrIntOverflowLimits |
|
|
|
|
} |
|
|
|
|
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: StreamMetadataRecord: wiretype end group for non-group") |
|
|
|
|
} |
|
|
|
|
if fieldNum <= 0 { |
|
|
|
|
return fmt.Errorf("proto: StreamMetadataRecord: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
|
} |
|
|
|
|
switch fieldNum { |
|
|
|
|
case 1: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Zone", wireType) |
|
|
|
|
} |
|
|
|
|
var stringLen uint64 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowLimits |
|
|
|
|
} |
|
|
|
|
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 ErrInvalidLengthLimits |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + intStringLen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthLimits |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.Zone = string(dAtA[iNdEx:postIndex]) |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 2: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Tenant", wireType) |
|
|
|
|
} |
|
|
|
|
var stringLen uint64 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowLimits |
|
|
|
|
} |
|
|
|
|
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 ErrInvalidLengthLimits |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + intStringLen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthLimits |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.Tenant = string(dAtA[iNdEx:postIndex]) |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 3: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) |
|
|
|
|
} |
|
|
|
|
var msglen int |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowLimits |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if msglen < 0 { |
|
|
|
|
return ErrInvalidLengthLimits |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthLimits |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
if m.Metadata == nil { |
|
|
|
|
m.Metadata = &StreamMetadata{} |
|
|
|
|
} |
|
|
|
|
if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
default: |
|
|
|
|
iNdEx = preIndex |
|
|
|
|
skippy, err := skipLimits(dAtA[iNdEx:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
if skippy < 0 { |
|
|
|
|
return ErrInvalidLengthLimits |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) < 0 { |
|
|
|
|
return ErrInvalidLengthLimits |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
iNdEx += skippy |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
func skipLimits(dAtA []byte) (n int, err error) { |
|
|
|
|
l := len(dAtA) |
|
|
|
|
iNdEx := 0 |
|
|
|
|
|