2020-08-12 09:57:28 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2020-08-14 16:00:16 +00:00
|
|
|
// source: v2/service/grpc/meta.proto
|
2020-08-12 09:57:28 +00:00
|
|
|
|
2020-08-13 12:43:47 +00:00
|
|
|
package service
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
2020-08-14 16:00:16 +00:00
|
|
|
grpc1 "github.com/nspcc-dev/neofs-api-go/v2/acl/grpc"
|
|
|
|
grpc "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
|
2020-08-12 09:57:28 +00:00
|
|
|
io "io"
|
|
|
|
math "math"
|
|
|
|
math_bits "math/bits"
|
|
|
|
)
|
|
|
|
|
|
|
|
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
// Object request verbs
|
|
|
|
type ObjectServiceContext_Verb int32
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
const (
|
2020-08-14 06:49:05 +00:00
|
|
|
// Unknown verb
|
2020-08-17 11:29:50 +00:00
|
|
|
ObjectServiceContext_VERB_UNSPECIFIED ObjectServiceContext_Verb = 0
|
2020-08-12 09:57:28 +00:00
|
|
|
// Refers to object.Put RPC call
|
2020-08-17 11:29:50 +00:00
|
|
|
ObjectServiceContext_PUT ObjectServiceContext_Verb = 1
|
2020-08-12 09:57:28 +00:00
|
|
|
// Refers to object.Get RPC call
|
2020-08-17 11:29:50 +00:00
|
|
|
ObjectServiceContext_GET ObjectServiceContext_Verb = 2
|
2020-08-12 09:57:28 +00:00
|
|
|
// Refers to object.Head RPC call
|
2020-08-17 11:29:50 +00:00
|
|
|
ObjectServiceContext_HEAD ObjectServiceContext_Verb = 3
|
2020-08-12 09:57:28 +00:00
|
|
|
// Refers to object.Search RPC call
|
2020-08-17 11:29:50 +00:00
|
|
|
ObjectServiceContext_SEARCH ObjectServiceContext_Verb = 4
|
2020-08-12 09:57:28 +00:00
|
|
|
// Refers to object.Delete RPC call
|
2020-08-17 11:29:50 +00:00
|
|
|
ObjectServiceContext_DELETE ObjectServiceContext_Verb = 5
|
2020-08-12 09:57:28 +00:00
|
|
|
// Refers to object.GetRange RPC call
|
2020-08-17 11:29:50 +00:00
|
|
|
ObjectServiceContext_RANGE ObjectServiceContext_Verb = 6
|
2020-08-12 09:57:28 +00:00
|
|
|
// Refers to object.GetRangeHash RPC call
|
2020-08-17 11:29:50 +00:00
|
|
|
ObjectServiceContext_RANGEHASH ObjectServiceContext_Verb = 7
|
2020-08-12 09:57:28 +00:00
|
|
|
)
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
var ObjectServiceContext_Verb_name = map[int32]string{
|
2020-08-14 06:49:05 +00:00
|
|
|
0: "VERB_UNSPECIFIED",
|
2020-08-17 11:29:50 +00:00
|
|
|
1: "PUT",
|
|
|
|
2: "GET",
|
|
|
|
3: "HEAD",
|
|
|
|
4: "SEARCH",
|
|
|
|
5: "DELETE",
|
|
|
|
6: "RANGE",
|
|
|
|
7: "RANGEHASH",
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
var ObjectServiceContext_Verb_value = map[string]int32{
|
2020-08-14 06:49:05 +00:00
|
|
|
"VERB_UNSPECIFIED": 0,
|
2020-08-17 11:29:50 +00:00
|
|
|
"PUT": 1,
|
|
|
|
"GET": 2,
|
|
|
|
"HEAD": 3,
|
|
|
|
"SEARCH": 4,
|
|
|
|
"DELETE": 5,
|
|
|
|
"RANGE": 6,
|
|
|
|
"RANGEHASH": 7,
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (x ObjectServiceContext_Verb) String() string {
|
|
|
|
return proto.EnumName(ObjectServiceContext_Verb_name, int32(x))
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (ObjectServiceContext_Verb) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{3, 0}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-14 06:49:05 +00:00
|
|
|
// Extended headers for Request/Response
|
2020-08-12 09:57:28 +00:00
|
|
|
type XHeader struct {
|
|
|
|
// Key of the X-Header.
|
|
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
// Value of the X-Header.
|
|
|
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *XHeader) Reset() { *m = XHeader{} }
|
|
|
|
func (m *XHeader) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*XHeader) ProtoMessage() {}
|
|
|
|
func (*XHeader) Descriptor() ([]byte, []int) {
|
2020-08-14 16:00:16 +00:00
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{0}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
func (m *XHeader) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *XHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_XHeader.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 *XHeader) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_XHeader.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *XHeader) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *XHeader) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_XHeader.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_XHeader proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *XHeader) GetKey() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Key
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *XHeader) GetValue() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Value
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// Represents API version used by node.
|
|
|
|
type Version struct {
|
|
|
|
// Major API version.
|
|
|
|
Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
|
|
|
|
// Minor API version.
|
|
|
|
Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Version) Reset() { *m = Version{} }
|
|
|
|
func (m *Version) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Version) ProtoMessage() {}
|
|
|
|
func (*Version) Descriptor() ([]byte, []int) {
|
2020-08-14 16:00:16 +00:00
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{1}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
func (m *Version) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_Version.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 *Version) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Version.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Version) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Version) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Version.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Version proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Version) GetMajor() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Major
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Version) GetMinor() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Minor
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Lifetime parameters of the token. Filed names taken from rfc7519.
|
|
|
|
type TokenLifetime struct {
|
|
|
|
// Expiration Epoch
|
|
|
|
Exp uint64 `protobuf:"varint,1,opt,name=exp,proto3" json:"exp,omitempty"`
|
|
|
|
// Not valid before Epoch
|
|
|
|
Nbf uint64 `protobuf:"varint,2,opt,name=nbf,proto3" json:"nbf,omitempty"`
|
|
|
|
// Issued at Epoch
|
|
|
|
Iat uint64 `protobuf:"varint,3,opt,name=iat,proto3" json:"iat,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TokenLifetime) Reset() { *m = TokenLifetime{} }
|
|
|
|
func (m *TokenLifetime) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TokenLifetime) ProtoMessage() {}
|
|
|
|
func (*TokenLifetime) Descriptor() ([]byte, []int) {
|
2020-08-14 16:00:16 +00:00
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{2}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
func (m *TokenLifetime) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *TokenLifetime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_TokenLifetime.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 *TokenLifetime) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TokenLifetime.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *TokenLifetime) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *TokenLifetime) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TokenLifetime.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_TokenLifetime proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *TokenLifetime) GetExp() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Exp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TokenLifetime) GetNbf() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Nbf
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TokenLifetime) GetIat() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Iat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
// Context information for Session Tokens related to ObjectService requests
|
|
|
|
type ObjectServiceContext struct {
|
|
|
|
// Verb is a type of request for which the token is issued
|
|
|
|
Verb ObjectServiceContext_Verb `protobuf:"varint,1,opt,name=verb,proto3,enum=neo.fs.v2.service.ObjectServiceContext_Verb" json:"verb,omitempty"`
|
|
|
|
// Related Object address
|
|
|
|
Address *grpc.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ObjectServiceContext) Reset() { *m = ObjectServiceContext{} }
|
|
|
|
func (m *ObjectServiceContext) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ObjectServiceContext) ProtoMessage() {}
|
|
|
|
func (*ObjectServiceContext) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{3}
|
|
|
|
}
|
|
|
|
func (m *ObjectServiceContext) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ObjectServiceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_ObjectServiceContext.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 *ObjectServiceContext) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ObjectServiceContext.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ObjectServiceContext) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ObjectServiceContext) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ObjectServiceContext.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ObjectServiceContext proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ObjectServiceContext) GetVerb() ObjectServiceContext_Verb {
|
|
|
|
if m != nil {
|
|
|
|
return m.Verb
|
|
|
|
}
|
|
|
|
return ObjectServiceContext_VERB_UNSPECIFIED
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ObjectServiceContext) GetAddress() *grpc.Address {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-12 09:57:28 +00:00
|
|
|
// NeoFS session token.
|
|
|
|
type SessionToken struct {
|
|
|
|
// Session Token body
|
2020-08-14 06:49:05 +00:00
|
|
|
Body *SessionToken_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
// Signature is a signature of session token information
|
|
|
|
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken) Reset() { *m = SessionToken{} }
|
|
|
|
func (m *SessionToken) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SessionToken) ProtoMessage() {}
|
|
|
|
func (*SessionToken) Descriptor() ([]byte, []int) {
|
2020-08-17 11:29:50 +00:00
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{4}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
func (m *SessionToken) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *SessionToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_SessionToken.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 *SessionToken) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SessionToken.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *SessionToken) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *SessionToken) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SessionToken.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SessionToken proto.InternalMessageInfo
|
|
|
|
|
2020-08-14 06:49:05 +00:00
|
|
|
func (m *SessionToken) GetBody() *SessionToken_Body {
|
2020-08-12 09:57:28 +00:00
|
|
|
if m != nil {
|
2020-08-14 06:49:05 +00:00
|
|
|
return m.Body
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken) GetSignature() *Signature {
|
|
|
|
if m != nil {
|
|
|
|
return m.Signature
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-14 06:49:05 +00:00
|
|
|
// Session token body
|
2020-08-12 09:57:28 +00:00
|
|
|
type SessionToken_Body struct {
|
|
|
|
// ID is a token identifier. valid UUIDv4 represented in bytes
|
|
|
|
Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
// OwnerID carries identifier of the session initiator.
|
2020-08-14 16:00:16 +00:00
|
|
|
OwnerId *grpc.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
// Lifetime is a lifetime of the session
|
2020-08-17 11:29:50 +00:00
|
|
|
Lifetime *TokenLifetime `protobuf:"bytes,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
// SessionKey is a public key of session key
|
2020-08-17 11:29:50 +00:00
|
|
|
SessionKey []byte `protobuf:"bytes,4,opt,name=session_key,json=sessionKey,proto3" json:"session_key,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
// Carries context of the session.
|
|
|
|
//
|
|
|
|
// Types that are valid to be assigned to Context:
|
2020-08-17 11:29:50 +00:00
|
|
|
// *SessionToken_Body_ObjectService
|
2020-08-12 09:57:28 +00:00
|
|
|
Context isSessionToken_Body_Context `protobuf_oneof:"context"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken_Body) Reset() { *m = SessionToken_Body{} }
|
|
|
|
func (m *SessionToken_Body) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SessionToken_Body) ProtoMessage() {}
|
|
|
|
func (*SessionToken_Body) Descriptor() ([]byte, []int) {
|
2020-08-17 11:29:50 +00:00
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{4, 0}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
func (m *SessionToken_Body) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *SessionToken_Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_SessionToken_Body.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 *SessionToken_Body) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SessionToken_Body.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *SessionToken_Body) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *SessionToken_Body) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SessionToken_Body.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SessionToken_Body proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type isSessionToken_Body_Context interface {
|
|
|
|
isSessionToken_Body_Context()
|
|
|
|
MarshalTo([]byte) (int, error)
|
|
|
|
Size() int
|
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
type SessionToken_Body_ObjectService struct {
|
|
|
|
ObjectService *ObjectServiceContext `protobuf:"bytes,5,opt,name=object_service,json=objectService,proto3,oneof" json:"object_service,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (*SessionToken_Body_ObjectService) isSessionToken_Body_Context() {}
|
2020-08-12 09:57:28 +00:00
|
|
|
|
|
|
|
func (m *SessionToken_Body) GetContext() isSessionToken_Body_Context {
|
|
|
|
if m != nil {
|
|
|
|
return m.Context
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken_Body) GetId() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-14 16:00:16 +00:00
|
|
|
func (m *SessionToken_Body) GetOwnerId() *grpc.OwnerID {
|
2020-08-12 09:57:28 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.OwnerId
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken_Body) GetLifetime() *TokenLifetime {
|
|
|
|
if m != nil {
|
|
|
|
return m.Lifetime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken_Body) GetSessionKey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.SessionKey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (m *SessionToken_Body) GetObjectService() *ObjectServiceContext {
|
|
|
|
if x, ok := m.GetContext().(*SessionToken_Body_ObjectService); ok {
|
|
|
|
return x.ObjectService
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
|
|
func (*SessionToken_Body) XXX_OneofWrappers() []interface{} {
|
|
|
|
return []interface{}{
|
2020-08-17 11:29:50 +00:00
|
|
|
(*SessionToken_Body_ObjectService)(nil),
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// BearerToken has information about request ACL rules with limited lifetime
|
|
|
|
type BearerToken struct {
|
|
|
|
// Bearer Token body
|
2020-08-14 06:49:05 +00:00
|
|
|
Body *BearerToken_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
// Signature of BearerToken body
|
|
|
|
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BearerToken) Reset() { *m = BearerToken{} }
|
|
|
|
func (m *BearerToken) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BearerToken) ProtoMessage() {}
|
|
|
|
func (*BearerToken) Descriptor() ([]byte, []int) {
|
2020-08-17 11:29:50 +00:00
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{5}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
func (m *BearerToken) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *BearerToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_BearerToken.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 *BearerToken) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BearerToken.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *BearerToken) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *BearerToken) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BearerToken.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BearerToken proto.InternalMessageInfo
|
|
|
|
|
2020-08-14 06:49:05 +00:00
|
|
|
func (m *BearerToken) GetBody() *BearerToken_Body {
|
2020-08-12 09:57:28 +00:00
|
|
|
if m != nil {
|
2020-08-14 06:49:05 +00:00
|
|
|
return m.Body
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BearerToken) GetSignature() *Signature {
|
|
|
|
if m != nil {
|
|
|
|
return m.Signature
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-14 06:49:05 +00:00
|
|
|
// Bearer Token body
|
2020-08-12 09:57:28 +00:00
|
|
|
type BearerToken_Body struct {
|
|
|
|
// EACLTable carries table of extended ACL rules
|
2020-08-14 16:00:16 +00:00
|
|
|
EaclTable *grpc1.EACLTable `protobuf:"bytes,1,opt,name=eacl_table,json=eaclTable,proto3" json:"eacl_table,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
// OwnerID carries identifier of the token owner
|
2020-08-14 16:00:16 +00:00
|
|
|
OwnerId *grpc.OwnerID `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
// Token expiration and valid time period parameters
|
|
|
|
Lifetime *TokenLifetime `protobuf:"bytes,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BearerToken_Body) Reset() { *m = BearerToken_Body{} }
|
|
|
|
func (m *BearerToken_Body) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BearerToken_Body) ProtoMessage() {}
|
|
|
|
func (*BearerToken_Body) Descriptor() ([]byte, []int) {
|
2020-08-17 11:29:50 +00:00
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{5, 0}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
func (m *BearerToken_Body) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *BearerToken_Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_BearerToken_Body.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 *BearerToken_Body) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BearerToken_Body.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *BearerToken_Body) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *BearerToken_Body) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BearerToken_Body.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BearerToken_Body proto.InternalMessageInfo
|
|
|
|
|
2020-08-14 16:00:16 +00:00
|
|
|
func (m *BearerToken_Body) GetEaclTable() *grpc1.EACLTable {
|
2020-08-12 09:57:28 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.EaclTable
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-14 16:00:16 +00:00
|
|
|
func (m *BearerToken_Body) GetOwnerId() *grpc.OwnerID {
|
2020-08-12 09:57:28 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.OwnerId
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BearerToken_Body) GetLifetime() *TokenLifetime {
|
|
|
|
if m != nil {
|
|
|
|
return m.Lifetime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Information about the request
|
|
|
|
type RequestMetaHeader struct {
|
|
|
|
// Client API version.
|
|
|
|
Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
// Client local epoch number. Set to 0 if unknown.
|
|
|
|
Epoch uint64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"`
|
|
|
|
// Maximum number of nodes in the request route.
|
|
|
|
Ttl uint32 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
|
|
// Request X-Headers.
|
|
|
|
XHeaders []*XHeader `protobuf:"bytes,4,rep,name=x_headers,json=xHeaders,proto3" json:"x_headers,omitempty"`
|
|
|
|
// Token is a token of the session within which the request is sent
|
2020-08-14 06:49:05 +00:00
|
|
|
SessionToken *SessionToken `protobuf:"bytes,5,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
// Bearer is a Bearer token of the request
|
2020-08-14 06:49:05 +00:00
|
|
|
BearerToken *BearerToken `protobuf:"bytes,6,opt,name=bearer_token,json=bearerToken,proto3" json:"bearer_token,omitempty"`
|
2020-08-12 09:57:28 +00:00
|
|
|
// RequestMetaHeader of the origin request.
|
|
|
|
Origin *RequestMetaHeader `protobuf:"bytes,7,opt,name=origin,proto3" json:"origin,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestMetaHeader) Reset() { *m = RequestMetaHeader{} }
|
|
|
|
func (m *RequestMetaHeader) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RequestMetaHeader) ProtoMessage() {}
|
|
|
|
func (*RequestMetaHeader) Descriptor() ([]byte, []int) {
|
2020-08-17 11:29:50 +00:00
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{6}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
func (m *RequestMetaHeader) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *RequestMetaHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_RequestMetaHeader.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 *RequestMetaHeader) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RequestMetaHeader.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RequestMetaHeader) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *RequestMetaHeader) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RequestMetaHeader.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RequestMetaHeader proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *RequestMetaHeader) GetVersion() *Version {
|
|
|
|
if m != nil {
|
|
|
|
return m.Version
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestMetaHeader) GetEpoch() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Epoch
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestMetaHeader) GetTtl() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Ttl
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestMetaHeader) GetXHeaders() []*XHeader {
|
|
|
|
if m != nil {
|
|
|
|
return m.XHeaders
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-14 06:49:05 +00:00
|
|
|
func (m *RequestMetaHeader) GetSessionToken() *SessionToken {
|
2020-08-12 09:57:28 +00:00
|
|
|
if m != nil {
|
2020-08-14 06:49:05 +00:00
|
|
|
return m.SessionToken
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-08-14 06:49:05 +00:00
|
|
|
func (m *RequestMetaHeader) GetBearerToken() *BearerToken {
|
2020-08-12 09:57:28 +00:00
|
|
|
if m != nil {
|
2020-08-14 06:49:05 +00:00
|
|
|
return m.BearerToken
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestMetaHeader) GetOrigin() *RequestMetaHeader {
|
|
|
|
if m != nil {
|
|
|
|
return m.Origin
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Information about the response
|
|
|
|
type ResponseMetaHeader struct {
|
|
|
|
// Server API version.
|
|
|
|
Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
// Server local epoch number.
|
|
|
|
Epoch uint64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"`
|
|
|
|
// Maximum number of nodes in the response route.
|
|
|
|
Ttl uint32 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
|
|
// Response X-Headers.
|
|
|
|
XHeaders []*XHeader `protobuf:"bytes,4,rep,name=x_headers,json=xHeaders,proto3" json:"x_headers,omitempty"`
|
|
|
|
// Carries response meta header of the origin response.
|
|
|
|
Origin *ResponseMetaHeader `protobuf:"bytes,5,opt,name=origin,proto3" json:"origin,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseMetaHeader) Reset() { *m = ResponseMetaHeader{} }
|
|
|
|
func (m *ResponseMetaHeader) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ResponseMetaHeader) ProtoMessage() {}
|
|
|
|
func (*ResponseMetaHeader) Descriptor() ([]byte, []int) {
|
2020-08-17 11:29:50 +00:00
|
|
|
return fileDescriptor_174eb6ef9ee2b356, []int{7}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
func (m *ResponseMetaHeader) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ResponseMetaHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_ResponseMetaHeader.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 *ResponseMetaHeader) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ResponseMetaHeader.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ResponseMetaHeader) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ResponseMetaHeader) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ResponseMetaHeader.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ResponseMetaHeader proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ResponseMetaHeader) GetVersion() *Version {
|
|
|
|
if m != nil {
|
|
|
|
return m.Version
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseMetaHeader) GetEpoch() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Epoch
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseMetaHeader) GetTtl() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Ttl
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseMetaHeader) GetXHeaders() []*XHeader {
|
|
|
|
if m != nil {
|
|
|
|
return m.XHeaders
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseMetaHeader) GetOrigin() *ResponseMetaHeader {
|
|
|
|
if m != nil {
|
|
|
|
return m.Origin
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2020-08-17 11:29:50 +00:00
|
|
|
proto.RegisterEnum("neo.fs.v2.service.ObjectServiceContext_Verb", ObjectServiceContext_Verb_name, ObjectServiceContext_Verb_value)
|
2020-08-13 12:43:47 +00:00
|
|
|
proto.RegisterType((*XHeader)(nil), "neo.fs.v2.service.XHeader")
|
|
|
|
proto.RegisterType((*Version)(nil), "neo.fs.v2.service.Version")
|
|
|
|
proto.RegisterType((*TokenLifetime)(nil), "neo.fs.v2.service.TokenLifetime")
|
2020-08-17 11:29:50 +00:00
|
|
|
proto.RegisterType((*ObjectServiceContext)(nil), "neo.fs.v2.service.ObjectServiceContext")
|
2020-08-13 12:43:47 +00:00
|
|
|
proto.RegisterType((*SessionToken)(nil), "neo.fs.v2.service.SessionToken")
|
|
|
|
proto.RegisterType((*SessionToken_Body)(nil), "neo.fs.v2.service.SessionToken.Body")
|
|
|
|
proto.RegisterType((*BearerToken)(nil), "neo.fs.v2.service.BearerToken")
|
|
|
|
proto.RegisterType((*BearerToken_Body)(nil), "neo.fs.v2.service.BearerToken.Body")
|
|
|
|
proto.RegisterType((*RequestMetaHeader)(nil), "neo.fs.v2.service.RequestMetaHeader")
|
|
|
|
proto.RegisterType((*ResponseMetaHeader)(nil), "neo.fs.v2.service.ResponseMetaHeader")
|
|
|
|
}
|
|
|
|
|
2020-08-14 16:00:16 +00:00
|
|
|
func init() { proto.RegisterFile("v2/service/grpc/meta.proto", fileDescriptor_174eb6ef9ee2b356) }
|
2020-08-13 12:43:47 +00:00
|
|
|
|
2020-08-14 16:00:16 +00:00
|
|
|
var fileDescriptor_174eb6ef9ee2b356 = []byte{
|
2020-08-17 11:29:50 +00:00
|
|
|
// 846 bytes of a gzipped FileDescriptorProto
|
2020-08-14 06:49:05 +00:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xcd, 0x6e, 0x23, 0x45,
|
2020-08-17 11:29:50 +00:00
|
|
|
0x10, 0xce, 0xd8, 0x13, 0x4f, 0x5c, 0x8e, 0xa3, 0xd9, 0x56, 0xa4, 0xb5, 0xac, 0x95, 0x37, 0x1a,
|
|
|
|
0x40, 0x70, 0x20, 0x63, 0xed, 0x00, 0x0a, 0x3f, 0x8b, 0x84, 0x1d, 0xcf, 0xae, 0x2d, 0x42, 0x36,
|
|
|
|
0x6a, 0x7b, 0x23, 0xc4, 0xc5, 0x9a, 0x9f, 0xb2, 0x33, 0x59, 0x67, 0xda, 0x4c, 0x77, 0x86, 0xf8,
|
|
|
|
0x05, 0xb8, 0x71, 0xe7, 0x19, 0xb8, 0x71, 0xe1, 0x19, 0x38, 0xf2, 0x08, 0x28, 0xdc, 0xb8, 0x71,
|
|
|
|
0xe2, 0x8a, 0xba, 0xa7, 0xbd, 0x78, 0x13, 0x07, 0x38, 0x20, 0xc4, 0xad, 0xba, 0xea, 0xab, 0xaf,
|
|
|
|
0x7e, 0xa7, 0x06, 0x9a, 0xb9, 0xd7, 0xe6, 0x98, 0xe5, 0x49, 0x84, 0xed, 0x69, 0x36, 0x8f, 0xda,
|
|
|
|
0x17, 0x28, 0x02, 0x77, 0x9e, 0x31, 0xc1, 0xc8, 0xbd, 0x14, 0x99, 0x3b, 0xe1, 0x6e, 0xee, 0xb9,
|
|
|
|
0x1a, 0xd2, 0xbc, 0x9f, 0x7b, 0xed, 0x20, 0x9a, 0x15, 0x50, 0xb1, 0x98, 0x23, 0x2f, 0xb0, 0xcd,
|
|
|
|
0x46, 0xee, 0xb5, 0x33, 0x9c, 0xf0, 0xdb, 0x96, 0x07, 0x37, 0x23, 0xe4, 0x98, 0x25, 0x93, 0x45,
|
|
|
|
0x61, 0x75, 0x1e, 0x81, 0xf5, 0x79, 0x1f, 0x83, 0x18, 0x33, 0x62, 0x43, 0xf9, 0x05, 0x2e, 0x1a,
|
|
|
|
0xc6, 0x9e, 0xf1, 0x56, 0x95, 0x4a, 0x91, 0xec, 0xc2, 0x66, 0x1e, 0xcc, 0x2e, 0xb1, 0x51, 0x52,
|
|
|
|
0xba, 0xe2, 0xe1, 0xbc, 0x07, 0xd6, 0x29, 0x66, 0x3c, 0x61, 0xa9, 0x04, 0x5c, 0x04, 0xe7, 0x2c,
|
|
|
|
0x53, 0x4e, 0x75, 0x5a, 0x3c, 0x94, 0x36, 0x49, 0x59, 0xa6, 0xdc, 0xa4, 0x56, 0x3e, 0x1c, 0x1f,
|
|
|
|
0xea, 0x23, 0xf6, 0x02, 0xd3, 0xa3, 0x64, 0x82, 0x22, 0xb9, 0x40, 0x19, 0x0f, 0xaf, 0xe6, 0xca,
|
|
|
|
0xd5, 0xa4, 0x52, 0x94, 0x9a, 0x34, 0x9c, 0x28, 0x37, 0x93, 0x4a, 0x51, 0x6a, 0x92, 0x40, 0x34,
|
|
|
|
0xca, 0x85, 0x26, 0x09, 0x84, 0xf3, 0xbb, 0x01, 0xbb, 0xcf, 0xc2, 0x73, 0x8c, 0xc4, 0xb0, 0x28,
|
|
|
|
0xea, 0x90, 0xa5, 0x02, 0xaf, 0x04, 0xf9, 0x04, 0xcc, 0x1c, 0xb3, 0x50, 0xf1, 0xed, 0x78, 0x6f,
|
|
|
|
0xbb, 0xb7, 0x9a, 0xe7, 0xae, 0x73, 0x73, 0x4f, 0x31, 0x0b, 0xa9, 0xf2, 0x24, 0x8f, 0xc0, 0x0a,
|
|
|
|
0xe2, 0x38, 0x43, 0xce, 0x55, 0x0a, 0x35, 0xef, 0xfe, 0x0a, 0x89, 0x6c, 0xae, 0xdb, 0x29, 0xcc,
|
|
|
|
0x74, 0x89, 0x73, 0xce, 0xc1, 0x94, 0x04, 0x64, 0x17, 0xec, 0x53, 0x9f, 0x76, 0xc7, 0xcf, 0x8f,
|
|
|
|
0x87, 0x27, 0xfe, 0xe1, 0xe0, 0xc9, 0xc0, 0xef, 0xd9, 0x1b, 0xc4, 0x82, 0xf2, 0xc9, 0xf3, 0x91,
|
|
|
|
0x6d, 0x48, 0xe1, 0xa9, 0x3f, 0xb2, 0x4b, 0x64, 0x0b, 0xcc, 0xbe, 0xdf, 0xe9, 0xd9, 0x65, 0x02,
|
|
|
|
0x50, 0x19, 0xfa, 0x1d, 0x7a, 0xd8, 0xb7, 0x4d, 0x29, 0xf7, 0xfc, 0x23, 0x7f, 0xe4, 0xdb, 0x9b,
|
|
|
|
0xa4, 0x0a, 0x9b, 0xb4, 0x73, 0xfc, 0xd4, 0xb7, 0x2b, 0xa4, 0x0e, 0x55, 0x25, 0xf6, 0x3b, 0xc3,
|
|
|
|
0xbe, 0x6d, 0x39, 0xdf, 0x94, 0x61, 0x7b, 0x88, 0x5c, 0x36, 0x5e, 0x35, 0x92, 0xbc, 0x0f, 0x66,
|
|
|
|
0xc8, 0xe2, 0x62, 0x62, 0x35, 0xef, 0xf5, 0x35, 0x15, 0xaf, 0xc2, 0xdd, 0x2e, 0x8b, 0x17, 0x54,
|
|
|
|
0x79, 0x90, 0x0f, 0xa1, 0xca, 0x93, 0x69, 0x1a, 0x88, 0xcb, 0x0c, 0x75, 0xad, 0x0f, 0xd6, 0xb9,
|
|
|
|
0x2f, 0x31, 0xf4, 0x4f, 0x78, 0xf3, 0xeb, 0x12, 0x98, 0x92, 0x8a, 0xec, 0x40, 0x29, 0x89, 0x55,
|
|
|
|
0xf0, 0x6d, 0x5a, 0x4a, 0x62, 0xe2, 0xc1, 0x16, 0xfb, 0x2a, 0xc5, 0x6c, 0x9c, 0xc4, 0x77, 0xf5,
|
|
|
|
0xef, 0x99, 0xb4, 0x0f, 0x7a, 0xd4, 0x52, 0xc0, 0x41, 0x4c, 0x1e, 0xc3, 0xd6, 0x4c, 0xef, 0x83,
|
|
|
|
0x1a, 0x72, 0xcd, 0xdb, 0x5b, 0x93, 0xc7, 0x2b, 0x7b, 0x43, 0x5f, 0x7a, 0x90, 0x87, 0x50, 0xe3,
|
|
|
|
0x45, 0x85, 0x63, 0xb9, 0xb9, 0xa6, 0x4a, 0x05, 0xb4, 0xea, 0x53, 0x5c, 0x90, 0x13, 0xd8, 0x61,
|
|
|
|
0x6a, 0xe8, 0x63, 0x4d, 0xd5, 0xd8, 0x54, 0x41, 0xde, 0xfc, 0x87, 0xdb, 0xd1, 0xdf, 0xa0, 0x75,
|
|
|
|
0xb6, 0xaa, 0xef, 0x56, 0xc1, 0x8a, 0x0a, 0x9b, 0xf3, 0x43, 0x09, 0x6a, 0x5d, 0x0c, 0x32, 0xcc,
|
|
|
|
0x8a, 0x71, 0x1c, 0xbc, 0x32, 0x8e, 0xd7, 0xd6, 0x84, 0x58, 0x41, 0xff, 0x5b, 0xd3, 0xf8, 0xde,
|
|
|
|
0xd0, 0xd3, 0x38, 0x00, 0xc0, 0x20, 0x9a, 0x8d, 0x45, 0x10, 0xce, 0x50, 0xe7, 0xd0, 0x58, 0x61,
|
|
|
|
0x09, 0xa2, 0x99, 0xeb, 0x77, 0x0e, 0x8f, 0x46, 0xd2, 0x4e, 0xab, 0x12, 0xab, 0xc4, 0xff, 0x7e,
|
|
|
|
0x6c, 0xce, 0x6f, 0x25, 0xb8, 0x47, 0xf1, 0xcb, 0x4b, 0xe4, 0xe2, 0x33, 0x14, 0x81, 0x3e, 0x3f,
|
|
|
|
0xef, 0x82, 0x95, 0x17, 0x67, 0x45, 0x67, 0xdf, 0x5c, 0x43, 0xa9, 0x0f, 0x0f, 0x5d, 0x42, 0xe5,
|
|
|
|
0xad, 0xc1, 0x39, 0x8b, 0xce, 0xf4, 0xd1, 0x28, 0x1e, 0xf2, 0x6c, 0x08, 0x31, 0x53, 0xa9, 0xd5,
|
|
|
|
0xa9, 0x14, 0xc9, 0x01, 0x54, 0xaf, 0xc6, 0x67, 0x2a, 0x12, 0x6f, 0x98, 0x7b, 0xe5, 0x3b, 0xf8,
|
|
|
|
0xf5, 0x2d, 0xa4, 0x5b, 0x57, 0x85, 0xc0, 0x49, 0x0f, 0xea, 0xcb, 0x1d, 0x13, 0xb2, 0x1e, 0xbd,
|
|
|
|
0x41, 0x0f, 0xff, 0xe6, 0x6b, 0xa3, 0xdb, 0x7c, 0xf5, 0x53, 0xed, 0xc0, 0x76, 0xa8, 0x86, 0xaf,
|
|
|
|
0x49, 0x2a, 0x8a, 0xa4, 0xf5, 0xd7, 0x3b, 0x42, 0x6b, 0xe1, 0xca, 0x7a, 0x3d, 0x86, 0x0a, 0xcb,
|
|
|
|
0x92, 0x69, 0x92, 0x36, 0xac, 0x3b, 0xbf, 0xf7, 0x5b, 0x5d, 0xa5, 0xda, 0xc7, 0xf9, 0xd5, 0x00,
|
|
|
|
0x42, 0x91, 0xcf, 0x59, 0xca, 0xf1, 0xff, 0xdf, 0xf4, 0x8f, 0x5f, 0xd6, 0x5a, 0x74, 0xfb, 0x8d,
|
|
|
|
0xb5, 0xb5, 0xde, 0xac, 0x66, 0x59, 0x6c, 0x37, 0xfc, 0xf1, 0xba, 0x65, 0xfc, 0x74, 0xdd, 0x32,
|
|
|
|
0x7e, 0xbe, 0x6e, 0x19, 0xdf, 0xfe, 0xd2, 0xda, 0xf8, 0xe2, 0x83, 0x69, 0x22, 0xce, 0x2e, 0x43,
|
|
|
|
0x37, 0x62, 0x17, 0xed, 0x94, 0xcf, 0xa3, 0x68, 0x3f, 0xc6, 0xbc, 0x9d, 0x22, 0x9b, 0xf0, 0xfd,
|
|
|
|
0x60, 0x9e, 0xec, 0x4f, 0x59, 0xfb, 0xc6, 0x6f, 0xf2, 0x23, 0xfd, 0xf8, 0xae, 0xb4, 0x7b, 0x8c,
|
|
|
|
0xec, 0xc9, 0xd0, 0xed, 0x9c, 0x0c, 0x64, 0x78, 0x7d, 0x08, 0xc2, 0x8a, 0xfa, 0x7f, 0xbe, 0xf3,
|
|
|
|
0x47, 0x00, 0x00, 0x00, 0xff, 0xff, 0x08, 0x43, 0x06, 0xc6, 0xc1, 0x07, 0x00, 0x00,
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *XHeader) 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 *XHeader) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *XHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if len(m.Value) > 0 {
|
|
|
|
i -= len(m.Value)
|
|
|
|
copy(dAtA[i:], m.Value)
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(len(m.Value)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if len(m.Key) > 0 {
|
|
|
|
i -= len(m.Key)
|
|
|
|
copy(dAtA[i:], m.Key)
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(len(m.Key)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Version) 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 *Version) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if m.Minor != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Minor))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
}
|
|
|
|
if m.Major != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Major))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TokenLifetime) 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 *TokenLifetime) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TokenLifetime) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if m.Iat != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Iat))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
}
|
|
|
|
if m.Nbf != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Nbf))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
}
|
|
|
|
if m.Exp != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Exp))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (m *ObjectServiceContext) 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 *ObjectServiceContext) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ObjectServiceContext) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if m.Address != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Address.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if m.Verb != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Verb))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2020-08-12 09:57:28 +00:00
|
|
|
func (m *SessionToken) 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 *SessionToken) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if m.Signature != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Signature.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.Body != nil {
|
2020-08-12 09:57:28 +00:00
|
|
|
{
|
2020-08-14 06:49:05 +00:00
|
|
|
size, err := m.Body.MarshalToSizedBuffer(dAtA[:i])
|
2020-08-12 09:57:28 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken_Body) 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 *SessionToken_Body) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken_Body) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if m.Context != nil {
|
|
|
|
{
|
|
|
|
size := m.Context.Size()
|
|
|
|
i -= size
|
|
|
|
if _, err := m.Context.MarshalTo(dAtA[i:]); err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.SessionKey) > 0 {
|
|
|
|
i -= len(m.SessionKey)
|
|
|
|
copy(dAtA[i:], m.SessionKey)
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(len(m.SessionKey)))
|
|
|
|
i--
|
2020-08-17 11:29:50 +00:00
|
|
|
dAtA[i] = 0x22
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
if m.Lifetime != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Lifetime.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
2020-08-17 11:29:50 +00:00
|
|
|
dAtA[i] = 0x1a
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
if m.OwnerId != nil {
|
|
|
|
{
|
|
|
|
size, err := m.OwnerId.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if len(m.Id) > 0 {
|
|
|
|
i -= len(m.Id)
|
|
|
|
copy(dAtA[i:], m.Id)
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(len(m.Id)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (m *SessionToken_Body_ObjectService) MarshalTo(dAtA []byte) (int, error) {
|
2020-08-12 09:57:28 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (m *SessionToken_Body_ObjectService) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2020-08-12 09:57:28 +00:00
|
|
|
i := len(dAtA)
|
2020-08-17 11:29:50 +00:00
|
|
|
if m.ObjectService != nil {
|
2020-08-12 09:57:28 +00:00
|
|
|
{
|
2020-08-17 11:29:50 +00:00
|
|
|
size, err := m.ObjectService.MarshalToSizedBuffer(dAtA[:i])
|
2020-08-12 09:57:28 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
2020-08-17 11:29:50 +00:00
|
|
|
dAtA[i] = 0x2a
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
func (m *BearerToken) 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 *BearerToken) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BearerToken) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if m.Signature != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Signature.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.Body != nil {
|
2020-08-12 09:57:28 +00:00
|
|
|
{
|
2020-08-14 06:49:05 +00:00
|
|
|
size, err := m.Body.MarshalToSizedBuffer(dAtA[:i])
|
2020-08-12 09:57:28 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BearerToken_Body) 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 *BearerToken_Body) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BearerToken_Body) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if m.Lifetime != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Lifetime.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
}
|
|
|
|
if m.OwnerId != nil {
|
|
|
|
{
|
|
|
|
size, err := m.OwnerId.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if m.EaclTable != nil {
|
|
|
|
{
|
|
|
|
size, err := m.EaclTable.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestMetaHeader) 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 *RequestMetaHeader) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestMetaHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if m.Origin != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Origin.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x3a
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.BearerToken != nil {
|
2020-08-12 09:57:28 +00:00
|
|
|
{
|
2020-08-14 06:49:05 +00:00
|
|
|
size, err := m.BearerToken.MarshalToSizedBuffer(dAtA[:i])
|
2020-08-12 09:57:28 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x32
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.SessionToken != nil {
|
2020-08-12 09:57:28 +00:00
|
|
|
{
|
2020-08-14 06:49:05 +00:00
|
|
|
size, err := m.SessionToken.MarshalToSizedBuffer(dAtA[:i])
|
2020-08-12 09:57:28 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
}
|
|
|
|
if len(m.XHeaders) > 0 {
|
|
|
|
for iNdEx := len(m.XHeaders) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.XHeaders[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.Ttl != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Ttl))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
}
|
|
|
|
if m.Epoch != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Epoch))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
}
|
|
|
|
if m.Version != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseMetaHeader) 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 *ResponseMetaHeader) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseMetaHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if m.Origin != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Origin.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
}
|
|
|
|
if len(m.XHeaders) > 0 {
|
|
|
|
for iNdEx := len(m.XHeaders) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.XHeaders[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.Ttl != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Ttl))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
}
|
|
|
|
if m.Epoch != 0 {
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(m.Epoch))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
}
|
|
|
|
if m.Version != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintMeta(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func encodeVarintMeta(dAtA []byte, offset int, v uint64) int {
|
|
|
|
offset -= sovMeta(v)
|
|
|
|
base := offset
|
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
|
|
|
return base
|
|
|
|
}
|
|
|
|
func (m *XHeader) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Key)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Value)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Version) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Major != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Major))
|
|
|
|
}
|
|
|
|
if m.Minor != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Minor))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TokenLifetime) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Exp != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Exp))
|
|
|
|
}
|
|
|
|
if m.Nbf != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Nbf))
|
|
|
|
}
|
|
|
|
if m.Iat != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Iat))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (m *ObjectServiceContext) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Verb != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Verb))
|
|
|
|
}
|
|
|
|
if m.Address != nil {
|
|
|
|
l = m.Address.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2020-08-12 09:57:28 +00:00
|
|
|
func (m *SessionToken) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.Body != nil {
|
|
|
|
l = m.Body.Size()
|
2020-08-12 09:57:28 +00:00
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Signature != nil {
|
|
|
|
l = m.Signature.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SessionToken_Body) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Id)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.OwnerId != nil {
|
|
|
|
l = m.OwnerId.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Lifetime != nil {
|
|
|
|
l = m.Lifetime.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.SessionKey)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Context != nil {
|
|
|
|
n += m.Context.Size()
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2020-08-17 11:29:50 +00:00
|
|
|
func (m *SessionToken_Body_ObjectService) Size() (n int) {
|
2020-08-12 09:57:28 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-08-17 11:29:50 +00:00
|
|
|
if m.ObjectService != nil {
|
|
|
|
l = m.ObjectService.Size()
|
2020-08-12 09:57:28 +00:00
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *BearerToken) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.Body != nil {
|
|
|
|
l = m.Body.Size()
|
2020-08-12 09:57:28 +00:00
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Signature != nil {
|
|
|
|
l = m.Signature.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BearerToken_Body) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.EaclTable != nil {
|
|
|
|
l = m.EaclTable.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.OwnerId != nil {
|
|
|
|
l = m.OwnerId.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Lifetime != nil {
|
|
|
|
l = m.Lifetime.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RequestMetaHeader) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Version != nil {
|
|
|
|
l = m.Version.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Epoch != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Epoch))
|
|
|
|
}
|
|
|
|
if m.Ttl != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Ttl))
|
|
|
|
}
|
|
|
|
if len(m.XHeaders) > 0 {
|
|
|
|
for _, e := range m.XHeaders {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.SessionToken != nil {
|
|
|
|
l = m.SessionToken.Size()
|
2020-08-12 09:57:28 +00:00
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.BearerToken != nil {
|
|
|
|
l = m.BearerToken.Size()
|
2020-08-12 09:57:28 +00:00
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Origin != nil {
|
|
|
|
l = m.Origin.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResponseMetaHeader) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Version != nil {
|
|
|
|
l = m.Version.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Epoch != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Epoch))
|
|
|
|
}
|
|
|
|
if m.Ttl != 0 {
|
|
|
|
n += 1 + sovMeta(uint64(m.Ttl))
|
|
|
|
}
|
|
|
|
if len(m.XHeaders) > 0 {
|
|
|
|
for _, e := range m.XHeaders {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.Origin != nil {
|
|
|
|
l = m.Origin.Size()
|
|
|
|
n += 1 + l + sovMeta(uint64(l))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovMeta(x uint64) (n int) {
|
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
|
|
}
|
|
|
|
func sozMeta(x uint64) (n int) {
|
|
|
|
return sovMeta(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (m *XHeader) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: XHeader: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: XHeader: 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Key = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Value = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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 *Version) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: Version: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Major", wireType)
|
|
|
|
}
|
|
|
|
m.Major = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Major |= uint32(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Minor", wireType)
|
|
|
|
}
|
|
|
|
m.Minor = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Minor |= uint32(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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 *TokenLifetime) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: TokenLifetime: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: TokenLifetime: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Exp", wireType)
|
|
|
|
}
|
|
|
|
m.Exp = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Exp |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Nbf", wireType)
|
|
|
|
}
|
|
|
|
m.Nbf = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Nbf |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Iat", wireType)
|
|
|
|
}
|
|
|
|
m.Iat = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Iat |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2020-08-17 11:29:50 +00:00
|
|
|
func (m *ObjectServiceContext) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: ObjectServiceContext: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ObjectServiceContext: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType)
|
|
|
|
}
|
|
|
|
m.Verb = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Verb |= ObjectServiceContext_Verb(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Address == nil {
|
|
|
|
m.Address = &grpc.Address{}
|
|
|
|
}
|
|
|
|
if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2020-08-12 09:57:28 +00:00
|
|
|
func (m *SessionToken) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: SessionToken: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: SessionToken: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2020-08-14 06:49:05 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.Body == nil {
|
|
|
|
m.Body = &SessionToken_Body{}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2020-08-12 09:57:28 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Signature == nil {
|
|
|
|
m.Signature = &Signature{}
|
|
|
|
}
|
|
|
|
if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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 *SessionToken_Body) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: Body: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Body: 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 byteLen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
byteLen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if byteLen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + byteLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Id = append(m.Id[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.Id == nil {
|
|
|
|
m.Id = []byte{}
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerId", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.OwnerId == nil {
|
2020-08-14 16:00:16 +00:00
|
|
|
m.OwnerId = &grpc.OwnerID{}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Lifetime", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Lifetime == nil {
|
|
|
|
m.Lifetime = &TokenLifetime{}
|
|
|
|
}
|
|
|
|
if err := m.Lifetime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2020-08-17 11:29:50 +00:00
|
|
|
case 4:
|
2020-08-12 09:57:28 +00:00
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SessionKey", wireType)
|
|
|
|
}
|
|
|
|
var byteLen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
byteLen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if byteLen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + byteLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.SessionKey = append(m.SessionKey[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.SessionKey == nil {
|
|
|
|
m.SessionKey = []byte{}
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2020-08-17 11:29:50 +00:00
|
|
|
case 5:
|
2020-08-12 09:57:28 +00:00
|
|
|
if wireType != 2 {
|
2020-08-17 11:29:50 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectService", wireType)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2020-08-17 11:29:50 +00:00
|
|
|
v := &ObjectServiceContext{}
|
2020-08-12 09:57:28 +00:00
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2020-08-17 11:29:50 +00:00
|
|
|
m.Context = &SessionToken_Body_ObjectService{v}
|
2020-08-12 09:57:28 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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 *BearerToken) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: BearerToken: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: BearerToken: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2020-08-14 06:49:05 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.Body == nil {
|
|
|
|
m.Body = &BearerToken_Body{}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2020-08-12 09:57:28 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Signature == nil {
|
|
|
|
m.Signature = &Signature{}
|
|
|
|
}
|
|
|
|
if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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 *BearerToken_Body) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: Body: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Body: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field EaclTable", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.EaclTable == nil {
|
2020-08-14 16:00:16 +00:00
|
|
|
m.EaclTable = &grpc1.EACLTable{}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
if err := m.EaclTable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerId", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.OwnerId == nil {
|
2020-08-14 16:00:16 +00:00
|
|
|
m.OwnerId = &grpc.OwnerID{}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
if err := m.OwnerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Lifetime", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Lifetime == nil {
|
|
|
|
m.Lifetime = &TokenLifetime{}
|
|
|
|
}
|
|
|
|
if err := m.Lifetime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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 *RequestMetaHeader) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: RequestMetaHeader: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: RequestMetaHeader: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Version == nil {
|
|
|
|
m.Version = &Version{}
|
|
|
|
}
|
|
|
|
if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType)
|
|
|
|
}
|
|
|
|
m.Epoch = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Epoch |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType)
|
|
|
|
}
|
|
|
|
m.Ttl = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Ttl |= uint32(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field XHeaders", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.XHeaders = append(m.XHeaders, &XHeader{})
|
|
|
|
if err := m.XHeaders[len(m.XHeaders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
2020-08-14 06:49:05 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SessionToken", wireType)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.SessionToken == nil {
|
|
|
|
m.SessionToken = &SessionToken{}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if err := m.SessionToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2020-08-12 09:57:28 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
2020-08-14 06:49:05 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BearerToken", wireType)
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if m.BearerToken == nil {
|
|
|
|
m.BearerToken = &BearerToken{}
|
2020-08-12 09:57:28 +00:00
|
|
|
}
|
2020-08-14 06:49:05 +00:00
|
|
|
if err := m.BearerToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2020-08-12 09:57:28 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Origin == nil {
|
|
|
|
m.Origin = &RequestMetaHeader{}
|
|
|
|
}
|
|
|
|
if err := m.Origin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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 *ResponseMetaHeader) 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 ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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: ResponseMetaHeader: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ResponseMetaHeader: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Version == nil {
|
|
|
|
m.Version = &Version{}
|
|
|
|
}
|
|
|
|
if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType)
|
|
|
|
}
|
|
|
|
m.Epoch = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Epoch |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType)
|
|
|
|
}
|
|
|
|
m.Ttl = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Ttl |= uint32(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field XHeaders", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.XHeaders = append(m.XHeaders, &XHeader{})
|
|
|
|
if err := m.XHeaders[len(m.XHeaders)-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 Origin", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Origin == nil {
|
|
|
|
m.Origin = &ResponseMetaHeader{}
|
|
|
|
}
|
|
|
|
if err := m.Origin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipMeta(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
|
|
|
return ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
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 skipMeta(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
depth := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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, ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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, ErrIntOverflowMeta
|
|
|
|
}
|
|
|
|
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, ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
iNdEx += length
|
|
|
|
case 3:
|
|
|
|
depth++
|
|
|
|
case 4:
|
|
|
|
if depth == 0 {
|
|
|
|
return 0, ErrUnexpectedEndOfGroupMeta
|
|
|
|
}
|
|
|
|
depth--
|
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthMeta
|
|
|
|
}
|
|
|
|
if depth == 0 {
|
|
|
|
return iNdEx, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrInvalidLengthMeta = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowMeta = fmt.Errorf("proto: integer overflow")
|
|
|
|
ErrUnexpectedEndOfGroupMeta = fmt.Errorf("proto: unexpected end of group")
|
|
|
|
)
|