15898 lines
358 KiB
Go
15898 lines
358 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: proto.proto
|
|
|
|
package testdata
|
|
|
|
import (
|
|
context "context"
|
|
encoding_binary "encoding/binary"
|
|
fmt "fmt"
|
|
types "github.com/cosmos/cosmos-sdk/codec/types"
|
|
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
|
|
tx "github.com/cosmos/cosmos-sdk/types/tx"
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
grpc1 "github.com/gogo/protobuf/grpc"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type Customer2_City int32
|
|
|
|
const (
|
|
Customer2_Laos Customer2_City = 0
|
|
Customer2_LosAngeles Customer2_City = 1
|
|
Customer2_PaloAlto Customer2_City = 2
|
|
Customer2_Moscow Customer2_City = 3
|
|
Customer2_Nairobi Customer2_City = 4
|
|
)
|
|
|
|
var Customer2_City_name = map[int32]string{
|
|
0: "Laos",
|
|
1: "LosAngeles",
|
|
2: "PaloAlto",
|
|
3: "Moscow",
|
|
4: "Nairobi",
|
|
}
|
|
|
|
var Customer2_City_value = map[string]int32{
|
|
"Laos": 0,
|
|
"LosAngeles": 1,
|
|
"PaloAlto": 2,
|
|
"Moscow": 3,
|
|
"Nairobi": 4,
|
|
}
|
|
|
|
func (x Customer2_City) String() string {
|
|
return proto.EnumName(Customer2_City_name, int32(x))
|
|
}
|
|
|
|
func (Customer2_City) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{14, 0}
|
|
}
|
|
|
|
type Dog struct {
|
|
Size_ string `protobuf:"bytes,1,opt,name=size,proto3" json:"size,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (m *Dog) Reset() { *m = Dog{} }
|
|
func (m *Dog) String() string { return proto.CompactTextString(m) }
|
|
func (*Dog) ProtoMessage() {}
|
|
func (*Dog) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{0}
|
|
}
|
|
func (m *Dog) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Dog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Dog.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 *Dog) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Dog.Merge(m, src)
|
|
}
|
|
func (m *Dog) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Dog) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Dog.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Dog proto.InternalMessageInfo
|
|
|
|
func (m *Dog) GetSize_() string {
|
|
if m != nil {
|
|
return m.Size_
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Dog) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Cat struct {
|
|
Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"`
|
|
Lives int32 `protobuf:"varint,2,opt,name=lives,proto3" json:"lives,omitempty"`
|
|
}
|
|
|
|
func (m *Cat) Reset() { *m = Cat{} }
|
|
func (m *Cat) String() string { return proto.CompactTextString(m) }
|
|
func (*Cat) ProtoMessage() {}
|
|
func (*Cat) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{1}
|
|
}
|
|
func (m *Cat) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Cat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Cat.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 *Cat) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Cat.Merge(m, src)
|
|
}
|
|
func (m *Cat) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Cat) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Cat.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Cat proto.InternalMessageInfo
|
|
|
|
func (m *Cat) GetMoniker() string {
|
|
if m != nil {
|
|
return m.Moniker
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Cat) GetLives() int32 {
|
|
if m != nil {
|
|
return m.Lives
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HasAnimal struct {
|
|
Animal *types.Any `protobuf:"bytes,1,opt,name=animal,proto3" json:"animal,omitempty"`
|
|
X int64 `protobuf:"varint,2,opt,name=x,proto3" json:"x,omitempty"`
|
|
}
|
|
|
|
func (m *HasAnimal) Reset() { *m = HasAnimal{} }
|
|
func (m *HasAnimal) String() string { return proto.CompactTextString(m) }
|
|
func (*HasAnimal) ProtoMessage() {}
|
|
func (*HasAnimal) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{2}
|
|
}
|
|
func (m *HasAnimal) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *HasAnimal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_HasAnimal.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 *HasAnimal) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_HasAnimal.Merge(m, src)
|
|
}
|
|
func (m *HasAnimal) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *HasAnimal) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_HasAnimal.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_HasAnimal proto.InternalMessageInfo
|
|
|
|
func (m *HasAnimal) GetAnimal() *types.Any {
|
|
if m != nil {
|
|
return m.Animal
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *HasAnimal) GetX() int64 {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HasHasAnimal struct {
|
|
HasAnimal *types.Any `protobuf:"bytes,1,opt,name=has_animal,json=hasAnimal,proto3" json:"has_animal,omitempty"`
|
|
}
|
|
|
|
func (m *HasHasAnimal) Reset() { *m = HasHasAnimal{} }
|
|
func (m *HasHasAnimal) String() string { return proto.CompactTextString(m) }
|
|
func (*HasHasAnimal) ProtoMessage() {}
|
|
func (*HasHasAnimal) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{3}
|
|
}
|
|
func (m *HasHasAnimal) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *HasHasAnimal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_HasHasAnimal.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 *HasHasAnimal) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_HasHasAnimal.Merge(m, src)
|
|
}
|
|
func (m *HasHasAnimal) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *HasHasAnimal) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_HasHasAnimal.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_HasHasAnimal proto.InternalMessageInfo
|
|
|
|
func (m *HasHasAnimal) GetHasAnimal() *types.Any {
|
|
if m != nil {
|
|
return m.HasAnimal
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type HasHasHasAnimal struct {
|
|
HasHasAnimal *types.Any `protobuf:"bytes,1,opt,name=has_has_animal,json=hasHasAnimal,proto3" json:"has_has_animal,omitempty"`
|
|
}
|
|
|
|
func (m *HasHasHasAnimal) Reset() { *m = HasHasHasAnimal{} }
|
|
func (m *HasHasHasAnimal) String() string { return proto.CompactTextString(m) }
|
|
func (*HasHasHasAnimal) ProtoMessage() {}
|
|
func (*HasHasHasAnimal) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{4}
|
|
}
|
|
func (m *HasHasHasAnimal) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *HasHasHasAnimal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_HasHasHasAnimal.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 *HasHasHasAnimal) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_HasHasHasAnimal.Merge(m, src)
|
|
}
|
|
func (m *HasHasHasAnimal) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *HasHasHasAnimal) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_HasHasHasAnimal.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_HasHasHasAnimal proto.InternalMessageInfo
|
|
|
|
func (m *HasHasHasAnimal) GetHasHasAnimal() *types.Any {
|
|
if m != nil {
|
|
return m.HasHasAnimal
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type EchoRequest struct {
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
|
}
|
|
|
|
func (m *EchoRequest) Reset() { *m = EchoRequest{} }
|
|
func (m *EchoRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*EchoRequest) ProtoMessage() {}
|
|
func (*EchoRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{5}
|
|
}
|
|
func (m *EchoRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_EchoRequest.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 *EchoRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EchoRequest.Merge(m, src)
|
|
}
|
|
func (m *EchoRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *EchoRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EchoRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EchoRequest proto.InternalMessageInfo
|
|
|
|
func (m *EchoRequest) GetMessage() string {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type EchoResponse struct {
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
|
}
|
|
|
|
func (m *EchoResponse) Reset() { *m = EchoResponse{} }
|
|
func (m *EchoResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*EchoResponse) ProtoMessage() {}
|
|
func (*EchoResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{6}
|
|
}
|
|
func (m *EchoResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *EchoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_EchoResponse.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 *EchoResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EchoResponse.Merge(m, src)
|
|
}
|
|
func (m *EchoResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *EchoResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EchoResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EchoResponse proto.InternalMessageInfo
|
|
|
|
func (m *EchoResponse) GetMessage() string {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SayHelloRequest struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (m *SayHelloRequest) Reset() { *m = SayHelloRequest{} }
|
|
func (m *SayHelloRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SayHelloRequest) ProtoMessage() {}
|
|
func (*SayHelloRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{7}
|
|
}
|
|
func (m *SayHelloRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SayHelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SayHelloRequest.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 *SayHelloRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SayHelloRequest.Merge(m, src)
|
|
}
|
|
func (m *SayHelloRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SayHelloRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SayHelloRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SayHelloRequest proto.InternalMessageInfo
|
|
|
|
func (m *SayHelloRequest) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SayHelloResponse struct {
|
|
Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
|
|
}
|
|
|
|
func (m *SayHelloResponse) Reset() { *m = SayHelloResponse{} }
|
|
func (m *SayHelloResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SayHelloResponse) ProtoMessage() {}
|
|
func (*SayHelloResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{8}
|
|
}
|
|
func (m *SayHelloResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SayHelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SayHelloResponse.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 *SayHelloResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SayHelloResponse.Merge(m, src)
|
|
}
|
|
func (m *SayHelloResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SayHelloResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SayHelloResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SayHelloResponse proto.InternalMessageInfo
|
|
|
|
func (m *SayHelloResponse) GetGreeting() string {
|
|
if m != nil {
|
|
return m.Greeting
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TestAnyRequest struct {
|
|
AnyAnimal *types.Any `protobuf:"bytes,1,opt,name=any_animal,json=anyAnimal,proto3" json:"any_animal,omitempty"`
|
|
}
|
|
|
|
func (m *TestAnyRequest) Reset() { *m = TestAnyRequest{} }
|
|
func (m *TestAnyRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*TestAnyRequest) ProtoMessage() {}
|
|
func (*TestAnyRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{9}
|
|
}
|
|
func (m *TestAnyRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestAnyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestAnyRequest.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 *TestAnyRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestAnyRequest.Merge(m, src)
|
|
}
|
|
func (m *TestAnyRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestAnyRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestAnyRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestAnyRequest proto.InternalMessageInfo
|
|
|
|
func (m *TestAnyRequest) GetAnyAnimal() *types.Any {
|
|
if m != nil {
|
|
return m.AnyAnimal
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TestAnyResponse struct {
|
|
HasAnimal *HasAnimal `protobuf:"bytes,1,opt,name=has_animal,json=hasAnimal,proto3" json:"has_animal,omitempty"`
|
|
}
|
|
|
|
func (m *TestAnyResponse) Reset() { *m = TestAnyResponse{} }
|
|
func (m *TestAnyResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*TestAnyResponse) ProtoMessage() {}
|
|
func (*TestAnyResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{10}
|
|
}
|
|
func (m *TestAnyResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestAnyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestAnyResponse.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 *TestAnyResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestAnyResponse.Merge(m, src)
|
|
}
|
|
func (m *TestAnyResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestAnyResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestAnyResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestAnyResponse proto.InternalMessageInfo
|
|
|
|
func (m *TestAnyResponse) GetHasAnimal() *HasAnimal {
|
|
if m != nil {
|
|
return m.HasAnimal
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// msg type for testing
|
|
type TestMsg struct {
|
|
Signers []github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,rep,name=signers,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signers,omitempty"`
|
|
}
|
|
|
|
func (m *TestMsg) Reset() { *m = TestMsg{} }
|
|
func (m *TestMsg) String() string { return proto.CompactTextString(m) }
|
|
func (*TestMsg) ProtoMessage() {}
|
|
func (*TestMsg) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{11}
|
|
}
|
|
func (m *TestMsg) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestMsg.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 *TestMsg) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestMsg.Merge(m, src)
|
|
}
|
|
func (m *TestMsg) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestMsg) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestMsg.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestMsg proto.InternalMessageInfo
|
|
|
|
func (m *TestMsg) GetSigners() []github_com_cosmos_cosmos_sdk_types.AccAddress {
|
|
if m != nil {
|
|
return m.Signers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// bad MultiSignature with extra fields
|
|
type BadMultiSignature struct {
|
|
Signatures [][]byte `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
|
|
MaliciousField []byte `protobuf:"bytes,5,opt,name=malicious_field,json=maliciousField,proto3" json:"malicious_field,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *BadMultiSignature) Reset() { *m = BadMultiSignature{} }
|
|
func (m *BadMultiSignature) String() string { return proto.CompactTextString(m) }
|
|
func (*BadMultiSignature) ProtoMessage() {}
|
|
func (*BadMultiSignature) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{12}
|
|
}
|
|
func (m *BadMultiSignature) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BadMultiSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BadMultiSignature.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 *BadMultiSignature) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BadMultiSignature.Merge(m, src)
|
|
}
|
|
func (m *BadMultiSignature) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BadMultiSignature) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BadMultiSignature.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BadMultiSignature proto.InternalMessageInfo
|
|
|
|
func (m *BadMultiSignature) GetSignatures() [][]byte {
|
|
if m != nil {
|
|
return m.Signatures
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BadMultiSignature) GetMaliciousField() []byte {
|
|
if m != nil {
|
|
return m.MaliciousField
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Customer1 struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
SubscriptionFee float32 `protobuf:"fixed32,3,opt,name=subscription_fee,json=subscriptionFee,proto3" json:"subscription_fee,omitempty"`
|
|
Payment string `protobuf:"bytes,7,opt,name=payment,proto3" json:"payment,omitempty"`
|
|
}
|
|
|
|
func (m *Customer1) Reset() { *m = Customer1{} }
|
|
func (m *Customer1) String() string { return proto.CompactTextString(m) }
|
|
func (*Customer1) ProtoMessage() {}
|
|
func (*Customer1) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{13}
|
|
}
|
|
func (m *Customer1) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Customer1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Customer1.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 *Customer1) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Customer1.Merge(m, src)
|
|
}
|
|
func (m *Customer1) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Customer1) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Customer1.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Customer1 proto.InternalMessageInfo
|
|
|
|
func (m *Customer1) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Customer1) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Customer1) GetSubscriptionFee() float32 {
|
|
if m != nil {
|
|
return m.SubscriptionFee
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Customer1) GetPayment() string {
|
|
if m != nil {
|
|
return m.Payment
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Customer2 struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Industry int32 `protobuf:"varint,2,opt,name=industry,proto3" json:"industry,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
Fewer float32 `protobuf:"fixed32,4,opt,name=fewer,proto3" json:"fewer,omitempty"`
|
|
Reserved int64 `protobuf:"varint,1047,opt,name=reserved,proto3" json:"reserved,omitempty"`
|
|
City Customer2_City `protobuf:"varint,6,opt,name=city,proto3,enum=testdata.Customer2_City" json:"city,omitempty"`
|
|
Miscellaneous *types.Any `protobuf:"bytes,10,opt,name=miscellaneous,proto3" json:"miscellaneous,omitempty"`
|
|
}
|
|
|
|
func (m *Customer2) Reset() { *m = Customer2{} }
|
|
func (m *Customer2) String() string { return proto.CompactTextString(m) }
|
|
func (*Customer2) ProtoMessage() {}
|
|
func (*Customer2) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{14}
|
|
}
|
|
func (m *Customer2) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Customer2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Customer2.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 *Customer2) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Customer2.Merge(m, src)
|
|
}
|
|
func (m *Customer2) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Customer2) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Customer2.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Customer2 proto.InternalMessageInfo
|
|
|
|
func (m *Customer2) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Customer2) GetIndustry() int32 {
|
|
if m != nil {
|
|
return m.Industry
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Customer2) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Customer2) GetFewer() float32 {
|
|
if m != nil {
|
|
return m.Fewer
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Customer2) GetReserved() int64 {
|
|
if m != nil {
|
|
return m.Reserved
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Customer2) GetCity() Customer2_City {
|
|
if m != nil {
|
|
return m.City
|
|
}
|
|
return Customer2_Laos
|
|
}
|
|
|
|
func (m *Customer2) GetMiscellaneous() *types.Any {
|
|
if m != nil {
|
|
return m.Miscellaneous
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Nested4A struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (m *Nested4A) Reset() { *m = Nested4A{} }
|
|
func (m *Nested4A) String() string { return proto.CompactTextString(m) }
|
|
func (*Nested4A) ProtoMessage() {}
|
|
func (*Nested4A) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{15}
|
|
}
|
|
func (m *Nested4A) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Nested4A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Nested4A.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 *Nested4A) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Nested4A.Merge(m, src)
|
|
}
|
|
func (m *Nested4A) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Nested4A) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Nested4A.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Nested4A proto.InternalMessageInfo
|
|
|
|
func (m *Nested4A) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested4A) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Nested3A struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
A4 []*Nested4A `protobuf:"bytes,4,rep,name=a4,proto3" json:"a4,omitempty"`
|
|
Index map[int64]*Nested4A `protobuf:"bytes,5,rep,name=index,proto3" json:"index,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (m *Nested3A) Reset() { *m = Nested3A{} }
|
|
func (m *Nested3A) String() string { return proto.CompactTextString(m) }
|
|
func (*Nested3A) ProtoMessage() {}
|
|
func (*Nested3A) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{16}
|
|
}
|
|
func (m *Nested3A) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Nested3A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Nested3A.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 *Nested3A) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Nested3A.Merge(m, src)
|
|
}
|
|
func (m *Nested3A) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Nested3A) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Nested3A.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Nested3A proto.InternalMessageInfo
|
|
|
|
func (m *Nested3A) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested3A) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Nested3A) GetA4() []*Nested4A {
|
|
if m != nil {
|
|
return m.A4
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Nested3A) GetIndex() map[int64]*Nested4A {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Nested2A struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Nested *Nested3A `protobuf:"bytes,3,opt,name=nested,proto3" json:"nested,omitempty"`
|
|
}
|
|
|
|
func (m *Nested2A) Reset() { *m = Nested2A{} }
|
|
func (m *Nested2A) String() string { return proto.CompactTextString(m) }
|
|
func (*Nested2A) ProtoMessage() {}
|
|
func (*Nested2A) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{17}
|
|
}
|
|
func (m *Nested2A) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Nested2A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Nested2A.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 *Nested2A) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Nested2A.Merge(m, src)
|
|
}
|
|
func (m *Nested2A) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Nested2A) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Nested2A.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Nested2A proto.InternalMessageInfo
|
|
|
|
func (m *Nested2A) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested2A) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Nested2A) GetNested() *Nested3A {
|
|
if m != nil {
|
|
return m.Nested
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Nested1A struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Nested *Nested2A `protobuf:"bytes,2,opt,name=nested,proto3" json:"nested,omitempty"`
|
|
}
|
|
|
|
func (m *Nested1A) Reset() { *m = Nested1A{} }
|
|
func (m *Nested1A) String() string { return proto.CompactTextString(m) }
|
|
func (*Nested1A) ProtoMessage() {}
|
|
func (*Nested1A) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{18}
|
|
}
|
|
func (m *Nested1A) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Nested1A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Nested1A.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 *Nested1A) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Nested1A.Merge(m, src)
|
|
}
|
|
func (m *Nested1A) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Nested1A) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Nested1A.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Nested1A proto.InternalMessageInfo
|
|
|
|
func (m *Nested1A) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested1A) GetNested() *Nested2A {
|
|
if m != nil {
|
|
return m.Nested
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Nested4B struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (m *Nested4B) Reset() { *m = Nested4B{} }
|
|
func (m *Nested4B) String() string { return proto.CompactTextString(m) }
|
|
func (*Nested4B) ProtoMessage() {}
|
|
func (*Nested4B) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{19}
|
|
}
|
|
func (m *Nested4B) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Nested4B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Nested4B.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 *Nested4B) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Nested4B.Merge(m, src)
|
|
}
|
|
func (m *Nested4B) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Nested4B) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Nested4B.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Nested4B proto.InternalMessageInfo
|
|
|
|
func (m *Nested4B) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested4B) GetAge() int32 {
|
|
if m != nil {
|
|
return m.Age
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested4B) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Nested3B struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
B4 []*Nested4B `protobuf:"bytes,4,rep,name=b4,proto3" json:"b4,omitempty"`
|
|
}
|
|
|
|
func (m *Nested3B) Reset() { *m = Nested3B{} }
|
|
func (m *Nested3B) String() string { return proto.CompactTextString(m) }
|
|
func (*Nested3B) ProtoMessage() {}
|
|
func (*Nested3B) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{20}
|
|
}
|
|
func (m *Nested3B) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Nested3B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Nested3B.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 *Nested3B) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Nested3B.Merge(m, src)
|
|
}
|
|
func (m *Nested3B) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Nested3B) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Nested3B.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Nested3B proto.InternalMessageInfo
|
|
|
|
func (m *Nested3B) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested3B) GetAge() int32 {
|
|
if m != nil {
|
|
return m.Age
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested3B) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Nested3B) GetB4() []*Nested4B {
|
|
if m != nil {
|
|
return m.B4
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Nested2B struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Fee float64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"`
|
|
Nested *Nested3B `protobuf:"bytes,3,opt,name=nested,proto3" json:"nested,omitempty"`
|
|
Route string `protobuf:"bytes,4,opt,name=route,proto3" json:"route,omitempty"`
|
|
}
|
|
|
|
func (m *Nested2B) Reset() { *m = Nested2B{} }
|
|
func (m *Nested2B) String() string { return proto.CompactTextString(m) }
|
|
func (*Nested2B) ProtoMessage() {}
|
|
func (*Nested2B) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{21}
|
|
}
|
|
func (m *Nested2B) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Nested2B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Nested2B.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 *Nested2B) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Nested2B.Merge(m, src)
|
|
}
|
|
func (m *Nested2B) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Nested2B) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Nested2B.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Nested2B proto.InternalMessageInfo
|
|
|
|
func (m *Nested2B) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested2B) GetFee() float64 {
|
|
if m != nil {
|
|
return m.Fee
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested2B) GetNested() *Nested3B {
|
|
if m != nil {
|
|
return m.Nested
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Nested2B) GetRoute() string {
|
|
if m != nil {
|
|
return m.Route
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Nested1B struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Nested *Nested2B `protobuf:"bytes,2,opt,name=nested,proto3" json:"nested,omitempty"`
|
|
Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"`
|
|
}
|
|
|
|
func (m *Nested1B) Reset() { *m = Nested1B{} }
|
|
func (m *Nested1B) String() string { return proto.CompactTextString(m) }
|
|
func (*Nested1B) ProtoMessage() {}
|
|
func (*Nested1B) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{22}
|
|
}
|
|
func (m *Nested1B) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Nested1B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Nested1B.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 *Nested1B) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Nested1B.Merge(m, src)
|
|
}
|
|
func (m *Nested1B) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Nested1B) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Nested1B.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Nested1B proto.InternalMessageInfo
|
|
|
|
func (m *Nested1B) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Nested1B) GetNested() *Nested2B {
|
|
if m != nil {
|
|
return m.Nested
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Nested1B) GetAge() int32 {
|
|
if m != nil {
|
|
return m.Age
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Customer3 struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Sf float32 `protobuf:"fixed32,3,opt,name=sf,proto3" json:"sf,omitempty"`
|
|
Surcharge float32 `protobuf:"fixed32,4,opt,name=surcharge,proto3" json:"surcharge,omitempty"`
|
|
Destination string `protobuf:"bytes,5,opt,name=destination,proto3" json:"destination,omitempty"`
|
|
// Types that are valid to be assigned to Payment:
|
|
// *Customer3_CreditCardNo
|
|
// *Customer3_ChequeNo
|
|
Payment isCustomer3_Payment `protobuf_oneof:"payment"`
|
|
Original *Customer1 `protobuf:"bytes,9,opt,name=original,proto3" json:"original,omitempty"`
|
|
}
|
|
|
|
func (m *Customer3) Reset() { *m = Customer3{} }
|
|
func (m *Customer3) String() string { return proto.CompactTextString(m) }
|
|
func (*Customer3) ProtoMessage() {}
|
|
func (*Customer3) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{23}
|
|
}
|
|
func (m *Customer3) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Customer3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Customer3.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 *Customer3) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Customer3.Merge(m, src)
|
|
}
|
|
func (m *Customer3) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Customer3) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Customer3.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Customer3 proto.InternalMessageInfo
|
|
|
|
type isCustomer3_Payment interface {
|
|
isCustomer3_Payment()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type Customer3_CreditCardNo struct {
|
|
CreditCardNo string `protobuf:"bytes,7,opt,name=credit_card_no,json=creditCardNo,proto3,oneof" json:"credit_card_no,omitempty"`
|
|
}
|
|
type Customer3_ChequeNo struct {
|
|
ChequeNo string `protobuf:"bytes,8,opt,name=cheque_no,json=chequeNo,proto3,oneof" json:"cheque_no,omitempty"`
|
|
}
|
|
|
|
func (*Customer3_CreditCardNo) isCustomer3_Payment() {}
|
|
func (*Customer3_ChequeNo) isCustomer3_Payment() {}
|
|
|
|
func (m *Customer3) GetPayment() isCustomer3_Payment {
|
|
if m != nil {
|
|
return m.Payment
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Customer3) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Customer3) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Customer3) GetSf() float32 {
|
|
if m != nil {
|
|
return m.Sf
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Customer3) GetSurcharge() float32 {
|
|
if m != nil {
|
|
return m.Surcharge
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Customer3) GetDestination() string {
|
|
if m != nil {
|
|
return m.Destination
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Customer3) GetCreditCardNo() string {
|
|
if x, ok := m.GetPayment().(*Customer3_CreditCardNo); ok {
|
|
return x.CreditCardNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Customer3) GetChequeNo() string {
|
|
if x, ok := m.GetPayment().(*Customer3_ChequeNo); ok {
|
|
return x.ChequeNo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Customer3) GetOriginal() *Customer1 {
|
|
if m != nil {
|
|
return m.Original
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*Customer3) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*Customer3_CreditCardNo)(nil),
|
|
(*Customer3_ChequeNo)(nil),
|
|
}
|
|
}
|
|
|
|
type TestVersion1 struct {
|
|
X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
A *TestVersion1 `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
|
|
B *TestVersion1 `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"`
|
|
C []*TestVersion1 `protobuf:"bytes,4,rep,name=c,proto3" json:"c,omitempty"`
|
|
D []TestVersion1 `protobuf:"bytes,5,rep,name=d,proto3" json:"d"`
|
|
// Types that are valid to be assigned to Sum:
|
|
// *TestVersion1_E
|
|
// *TestVersion1_F
|
|
Sum isTestVersion1_Sum `protobuf_oneof:"sum"`
|
|
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
|
|
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
|
|
// google.protobuf.Timestamp i = 10;
|
|
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
|
|
*Customer1 `protobuf:"bytes,12,opt,name=k,proto3,embedded=k" json:"k,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion1) Reset() { *m = TestVersion1{} }
|
|
func (m *TestVersion1) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion1) ProtoMessage() {}
|
|
func (*TestVersion1) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{24}
|
|
}
|
|
func (m *TestVersion1) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion1.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 *TestVersion1) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion1.Merge(m, src)
|
|
}
|
|
func (m *TestVersion1) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion1) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion1.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion1 proto.InternalMessageInfo
|
|
|
|
type isTestVersion1_Sum interface {
|
|
isTestVersion1_Sum()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type TestVersion1_E struct {
|
|
E int32 `protobuf:"varint,6,opt,name=e,proto3,oneof" json:"e,omitempty"`
|
|
}
|
|
type TestVersion1_F struct {
|
|
F *TestVersion1 `protobuf:"bytes,7,opt,name=f,proto3,oneof" json:"f,omitempty"`
|
|
}
|
|
|
|
func (*TestVersion1_E) isTestVersion1_Sum() {}
|
|
func (*TestVersion1_F) isTestVersion1_Sum() {}
|
|
|
|
func (m *TestVersion1) GetSum() isTestVersion1_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion1) GetX() int64 {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion1) GetA() *TestVersion1 {
|
|
if m != nil {
|
|
return m.A
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion1) GetB() *TestVersion1 {
|
|
if m != nil {
|
|
return m.B
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion1) GetC() []*TestVersion1 {
|
|
if m != nil {
|
|
return m.C
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion1) GetD() []TestVersion1 {
|
|
if m != nil {
|
|
return m.D
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion1) GetE() int32 {
|
|
if x, ok := m.GetSum().(*TestVersion1_E); ok {
|
|
return x.E
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion1) GetF() *TestVersion1 {
|
|
if x, ok := m.GetSum().(*TestVersion1_F); ok {
|
|
return x.F
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion1) GetG() *types.Any {
|
|
if m != nil {
|
|
return m.G
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion1) GetH() []*TestVersion1 {
|
|
if m != nil {
|
|
return m.H
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*TestVersion1) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*TestVersion1_E)(nil),
|
|
(*TestVersion1_F)(nil),
|
|
}
|
|
}
|
|
|
|
type TestVersion2 struct {
|
|
X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
A *TestVersion2 `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
|
|
B *TestVersion2 `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"`
|
|
C []*TestVersion2 `protobuf:"bytes,4,rep,name=c,proto3" json:"c,omitempty"`
|
|
D []*TestVersion2 `protobuf:"bytes,5,rep,name=d,proto3" json:"d,omitempty"`
|
|
// Types that are valid to be assigned to Sum:
|
|
// *TestVersion2_E
|
|
// *TestVersion2_F
|
|
Sum isTestVersion2_Sum `protobuf_oneof:"sum"`
|
|
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
|
|
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
|
|
// google.protobuf.Timestamp i = 10;
|
|
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
|
|
*Customer1 `protobuf:"bytes,12,opt,name=k,proto3,embedded=k" json:"k,omitempty"`
|
|
NewField uint64 `protobuf:"varint,25,opt,name=new_field,json=newField,proto3" json:"new_field,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion2) Reset() { *m = TestVersion2{} }
|
|
func (m *TestVersion2) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion2) ProtoMessage() {}
|
|
func (*TestVersion2) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{25}
|
|
}
|
|
func (m *TestVersion2) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion2.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 *TestVersion2) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion2.Merge(m, src)
|
|
}
|
|
func (m *TestVersion2) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion2) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion2.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion2 proto.InternalMessageInfo
|
|
|
|
type isTestVersion2_Sum interface {
|
|
isTestVersion2_Sum()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type TestVersion2_E struct {
|
|
E int32 `protobuf:"varint,6,opt,name=e,proto3,oneof" json:"e,omitempty"`
|
|
}
|
|
type TestVersion2_F struct {
|
|
F *TestVersion2 `protobuf:"bytes,7,opt,name=f,proto3,oneof" json:"f,omitempty"`
|
|
}
|
|
|
|
func (*TestVersion2_E) isTestVersion2_Sum() {}
|
|
func (*TestVersion2_F) isTestVersion2_Sum() {}
|
|
|
|
func (m *TestVersion2) GetSum() isTestVersion2_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion2) GetX() int64 {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion2) GetA() *TestVersion2 {
|
|
if m != nil {
|
|
return m.A
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion2) GetB() *TestVersion2 {
|
|
if m != nil {
|
|
return m.B
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion2) GetC() []*TestVersion2 {
|
|
if m != nil {
|
|
return m.C
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion2) GetD() []*TestVersion2 {
|
|
if m != nil {
|
|
return m.D
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion2) GetE() int32 {
|
|
if x, ok := m.GetSum().(*TestVersion2_E); ok {
|
|
return x.E
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion2) GetF() *TestVersion2 {
|
|
if x, ok := m.GetSum().(*TestVersion2_F); ok {
|
|
return x.F
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion2) GetG() *types.Any {
|
|
if m != nil {
|
|
return m.G
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion2) GetH() []*TestVersion1 {
|
|
if m != nil {
|
|
return m.H
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion2) GetNewField() uint64 {
|
|
if m != nil {
|
|
return m.NewField
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*TestVersion2) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*TestVersion2_E)(nil),
|
|
(*TestVersion2_F)(nil),
|
|
}
|
|
}
|
|
|
|
type TestVersion3 struct {
|
|
X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
A *TestVersion3 `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
|
|
B *TestVersion3 `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"`
|
|
C []*TestVersion3 `protobuf:"bytes,4,rep,name=c,proto3" json:"c,omitempty"`
|
|
D []*TestVersion3 `protobuf:"bytes,5,rep,name=d,proto3" json:"d,omitempty"`
|
|
// Types that are valid to be assigned to Sum:
|
|
// *TestVersion3_E
|
|
// *TestVersion3_F
|
|
Sum isTestVersion3_Sum `protobuf_oneof:"sum"`
|
|
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
|
|
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
|
|
// google.protobuf.Timestamp i = 10;
|
|
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
|
|
*Customer1 `protobuf:"bytes,12,opt,name=k,proto3,embedded=k" json:"k,omitempty"`
|
|
NonCriticalField string `protobuf:"bytes,1031,opt,name=non_critical_field,json=nonCriticalField,proto3" json:"non_critical_field,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion3) Reset() { *m = TestVersion3{} }
|
|
func (m *TestVersion3) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion3) ProtoMessage() {}
|
|
func (*TestVersion3) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{26}
|
|
}
|
|
func (m *TestVersion3) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion3.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 *TestVersion3) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion3.Merge(m, src)
|
|
}
|
|
func (m *TestVersion3) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion3) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion3.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion3 proto.InternalMessageInfo
|
|
|
|
type isTestVersion3_Sum interface {
|
|
isTestVersion3_Sum()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type TestVersion3_E struct {
|
|
E int32 `protobuf:"varint,6,opt,name=e,proto3,oneof" json:"e,omitempty"`
|
|
}
|
|
type TestVersion3_F struct {
|
|
F *TestVersion3 `protobuf:"bytes,7,opt,name=f,proto3,oneof" json:"f,omitempty"`
|
|
}
|
|
|
|
func (*TestVersion3_E) isTestVersion3_Sum() {}
|
|
func (*TestVersion3_F) isTestVersion3_Sum() {}
|
|
|
|
func (m *TestVersion3) GetSum() isTestVersion3_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3) GetX() int64 {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion3) GetA() *TestVersion3 {
|
|
if m != nil {
|
|
return m.A
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3) GetB() *TestVersion3 {
|
|
if m != nil {
|
|
return m.B
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3) GetC() []*TestVersion3 {
|
|
if m != nil {
|
|
return m.C
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3) GetD() []*TestVersion3 {
|
|
if m != nil {
|
|
return m.D
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3) GetE() int32 {
|
|
if x, ok := m.GetSum().(*TestVersion3_E); ok {
|
|
return x.E
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion3) GetF() *TestVersion3 {
|
|
if x, ok := m.GetSum().(*TestVersion3_F); ok {
|
|
return x.F
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3) GetG() *types.Any {
|
|
if m != nil {
|
|
return m.G
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3) GetH() []*TestVersion1 {
|
|
if m != nil {
|
|
return m.H
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3) GetNonCriticalField() string {
|
|
if m != nil {
|
|
return m.NonCriticalField
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*TestVersion3) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*TestVersion3_E)(nil),
|
|
(*TestVersion3_F)(nil),
|
|
}
|
|
}
|
|
|
|
type TestVersion3LoneOneOfValue struct {
|
|
X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
A *TestVersion3 `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
|
|
B *TestVersion3 `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"`
|
|
C []*TestVersion3 `protobuf:"bytes,4,rep,name=c,proto3" json:"c,omitempty"`
|
|
D []*TestVersion3 `protobuf:"bytes,5,rep,name=d,proto3" json:"d,omitempty"`
|
|
// Types that are valid to be assigned to Sum:
|
|
// *TestVersion3LoneOneOfValue_E
|
|
Sum isTestVersion3LoneOneOfValue_Sum `protobuf_oneof:"sum"`
|
|
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
|
|
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
|
|
// google.protobuf.Timestamp i = 10;
|
|
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
|
|
*Customer1 `protobuf:"bytes,12,opt,name=k,proto3,embedded=k" json:"k,omitempty"`
|
|
NonCriticalField string `protobuf:"bytes,1031,opt,name=non_critical_field,json=nonCriticalField,proto3" json:"non_critical_field,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) Reset() { *m = TestVersion3LoneOneOfValue{} }
|
|
func (m *TestVersion3LoneOneOfValue) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion3LoneOneOfValue) ProtoMessage() {}
|
|
func (*TestVersion3LoneOneOfValue) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{27}
|
|
}
|
|
func (m *TestVersion3LoneOneOfValue) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion3LoneOneOfValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion3LoneOneOfValue.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 *TestVersion3LoneOneOfValue) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion3LoneOneOfValue.Merge(m, src)
|
|
}
|
|
func (m *TestVersion3LoneOneOfValue) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion3LoneOneOfValue) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion3LoneOneOfValue.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion3LoneOneOfValue proto.InternalMessageInfo
|
|
|
|
type isTestVersion3LoneOneOfValue_Sum interface {
|
|
isTestVersion3LoneOneOfValue_Sum()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type TestVersion3LoneOneOfValue_E struct {
|
|
E int32 `protobuf:"varint,6,opt,name=e,proto3,oneof" json:"e,omitempty"`
|
|
}
|
|
|
|
func (*TestVersion3LoneOneOfValue_E) isTestVersion3LoneOneOfValue_Sum() {}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetSum() isTestVersion3LoneOneOfValue_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetX() int64 {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetA() *TestVersion3 {
|
|
if m != nil {
|
|
return m.A
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetB() *TestVersion3 {
|
|
if m != nil {
|
|
return m.B
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetC() []*TestVersion3 {
|
|
if m != nil {
|
|
return m.C
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetD() []*TestVersion3 {
|
|
if m != nil {
|
|
return m.D
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetE() int32 {
|
|
if x, ok := m.GetSum().(*TestVersion3LoneOneOfValue_E); ok {
|
|
return x.E
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetG() *types.Any {
|
|
if m != nil {
|
|
return m.G
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetH() []*TestVersion1 {
|
|
if m != nil {
|
|
return m.H
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) GetNonCriticalField() string {
|
|
if m != nil {
|
|
return m.NonCriticalField
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*TestVersion3LoneOneOfValue) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*TestVersion3LoneOneOfValue_E)(nil),
|
|
}
|
|
}
|
|
|
|
type TestVersion3LoneNesting struct {
|
|
X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
A *TestVersion3 `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
|
|
B *TestVersion3 `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"`
|
|
C []*TestVersion3 `protobuf:"bytes,4,rep,name=c,proto3" json:"c,omitempty"`
|
|
D []*TestVersion3 `protobuf:"bytes,5,rep,name=d,proto3" json:"d,omitempty"`
|
|
// Types that are valid to be assigned to Sum:
|
|
// *TestVersion3LoneNesting_F
|
|
Sum isTestVersion3LoneNesting_Sum `protobuf_oneof:"sum"`
|
|
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
|
|
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
|
|
// google.protobuf.Timestamp i = 10;
|
|
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
|
|
*Customer1 `protobuf:"bytes,12,opt,name=k,proto3,embedded=k" json:"k,omitempty"`
|
|
NonCriticalField string `protobuf:"bytes,1031,opt,name=non_critical_field,json=nonCriticalField,proto3" json:"non_critical_field,omitempty"`
|
|
Inner1 *TestVersion3LoneNesting_Inner1 `protobuf:"bytes,14,opt,name=inner1,proto3" json:"inner1,omitempty"`
|
|
Inner2 *TestVersion3LoneNesting_Inner2 `protobuf:"bytes,15,opt,name=inner2,proto3" json:"inner2,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) Reset() { *m = TestVersion3LoneNesting{} }
|
|
func (m *TestVersion3LoneNesting) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion3LoneNesting) ProtoMessage() {}
|
|
func (*TestVersion3LoneNesting) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{28}
|
|
}
|
|
func (m *TestVersion3LoneNesting) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion3LoneNesting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion3LoneNesting.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 *TestVersion3LoneNesting) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion3LoneNesting.Merge(m, src)
|
|
}
|
|
func (m *TestVersion3LoneNesting) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion3LoneNesting) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion3LoneNesting.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion3LoneNesting proto.InternalMessageInfo
|
|
|
|
type isTestVersion3LoneNesting_Sum interface {
|
|
isTestVersion3LoneNesting_Sum()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type TestVersion3LoneNesting_F struct {
|
|
F *TestVersion3LoneNesting `protobuf:"bytes,7,opt,name=f,proto3,oneof" json:"f,omitempty"`
|
|
}
|
|
|
|
func (*TestVersion3LoneNesting_F) isTestVersion3LoneNesting_Sum() {}
|
|
|
|
func (m *TestVersion3LoneNesting) GetSum() isTestVersion3LoneNesting_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetX() int64 {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetA() *TestVersion3 {
|
|
if m != nil {
|
|
return m.A
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetB() *TestVersion3 {
|
|
if m != nil {
|
|
return m.B
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetC() []*TestVersion3 {
|
|
if m != nil {
|
|
return m.C
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetD() []*TestVersion3 {
|
|
if m != nil {
|
|
return m.D
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetF() *TestVersion3LoneNesting {
|
|
if x, ok := m.GetSum().(*TestVersion3LoneNesting_F); ok {
|
|
return x.F
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetG() *types.Any {
|
|
if m != nil {
|
|
return m.G
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetH() []*TestVersion1 {
|
|
if m != nil {
|
|
return m.H
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetNonCriticalField() string {
|
|
if m != nil {
|
|
return m.NonCriticalField
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetInner1() *TestVersion3LoneNesting_Inner1 {
|
|
if m != nil {
|
|
return m.Inner1
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) GetInner2() *TestVersion3LoneNesting_Inner2 {
|
|
if m != nil {
|
|
return m.Inner2
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*TestVersion3LoneNesting) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*TestVersion3LoneNesting_F)(nil),
|
|
}
|
|
}
|
|
|
|
type TestVersion3LoneNesting_Inner1 struct {
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Inner *TestVersion3LoneNesting_Inner1_InnerInner `protobuf:"bytes,3,opt,name=inner,proto3" json:"inner,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1) Reset() { *m = TestVersion3LoneNesting_Inner1{} }
|
|
func (m *TestVersion3LoneNesting_Inner1) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion3LoneNesting_Inner1) ProtoMessage() {}
|
|
func (*TestVersion3LoneNesting_Inner1) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{28, 0}
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion3LoneNesting_Inner1.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 *TestVersion3LoneNesting_Inner1) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion3LoneNesting_Inner1.Merge(m, src)
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion3LoneNesting_Inner1.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion3LoneNesting_Inner1 proto.InternalMessageInfo
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1) GetId() int64 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1) GetInner() *TestVersion3LoneNesting_Inner1_InnerInner {
|
|
if m != nil {
|
|
return m.Inner
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TestVersion3LoneNesting_Inner1_InnerInner struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) Reset() {
|
|
*m = TestVersion3LoneNesting_Inner1_InnerInner{}
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*TestVersion3LoneNesting_Inner1_InnerInner) ProtoMessage() {}
|
|
func (*TestVersion3LoneNesting_Inner1_InnerInner) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{28, 0, 0}
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion3LoneNesting_Inner1_InnerInner.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 *TestVersion3LoneNesting_Inner1_InnerInner) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion3LoneNesting_Inner1_InnerInner.Merge(m, src)
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion3LoneNesting_Inner1_InnerInner.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion3LoneNesting_Inner1_InnerInner proto.InternalMessageInfo
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) GetCity() string {
|
|
if m != nil {
|
|
return m.City
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TestVersion3LoneNesting_Inner2 struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
|
|
Inner *TestVersion3LoneNesting_Inner2_InnerInner `protobuf:"bytes,3,opt,name=inner,proto3" json:"inner,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2) Reset() { *m = TestVersion3LoneNesting_Inner2{} }
|
|
func (m *TestVersion3LoneNesting_Inner2) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion3LoneNesting_Inner2) ProtoMessage() {}
|
|
func (*TestVersion3LoneNesting_Inner2) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{28, 1}
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion3LoneNesting_Inner2.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 *TestVersion3LoneNesting_Inner2) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion3LoneNesting_Inner2.Merge(m, src)
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion3LoneNesting_Inner2.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion3LoneNesting_Inner2 proto.InternalMessageInfo
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2) GetCountry() string {
|
|
if m != nil {
|
|
return m.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2) GetInner() *TestVersion3LoneNesting_Inner2_InnerInner {
|
|
if m != nil {
|
|
return m.Inner
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TestVersion3LoneNesting_Inner2_InnerInner struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) Reset() {
|
|
*m = TestVersion3LoneNesting_Inner2_InnerInner{}
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*TestVersion3LoneNesting_Inner2_InnerInner) ProtoMessage() {}
|
|
func (*TestVersion3LoneNesting_Inner2_InnerInner) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{28, 1, 0}
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion3LoneNesting_Inner2_InnerInner.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 *TestVersion3LoneNesting_Inner2_InnerInner) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion3LoneNesting_Inner2_InnerInner.Merge(m, src)
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion3LoneNesting_Inner2_InnerInner.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion3LoneNesting_Inner2_InnerInner proto.InternalMessageInfo
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) GetCity() string {
|
|
if m != nil {
|
|
return m.City
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TestVersion4LoneNesting struct {
|
|
X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
A *TestVersion3 `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
|
|
B *TestVersion3 `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"`
|
|
C []*TestVersion3 `protobuf:"bytes,4,rep,name=c,proto3" json:"c,omitempty"`
|
|
D []*TestVersion3 `protobuf:"bytes,5,rep,name=d,proto3" json:"d,omitempty"`
|
|
// Types that are valid to be assigned to Sum:
|
|
// *TestVersion4LoneNesting_F
|
|
Sum isTestVersion4LoneNesting_Sum `protobuf_oneof:"sum"`
|
|
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
|
|
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
|
|
// google.protobuf.Timestamp i = 10;
|
|
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
|
|
*Customer1 `protobuf:"bytes,12,opt,name=k,proto3,embedded=k" json:"k,omitempty"`
|
|
NonCriticalField string `protobuf:"bytes,1031,opt,name=non_critical_field,json=nonCriticalField,proto3" json:"non_critical_field,omitempty"`
|
|
Inner1 *TestVersion4LoneNesting_Inner1 `protobuf:"bytes,14,opt,name=inner1,proto3" json:"inner1,omitempty"`
|
|
Inner2 *TestVersion4LoneNesting_Inner2 `protobuf:"bytes,15,opt,name=inner2,proto3" json:"inner2,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) Reset() { *m = TestVersion4LoneNesting{} }
|
|
func (m *TestVersion4LoneNesting) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion4LoneNesting) ProtoMessage() {}
|
|
func (*TestVersion4LoneNesting) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{29}
|
|
}
|
|
func (m *TestVersion4LoneNesting) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion4LoneNesting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion4LoneNesting.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 *TestVersion4LoneNesting) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion4LoneNesting.Merge(m, src)
|
|
}
|
|
func (m *TestVersion4LoneNesting) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion4LoneNesting) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion4LoneNesting.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion4LoneNesting proto.InternalMessageInfo
|
|
|
|
type isTestVersion4LoneNesting_Sum interface {
|
|
isTestVersion4LoneNesting_Sum()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type TestVersion4LoneNesting_F struct {
|
|
F *TestVersion3LoneNesting `protobuf:"bytes,7,opt,name=f,proto3,oneof" json:"f,omitempty"`
|
|
}
|
|
|
|
func (*TestVersion4LoneNesting_F) isTestVersion4LoneNesting_Sum() {}
|
|
|
|
func (m *TestVersion4LoneNesting) GetSum() isTestVersion4LoneNesting_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetX() int64 {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetA() *TestVersion3 {
|
|
if m != nil {
|
|
return m.A
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetB() *TestVersion3 {
|
|
if m != nil {
|
|
return m.B
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetC() []*TestVersion3 {
|
|
if m != nil {
|
|
return m.C
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetD() []*TestVersion3 {
|
|
if m != nil {
|
|
return m.D
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetF() *TestVersion3LoneNesting {
|
|
if x, ok := m.GetSum().(*TestVersion4LoneNesting_F); ok {
|
|
return x.F
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetG() *types.Any {
|
|
if m != nil {
|
|
return m.G
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetH() []*TestVersion1 {
|
|
if m != nil {
|
|
return m.H
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetNonCriticalField() string {
|
|
if m != nil {
|
|
return m.NonCriticalField
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetInner1() *TestVersion4LoneNesting_Inner1 {
|
|
if m != nil {
|
|
return m.Inner1
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) GetInner2() *TestVersion4LoneNesting_Inner2 {
|
|
if m != nil {
|
|
return m.Inner2
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*TestVersion4LoneNesting) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*TestVersion4LoneNesting_F)(nil),
|
|
}
|
|
}
|
|
|
|
type TestVersion4LoneNesting_Inner1 struct {
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Inner *TestVersion4LoneNesting_Inner1_InnerInner `protobuf:"bytes,3,opt,name=inner,proto3" json:"inner,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1) Reset() { *m = TestVersion4LoneNesting_Inner1{} }
|
|
func (m *TestVersion4LoneNesting_Inner1) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion4LoneNesting_Inner1) ProtoMessage() {}
|
|
func (*TestVersion4LoneNesting_Inner1) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{29, 0}
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion4LoneNesting_Inner1.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 *TestVersion4LoneNesting_Inner1) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion4LoneNesting_Inner1.Merge(m, src)
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion4LoneNesting_Inner1.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion4LoneNesting_Inner1 proto.InternalMessageInfo
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1) GetId() int64 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1) GetInner() *TestVersion4LoneNesting_Inner1_InnerInner {
|
|
if m != nil {
|
|
return m.Inner
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TestVersion4LoneNesting_Inner1_InnerInner struct {
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) Reset() {
|
|
*m = TestVersion4LoneNesting_Inner1_InnerInner{}
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*TestVersion4LoneNesting_Inner1_InnerInner) ProtoMessage() {}
|
|
func (*TestVersion4LoneNesting_Inner1_InnerInner) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{29, 0, 0}
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion4LoneNesting_Inner1_InnerInner.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 *TestVersion4LoneNesting_Inner1_InnerInner) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion4LoneNesting_Inner1_InnerInner.Merge(m, src)
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion4LoneNesting_Inner1_InnerInner.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion4LoneNesting_Inner1_InnerInner proto.InternalMessageInfo
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) GetId() int64 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) GetCity() string {
|
|
if m != nil {
|
|
return m.City
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TestVersion4LoneNesting_Inner2 struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
|
|
Inner *TestVersion4LoneNesting_Inner2_InnerInner `protobuf:"bytes,3,opt,name=inner,proto3" json:"inner,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2) Reset() { *m = TestVersion4LoneNesting_Inner2{} }
|
|
func (m *TestVersion4LoneNesting_Inner2) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersion4LoneNesting_Inner2) ProtoMessage() {}
|
|
func (*TestVersion4LoneNesting_Inner2) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{29, 1}
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion4LoneNesting_Inner2.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 *TestVersion4LoneNesting_Inner2) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion4LoneNesting_Inner2.Merge(m, src)
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion4LoneNesting_Inner2.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion4LoneNesting_Inner2 proto.InternalMessageInfo
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2) GetCountry() string {
|
|
if m != nil {
|
|
return m.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2) GetInner() *TestVersion4LoneNesting_Inner2_InnerInner {
|
|
if m != nil {
|
|
return m.Inner
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TestVersion4LoneNesting_Inner2_InnerInner struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) Reset() {
|
|
*m = TestVersion4LoneNesting_Inner2_InnerInner{}
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*TestVersion4LoneNesting_Inner2_InnerInner) ProtoMessage() {}
|
|
func (*TestVersion4LoneNesting_Inner2_InnerInner) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{29, 1, 0}
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersion4LoneNesting_Inner2_InnerInner.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 *TestVersion4LoneNesting_Inner2_InnerInner) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersion4LoneNesting_Inner2_InnerInner.Merge(m, src)
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersion4LoneNesting_Inner2_InnerInner.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersion4LoneNesting_Inner2_InnerInner proto.InternalMessageInfo
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) GetValue() int64 {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TestVersionFD1 struct {
|
|
X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
A *TestVersion1 `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
|
|
// Types that are valid to be assigned to Sum:
|
|
// *TestVersionFD1_E
|
|
// *TestVersionFD1_F
|
|
Sum isTestVersionFD1_Sum `protobuf_oneof:"sum"`
|
|
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
|
|
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersionFD1) Reset() { *m = TestVersionFD1{} }
|
|
func (m *TestVersionFD1) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersionFD1) ProtoMessage() {}
|
|
func (*TestVersionFD1) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{30}
|
|
}
|
|
func (m *TestVersionFD1) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersionFD1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersionFD1.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 *TestVersionFD1) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersionFD1.Merge(m, src)
|
|
}
|
|
func (m *TestVersionFD1) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersionFD1) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersionFD1.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersionFD1 proto.InternalMessageInfo
|
|
|
|
type isTestVersionFD1_Sum interface {
|
|
isTestVersionFD1_Sum()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type TestVersionFD1_E struct {
|
|
E int32 `protobuf:"varint,6,opt,name=e,proto3,oneof" json:"e,omitempty"`
|
|
}
|
|
type TestVersionFD1_F struct {
|
|
F *TestVersion1 `protobuf:"bytes,7,opt,name=f,proto3,oneof" json:"f,omitempty"`
|
|
}
|
|
|
|
func (*TestVersionFD1_E) isTestVersionFD1_Sum() {}
|
|
func (*TestVersionFD1_F) isTestVersionFD1_Sum() {}
|
|
|
|
func (m *TestVersionFD1) GetSum() isTestVersionFD1_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersionFD1) GetX() int64 {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersionFD1) GetA() *TestVersion1 {
|
|
if m != nil {
|
|
return m.A
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersionFD1) GetE() int32 {
|
|
if x, ok := m.GetSum().(*TestVersionFD1_E); ok {
|
|
return x.E
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersionFD1) GetF() *TestVersion1 {
|
|
if x, ok := m.GetSum().(*TestVersionFD1_F); ok {
|
|
return x.F
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersionFD1) GetG() *types.Any {
|
|
if m != nil {
|
|
return m.G
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersionFD1) GetH() []*TestVersion1 {
|
|
if m != nil {
|
|
return m.H
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*TestVersionFD1) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*TestVersionFD1_E)(nil),
|
|
(*TestVersionFD1_F)(nil),
|
|
}
|
|
}
|
|
|
|
type TestVersionFD1WithExtraAny struct {
|
|
X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
A *TestVersion1 `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
|
|
// Types that are valid to be assigned to Sum:
|
|
// *TestVersionFD1WithExtraAny_E
|
|
// *TestVersionFD1WithExtraAny_F
|
|
Sum isTestVersionFD1WithExtraAny_Sum `protobuf_oneof:"sum"`
|
|
G *AnyWithExtra `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
|
|
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny) Reset() { *m = TestVersionFD1WithExtraAny{} }
|
|
func (m *TestVersionFD1WithExtraAny) String() string { return proto.CompactTextString(m) }
|
|
func (*TestVersionFD1WithExtraAny) ProtoMessage() {}
|
|
func (*TestVersionFD1WithExtraAny) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{31}
|
|
}
|
|
func (m *TestVersionFD1WithExtraAny) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestVersionFD1WithExtraAny) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestVersionFD1WithExtraAny.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 *TestVersionFD1WithExtraAny) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestVersionFD1WithExtraAny.Merge(m, src)
|
|
}
|
|
func (m *TestVersionFD1WithExtraAny) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestVersionFD1WithExtraAny) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestVersionFD1WithExtraAny.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestVersionFD1WithExtraAny proto.InternalMessageInfo
|
|
|
|
type isTestVersionFD1WithExtraAny_Sum interface {
|
|
isTestVersionFD1WithExtraAny_Sum()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type TestVersionFD1WithExtraAny_E struct {
|
|
E int32 `protobuf:"varint,6,opt,name=e,proto3,oneof" json:"e,omitempty"`
|
|
}
|
|
type TestVersionFD1WithExtraAny_F struct {
|
|
F *TestVersion1 `protobuf:"bytes,7,opt,name=f,proto3,oneof" json:"f,omitempty"`
|
|
}
|
|
|
|
func (*TestVersionFD1WithExtraAny_E) isTestVersionFD1WithExtraAny_Sum() {}
|
|
func (*TestVersionFD1WithExtraAny_F) isTestVersionFD1WithExtraAny_Sum() {}
|
|
|
|
func (m *TestVersionFD1WithExtraAny) GetSum() isTestVersionFD1WithExtraAny_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny) GetX() int64 {
|
|
if m != nil {
|
|
return m.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny) GetA() *TestVersion1 {
|
|
if m != nil {
|
|
return m.A
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny) GetE() int32 {
|
|
if x, ok := m.GetSum().(*TestVersionFD1WithExtraAny_E); ok {
|
|
return x.E
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny) GetF() *TestVersion1 {
|
|
if x, ok := m.GetSum().(*TestVersionFD1WithExtraAny_F); ok {
|
|
return x.F
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny) GetG() *AnyWithExtra {
|
|
if m != nil {
|
|
return m.G
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny) GetH() []*TestVersion1 {
|
|
if m != nil {
|
|
return m.H
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*TestVersionFD1WithExtraAny) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*TestVersionFD1WithExtraAny_E)(nil),
|
|
(*TestVersionFD1WithExtraAny_F)(nil),
|
|
}
|
|
}
|
|
|
|
type AnyWithExtra struct {
|
|
*types.Any `protobuf:"bytes,1,opt,name=a,proto3,embedded=a" json:"a,omitempty"`
|
|
B int64 `protobuf:"varint,3,opt,name=b,proto3" json:"b,omitempty"`
|
|
C int64 `protobuf:"varint,4,opt,name=c,proto3" json:"c,omitempty"`
|
|
}
|
|
|
|
func (m *AnyWithExtra) Reset() { *m = AnyWithExtra{} }
|
|
func (m *AnyWithExtra) String() string { return proto.CompactTextString(m) }
|
|
func (*AnyWithExtra) ProtoMessage() {}
|
|
func (*AnyWithExtra) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{32}
|
|
}
|
|
func (m *AnyWithExtra) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *AnyWithExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_AnyWithExtra.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 *AnyWithExtra) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AnyWithExtra.Merge(m, src)
|
|
}
|
|
func (m *AnyWithExtra) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *AnyWithExtra) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AnyWithExtra.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AnyWithExtra proto.InternalMessageInfo
|
|
|
|
func (m *AnyWithExtra) GetB() int64 {
|
|
if m != nil {
|
|
return m.B
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *AnyWithExtra) GetC() int64 {
|
|
if m != nil {
|
|
return m.C
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TestUpdatedTxRaw struct {
|
|
BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"`
|
|
AuthInfoBytes []byte `protobuf:"bytes,2,opt,name=auth_info_bytes,json=authInfoBytes,proto3" json:"auth_info_bytes,omitempty"`
|
|
Signatures [][]byte `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"`
|
|
NewField_5 []byte `protobuf:"bytes,5,opt,name=new_field_5,json=newField5,proto3" json:"new_field_5,omitempty"`
|
|
NewField_1024 []byte `protobuf:"bytes,1024,opt,name=new_field_1024,json=newField1024,proto3" json:"new_field_1024,omitempty"`
|
|
}
|
|
|
|
func (m *TestUpdatedTxRaw) Reset() { *m = TestUpdatedTxRaw{} }
|
|
func (m *TestUpdatedTxRaw) String() string { return proto.CompactTextString(m) }
|
|
func (*TestUpdatedTxRaw) ProtoMessage() {}
|
|
func (*TestUpdatedTxRaw) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{33}
|
|
}
|
|
func (m *TestUpdatedTxRaw) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestUpdatedTxRaw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestUpdatedTxRaw.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 *TestUpdatedTxRaw) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestUpdatedTxRaw.Merge(m, src)
|
|
}
|
|
func (m *TestUpdatedTxRaw) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestUpdatedTxRaw) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestUpdatedTxRaw.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestUpdatedTxRaw proto.InternalMessageInfo
|
|
|
|
func (m *TestUpdatedTxRaw) GetBodyBytes() []byte {
|
|
if m != nil {
|
|
return m.BodyBytes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestUpdatedTxRaw) GetAuthInfoBytes() []byte {
|
|
if m != nil {
|
|
return m.AuthInfoBytes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestUpdatedTxRaw) GetSignatures() [][]byte {
|
|
if m != nil {
|
|
return m.Signatures
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestUpdatedTxRaw) GetNewField_5() []byte {
|
|
if m != nil {
|
|
return m.NewField_5
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestUpdatedTxRaw) GetNewField_1024() []byte {
|
|
if m != nil {
|
|
return m.NewField_1024
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TestUpdatedTxBody struct {
|
|
Messages []*types.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
|
|
Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
|
|
TimeoutHeight int64 `protobuf:"varint,3,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
|
|
SomeNewField uint64 `protobuf:"varint,4,opt,name=some_new_field,json=someNewField,proto3" json:"some_new_field,omitempty"`
|
|
SomeNewFieldNonCriticalField string `protobuf:"bytes,1050,opt,name=some_new_field_non_critical_field,json=someNewFieldNonCriticalField,proto3" json:"some_new_field_non_critical_field,omitempty"`
|
|
ExtensionOptions []*types.Any `protobuf:"bytes,1023,rep,name=extension_options,json=extensionOptions,proto3" json:"extension_options,omitempty"`
|
|
NonCriticalExtensionOptions []*types.Any `protobuf:"bytes,2047,rep,name=non_critical_extension_options,json=nonCriticalExtensionOptions,proto3" json:"non_critical_extension_options,omitempty"`
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) Reset() { *m = TestUpdatedTxBody{} }
|
|
func (m *TestUpdatedTxBody) String() string { return proto.CompactTextString(m) }
|
|
func (*TestUpdatedTxBody) ProtoMessage() {}
|
|
func (*TestUpdatedTxBody) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{34}
|
|
}
|
|
func (m *TestUpdatedTxBody) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestUpdatedTxBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestUpdatedTxBody.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 *TestUpdatedTxBody) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestUpdatedTxBody.Merge(m, src)
|
|
}
|
|
func (m *TestUpdatedTxBody) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestUpdatedTxBody) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestUpdatedTxBody.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestUpdatedTxBody proto.InternalMessageInfo
|
|
|
|
func (m *TestUpdatedTxBody) GetMessages() []*types.Any {
|
|
if m != nil {
|
|
return m.Messages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) GetMemo() string {
|
|
if m != nil {
|
|
return m.Memo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) GetTimeoutHeight() int64 {
|
|
if m != nil {
|
|
return m.TimeoutHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) GetSomeNewField() uint64 {
|
|
if m != nil {
|
|
return m.SomeNewField
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) GetSomeNewFieldNonCriticalField() string {
|
|
if m != nil {
|
|
return m.SomeNewFieldNonCriticalField
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) GetExtensionOptions() []*types.Any {
|
|
if m != nil {
|
|
return m.ExtensionOptions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) GetNonCriticalExtensionOptions() []*types.Any {
|
|
if m != nil {
|
|
return m.NonCriticalExtensionOptions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TestUpdatedAuthInfo struct {
|
|
SignerInfos []*tx.SignerInfo `protobuf:"bytes,1,rep,name=signer_infos,json=signerInfos,proto3" json:"signer_infos,omitempty"`
|
|
Fee *tx.Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
|
|
NewField_3 []byte `protobuf:"bytes,3,opt,name=new_field_3,json=newField3,proto3" json:"new_field_3,omitempty"`
|
|
NewField_1024 []byte `protobuf:"bytes,1024,opt,name=new_field_1024,json=newField1024,proto3" json:"new_field_1024,omitempty"`
|
|
}
|
|
|
|
func (m *TestUpdatedAuthInfo) Reset() { *m = TestUpdatedAuthInfo{} }
|
|
func (m *TestUpdatedAuthInfo) String() string { return proto.CompactTextString(m) }
|
|
func (*TestUpdatedAuthInfo) ProtoMessage() {}
|
|
func (*TestUpdatedAuthInfo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{35}
|
|
}
|
|
func (m *TestUpdatedAuthInfo) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestUpdatedAuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestUpdatedAuthInfo.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 *TestUpdatedAuthInfo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestUpdatedAuthInfo.Merge(m, src)
|
|
}
|
|
func (m *TestUpdatedAuthInfo) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestUpdatedAuthInfo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestUpdatedAuthInfo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestUpdatedAuthInfo proto.InternalMessageInfo
|
|
|
|
func (m *TestUpdatedAuthInfo) GetSignerInfos() []*tx.SignerInfo {
|
|
if m != nil {
|
|
return m.SignerInfos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestUpdatedAuthInfo) GetFee() *tx.Fee {
|
|
if m != nil {
|
|
return m.Fee
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestUpdatedAuthInfo) GetNewField_3() []byte {
|
|
if m != nil {
|
|
return m.NewField_3
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestUpdatedAuthInfo) GetNewField_1024() []byte {
|
|
if m != nil {
|
|
return m.NewField_1024
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TestRepeatedUints struct {
|
|
Nums []uint64 `protobuf:"varint,1,rep,packed,name=nums,proto3" json:"nums,omitempty"`
|
|
}
|
|
|
|
func (m *TestRepeatedUints) Reset() { *m = TestRepeatedUints{} }
|
|
func (m *TestRepeatedUints) String() string { return proto.CompactTextString(m) }
|
|
func (*TestRepeatedUints) ProtoMessage() {}
|
|
func (*TestRepeatedUints) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_2fcc84b9998d60d8, []int{36}
|
|
}
|
|
func (m *TestRepeatedUints) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *TestRepeatedUints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_TestRepeatedUints.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 *TestRepeatedUints) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TestRepeatedUints.Merge(m, src)
|
|
}
|
|
func (m *TestRepeatedUints) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *TestRepeatedUints) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TestRepeatedUints.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TestRepeatedUints proto.InternalMessageInfo
|
|
|
|
func (m *TestRepeatedUints) GetNums() []uint64 {
|
|
if m != nil {
|
|
return m.Nums
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("testdata.Customer2_City", Customer2_City_name, Customer2_City_value)
|
|
proto.RegisterType((*Dog)(nil), "testdata.Dog")
|
|
proto.RegisterType((*Cat)(nil), "testdata.Cat")
|
|
proto.RegisterType((*HasAnimal)(nil), "testdata.HasAnimal")
|
|
proto.RegisterType((*HasHasAnimal)(nil), "testdata.HasHasAnimal")
|
|
proto.RegisterType((*HasHasHasAnimal)(nil), "testdata.HasHasHasAnimal")
|
|
proto.RegisterType((*EchoRequest)(nil), "testdata.EchoRequest")
|
|
proto.RegisterType((*EchoResponse)(nil), "testdata.EchoResponse")
|
|
proto.RegisterType((*SayHelloRequest)(nil), "testdata.SayHelloRequest")
|
|
proto.RegisterType((*SayHelloResponse)(nil), "testdata.SayHelloResponse")
|
|
proto.RegisterType((*TestAnyRequest)(nil), "testdata.TestAnyRequest")
|
|
proto.RegisterType((*TestAnyResponse)(nil), "testdata.TestAnyResponse")
|
|
proto.RegisterType((*TestMsg)(nil), "testdata.TestMsg")
|
|
proto.RegisterType((*BadMultiSignature)(nil), "testdata.BadMultiSignature")
|
|
proto.RegisterType((*Customer1)(nil), "testdata.Customer1")
|
|
proto.RegisterType((*Customer2)(nil), "testdata.Customer2")
|
|
proto.RegisterType((*Nested4A)(nil), "testdata.Nested4A")
|
|
proto.RegisterType((*Nested3A)(nil), "testdata.Nested3A")
|
|
proto.RegisterMapType((map[int64]*Nested4A)(nil), "testdata.Nested3A.IndexEntry")
|
|
proto.RegisterType((*Nested2A)(nil), "testdata.Nested2A")
|
|
proto.RegisterType((*Nested1A)(nil), "testdata.Nested1A")
|
|
proto.RegisterType((*Nested4B)(nil), "testdata.Nested4B")
|
|
proto.RegisterType((*Nested3B)(nil), "testdata.Nested3B")
|
|
proto.RegisterType((*Nested2B)(nil), "testdata.Nested2B")
|
|
proto.RegisterType((*Nested1B)(nil), "testdata.Nested1B")
|
|
proto.RegisterType((*Customer3)(nil), "testdata.Customer3")
|
|
proto.RegisterType((*TestVersion1)(nil), "testdata.TestVersion1")
|
|
proto.RegisterType((*TestVersion2)(nil), "testdata.TestVersion2")
|
|
proto.RegisterType((*TestVersion3)(nil), "testdata.TestVersion3")
|
|
proto.RegisterType((*TestVersion3LoneOneOfValue)(nil), "testdata.TestVersion3LoneOneOfValue")
|
|
proto.RegisterType((*TestVersion3LoneNesting)(nil), "testdata.TestVersion3LoneNesting")
|
|
proto.RegisterType((*TestVersion3LoneNesting_Inner1)(nil), "testdata.TestVersion3LoneNesting.Inner1")
|
|
proto.RegisterType((*TestVersion3LoneNesting_Inner1_InnerInner)(nil), "testdata.TestVersion3LoneNesting.Inner1.InnerInner")
|
|
proto.RegisterType((*TestVersion3LoneNesting_Inner2)(nil), "testdata.TestVersion3LoneNesting.Inner2")
|
|
proto.RegisterType((*TestVersion3LoneNesting_Inner2_InnerInner)(nil), "testdata.TestVersion3LoneNesting.Inner2.InnerInner")
|
|
proto.RegisterType((*TestVersion4LoneNesting)(nil), "testdata.TestVersion4LoneNesting")
|
|
proto.RegisterType((*TestVersion4LoneNesting_Inner1)(nil), "testdata.TestVersion4LoneNesting.Inner1")
|
|
proto.RegisterType((*TestVersion4LoneNesting_Inner1_InnerInner)(nil), "testdata.TestVersion4LoneNesting.Inner1.InnerInner")
|
|
proto.RegisterType((*TestVersion4LoneNesting_Inner2)(nil), "testdata.TestVersion4LoneNesting.Inner2")
|
|
proto.RegisterType((*TestVersion4LoneNesting_Inner2_InnerInner)(nil), "testdata.TestVersion4LoneNesting.Inner2.InnerInner")
|
|
proto.RegisterType((*TestVersionFD1)(nil), "testdata.TestVersionFD1")
|
|
proto.RegisterType((*TestVersionFD1WithExtraAny)(nil), "testdata.TestVersionFD1WithExtraAny")
|
|
proto.RegisterType((*AnyWithExtra)(nil), "testdata.AnyWithExtra")
|
|
proto.RegisterType((*TestUpdatedTxRaw)(nil), "testdata.TestUpdatedTxRaw")
|
|
proto.RegisterType((*TestUpdatedTxBody)(nil), "testdata.TestUpdatedTxBody")
|
|
proto.RegisterType((*TestUpdatedAuthInfo)(nil), "testdata.TestUpdatedAuthInfo")
|
|
proto.RegisterType((*TestRepeatedUints)(nil), "testdata.TestRepeatedUints")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("proto.proto", fileDescriptor_2fcc84b9998d60d8) }
|
|
|
|
var fileDescriptor_2fcc84b9998d60d8 = []byte{
|
|
// 2003 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0x4f, 0x8f, 0x1b, 0x49,
|
|
0x15, 0x9f, 0x76, 0xdb, 0x33, 0xf6, 0x1b, 0xaf, 0xc7, 0xa9, 0x0d, 0x4b, 0xc7, 0xd9, 0x4c, 0x66,
|
|
0x5b, 0xd9, 0xc4, 0xac, 0x36, 0x76, 0xdc, 0x76, 0x24, 0x94, 0x03, 0x8a, 0x3d, 0x99, 0xd9, 0x89,
|
|
0x48, 0x26, 0xa8, 0x93, 0x0d, 0x28, 0x17, 0xab, 0xdd, 0x5d, 0xb6, 0x5b, 0xb1, 0xab, 0x86, 0xae,
|
|
0x72, 0x32, 0xe6, 0x84, 0xe0, 0xc0, 0x75, 0x2f, 0x08, 0x89, 0x1b, 0x47, 0x4e, 0x68, 0xbf, 0x01,
|
|
0x37, 0x72, 0x41, 0xca, 0x05, 0x09, 0x09, 0x29, 0x42, 0xc9, 0x95, 0x4f, 0x00, 0x42, 0x8b, 0xaa,
|
|
0xba, 0xfa, 0x8f, 0x67, 0xec, 0x59, 0x67, 0x16, 0x36, 0x1a, 0x89, 0x8b, 0x5d, 0xf5, 0xfa, 0x57,
|
|
0xbf, 0x7a, 0xf5, 0xfe, 0x75, 0x57, 0x15, 0xac, 0x1f, 0x04, 0x94, 0xd3, 0x9a, 0xfc, 0x45, 0x79,
|
|
0x8e, 0x19, 0xf7, 0x1c, 0xee, 0x54, 0xce, 0x0f, 0xe8, 0x80, 0x4a, 0x61, 0x5d, 0xb4, 0xc2, 0xe7,
|
|
0x95, 0x0b, 0x03, 0x4a, 0x07, 0x23, 0x5c, 0x97, 0xbd, 0xde, 0xa4, 0x5f, 0x77, 0xc8, 0x54, 0x3d,
|
|
0xaa, 0xb8, 0x94, 0x8d, 0x29, 0xab, 0xf3, 0xc3, 0xfa, 0xb3, 0x46, 0x0f, 0x73, 0xa7, 0x51, 0xe7,
|
|
0x87, 0xe1, 0x33, 0xf3, 0x3a, 0xe8, 0x77, 0xe8, 0x00, 0x21, 0xc8, 0x32, 0xff, 0x67, 0xd8, 0xd0,
|
|
0xb6, 0xb4, 0x6a, 0xc1, 0x96, 0x6d, 0x21, 0x23, 0xce, 0x18, 0x1b, 0x99, 0x50, 0x26, 0xda, 0xe6,
|
|
0x4d, 0xd0, 0xb7, 0x1d, 0x8e, 0x0c, 0x58, 0x1b, 0x53, 0xe2, 0x3f, 0xc5, 0x81, 0x1a, 0x11, 0x75,
|
|
0xd1, 0x79, 0xc8, 0x8d, 0xfc, 0x67, 0x98, 0xc9, 0x51, 0x39, 0x3b, 0xec, 0x98, 0x9f, 0x41, 0x61,
|
|
0xcf, 0x61, 0x6d, 0xe2, 0x8f, 0x9d, 0x11, 0xfa, 0x14, 0x56, 0x1d, 0xd9, 0x92, 0x63, 0xd7, 0xad,
|
|
0xf3, 0xb5, 0x50, 0xf5, 0x5a, 0xa4, 0x7a, 0xad, 0x4d, 0xa6, 0xb6, 0xc2, 0xa0, 0x22, 0x68, 0x87,
|
|
0x92, 0x4c, 0xb7, 0xb5, 0x43, 0x73, 0x1b, 0x8a, 0x7b, 0x0e, 0x4b, 0xb8, 0x9a, 0x00, 0x43, 0x87,
|
|
0x75, 0x97, 0xe0, 0x2b, 0x0c, 0xa3, 0x41, 0xe6, 0x7d, 0xd8, 0x08, 0x49, 0x12, 0x9e, 0x5b, 0x50,
|
|
0x12, 0x3c, 0x4b, 0x72, 0x15, 0x87, 0xa9, 0xb1, 0xe6, 0x35, 0x58, 0xdf, 0x71, 0x87, 0xd4, 0xc6,
|
|
0x3f, 0x9d, 0x60, 0x16, 0xda, 0x06, 0x33, 0xe6, 0x0c, 0x70, 0x6c, 0x9b, 0xb0, 0x6b, 0x56, 0xa1,
|
|
0x18, 0x02, 0xd9, 0x01, 0x25, 0x0c, 0x9f, 0x80, 0xfc, 0x18, 0x36, 0x1e, 0x3a, 0xd3, 0x3d, 0x3c,
|
|
0x1a, 0xc5, 0xb4, 0x91, 0x37, 0xb4, 0x94, 0x37, 0x6a, 0x50, 0x4e, 0x60, 0x8a, 0xb4, 0x02, 0xf9,
|
|
0x41, 0x80, 0x31, 0xf7, 0xc9, 0x40, 0x61, 0xe3, 0xbe, 0xb9, 0x03, 0xa5, 0x47, 0x98, 0x71, 0xb1,
|
|
0x04, 0xc5, 0xda, 0x04, 0x70, 0xc8, 0x74, 0x29, 0xfb, 0x39, 0x64, 0xaa, 0x16, 0xbc, 0x03, 0x1b,
|
|
0x31, 0x8d, 0x9a, 0xd5, 0x9a, 0xe3, 0x87, 0xf7, 0x6b, 0x51, 0xc8, 0xd6, 0x62, 0x63, 0xa5, 0xdd,
|
|
0xf0, 0x18, 0xd6, 0x04, 0xcd, 0x7d, 0x36, 0x40, 0x3f, 0x84, 0x35, 0xe6, 0x0f, 0x08, 0x0e, 0x98,
|
|
0xa1, 0x6d, 0xe9, 0xd5, 0x62, 0xa7, 0xf1, 0xcf, 0x57, 0x97, 0xaf, 0x0f, 0x7c, 0x3e, 0x9c, 0xf4,
|
|
0x6a, 0x2e, 0x1d, 0xd7, 0x55, 0x04, 0x87, 0x7f, 0xd7, 0x99, 0xf7, 0xb4, 0xce, 0xa7, 0x07, 0x98,
|
|
0xd5, 0xda, 0xae, 0xdb, 0xf6, 0xbc, 0x00, 0x33, 0x66, 0x47, 0x0c, 0x66, 0x0f, 0xce, 0x75, 0x1c,
|
|
0xef, 0xfe, 0x64, 0xc4, 0xfd, 0x87, 0xfe, 0x80, 0x38, 0x7c, 0x12, 0x60, 0xb4, 0x09, 0xc0, 0xa2,
|
|
0x8e, 0x9a, 0xc4, 0x4e, 0x49, 0xd0, 0x35, 0xd8, 0x18, 0x3b, 0x23, 0xdf, 0xf5, 0xe9, 0x84, 0x75,
|
|
0xfb, 0x3e, 0x1e, 0x79, 0x46, 0x6e, 0x4b, 0xab, 0x16, 0xed, 0x52, 0x2c, 0xde, 0x15, 0xd2, 0x5b,
|
|
0xd9, 0x97, 0xbf, 0xbb, 0xac, 0x99, 0x1c, 0x0a, 0xdb, 0x13, 0xc6, 0xe9, 0x18, 0x07, 0x0d, 0x54,
|
|
0x82, 0x8c, 0xef, 0xc9, 0x45, 0xe7, 0xec, 0x8c, 0xef, 0xcd, 0x4b, 0x1c, 0xf4, 0x3d, 0x28, 0xb3,
|
|
0x49, 0x8f, 0xb9, 0x81, 0x7f, 0xc0, 0x7d, 0x4a, 0xba, 0x7d, 0x8c, 0x0d, 0x7d, 0x4b, 0xab, 0x66,
|
|
0xec, 0x8d, 0xb4, 0x7c, 0x17, 0xcb, 0xb0, 0x38, 0x70, 0xa6, 0x63, 0x4c, 0xb8, 0xb1, 0x16, 0x86,
|
|
0x85, 0xea, 0x9a, 0x5f, 0x66, 0x92, 0x69, 0xad, 0x63, 0xd3, 0x56, 0x20, 0xef, 0x13, 0x6f, 0xc2,
|
|
0x78, 0x30, 0x55, 0xd9, 0x17, 0xf7, 0x63, 0x95, 0xf4, 0x94, 0x4a, 0xe7, 0x21, 0xd7, 0xc7, 0xcf,
|
|
0x71, 0x60, 0x64, 0xa5, 0x1e, 0x61, 0x07, 0x5d, 0x84, 0x7c, 0x80, 0x19, 0x0e, 0x9e, 0x61, 0xcf,
|
|
0xf8, 0x4d, 0x5e, 0xe6, 0x5d, 0x2c, 0x40, 0x9f, 0x42, 0xd6, 0xf5, 0xf9, 0xd4, 0x58, 0xdd, 0xd2,
|
|
0xaa, 0x25, 0xcb, 0x48, 0x1c, 0x1c, 0x6b, 0x55, 0xdb, 0xf6, 0xf9, 0xd4, 0x96, 0x28, 0x74, 0x0b,
|
|
0xde, 0x1b, 0xfb, 0xcc, 0xc5, 0xa3, 0x91, 0x43, 0x30, 0x9d, 0x30, 0x03, 0x4e, 0x88, 0xaf, 0x59,
|
|
0xa8, 0xf9, 0x19, 0x64, 0x05, 0x13, 0xca, 0x43, 0xf6, 0x9e, 0x43, 0x59, 0x79, 0x05, 0x95, 0x00,
|
|
0xee, 0x51, 0xd6, 0x26, 0x03, 0x3c, 0xc2, 0xac, 0xac, 0xa1, 0x22, 0xe4, 0x7f, 0xe4, 0x8c, 0x68,
|
|
0x7b, 0xc4, 0x69, 0x39, 0x83, 0x00, 0x56, 0xef, 0x53, 0xe6, 0xd2, 0xe7, 0x65, 0x1d, 0xad, 0xc3,
|
|
0xda, 0xbe, 0xe3, 0x07, 0xb4, 0xe7, 0x97, 0xb3, 0x66, 0x0d, 0xf2, 0xfb, 0x98, 0x71, 0xec, 0xb5,
|
|
0xda, 0xcb, 0x38, 0xca, 0xfc, 0x8b, 0x16, 0x0d, 0x68, 0x2e, 0x35, 0x00, 0x99, 0x90, 0x71, 0x5a,
|
|
0x46, 0x76, 0x4b, 0xaf, 0xae, 0x5b, 0x28, 0xb1, 0x48, 0x34, 0xa9, 0x9d, 0x71, 0x5a, 0xa8, 0x09,
|
|
0x39, 0x9f, 0x78, 0xf8, 0xd0, 0xc8, 0x49, 0xd8, 0xa5, 0xa3, 0xb0, 0x66, 0xbb, 0x76, 0x57, 0x3c,
|
|
0xdf, 0x21, 0x3c, 0x98, 0xda, 0x21, 0xb6, 0x72, 0x0f, 0x20, 0x11, 0xa2, 0x32, 0xe8, 0x4f, 0xf1,
|
|
0x54, 0xea, 0xa2, 0xdb, 0xa2, 0x89, 0xaa, 0x90, 0x7b, 0xe6, 0x8c, 0x26, 0xa1, 0x36, 0xf3, 0xe7,
|
|
0x0e, 0x01, 0xb7, 0x32, 0xdf, 0xd7, 0xcc, 0x27, 0xd1, 0xb2, 0xac, 0xe5, 0x96, 0xf5, 0x09, 0xac,
|
|
0x12, 0x89, 0x97, 0x31, 0x33, 0x87, 0xbe, 0xd9, 0xb6, 0x15, 0xc2, 0xdc, 0x8d, 0xb8, 0x1b, 0xc7,
|
|
0xb9, 0x13, 0x9e, 0x05, 0x6a, 0x5a, 0x09, 0xcf, 0xed, 0xd8, 0x57, 0x9d, 0x63, 0x3c, 0x65, 0xd0,
|
|
0x45, 0xa1, 0x0c, 0x03, 0x5b, 0x34, 0xe7, 0xc5, 0xb4, 0xe9, 0xc5, 0xce, 0x3b, 0x25, 0x83, 0x70,
|
|
0x67, 0x6f, 0xb1, 0x3b, 0x3b, 0x76, 0xa6, 0xd7, 0x32, 0x49, 0x6c, 0xcb, 0xb9, 0xb3, 0x88, 0xdc,
|
|
0x16, 0xb3, 0x68, 0xb6, 0x68, 0x2e, 0x61, 0xc9, 0x4e, 0x64, 0x01, 0x91, 0x93, 0x01, 0x9d, 0x70,
|
|
0x2c, 0x73, 0xb2, 0x60, 0x87, 0x1d, 0xf3, 0x27, 0xb1, 0x7d, 0x3b, 0xa7, 0xb0, 0x6f, 0xc2, 0xae,
|
|
0x2c, 0xa0, 0xc7, 0x16, 0x30, 0x7f, 0x91, 0xaa, 0x28, 0xcd, 0xa5, 0xe2, 0xa2, 0x04, 0x19, 0xd6,
|
|
0x57, 0xa5, 0x2b, 0xc3, 0xfa, 0xe8, 0x43, 0x28, 0xb0, 0x49, 0xe0, 0x0e, 0x9d, 0x60, 0x80, 0x55,
|
|
0x25, 0x49, 0x04, 0x68, 0x0b, 0xd6, 0x3d, 0xcc, 0xb8, 0x4f, 0x1c, 0x51, 0xdd, 0x64, 0x49, 0x2d,
|
|
0xd8, 0x69, 0x11, 0xba, 0x0a, 0x25, 0x37, 0xc0, 0x9e, 0xcf, 0xbb, 0xae, 0x13, 0x78, 0x5d, 0x42,
|
|
0xc3, 0xa2, 0xb7, 0xb7, 0x62, 0x17, 0x43, 0xf9, 0xb6, 0x13, 0x78, 0xfb, 0x14, 0x5d, 0x82, 0x82,
|
|
0x3b, 0x14, 0x6f, 0x2d, 0x01, 0xc9, 0x2b, 0x48, 0x3e, 0x14, 0xed, 0x53, 0x54, 0x87, 0x3c, 0x0d,
|
|
0xfc, 0x81, 0x4f, 0x9c, 0x91, 0x51, 0x38, 0xfa, 0xfa, 0x89, 0x4b, 0xb5, 0x1d, 0x83, 0x3a, 0x85,
|
|
0xb8, 0xca, 0x9a, 0xff, 0xc8, 0x40, 0x51, 0xbc, 0x89, 0x1e, 0xe3, 0x80, 0xf9, 0x94, 0x34, 0xc2,
|
|
0x6f, 0x0e, 0x4d, 0x7d, 0x73, 0xa0, 0x2b, 0xa0, 0x39, 0xca, 0xb8, 0x1f, 0x24, 0x9c, 0xe9, 0x01,
|
|
0xb6, 0xe6, 0x08, 0x54, 0x4f, 0x39, 0x78, 0x21, 0xaa, 0x27, 0x50, 0xae, 0x0a, 0xae, 0x85, 0x28,
|
|
0x17, 0x7d, 0x02, 0x9a, 0xa7, 0x4a, 0xc5, 0x02, 0x54, 0x27, 0xfb, 0xe2, 0xd5, 0xe5, 0x15, 0x5b,
|
|
0xf3, 0x50, 0x09, 0x34, 0x2c, 0xeb, 0x71, 0x6e, 0x6f, 0xc5, 0xd6, 0x30, 0xba, 0x0a, 0x5a, 0x5f,
|
|
0x9a, 0x70, 0xe1, 0x58, 0x81, 0xeb, 0x23, 0x13, 0xb4, 0x81, 0xb4, 0xe3, 0xa2, 0x82, 0xac, 0x0d,
|
|
0x84, 0xb6, 0x43, 0xa3, 0x70, 0xb2, 0xb6, 0x43, 0x74, 0x0d, 0xb4, 0xa7, 0x46, 0x71, 0xa1, 0xcd,
|
|
0x3b, 0xd9, 0x97, 0xaf, 0x2e, 0x6b, 0xb6, 0xf6, 0xb4, 0x93, 0x03, 0x9d, 0x4d, 0xc6, 0xe6, 0x2f,
|
|
0xf5, 0x19, 0x73, 0x5b, 0x6f, 0x6b, 0x6e, 0x6b, 0x29, 0x73, 0x5b, 0x4b, 0x99, 0xdb, 0x12, 0xe6,
|
|
0xbe, 0xf2, 0x75, 0xe6, 0xb6, 0x4e, 0x65, 0x68, 0xeb, 0x5d, 0x19, 0x1a, 0x5d, 0x84, 0x02, 0xc1,
|
|
0xcf, 0xd5, 0x67, 0xcc, 0x85, 0x2d, 0xad, 0x9a, 0xb5, 0xf3, 0x04, 0x3f, 0x97, 0x1f, 0x30, 0x91,
|
|
0x17, 0x7e, 0x3d, 0xeb, 0x85, 0xe6, 0xdb, 0x7a, 0xa1, 0xb9, 0x94, 0x17, 0x9a, 0x4b, 0x79, 0xa1,
|
|
0xb9, 0x94, 0x17, 0x9a, 0xa7, 0xf2, 0x42, 0xf3, 0x9d, 0x79, 0xe1, 0x3a, 0x20, 0x42, 0x49, 0xd7,
|
|
0x0d, 0x7c, 0xee, 0xbb, 0xce, 0x48, 0xb9, 0xe3, 0x57, 0xb2, 0x76, 0xd9, 0x65, 0x42, 0xc9, 0xb6,
|
|
0x7a, 0x32, 0xe3, 0x97, 0x7f, 0x65, 0xa0, 0x92, 0x56, 0xff, 0x1e, 0x25, 0xf8, 0x01, 0xc1, 0x0f,
|
|
0xfa, 0x8f, 0xc5, 0xab, 0xfc, 0x8c, 0x7a, 0xe9, 0xcc, 0x58, 0xff, 0xdf, 0xab, 0xf0, 0xdd, 0xa3,
|
|
0xd6, 0xdf, 0x97, 0x6f, 0xab, 0xc1, 0x19, 0x31, 0x7d, 0x23, 0x49, 0x88, 0x8f, 0xe6, 0xa3, 0x52,
|
|
0x6b, 0x3a, 0x23, 0xb9, 0x81, 0x6e, 0xc3, 0xaa, 0x4f, 0x08, 0x0e, 0x1a, 0x46, 0x49, 0x92, 0x57,
|
|
0xbf, 0x76, 0x65, 0xb5, 0xbb, 0x12, 0x6f, 0xab, 0x71, 0x31, 0x83, 0x65, 0x6c, 0xbc, 0x15, 0x83,
|
|
0xa5, 0x18, 0xac, 0xca, 0xef, 0x35, 0x58, 0x0d, 0x49, 0x53, 0xdf, 0x49, 0xfa, 0xc2, 0xef, 0xa4,
|
|
0xbb, 0xe2, 0x93, 0x9f, 0xe0, 0x40, 0x79, 0xbf, 0xb9, 0xac, 0xc6, 0xe1, 0x9f, 0xfc, 0xb1, 0x43,
|
|
0x86, 0xca, 0x0d, 0xb1, 0x11, 0x88, 0x84, 0xa9, 0xc9, 0x0b, 0xd1, 0xe4, 0x72, 0x4f, 0xa6, 0x26,
|
|
0x17, 0xed, 0xca, 0x1f, 0x22, 0x5d, 0xad, 0x63, 0x70, 0x03, 0xd6, 0x5c, 0x3a, 0x21, 0xd1, 0x26,
|
|
0xb1, 0x60, 0x47, 0xdd, 0xd3, 0x6a, 0x6c, 0xfd, 0x37, 0x34, 0x8e, 0xf2, 0xef, 0xab, 0xd9, 0xfc,
|
|
0x6b, 0xfd, 0x3f, 0xff, 0xce, 0x50, 0xfe, 0xb5, 0xbe, 0x71, 0xfe, 0xb5, 0xbe, 0xe5, 0xfc, 0x6b,
|
|
0x7d, 0xa3, 0xfc, 0xd3, 0x17, 0xe6, 0xdf, 0x97, 0xff, 0xb3, 0xfc, 0x6b, 0x2d, 0x95, 0x7f, 0xd6,
|
|
0x89, 0xf9, 0x77, 0x3e, 0x7d, 0x70, 0xa0, 0xab, 0x43, 0x82, 0x28, 0x03, 0xff, 0xac, 0x85, 0x87,
|
|
0x84, 0x6a, 0xbe, 0xdd, 0x3b, 0xa7, 0xdb, 0x0e, 0xbd, 0xf3, 0x6d, 0x49, 0xb4, 0x9e, 0xbf, 0x69,
|
|
0x33, 0xdf, 0x53, 0xbb, 0x77, 0x1a, 0x3f, 0xf6, 0xf9, 0x70, 0xe7, 0x90, 0x07, 0x4e, 0x9b, 0x4c,
|
|
0xbf, 0xd5, 0xb5, 0x5d, 0x49, 0xd6, 0x96, 0xc2, 0xb5, 0xc9, 0x34, 0xd6, 0xe8, 0xad, 0x57, 0xf7,
|
|
0x08, 0x8a, 0xe9, 0xf1, 0xa8, 0x2a, 0x16, 0x70, 0xc2, 0x31, 0x6e, 0x54, 0x01, 0x1c, 0xb1, 0xf0,
|
|
0xb0, 0x32, 0xea, 0xa2, 0x02, 0x16, 0xc3, 0x0a, 0x28, 0x7b, 0xae, 0xf9, 0x47, 0x0d, 0xca, 0x62,
|
|
0xc2, 0xcf, 0x0f, 0x3c, 0x87, 0x63, 0xef, 0xd1, 0xa1, 0xed, 0x3c, 0x47, 0x97, 0x00, 0x7a, 0xd4,
|
|
0x9b, 0x76, 0x7b, 0x53, 0x2e, 0x4f, 0x50, 0xb5, 0x6a, 0xd1, 0x2e, 0x08, 0x49, 0x47, 0x08, 0xd0,
|
|
0x55, 0xd8, 0x70, 0x26, 0x7c, 0xd8, 0xf5, 0x49, 0x9f, 0x2a, 0x4c, 0x46, 0x62, 0xde, 0x13, 0xe2,
|
|
0xbb, 0xa4, 0x4f, 0x43, 0xdc, 0xec, 0x41, 0xac, 0x7e, 0xec, 0x20, 0x76, 0x13, 0xd6, 0xe3, 0xbd,
|
|
0x4b, 0xf7, 0xa6, 0x3a, 0x84, 0x2d, 0x44, 0xbb, 0x97, 0x9b, 0xe8, 0x63, 0x28, 0x25, 0xcf, 0x1b,
|
|
0x37, 0xac, 0x96, 0xf1, 0xf3, 0xbc, 0xc4, 0x14, 0x23, 0x8c, 0x10, 0x9a, 0x5f, 0xe8, 0x70, 0x6e,
|
|
0x66, 0x09, 0x1d, 0xea, 0x4d, 0xd1, 0x0d, 0xc8, 0xab, 0x23, 0xf6, 0xf0, 0x0c, 0x78, 0x51, 0x90,
|
|
0xc5, 0x28, 0x91, 0xdd, 0x63, 0x3c, 0xa6, 0x51, 0x76, 0x8b, 0xb6, 0x50, 0x81, 0xfb, 0x63, 0x4c,
|
|
0x27, 0xbc, 0x3b, 0xc4, 0xfe, 0x60, 0xc8, 0x95, 0x1d, 0xdf, 0x53, 0xd2, 0x3d, 0x29, 0x44, 0x57,
|
|
0xa0, 0xc4, 0xe8, 0x18, 0x77, 0x93, 0xad, 0x58, 0x56, 0x6e, 0xc5, 0x8a, 0x42, 0xba, 0xaf, 0x94,
|
|
0x45, 0x7b, 0xf0, 0xd1, 0x2c, 0xaa, 0x3b, 0xa7, 0x30, 0xff, 0x36, 0x2c, 0xcc, 0x1f, 0xa6, 0x47,
|
|
0xee, 0x1f, 0x2d, 0xd2, 0x1d, 0x38, 0x87, 0x0f, 0x39, 0x26, 0x22, 0x46, 0xba, 0x54, 0x1e, 0x27,
|
|
0x33, 0xe3, 0xab, 0xb5, 0x13, 0x96, 0x59, 0x8e, 0xf1, 0x0f, 0x42, 0x38, 0x7a, 0x02, 0x9b, 0x33,
|
|
0xd3, 0xcf, 0x21, 0xdc, 0x38, 0x81, 0xf0, 0x62, 0xea, 0xcd, 0xb1, 0x73, 0x84, 0xdb, 0x7c, 0xa1,
|
|
0xc1, 0xfb, 0x29, 0x97, 0xb4, 0x55, 0x58, 0xa0, 0xdb, 0x50, 0x0c, 0x8f, 0xee, 0x65, 0xec, 0x44,
|
|
0x8e, 0xb9, 0x54, 0x0b, 0x0f, 0xfb, 0x6b, 0xfc, 0xb0, 0xa6, 0x6e, 0xad, 0x6a, 0x0f, 0x25, 0x4c,
|
|
0x0c, 0xb2, 0xd7, 0x59, 0xdc, 0x66, 0xa8, 0x9a, 0x9c, 0xb9, 0x89, 0xa4, 0x39, 0x3e, 0x70, 0x17,
|
|
0xe3, 0xf0, 0x2c, 0x6e, 0x26, 0xba, 0x9a, 0xd2, 0x6f, 0xa9, 0xe8, 0x6a, 0x2e, 0x1b, 0x5d, 0xd7,
|
|
0xc2, 0xe0, 0xb2, 0xf1, 0x01, 0x16, 0x4b, 0xf9, 0xdc, 0x27, 0x5c, 0x86, 0x0a, 0x99, 0x8c, 0x43,
|
|
0xfd, 0xb3, 0xb6, 0x6c, 0x5b, 0x7f, 0xd2, 0x60, 0x5d, 0x20, 0x1f, 0xe2, 0xe0, 0x99, 0xef, 0x62,
|
|
0x74, 0x13, 0xb2, 0x3b, 0xee, 0x90, 0xa2, 0xef, 0x24, 0x99, 0x9d, 0xba, 0x3b, 0xaa, 0x7c, 0x70,
|
|
0x54, 0xac, 0xae, 0x57, 0xda, 0x90, 0x8f, 0x2e, 0x7a, 0xd0, 0x85, 0x04, 0x73, 0xe4, 0x8e, 0xa8,
|
|
0x52, 0x99, 0xf7, 0x48, 0x51, 0xfc, 0x20, 0xbc, 0x6d, 0x11, 0x35, 0xcf, 0x98, 0x2d, 0x2b, 0xc9,
|
|
0x75, 0x50, 0xe5, 0xc2, 0x9c, 0x27, 0xe1, 0xf8, 0xce, 0xde, 0x8b, 0xd7, 0x9b, 0xda, 0xcb, 0xd7,
|
|
0x9b, 0xda, 0xdf, 0x5f, 0x6f, 0x6a, 0x5f, 0xbc, 0xd9, 0x5c, 0x79, 0xf9, 0x66, 0x73, 0xe5, 0xaf,
|
|
0x6f, 0x36, 0x57, 0x9e, 0xd4, 0x4e, 0xbe, 0xa7, 0xc1, 0x8c, 0x4f, 0xb8, 0x3f, 0xaa, 0x47, 0xcc,
|
|
0xbd, 0x55, 0x19, 0x32, 0xcd, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x37, 0x15, 0xe8, 0xdf,
|
|
0x1c, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// TestServiceClient is the client API for TestService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type TestServiceClient interface {
|
|
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
|
|
SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error)
|
|
TestAny(ctx context.Context, in *TestAnyRequest, opts ...grpc.CallOption) (*TestAnyResponse, error)
|
|
}
|
|
|
|
type testServiceClient struct {
|
|
cc grpc1.ClientConn
|
|
}
|
|
|
|
func NewTestServiceClient(cc grpc1.ClientConn) TestServiceClient {
|
|
return &testServiceClient{cc}
|
|
}
|
|
|
|
func (c *testServiceClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) {
|
|
out := new(EchoResponse)
|
|
err := c.cc.Invoke(ctx, "/testdata.TestService/Echo", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *testServiceClient) SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error) {
|
|
out := new(SayHelloResponse)
|
|
err := c.cc.Invoke(ctx, "/testdata.TestService/SayHello", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *testServiceClient) TestAny(ctx context.Context, in *TestAnyRequest, opts ...grpc.CallOption) (*TestAnyResponse, error) {
|
|
out := new(TestAnyResponse)
|
|
err := c.cc.Invoke(ctx, "/testdata.TestService/TestAny", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// TestServiceServer is the server API for TestService service.
|
|
type TestServiceServer interface {
|
|
Echo(context.Context, *EchoRequest) (*EchoResponse, error)
|
|
SayHello(context.Context, *SayHelloRequest) (*SayHelloResponse, error)
|
|
TestAny(context.Context, *TestAnyRequest) (*TestAnyResponse, error)
|
|
}
|
|
|
|
// UnimplementedTestServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedTestServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedTestServiceServer) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented")
|
|
}
|
|
func (*UnimplementedTestServiceServer) SayHello(ctx context.Context, req *SayHelloRequest) (*SayHelloResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method SayHello not implemented")
|
|
}
|
|
func (*UnimplementedTestServiceServer) TestAny(ctx context.Context, req *TestAnyRequest) (*TestAnyResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method TestAny not implemented")
|
|
}
|
|
|
|
func RegisterTestServiceServer(s grpc1.Server, srv TestServiceServer) {
|
|
s.RegisterService(&_TestService_serviceDesc, srv)
|
|
}
|
|
|
|
func _TestService_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(EchoRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TestServiceServer).Echo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/testdata.TestService/Echo",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TestServiceServer).Echo(ctx, req.(*EchoRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _TestService_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SayHelloRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TestServiceServer).SayHello(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/testdata.TestService/SayHello",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TestServiceServer).SayHello(ctx, req.(*SayHelloRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _TestService_TestAny_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(TestAnyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TestServiceServer).TestAny(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/testdata.TestService/TestAny",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TestServiceServer).TestAny(ctx, req.(*TestAnyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _TestService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "testdata.TestService",
|
|
HandlerType: (*TestServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Echo",
|
|
Handler: _TestService_Echo_Handler,
|
|
},
|
|
{
|
|
MethodName: "SayHello",
|
|
Handler: _TestService_SayHello_Handler,
|
|
},
|
|
{
|
|
MethodName: "TestAny",
|
|
Handler: _TestService_TestAny_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto.proto",
|
|
}
|
|
|
|
func (m *Dog) 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 *Dog) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Dog) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Size_) > 0 {
|
|
i -= len(m.Size_)
|
|
copy(dAtA[i:], m.Size_)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Size_)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Cat) 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 *Cat) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Cat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Lives != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Lives))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if len(m.Moniker) > 0 {
|
|
i -= len(m.Moniker)
|
|
copy(dAtA[i:], m.Moniker)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Moniker)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *HasAnimal) 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 *HasAnimal) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *HasAnimal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.X != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.X))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.Animal != nil {
|
|
{
|
|
size, err := m.Animal.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *HasHasAnimal) 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 *HasHasAnimal) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *HasHasAnimal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.HasAnimal != nil {
|
|
{
|
|
size, err := m.HasAnimal.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *HasHasHasAnimal) 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 *HasHasHasAnimal) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *HasHasHasAnimal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.HasHasAnimal != nil {
|
|
{
|
|
size, err := m.HasHasAnimal.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *EchoRequest) 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 *EchoRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *EchoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Message) > 0 {
|
|
i -= len(m.Message)
|
|
copy(dAtA[i:], m.Message)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Message)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *EchoResponse) 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 *EchoResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *EchoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Message) > 0 {
|
|
i -= len(m.Message)
|
|
copy(dAtA[i:], m.Message)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Message)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SayHelloRequest) 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 *SayHelloRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SayHelloRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SayHelloResponse) 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 *SayHelloResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SayHelloResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Greeting) > 0 {
|
|
i -= len(m.Greeting)
|
|
copy(dAtA[i:], m.Greeting)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Greeting)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestAnyRequest) 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 *TestAnyRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestAnyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.AnyAnimal != nil {
|
|
{
|
|
size, err := m.AnyAnimal.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestAnyResponse) 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 *TestAnyResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestAnyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.HasAnimal != nil {
|
|
{
|
|
size, err := m.HasAnimal.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestMsg) 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 *TestMsg) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestMsg) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Signers) > 0 {
|
|
for iNdEx := len(m.Signers) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Signers[iNdEx])
|
|
copy(dAtA[i:], m.Signers[iNdEx])
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Signers[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BadMultiSignature) 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 *BadMultiSignature) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BadMultiSignature) 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.MaliciousField) > 0 {
|
|
i -= len(m.MaliciousField)
|
|
copy(dAtA[i:], m.MaliciousField)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.MaliciousField)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if len(m.Signatures) > 0 {
|
|
for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Signatures[iNdEx])
|
|
copy(dAtA[i:], m.Signatures[iNdEx])
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Signatures[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Customer1) 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 *Customer1) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Customer1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Payment) > 0 {
|
|
i -= len(m.Payment)
|
|
copy(dAtA[i:], m.Payment)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Payment)))
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
if m.SubscriptionFee != 0 {
|
|
i -= 4
|
|
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.SubscriptionFee))))
|
|
i--
|
|
dAtA[i] = 0x1d
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Customer2) 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 *Customer2) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Customer2) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Reserved != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Reserved))
|
|
i--
|
|
dAtA[i] = 0x41
|
|
i--
|
|
dAtA[i] = 0xb8
|
|
}
|
|
if m.Miscellaneous != nil {
|
|
{
|
|
size, err := m.Miscellaneous.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x52
|
|
}
|
|
if m.City != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.City))
|
|
i--
|
|
dAtA[i] = 0x30
|
|
}
|
|
if m.Fewer != 0 {
|
|
i -= 4
|
|
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Fewer))))
|
|
i--
|
|
dAtA[i] = 0x25
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.Industry != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Industry))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Nested4A) 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 *Nested4A) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Nested4A) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Nested3A) 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 *Nested3A) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Nested3A) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Index) > 0 {
|
|
for k := range m.Index {
|
|
v := m.Index[k]
|
|
baseI := i
|
|
if v != nil {
|
|
{
|
|
size, err := v.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
i = encodeVarintProto(dAtA, i, uint64(k))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
i = encodeVarintProto(dAtA, i, uint64(baseI-i))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
}
|
|
if len(m.A4) > 0 {
|
|
for iNdEx := len(m.A4) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.A4[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Nested2A) 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 *Nested2A) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Nested2A) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Nested != nil {
|
|
{
|
|
size, err := m.Nested.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Nested1A) 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 *Nested1A) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Nested1A) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Nested != nil {
|
|
{
|
|
size, err := m.Nested.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Nested4B) 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 *Nested4B) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Nested4B) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.Age != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Age))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Nested3B) 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 *Nested3B) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Nested3B) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.B4) > 0 {
|
|
for iNdEx := len(m.B4) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.B4[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.Age != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Age))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Nested2B) 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 *Nested2B) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Nested2B) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Route) > 0 {
|
|
i -= len(m.Route)
|
|
copy(dAtA[i:], m.Route)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Route)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if m.Nested != nil {
|
|
{
|
|
size, err := m.Nested.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.Fee != 0 {
|
|
i -= 8
|
|
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Fee))))
|
|
i--
|
|
dAtA[i] = 0x11
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Nested1B) 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 *Nested1B) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Nested1B) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Age != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Age))
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if m.Nested != nil {
|
|
{
|
|
size, err := m.Nested.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Customer3) 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 *Customer3) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Customer3) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Original != nil {
|
|
{
|
|
size, err := m.Original.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
if m.Payment != nil {
|
|
{
|
|
size := m.Payment.Size()
|
|
i -= size
|
|
if _, err := m.Payment.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
if len(m.Destination) > 0 {
|
|
i -= len(m.Destination)
|
|
copy(dAtA[i:], m.Destination)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Destination)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if m.Surcharge != 0 {
|
|
i -= 4
|
|
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Surcharge))))
|
|
i--
|
|
dAtA[i] = 0x25
|
|
}
|
|
if m.Sf != 0 {
|
|
i -= 4
|
|
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Sf))))
|
|
i--
|
|
dAtA[i] = 0x1d
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Customer3_CreditCardNo) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Customer3_CreditCardNo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
i -= len(m.CreditCardNo)
|
|
copy(dAtA[i:], m.CreditCardNo)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.CreditCardNo)))
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *Customer3_ChequeNo) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Customer3_ChequeNo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
i -= len(m.ChequeNo)
|
|
copy(dAtA[i:], m.ChequeNo)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.ChequeNo)))
|
|
i--
|
|
dAtA[i] = 0x42
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion1) 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 *TestVersion1) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Customer1 != nil {
|
|
{
|
|
size, err := m.Customer1.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x62
|
|
}
|
|
if len(m.H) > 0 {
|
|
for iNdEx := len(m.H) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.H[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
}
|
|
if m.G != nil {
|
|
{
|
|
size, err := m.G.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if m.Sum != nil {
|
|
{
|
|
size := m.Sum.Size()
|
|
i -= size
|
|
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for iNdEx := len(m.D) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.D[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
}
|
|
if len(m.C) > 0 {
|
|
for iNdEx := len(m.C) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.C[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if m.B != nil {
|
|
{
|
|
size, err := m.B.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.A != nil {
|
|
{
|
|
size, err := m.A.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.X != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.X))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion1_E) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion1_E) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
i = encodeVarintProto(dAtA, i, uint64(m.E))
|
|
i--
|
|
dAtA[i] = 0x30
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion1_F) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion1_F) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.F != nil {
|
|
{
|
|
size, err := m.F.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion2) 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 *TestVersion2) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion2) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.NewField != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.NewField))
|
|
i--
|
|
dAtA[i] = 0x1
|
|
i--
|
|
dAtA[i] = 0xc8
|
|
}
|
|
if m.Customer1 != nil {
|
|
{
|
|
size, err := m.Customer1.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x62
|
|
}
|
|
if len(m.H) > 0 {
|
|
for iNdEx := len(m.H) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.H[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
}
|
|
if m.G != nil {
|
|
{
|
|
size, err := m.G.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if m.Sum != nil {
|
|
{
|
|
size := m.Sum.Size()
|
|
i -= size
|
|
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for iNdEx := len(m.D) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.D[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
}
|
|
if len(m.C) > 0 {
|
|
for iNdEx := len(m.C) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.C[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if m.B != nil {
|
|
{
|
|
size, err := m.B.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.A != nil {
|
|
{
|
|
size, err := m.A.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.X != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.X))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion2_E) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion2_E) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
i = encodeVarintProto(dAtA, i, uint64(m.E))
|
|
i--
|
|
dAtA[i] = 0x30
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion2_F) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion2_F) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.F != nil {
|
|
{
|
|
size, err := m.F.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion3) 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 *TestVersion3) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.NonCriticalField) > 0 {
|
|
i -= len(m.NonCriticalField)
|
|
copy(dAtA[i:], m.NonCriticalField)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.NonCriticalField)))
|
|
i--
|
|
dAtA[i] = 0x40
|
|
i--
|
|
dAtA[i] = 0xba
|
|
}
|
|
if m.Customer1 != nil {
|
|
{
|
|
size, err := m.Customer1.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x62
|
|
}
|
|
if len(m.H) > 0 {
|
|
for iNdEx := len(m.H) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.H[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
}
|
|
if m.G != nil {
|
|
{
|
|
size, err := m.G.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if m.Sum != nil {
|
|
{
|
|
size := m.Sum.Size()
|
|
i -= size
|
|
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for iNdEx := len(m.D) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.D[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
}
|
|
if len(m.C) > 0 {
|
|
for iNdEx := len(m.C) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.C[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if m.B != nil {
|
|
{
|
|
size, err := m.B.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.A != nil {
|
|
{
|
|
size, err := m.A.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.X != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.X))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion3_E) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3_E) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
i = encodeVarintProto(dAtA, i, uint64(m.E))
|
|
i--
|
|
dAtA[i] = 0x30
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion3_F) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3_F) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.F != nil {
|
|
{
|
|
size, err := m.F.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion3LoneOneOfValue) 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 *TestVersion3LoneOneOfValue) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.NonCriticalField) > 0 {
|
|
i -= len(m.NonCriticalField)
|
|
copy(dAtA[i:], m.NonCriticalField)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.NonCriticalField)))
|
|
i--
|
|
dAtA[i] = 0x40
|
|
i--
|
|
dAtA[i] = 0xba
|
|
}
|
|
if m.Customer1 != nil {
|
|
{
|
|
size, err := m.Customer1.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x62
|
|
}
|
|
if len(m.H) > 0 {
|
|
for iNdEx := len(m.H) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.H[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
}
|
|
if m.G != nil {
|
|
{
|
|
size, err := m.G.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if m.Sum != nil {
|
|
{
|
|
size := m.Sum.Size()
|
|
i -= size
|
|
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for iNdEx := len(m.D) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.D[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
}
|
|
if len(m.C) > 0 {
|
|
for iNdEx := len(m.C) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.C[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if m.B != nil {
|
|
{
|
|
size, err := m.B.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.A != nil {
|
|
{
|
|
size, err := m.A.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.X != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.X))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue_E) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue_E) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
i = encodeVarintProto(dAtA, i, uint64(m.E))
|
|
i--
|
|
dAtA[i] = 0x30
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion3LoneNesting) 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 *TestVersion3LoneNesting) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.NonCriticalField) > 0 {
|
|
i -= len(m.NonCriticalField)
|
|
copy(dAtA[i:], m.NonCriticalField)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.NonCriticalField)))
|
|
i--
|
|
dAtA[i] = 0x40
|
|
i--
|
|
dAtA[i] = 0xba
|
|
}
|
|
if m.Inner2 != nil {
|
|
{
|
|
size, err := m.Inner2.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x7a
|
|
}
|
|
if m.Inner1 != nil {
|
|
{
|
|
size, err := m.Inner1.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x72
|
|
}
|
|
if m.Customer1 != nil {
|
|
{
|
|
size, err := m.Customer1.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x62
|
|
}
|
|
if len(m.H) > 0 {
|
|
for iNdEx := len(m.H) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.H[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
}
|
|
if m.G != nil {
|
|
{
|
|
size, err := m.G.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if m.Sum != nil {
|
|
{
|
|
size := m.Sum.Size()
|
|
i -= size
|
|
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for iNdEx := len(m.D) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.D[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
}
|
|
if len(m.C) > 0 {
|
|
for iNdEx := len(m.C) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.C[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if m.B != nil {
|
|
{
|
|
size, err := m.B.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.A != nil {
|
|
{
|
|
size, err := m.A.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.X != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.X))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_F) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_F) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.F != nil {
|
|
{
|
|
size, err := m.F.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1) 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 *TestVersion3LoneNesting_Inner1) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Inner != nil {
|
|
{
|
|
size, err := m.Inner.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) 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 *TestVersion3LoneNesting_Inner1_InnerInner) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.City) > 0 {
|
|
i -= len(m.City)
|
|
copy(dAtA[i:], m.City)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.City)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2) 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 *TestVersion3LoneNesting_Inner2) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Inner != nil {
|
|
{
|
|
size, err := m.Inner.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Country) > 0 {
|
|
i -= len(m.Country)
|
|
copy(dAtA[i:], m.Country)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Country)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) 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 *TestVersion3LoneNesting_Inner2_InnerInner) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.City) > 0 {
|
|
i -= len(m.City)
|
|
copy(dAtA[i:], m.City)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.City)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) 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 *TestVersion4LoneNesting) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.NonCriticalField) > 0 {
|
|
i -= len(m.NonCriticalField)
|
|
copy(dAtA[i:], m.NonCriticalField)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.NonCriticalField)))
|
|
i--
|
|
dAtA[i] = 0x40
|
|
i--
|
|
dAtA[i] = 0xba
|
|
}
|
|
if m.Inner2 != nil {
|
|
{
|
|
size, err := m.Inner2.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x7a
|
|
}
|
|
if m.Inner1 != nil {
|
|
{
|
|
size, err := m.Inner1.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x72
|
|
}
|
|
if m.Customer1 != nil {
|
|
{
|
|
size, err := m.Customer1.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x62
|
|
}
|
|
if len(m.H) > 0 {
|
|
for iNdEx := len(m.H) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.H[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
}
|
|
if m.G != nil {
|
|
{
|
|
size, err := m.G.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if m.Sum != nil {
|
|
{
|
|
size := m.Sum.Size()
|
|
i -= size
|
|
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for iNdEx := len(m.D) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.D[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
}
|
|
if len(m.C) > 0 {
|
|
for iNdEx := len(m.C) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.C[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if m.B != nil {
|
|
{
|
|
size, err := m.B.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.A != nil {
|
|
{
|
|
size, err := m.A.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.X != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.X))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_F) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_F) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.F != nil {
|
|
{
|
|
size, err := m.F.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1) 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 *TestVersion4LoneNesting_Inner1) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Inner != nil {
|
|
{
|
|
size, err := m.Inner.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) 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 *TestVersion4LoneNesting_Inner1_InnerInner) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.City) > 0 {
|
|
i -= len(m.City)
|
|
copy(dAtA[i:], m.City)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.City)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Id != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Id))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2) 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 *TestVersion4LoneNesting_Inner2) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Inner != nil {
|
|
{
|
|
size, err := m.Inner.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Country) > 0 {
|
|
i -= len(m.Country)
|
|
copy(dAtA[i:], m.Country)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Country)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) 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 *TestVersion4LoneNesting_Inner2_InnerInner) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Value != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.Value))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if len(m.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersionFD1) 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 *TestVersionFD1) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersionFD1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.H) > 0 {
|
|
for iNdEx := len(m.H) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.H[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
}
|
|
if m.G != nil {
|
|
{
|
|
size, err := m.G.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if m.Sum != nil {
|
|
{
|
|
size := m.Sum.Size()
|
|
i -= size
|
|
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
if m.A != nil {
|
|
{
|
|
size, err := m.A.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.X != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.X))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersionFD1_E) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersionFD1_E) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
i = encodeVarintProto(dAtA, i, uint64(m.E))
|
|
i--
|
|
dAtA[i] = 0x30
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersionFD1_F) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersionFD1_F) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.F != nil {
|
|
{
|
|
size, err := m.F.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersionFD1WithExtraAny) 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 *TestVersionFD1WithExtraAny) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.H) > 0 {
|
|
for iNdEx := len(m.H) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.H[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
}
|
|
if m.G != nil {
|
|
{
|
|
size, err := m.G.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if m.Sum != nil {
|
|
{
|
|
size := m.Sum.Size()
|
|
i -= size
|
|
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
if m.A != nil {
|
|
{
|
|
size, err := m.A.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.X != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.X))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny_E) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny_E) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
i = encodeVarintProto(dAtA, i, uint64(m.E))
|
|
i--
|
|
dAtA[i] = 0x30
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *TestVersionFD1WithExtraAny_F) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny_F) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.F != nil {
|
|
{
|
|
size, err := m.F.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *AnyWithExtra) 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 *AnyWithExtra) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *AnyWithExtra) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.C != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.C))
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if m.B != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.B))
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if m.Any != nil {
|
|
{
|
|
size, err := m.Any.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestUpdatedTxRaw) 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 *TestUpdatedTxRaw) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestUpdatedTxRaw) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.NewField_1024) > 0 {
|
|
i -= len(m.NewField_1024)
|
|
copy(dAtA[i:], m.NewField_1024)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.NewField_1024)))
|
|
i--
|
|
dAtA[i] = 0x40
|
|
i--
|
|
dAtA[i] = 0x82
|
|
}
|
|
if len(m.NewField_5) > 0 {
|
|
i -= len(m.NewField_5)
|
|
copy(dAtA[i:], m.NewField_5)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.NewField_5)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if len(m.Signatures) > 0 {
|
|
for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Signatures[iNdEx])
|
|
copy(dAtA[i:], m.Signatures[iNdEx])
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Signatures[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
}
|
|
if len(m.AuthInfoBytes) > 0 {
|
|
i -= len(m.AuthInfoBytes)
|
|
copy(dAtA[i:], m.AuthInfoBytes)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.AuthInfoBytes)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.BodyBytes) > 0 {
|
|
i -= len(m.BodyBytes)
|
|
copy(dAtA[i:], m.BodyBytes)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.BodyBytes)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) 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 *TestUpdatedTxBody) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.NonCriticalExtensionOptions) > 0 {
|
|
for iNdEx := len(m.NonCriticalExtensionOptions) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.NonCriticalExtensionOptions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x7f
|
|
i--
|
|
dAtA[i] = 0xfa
|
|
}
|
|
}
|
|
if len(m.SomeNewFieldNonCriticalField) > 0 {
|
|
i -= len(m.SomeNewFieldNonCriticalField)
|
|
copy(dAtA[i:], m.SomeNewFieldNonCriticalField)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.SomeNewFieldNonCriticalField)))
|
|
i--
|
|
dAtA[i] = 0x41
|
|
i--
|
|
dAtA[i] = 0xd2
|
|
}
|
|
if len(m.ExtensionOptions) > 0 {
|
|
for iNdEx := len(m.ExtensionOptions) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.ExtensionOptions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3f
|
|
i--
|
|
dAtA[i] = 0xfa
|
|
}
|
|
}
|
|
if m.SomeNewField != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.SomeNewField))
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if m.TimeoutHeight != 0 {
|
|
i = encodeVarintProto(dAtA, i, uint64(m.TimeoutHeight))
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if len(m.Memo) > 0 {
|
|
i -= len(m.Memo)
|
|
copy(dAtA[i:], m.Memo)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.Memo)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Messages) > 0 {
|
|
for iNdEx := len(m.Messages) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestUpdatedAuthInfo) 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 *TestUpdatedAuthInfo) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestUpdatedAuthInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.NewField_1024) > 0 {
|
|
i -= len(m.NewField_1024)
|
|
copy(dAtA[i:], m.NewField_1024)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.NewField_1024)))
|
|
i--
|
|
dAtA[i] = 0x40
|
|
i--
|
|
dAtA[i] = 0x82
|
|
}
|
|
if len(m.NewField_3) > 0 {
|
|
i -= len(m.NewField_3)
|
|
copy(dAtA[i:], m.NewField_3)
|
|
i = encodeVarintProto(dAtA, i, uint64(len(m.NewField_3)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.Fee != nil {
|
|
{
|
|
size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.SignerInfos) > 0 {
|
|
for iNdEx := len(m.SignerInfos) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.SignerInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProto(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *TestRepeatedUints) 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 *TestRepeatedUints) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *TestRepeatedUints) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Nums) > 0 {
|
|
dAtA59 := make([]byte, len(m.Nums)*10)
|
|
var j58 int
|
|
for _, num := range m.Nums {
|
|
for num >= 1<<7 {
|
|
dAtA59[j58] = uint8(uint64(num)&0x7f | 0x80)
|
|
num >>= 7
|
|
j58++
|
|
}
|
|
dAtA59[j58] = uint8(num)
|
|
j58++
|
|
}
|
|
i -= j58
|
|
copy(dAtA[i:], dAtA59[:j58])
|
|
i = encodeVarintProto(dAtA, i, uint64(j58))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintProto(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovProto(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *Dog) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Size_)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Cat) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Moniker)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Lives != 0 {
|
|
n += 1 + sovProto(uint64(m.Lives))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *HasAnimal) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Animal != nil {
|
|
l = m.Animal.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.X != 0 {
|
|
n += 1 + sovProto(uint64(m.X))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *HasHasAnimal) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.HasAnimal != nil {
|
|
l = m.HasAnimal.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *HasHasHasAnimal) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.HasHasAnimal != nil {
|
|
l = m.HasHasAnimal.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *EchoRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Message)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *EchoResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Message)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SayHelloRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SayHelloResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Greeting)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestAnyRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.AnyAnimal != nil {
|
|
l = m.AnyAnimal.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestAnyResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.HasAnimal != nil {
|
|
l = m.HasAnimal.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestMsg) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Signers) > 0 {
|
|
for _, b := range m.Signers {
|
|
l = len(b)
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BadMultiSignature) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Signatures) > 0 {
|
|
for _, b := range m.Signatures {
|
|
l = len(b)
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.MaliciousField)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Customer1) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.SubscriptionFee != 0 {
|
|
n += 5
|
|
}
|
|
l = len(m.Payment)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Customer2) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
if m.Industry != 0 {
|
|
n += 1 + sovProto(uint64(m.Industry))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Fewer != 0 {
|
|
n += 5
|
|
}
|
|
if m.City != 0 {
|
|
n += 1 + sovProto(uint64(m.City))
|
|
}
|
|
if m.Miscellaneous != nil {
|
|
l = m.Miscellaneous.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Reserved != 0 {
|
|
n += 2 + sovProto(uint64(m.Reserved))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Nested4A) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Nested3A) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.A4) > 0 {
|
|
for _, e := range m.A4 {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if len(m.Index) > 0 {
|
|
for k, v := range m.Index {
|
|
_ = k
|
|
_ = v
|
|
l = 0
|
|
if v != nil {
|
|
l = v.Size()
|
|
l += 1 + sovProto(uint64(l))
|
|
}
|
|
mapEntrySize := 1 + sovProto(uint64(k)) + l
|
|
n += mapEntrySize + 1 + sovProto(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Nested2A) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Nested != nil {
|
|
l = m.Nested.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Nested1A) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
if m.Nested != nil {
|
|
l = m.Nested.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Nested4B) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
if m.Age != 0 {
|
|
n += 1 + sovProto(uint64(m.Age))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Nested3B) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
if m.Age != 0 {
|
|
n += 1 + sovProto(uint64(m.Age))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.B4) > 0 {
|
|
for _, e := range m.B4 {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Nested2B) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
if m.Fee != 0 {
|
|
n += 9
|
|
}
|
|
if m.Nested != nil {
|
|
l = m.Nested.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.Route)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Nested1B) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
if m.Nested != nil {
|
|
l = m.Nested.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Age != 0 {
|
|
n += 1 + sovProto(uint64(m.Age))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Customer3) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Sf != 0 {
|
|
n += 5
|
|
}
|
|
if m.Surcharge != 0 {
|
|
n += 5
|
|
}
|
|
l = len(m.Destination)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Payment != nil {
|
|
n += m.Payment.Size()
|
|
}
|
|
if m.Original != nil {
|
|
l = m.Original.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Customer3_CreditCardNo) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.CreditCardNo)
|
|
n += 1 + l + sovProto(uint64(l))
|
|
return n
|
|
}
|
|
func (m *Customer3_ChequeNo) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.ChequeNo)
|
|
n += 1 + l + sovProto(uint64(l))
|
|
return n
|
|
}
|
|
func (m *TestVersion1) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.X != 0 {
|
|
n += 1 + sovProto(uint64(m.X))
|
|
}
|
|
if m.A != nil {
|
|
l = m.A.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.B != nil {
|
|
l = m.B.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.C) > 0 {
|
|
for _, e := range m.C {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for _, e := range m.D {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Sum != nil {
|
|
n += m.Sum.Size()
|
|
}
|
|
if m.G != nil {
|
|
l = m.G.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.H) > 0 {
|
|
for _, e := range m.H {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Customer1 != nil {
|
|
l = m.Customer1.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion1_E) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
n += 1 + sovProto(uint64(m.E))
|
|
return n
|
|
}
|
|
func (m *TestVersion1_F) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.F != nil {
|
|
l = m.F.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *TestVersion2) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.X != 0 {
|
|
n += 1 + sovProto(uint64(m.X))
|
|
}
|
|
if m.A != nil {
|
|
l = m.A.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.B != nil {
|
|
l = m.B.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.C) > 0 {
|
|
for _, e := range m.C {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for _, e := range m.D {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Sum != nil {
|
|
n += m.Sum.Size()
|
|
}
|
|
if m.G != nil {
|
|
l = m.G.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.H) > 0 {
|
|
for _, e := range m.H {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Customer1 != nil {
|
|
l = m.Customer1.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.NewField != 0 {
|
|
n += 2 + sovProto(uint64(m.NewField))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion2_E) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
n += 1 + sovProto(uint64(m.E))
|
|
return n
|
|
}
|
|
func (m *TestVersion2_F) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.F != nil {
|
|
l = m.F.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *TestVersion3) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.X != 0 {
|
|
n += 1 + sovProto(uint64(m.X))
|
|
}
|
|
if m.A != nil {
|
|
l = m.A.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.B != nil {
|
|
l = m.B.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.C) > 0 {
|
|
for _, e := range m.C {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for _, e := range m.D {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Sum != nil {
|
|
n += m.Sum.Size()
|
|
}
|
|
if m.G != nil {
|
|
l = m.G.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.H) > 0 {
|
|
for _, e := range m.H {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Customer1 != nil {
|
|
l = m.Customer1.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.NonCriticalField)
|
|
if l > 0 {
|
|
n += 2 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion3_E) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
n += 1 + sovProto(uint64(m.E))
|
|
return n
|
|
}
|
|
func (m *TestVersion3_F) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.F != nil {
|
|
l = m.F.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *TestVersion3LoneOneOfValue) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.X != 0 {
|
|
n += 1 + sovProto(uint64(m.X))
|
|
}
|
|
if m.A != nil {
|
|
l = m.A.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.B != nil {
|
|
l = m.B.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.C) > 0 {
|
|
for _, e := range m.C {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for _, e := range m.D {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Sum != nil {
|
|
n += m.Sum.Size()
|
|
}
|
|
if m.G != nil {
|
|
l = m.G.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.H) > 0 {
|
|
for _, e := range m.H {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Customer1 != nil {
|
|
l = m.Customer1.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.NonCriticalField)
|
|
if l > 0 {
|
|
n += 2 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion3LoneOneOfValue_E) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
n += 1 + sovProto(uint64(m.E))
|
|
return n
|
|
}
|
|
func (m *TestVersion3LoneNesting) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.X != 0 {
|
|
n += 1 + sovProto(uint64(m.X))
|
|
}
|
|
if m.A != nil {
|
|
l = m.A.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.B != nil {
|
|
l = m.B.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.C) > 0 {
|
|
for _, e := range m.C {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for _, e := range m.D {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Sum != nil {
|
|
n += m.Sum.Size()
|
|
}
|
|
if m.G != nil {
|
|
l = m.G.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.H) > 0 {
|
|
for _, e := range m.H {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Customer1 != nil {
|
|
l = m.Customer1.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Inner1 != nil {
|
|
l = m.Inner1.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Inner2 != nil {
|
|
l = m.Inner2.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.NonCriticalField)
|
|
if l > 0 {
|
|
n += 2 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_F) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.F != nil {
|
|
l = m.F.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Inner != nil {
|
|
l = m.Inner.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.City)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.Country)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Inner != nil {
|
|
l = m.Inner.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.City)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.X != 0 {
|
|
n += 1 + sovProto(uint64(m.X))
|
|
}
|
|
if m.A != nil {
|
|
l = m.A.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.B != nil {
|
|
l = m.B.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.C) > 0 {
|
|
for _, e := range m.C {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if len(m.D) > 0 {
|
|
for _, e := range m.D {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Sum != nil {
|
|
n += m.Sum.Size()
|
|
}
|
|
if m.G != nil {
|
|
l = m.G.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.H) > 0 {
|
|
for _, e := range m.H {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Customer1 != nil {
|
|
l = m.Customer1.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Inner1 != nil {
|
|
l = m.Inner1.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Inner2 != nil {
|
|
l = m.Inner2.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.NonCriticalField)
|
|
if l > 0 {
|
|
n += 2 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_F) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.F != nil {
|
|
l = m.F.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Inner != nil {
|
|
l = m.Inner.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Id != 0 {
|
|
n += 1 + sovProto(uint64(m.Id))
|
|
}
|
|
l = len(m.City)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.Country)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Inner != nil {
|
|
l = m.Inner.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Value != 0 {
|
|
n += 1 + sovProto(uint64(m.Value))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersionFD1) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.X != 0 {
|
|
n += 1 + sovProto(uint64(m.X))
|
|
}
|
|
if m.A != nil {
|
|
l = m.A.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Sum != nil {
|
|
n += m.Sum.Size()
|
|
}
|
|
if m.G != nil {
|
|
l = m.G.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.H) > 0 {
|
|
for _, e := range m.H {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersionFD1_E) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
n += 1 + sovProto(uint64(m.E))
|
|
return n
|
|
}
|
|
func (m *TestVersionFD1_F) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.F != nil {
|
|
l = m.F.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *TestVersionFD1WithExtraAny) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.X != 0 {
|
|
n += 1 + sovProto(uint64(m.X))
|
|
}
|
|
if m.A != nil {
|
|
l = m.A.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.Sum != nil {
|
|
n += m.Sum.Size()
|
|
}
|
|
if m.G != nil {
|
|
l = m.G.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.H) > 0 {
|
|
for _, e := range m.H {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestVersionFD1WithExtraAny_E) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
n += 1 + sovProto(uint64(m.E))
|
|
return n
|
|
}
|
|
func (m *TestVersionFD1WithExtraAny_F) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.F != nil {
|
|
l = m.F.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *AnyWithExtra) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Any != nil {
|
|
l = m.Any.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.B != 0 {
|
|
n += 1 + sovProto(uint64(m.B))
|
|
}
|
|
if m.C != 0 {
|
|
n += 1 + sovProto(uint64(m.C))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestUpdatedTxRaw) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.BodyBytes)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.AuthInfoBytes)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.Signatures) > 0 {
|
|
for _, b := range m.Signatures {
|
|
l = len(b)
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.NewField_5)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.NewField_1024)
|
|
if l > 0 {
|
|
n += 2 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestUpdatedTxBody) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Messages) > 0 {
|
|
for _, e := range m.Messages {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.Memo)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
if m.TimeoutHeight != 0 {
|
|
n += 1 + sovProto(uint64(m.TimeoutHeight))
|
|
}
|
|
if m.SomeNewField != 0 {
|
|
n += 1 + sovProto(uint64(m.SomeNewField))
|
|
}
|
|
if len(m.ExtensionOptions) > 0 {
|
|
for _, e := range m.ExtensionOptions {
|
|
l = e.Size()
|
|
n += 2 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.SomeNewFieldNonCriticalField)
|
|
if l > 0 {
|
|
n += 2 + l + sovProto(uint64(l))
|
|
}
|
|
if len(m.NonCriticalExtensionOptions) > 0 {
|
|
for _, e := range m.NonCriticalExtensionOptions {
|
|
l = e.Size()
|
|
n += 2 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestUpdatedAuthInfo) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.SignerInfos) > 0 {
|
|
for _, e := range m.SignerInfos {
|
|
l = e.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
}
|
|
if m.Fee != nil {
|
|
l = m.Fee.Size()
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.NewField_3)
|
|
if l > 0 {
|
|
n += 1 + l + sovProto(uint64(l))
|
|
}
|
|
l = len(m.NewField_1024)
|
|
if l > 0 {
|
|
n += 2 + l + sovProto(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *TestRepeatedUints) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Nums) > 0 {
|
|
l = 0
|
|
for _, e := range m.Nums {
|
|
l += sovProto(uint64(e))
|
|
}
|
|
n += 1 + sovProto(uint64(l)) + l
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovProto(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozProto(x uint64) (n int) {
|
|
return sovProto(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *Dog) 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 ErrIntOverflowProto
|
|
}
|
|
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: Dog: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Dog: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Size_ = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Cat) 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 ErrIntOverflowProto
|
|
}
|
|
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: Cat: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Cat: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Moniker", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Moniker = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Lives", wireType)
|
|
}
|
|
m.Lives = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Lives |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *HasAnimal) 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 ErrIntOverflowProto
|
|
}
|
|
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: HasAnimal: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: HasAnimal: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Animal", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Animal == nil {
|
|
m.Animal = &types.Any{}
|
|
}
|
|
if err := m.Animal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field X", wireType)
|
|
}
|
|
m.X = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.X |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *HasHasAnimal) 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 ErrIntOverflowProto
|
|
}
|
|
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: HasHasAnimal: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: HasHasAnimal: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HasAnimal", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.HasAnimal == nil {
|
|
m.HasAnimal = &types.Any{}
|
|
}
|
|
if err := m.HasAnimal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *HasHasHasAnimal) 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 ErrIntOverflowProto
|
|
}
|
|
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: HasHasHasAnimal: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: HasHasHasAnimal: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HasHasAnimal", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.HasHasAnimal == nil {
|
|
m.HasHasAnimal = &types.Any{}
|
|
}
|
|
if err := m.HasHasAnimal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *EchoRequest) 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 ErrIntOverflowProto
|
|
}
|
|
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: EchoRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: EchoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Message = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *EchoResponse) 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 ErrIntOverflowProto
|
|
}
|
|
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: EchoResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: EchoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Message = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *SayHelloRequest) 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 ErrIntOverflowProto
|
|
}
|
|
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: SayHelloRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SayHelloRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *SayHelloResponse) 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 ErrIntOverflowProto
|
|
}
|
|
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: SayHelloResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SayHelloResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Greeting", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Greeting = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestAnyRequest) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestAnyRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestAnyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AnyAnimal", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.AnyAnimal == nil {
|
|
m.AnyAnimal = &types.Any{}
|
|
}
|
|
if err := m.AnyAnimal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestAnyResponse) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestAnyResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestAnyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HasAnimal", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.HasAnimal == nil {
|
|
m.HasAnimal = &HasAnimal{}
|
|
}
|
|
if err := m.HasAnimal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestMsg) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestMsg: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestMsg: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Signers", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Signers = append(m.Signers, make([]byte, postIndex-iNdEx))
|
|
copy(m.Signers[len(m.Signers)-1], dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BadMultiSignature) 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 ErrIntOverflowProto
|
|
}
|
|
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: BadMultiSignature: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BadMultiSignature: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Signatures", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Signatures = append(m.Signatures, make([]byte, postIndex-iNdEx))
|
|
copy(m.Signatures[len(m.Signatures)-1], dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaliciousField", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.MaliciousField = append(m.MaliciousField[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.MaliciousField == nil {
|
|
m.MaliciousField = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
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 *Customer1) 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 ErrIntOverflowProto
|
|
}
|
|
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: Customer1: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Customer1: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 5 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionFee", wireType)
|
|
}
|
|
var v uint32
|
|
if (iNdEx + 4) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
|
|
iNdEx += 4
|
|
m.SubscriptionFee = float32(math.Float32frombits(v))
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Payment", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Payment = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Customer2) 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 ErrIntOverflowProto
|
|
}
|
|
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: Customer2: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Customer2: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Industry", wireType)
|
|
}
|
|
m.Industry = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Industry |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 5 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Fewer", wireType)
|
|
}
|
|
var v uint32
|
|
if (iNdEx + 4) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
|
|
iNdEx += 4
|
|
m.Fewer = float32(math.Float32frombits(v))
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field City", wireType)
|
|
}
|
|
m.City = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.City |= Customer2_City(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 10:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Miscellaneous", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Miscellaneous == nil {
|
|
m.Miscellaneous = &types.Any{}
|
|
}
|
|
if err := m.Miscellaneous.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 1047:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Reserved", wireType)
|
|
}
|
|
m.Reserved = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Reserved |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Nested4A) 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 ErrIntOverflowProto
|
|
}
|
|
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: Nested4A: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Nested4A: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Nested3A) 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 ErrIntOverflowProto
|
|
}
|
|
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: Nested3A: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Nested3A: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field A4", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.A4 = append(m.A4, &Nested4A{})
|
|
if err := m.A4[len(m.A4)-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 Index", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Index == nil {
|
|
m.Index = make(map[int64]*Nested4A)
|
|
}
|
|
var mapkey int64
|
|
var mapvalue *Nested4A
|
|
for iNdEx < postIndex {
|
|
entryPreIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
if fieldNum == 1 {
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
mapkey |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
} else if fieldNum == 2 {
|
|
var mapmsglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
mapmsglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if mapmsglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
if postmsgIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postmsgIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = &Nested4A{}
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postmsgIndex
|
|
} else {
|
|
iNdEx = entryPreIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > postIndex {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
m.Index[mapkey] = mapvalue
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Nested2A) 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 ErrIntOverflowProto
|
|
}
|
|
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: Nested2A: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Nested2A: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Nested", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Nested == nil {
|
|
m.Nested = &Nested3A{}
|
|
}
|
|
if err := m.Nested.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Nested1A) 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 ErrIntOverflowProto
|
|
}
|
|
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: Nested1A: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Nested1A: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Nested", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Nested == nil {
|
|
m.Nested = &Nested2A{}
|
|
}
|
|
if err := m.Nested.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Nested4B) 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 ErrIntOverflowProto
|
|
}
|
|
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: Nested4B: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Nested4B: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
|
|
}
|
|
m.Age = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Age |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Nested3B) 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 ErrIntOverflowProto
|
|
}
|
|
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: Nested3B: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Nested3B: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
|
|
}
|
|
m.Age = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Age |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field B4", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.B4 = append(m.B4, &Nested4B{})
|
|
if err := m.B4[len(m.B4)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Nested2B) 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 ErrIntOverflowProto
|
|
}
|
|
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: Nested2B: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Nested2B: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 1 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType)
|
|
}
|
|
var v uint64
|
|
if (iNdEx + 8) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
|
|
iNdEx += 8
|
|
m.Fee = float64(math.Float64frombits(v))
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Nested", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Nested == nil {
|
|
m.Nested = &Nested3B{}
|
|
}
|
|
if err := m.Nested.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Route = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Nested1B) 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 ErrIntOverflowProto
|
|
}
|
|
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: Nested1B: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Nested1B: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Nested", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Nested == nil {
|
|
m.Nested = &Nested2B{}
|
|
}
|
|
if err := m.Nested.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
|
|
}
|
|
m.Age = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Age |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Customer3) 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 ErrIntOverflowProto
|
|
}
|
|
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: Customer3: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Customer3: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 5 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Sf", wireType)
|
|
}
|
|
var v uint32
|
|
if (iNdEx + 4) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
|
|
iNdEx += 4
|
|
m.Sf = float32(math.Float32frombits(v))
|
|
case 4:
|
|
if wireType != 5 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Surcharge", wireType)
|
|
}
|
|
var v uint32
|
|
if (iNdEx + 4) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
|
|
iNdEx += 4
|
|
m.Surcharge = float32(math.Float32frombits(v))
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Destination = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CreditCardNo", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Payment = &Customer3_CreditCardNo{string(dAtA[iNdEx:postIndex])}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ChequeNo", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Payment = &Customer3_ChequeNo{string(dAtA[iNdEx:postIndex])}
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Original", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Original == nil {
|
|
m.Original = &Customer1{}
|
|
}
|
|
if err := m.Original.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion1) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestVersion1: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestVersion1: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field X", wireType)
|
|
}
|
|
m.X = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.X |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field A", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.A == nil {
|
|
m.A = &TestVersion1{}
|
|
}
|
|
if err := m.A.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field B", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.B == nil {
|
|
m.B = &TestVersion1{}
|
|
}
|
|
if err := m.B.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field C", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.C = append(m.C, &TestVersion1{})
|
|
if err := m.C[len(m.C)-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 D", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.D = append(m.D, TestVersion1{})
|
|
if err := m.D[len(m.D)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field E", wireType)
|
|
}
|
|
var v int32
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Sum = &TestVersion1_E{v}
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field F", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &TestVersion1{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &TestVersion1_F{v}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field G", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.G == nil {
|
|
m.G = &types.Any{}
|
|
}
|
|
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field H", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.H = append(m.H, &TestVersion1{})
|
|
if err := m.H[len(m.H)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 12:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Customer1", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Customer1 == nil {
|
|
m.Customer1 = &Customer1{}
|
|
}
|
|
if err := m.Customer1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion2) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestVersion2: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestVersion2: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field X", wireType)
|
|
}
|
|
m.X = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.X |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field A", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.A == nil {
|
|
m.A = &TestVersion2{}
|
|
}
|
|
if err := m.A.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field B", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.B == nil {
|
|
m.B = &TestVersion2{}
|
|
}
|
|
if err := m.B.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field C", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.C = append(m.C, &TestVersion2{})
|
|
if err := m.C[len(m.C)-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 D", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.D = append(m.D, &TestVersion2{})
|
|
if err := m.D[len(m.D)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field E", wireType)
|
|
}
|
|
var v int32
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Sum = &TestVersion2_E{v}
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field F", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &TestVersion2{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &TestVersion2_F{v}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field G", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.G == nil {
|
|
m.G = &types.Any{}
|
|
}
|
|
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field H", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.H = append(m.H, &TestVersion1{})
|
|
if err := m.H[len(m.H)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 12:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Customer1", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Customer1 == nil {
|
|
m.Customer1 = &Customer1{}
|
|
}
|
|
if err := m.Customer1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 25:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NewField", wireType)
|
|
}
|
|
m.NewField = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.NewField |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion3) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestVersion3: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestVersion3: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field X", wireType)
|
|
}
|
|
m.X = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.X |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field A", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.A == nil {
|
|
m.A = &TestVersion3{}
|
|
}
|
|
if err := m.A.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field B", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.B == nil {
|
|
m.B = &TestVersion3{}
|
|
}
|
|
if err := m.B.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field C", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.C = append(m.C, &TestVersion3{})
|
|
if err := m.C[len(m.C)-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 D", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.D = append(m.D, &TestVersion3{})
|
|
if err := m.D[len(m.D)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field E", wireType)
|
|
}
|
|
var v int32
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Sum = &TestVersion3_E{v}
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field F", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &TestVersion3{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &TestVersion3_F{v}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field G", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.G == nil {
|
|
m.G = &types.Any{}
|
|
}
|
|
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field H", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.H = append(m.H, &TestVersion1{})
|
|
if err := m.H[len(m.H)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 12:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Customer1", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Customer1 == nil {
|
|
m.Customer1 = &Customer1{}
|
|
}
|
|
if err := m.Customer1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 1031:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NonCriticalField", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NonCriticalField = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion3LoneOneOfValue) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestVersion3LoneOneOfValue: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestVersion3LoneOneOfValue: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field X", wireType)
|
|
}
|
|
m.X = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.X |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field A", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.A == nil {
|
|
m.A = &TestVersion3{}
|
|
}
|
|
if err := m.A.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field B", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.B == nil {
|
|
m.B = &TestVersion3{}
|
|
}
|
|
if err := m.B.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field C", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.C = append(m.C, &TestVersion3{})
|
|
if err := m.C[len(m.C)-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 D", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.D = append(m.D, &TestVersion3{})
|
|
if err := m.D[len(m.D)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field E", wireType)
|
|
}
|
|
var v int32
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Sum = &TestVersion3LoneOneOfValue_E{v}
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field G", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.G == nil {
|
|
m.G = &types.Any{}
|
|
}
|
|
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field H", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.H = append(m.H, &TestVersion1{})
|
|
if err := m.H[len(m.H)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 12:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Customer1", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Customer1 == nil {
|
|
m.Customer1 = &Customer1{}
|
|
}
|
|
if err := m.Customer1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 1031:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NonCriticalField", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NonCriticalField = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion3LoneNesting) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestVersion3LoneNesting: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestVersion3LoneNesting: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field X", wireType)
|
|
}
|
|
m.X = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.X |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field A", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.A == nil {
|
|
m.A = &TestVersion3{}
|
|
}
|
|
if err := m.A.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field B", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.B == nil {
|
|
m.B = &TestVersion3{}
|
|
}
|
|
if err := m.B.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field C", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.C = append(m.C, &TestVersion3{})
|
|
if err := m.C[len(m.C)-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 D", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.D = append(m.D, &TestVersion3{})
|
|
if err := m.D[len(m.D)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field F", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &TestVersion3LoneNesting{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &TestVersion3LoneNesting_F{v}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field G", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.G == nil {
|
|
m.G = &types.Any{}
|
|
}
|
|
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field H", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.H = append(m.H, &TestVersion1{})
|
|
if err := m.H[len(m.H)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 12:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Customer1", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Customer1 == nil {
|
|
m.Customer1 = &Customer1{}
|
|
}
|
|
if err := m.Customer1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 14:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inner1", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Inner1 == nil {
|
|
m.Inner1 = &TestVersion3LoneNesting_Inner1{}
|
|
}
|
|
if err := m.Inner1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 15:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inner2", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Inner2 == nil {
|
|
m.Inner2 = &TestVersion3LoneNesting_Inner2{}
|
|
}
|
|
if err := m.Inner2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 1031:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NonCriticalField", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NonCriticalField = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1) 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 ErrIntOverflowProto
|
|
}
|
|
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: Inner1: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Inner1: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Inner == nil {
|
|
m.Inner = &TestVersion3LoneNesting_Inner1_InnerInner{}
|
|
}
|
|
if err := m.Inner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner1_InnerInner) 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 ErrIntOverflowProto
|
|
}
|
|
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: InnerInner: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: InnerInner: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field City", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.City = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2) 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 ErrIntOverflowProto
|
|
}
|
|
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: Inner2: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Inner2: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Country = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Inner == nil {
|
|
m.Inner = &TestVersion3LoneNesting_Inner2_InnerInner{}
|
|
}
|
|
if err := m.Inner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion3LoneNesting_Inner2_InnerInner) 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 ErrIntOverflowProto
|
|
}
|
|
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: InnerInner: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: InnerInner: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field City", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.City = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion4LoneNesting) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestVersion4LoneNesting: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestVersion4LoneNesting: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field X", wireType)
|
|
}
|
|
m.X = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.X |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field A", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.A == nil {
|
|
m.A = &TestVersion3{}
|
|
}
|
|
if err := m.A.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field B", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.B == nil {
|
|
m.B = &TestVersion3{}
|
|
}
|
|
if err := m.B.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field C", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.C = append(m.C, &TestVersion3{})
|
|
if err := m.C[len(m.C)-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 D", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.D = append(m.D, &TestVersion3{})
|
|
if err := m.D[len(m.D)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field F", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &TestVersion3LoneNesting{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &TestVersion4LoneNesting_F{v}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field G", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.G == nil {
|
|
m.G = &types.Any{}
|
|
}
|
|
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field H", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.H = append(m.H, &TestVersion1{})
|
|
if err := m.H[len(m.H)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 12:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Customer1", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Customer1 == nil {
|
|
m.Customer1 = &Customer1{}
|
|
}
|
|
if err := m.Customer1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 14:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inner1", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Inner1 == nil {
|
|
m.Inner1 = &TestVersion4LoneNesting_Inner1{}
|
|
}
|
|
if err := m.Inner1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 15:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inner2", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Inner2 == nil {
|
|
m.Inner2 = &TestVersion4LoneNesting_Inner2{}
|
|
}
|
|
if err := m.Inner2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 1031:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NonCriticalField", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NonCriticalField = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1) 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 ErrIntOverflowProto
|
|
}
|
|
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: Inner1: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Inner1: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Inner == nil {
|
|
m.Inner = &TestVersion4LoneNesting_Inner1_InnerInner{}
|
|
}
|
|
if err := m.Inner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner1_InnerInner) 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 ErrIntOverflowProto
|
|
}
|
|
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: InnerInner: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: InnerInner: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
m.Id = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Id |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field City", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.City = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2) 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 ErrIntOverflowProto
|
|
}
|
|
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: Inner2: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Inner2: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Country = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Inner == nil {
|
|
m.Inner = &TestVersion4LoneNesting_Inner2_InnerInner{}
|
|
}
|
|
if err := m.Inner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersion4LoneNesting_Inner2_InnerInner) 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 ErrIntOverflowProto
|
|
}
|
|
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: InnerInner: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: InnerInner: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
|
|
}
|
|
m.Value = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Value |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersionFD1) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestVersionFD1: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestVersionFD1: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field X", wireType)
|
|
}
|
|
m.X = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.X |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field A", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.A == nil {
|
|
m.A = &TestVersion1{}
|
|
}
|
|
if err := m.A.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field E", wireType)
|
|
}
|
|
var v int32
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Sum = &TestVersionFD1_E{v}
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field F", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &TestVersion1{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &TestVersionFD1_F{v}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field G", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.G == nil {
|
|
m.G = &types.Any{}
|
|
}
|
|
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field H", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.H = append(m.H, &TestVersion1{})
|
|
if err := m.H[len(m.H)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestVersionFD1WithExtraAny) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestVersionFD1WithExtraAny: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestVersionFD1WithExtraAny: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field X", wireType)
|
|
}
|
|
m.X = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.X |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field A", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.A == nil {
|
|
m.A = &TestVersion1{}
|
|
}
|
|
if err := m.A.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field E", wireType)
|
|
}
|
|
var v int32
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Sum = &TestVersionFD1WithExtraAny_E{v}
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field F", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &TestVersion1{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &TestVersionFD1WithExtraAny_F{v}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field G", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.G == nil {
|
|
m.G = &AnyWithExtra{}
|
|
}
|
|
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field H", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.H = append(m.H, &TestVersion1{})
|
|
if err := m.H[len(m.H)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *AnyWithExtra) 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 ErrIntOverflowProto
|
|
}
|
|
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: AnyWithExtra: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: AnyWithExtra: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Any", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Any == nil {
|
|
m.Any = &types.Any{}
|
|
}
|
|
if err := m.Any.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field B", wireType)
|
|
}
|
|
m.B = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.B |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field C", wireType)
|
|
}
|
|
m.C = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.C |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestUpdatedTxRaw) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestUpdatedTxRaw: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestUpdatedTxRaw: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BodyBytes", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.BodyBytes = append(m.BodyBytes[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.BodyBytes == nil {
|
|
m.BodyBytes = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AuthInfoBytes", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AuthInfoBytes = append(m.AuthInfoBytes[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.AuthInfoBytes == nil {
|
|
m.AuthInfoBytes = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Signatures", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Signatures = append(m.Signatures, make([]byte, postIndex-iNdEx))
|
|
copy(m.Signatures[len(m.Signatures)-1], dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NewField_5", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NewField_5 = append(m.NewField_5[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.NewField_5 == nil {
|
|
m.NewField_5 = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 1024:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NewField_1024", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NewField_1024 = append(m.NewField_1024[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.NewField_1024 == nil {
|
|
m.NewField_1024 = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestUpdatedTxBody) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestUpdatedTxBody: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestUpdatedTxBody: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Messages = append(m.Messages, &types.Any{})
|
|
if err := m.Messages[len(m.Messages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Memo = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TimeoutHeight", wireType)
|
|
}
|
|
m.TimeoutHeight = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.TimeoutHeight |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SomeNewField", wireType)
|
|
}
|
|
m.SomeNewField = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.SomeNewField |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1023:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ExtensionOptions", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ExtensionOptions = append(m.ExtensionOptions, &types.Any{})
|
|
if err := m.ExtensionOptions[len(m.ExtensionOptions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 1050:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SomeNewFieldNonCriticalField", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
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 ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SomeNewFieldNonCriticalField = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2047:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NonCriticalExtensionOptions", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NonCriticalExtensionOptions = append(m.NonCriticalExtensionOptions, &types.Any{})
|
|
if err := m.NonCriticalExtensionOptions[len(m.NonCriticalExtensionOptions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestUpdatedAuthInfo) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestUpdatedAuthInfo: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestUpdatedAuthInfo: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SignerInfos", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SignerInfos = append(m.SignerInfos, &tx.SignerInfo{})
|
|
if err := m.SignerInfos[len(m.SignerInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Fee == nil {
|
|
m.Fee = &tx.Fee{}
|
|
}
|
|
if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NewField_3", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NewField_3 = append(m.NewField_3[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.NewField_3 == nil {
|
|
m.NewField_3 = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 1024:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NewField_1024", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NewField_1024 = append(m.NewField_1024[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.NewField_1024 == nil {
|
|
m.NewField_1024 = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *TestRepeatedUints) 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 ErrIntOverflowProto
|
|
}
|
|
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: TestRepeatedUints: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: TestRepeatedUints: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType == 0 {
|
|
var v uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Nums = append(m.Nums, v)
|
|
} else if wireType == 2 {
|
|
var packedLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
packedLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if packedLen < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
postIndex := iNdEx + packedLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
var elementCount int
|
|
var count int
|
|
for _, integer := range dAtA[iNdEx:postIndex] {
|
|
if integer < 128 {
|
|
count++
|
|
}
|
|
}
|
|
elementCount = count
|
|
if elementCount != 0 && len(m.Nums) == 0 {
|
|
m.Nums = make([]uint64, 0, elementCount)
|
|
}
|
|
for iNdEx < postIndex {
|
|
var v uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProto
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Nums = append(m.Nums, v)
|
|
}
|
|
} else {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Nums", wireType)
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProto(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthProto
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipProto(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, ErrIntOverflowProto
|
|
}
|
|
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, ErrIntOverflowProto
|
|
}
|
|
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, ErrIntOverflowProto
|
|
}
|
|
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, ErrInvalidLengthProto
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupProto
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthProto
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthProto = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowProto = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupProto = fmt.Errorf("proto: unexpected end of group")
|
|
)
|