Commit 8f79df77 authored by Jeromy's avatar Jeromy
Browse files

vendor in gogo protobuf

parent f3d96ac5
// Copyright (c) 2013, Vastech SA (PTY) LTD. All rights reserved.
// http://github.com/gogo/protobuf/gogoproto
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package test
import (
"fmt"
"math"
"testing"
"QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
)
//http://code.google.com/p/goprotobuf/issues/detail?id=39
func TestBugUint32VarintSize(t *testing.T) {
temp := uint32(math.MaxUint32)
n := &NinOptNative{}
n.Field5 = &temp
data, err := proto.Marshal(n)
if err != nil {
panic(err)
}
if len(data) != 6 {
t.Fatalf("data should be length 6, but its %#v", data)
}
}
func TestBugZeroLengthSliceSize(t *testing.T) {
n := &NinRepPackedNative{
Field8: []int64{},
}
size := n.Size()
data, err := proto.Marshal(n)
if err != nil {
panic(err)
}
if len(data) != size {
t.Fatalf("expected %v, but got %v", len(data), size)
}
}
//http://code.google.com/p/goprotobuf/issues/detail?id=40
func TestBugPackedProtoSize(t *testing.T) {
n := &NinRepPackedNative{
Field4: []int64{172960727389894724, 2360337516664475010, 860833876131988189, 9068073014890763245, 7794843386260381831, 4023536436053141786, 8992311247496919020, 4330096163611305776, 4490411416244976467, 7873947349172707443, 2754969595834279669, 1360667855926938684, 4771480785172657389, 4875578924966668055, 8070579869808877481, 9128179594766551001, 4630419407064527516, 863844540220372892, 8208727650143073487, 7086117356301045838, 7779695211931506151, 5493835345187563535, 9119767633370806007, 9054342025895349248, 1887303228838508438, 7624573031734528281, 1874668389749611225, 3517684643468970593, 6677697606628877758, 7293473953189936168, 444475066704085538, 8594971141363049302, 1146643249094989673, 733393306232853371, 7721178528893916886, 7784452000911004429, 6436373110242711440, 6897422461738321237, 8772249155667732778, 6211871464311393541, 3061903718310406883, 7845488913176136641, 8342255034663902574, 3443058984649725748, 8410801047334832902, 7496541071517841153, 4305416923521577765, 7814967600020476457, 8671843803465481186, 3490266370361096855, 1447425664719091336, 653218597262334239, 8306243902880091940, 7851896059762409081, 5936760560798954978, 5755724498441478025, 7022701569985035966, 3707709584811468220, 529069456924666920, 7986469043681522462, 3092513330689518836, 5103541550470476202, 3577384161242626406, 3733428084624703294, 8388690542440473117, 3262468785346149388, 8788358556558007570, 5476276940198542020, 7277903243119461239, 5065861426928605020, 7533460976202697734, 1749213838654236956, 557497603941617931, 5496307611456481108, 6444547750062831720, 6992758776744205596, 7356719693428537399, 2896328872476734507, 381447079530132038, 598300737753233118, 3687980626612697715, 7240924191084283349, 8172414415307971170, 4847024388701257185, 2081764168600256551, 3394217778539123488, 6244660626429310923, 8301712215675381614, 5360615125359461174, 8410140945829785773, 3152963269026381373, 6197275282781459633, 4419829061407546410, 6262035523070047537, 2837207483933463885, 2158105736666826128, 8150764172235490711},
Field7: []int32{249451845, 1409974015, 393609128, 435232428, 1817529040, 91769006, 861170933, 1556185603, 1568580279, 1236375273, 512276621, 693633711, 967580535, 1950715977, 853431462, 1362390253, 159591204, 111900629, 322985263, 279671129, 1592548430, 465651370, 733849989, 1172059400, 1574824441, 263541092, 1271612397, 1520584358, 467078791, 117698716, 1098255064, 2054264846, 1766452305, 1267576395, 1557505617, 1187833560, 956187431, 1970977586, 1160235159, 1610259028, 489585797, 459139078, 566263183, 954319278, 1545018565, 1753946743, 948214318, 422878159, 883926576, 1424009347, 824732372, 1290433180, 80297942, 417294230, 1402647904, 2078392782, 220505045, 787368129, 463781454, 293083578, 808156928, 293976361},
Field9: []uint32{0xaa4976e8, 0x3da8cc4c, 0x8c470d83, 0x344d964e, 0x5b90925, 0xa4c4d34e, 0x666eff19, 0xc238e552, 0x9be53bb6, 0x56364245, 0x33ee079d, 0x96bf0ede, 0x7941b74f, 0xdb07cb47, 0x6d76d827, 0x9b211d5d, 0x2798adb6, 0xe48b0c3b, 0x87061b21, 0x48f4e4d2, 0x3e5d5c12, 0x5ee91288, 0x336d4f35, 0xe1d44941, 0xc065548d, 0x2953d73f, 0x873af451, 0xfc769db, 0x9f1bf8da, 0x9baafdfc, 0xf1d3d770, 0x5bb5d2b4, 0xc2c67c48, 0x6845c4c1, 0xa48f32b0, 0xbb04bb70, 0xa5b1ca36, 0x8d98356a, 0x2171f654, 0x5ae279b0, 0x6c4a3d6b, 0x4fff5468, 0xcf9bf851, 0x68513614, 0xdbecd9b0, 0x9553ed3c, 0xa494a736, 0x42205438, 0xbf8e5caa, 0xd3283c6, 0x76d20788, 0x9179826f, 0x96b24f85, 0xbc2eacf4, 0xe4afae0b, 0x4bca85cb, 0x35e63b5b, 0xd7ccee0c, 0x2b506bb9, 0xe78e9f44, 0x9ad232f1, 0x99a37335, 0xa5d6ffc8},
Field11: []uint64{0x53c01ebc, 0x4fb85ba6, 0x8805eea1, 0xb20ec896, 0x93b63410, 0xec7c9492, 0x50765a28, 0x19592106, 0x2ecc59b3, 0x39cd474f, 0xe4c9e47, 0x444f48c5, 0xe7731d32, 0xf3f43975, 0x603caedd, 0xbb05a1af, 0xa808e34e, 0x88580b07, 0x4c96bbd1, 0x730b4ab9, 0xed126e2b, 0x6db48205, 0x154ba1b9, 0xc26bfb6a, 0x389aa052, 0x869d966c, 0x7c86b366, 0xcc8edbcd, 0xfa8d6dad, 0xcf5857d9, 0x2d9cda0f, 0x1218a0b8, 0x41bf997, 0xf0ca65ac, 0xa610d4b9, 0x8d362e28, 0xb7212d87, 0x8e0fe109, 0xbee041d9, 0x759be2f6, 0x35fef4f3, 0xaeacdb71, 0x10888852, 0xf4e28117, 0xe2a14812, 0x73b748dc, 0xd1c3c6b2, 0xfef41bf0, 0xc9b43b62, 0x810e4faa, 0xcaa41c06, 0x1893fe0d, 0xedc7c850, 0xd12b9eaa, 0x467ee1a9, 0xbe84756b, 0xda7b1680, 0xdc069ffe, 0xf1e7e9f9, 0xb3d95370, 0xa92b77df, 0x5693ac41, 0xd04b7287, 0x27aebf15, 0x837b316e, 0x4dbe2263, 0xbab70c67, 0x547dab21, 0x3c346c1f, 0xb8ef0e4e, 0xfe2d03ce, 0xe1d75955, 0xfec1306, 0xba35c23e, 0xb784ed04, 0x2a4e33aa, 0x7e19d09a, 0x3827c1fe, 0xf3a51561, 0xef765e2b, 0xb044256c, 0x62b322be, 0xf34d56be, 0xeb71b369, 0xffe1294f, 0x237fe8d0, 0x77a1473b, 0x239e1196, 0xdd19bf3d, 0x82c91fe1, 0x95361c57, 0xffea3f1b, 0x1a094c84},
Field12: []int64{8308420747267165049, 3664160795077875961, 7868970059161834817, 7237335984251173739, 5254748003907196506, 3362259627111837480, 430460752854552122, 5119635556501066533, 1277716037866233522, 9185775384759813768, 833932430882717888, 7986528304451297640, 6792233378368656337, 2074207091120609721, 1788723326198279432, 7756514594746453657, 2283775964901597324, 3061497730110517191, 7733947890656120277, 626967303632386244, 7822928600388582821, 3489658753000061230, 168869995163005961, 248814782163480763, 477885608911386247, 4198422415674133867, 3379354662797976109, 9925112544736939, 1486335136459138480, 4561560414032850671, 1010864164014091267, 186722821683803084, 5106357936724819318, 1298160820191228988, 4675403242419953145, 7130634540106489752, 7101280006672440929, 7176058292431955718, 9109875054097770321, 6810974877085322872, 4736707874303993641, 8993135362721382187, 6857881554990254283, 3704748883307461680, 1099360832887634994, 5207691918707192633, 5984721695043995243},
}
size := proto.Size(n)
data, err := proto.Marshal(n)
if err != nil {
panic(err)
}
if len(data) != size {
t.Fatalf("expected %v, but got %v diff is %v", len(data), size, len(data)-size)
}
}
func testSize(m interface {
proto.Message
Size() int
}, desc string, expected int) ([]byte, error) {
data, err := proto.Marshal(m)
if err != nil {
return nil, err
}
protoSize := proto.Size(m)
mSize := m.Size()
lenData := len(data)
if protoSize != mSize || protoSize != lenData || mSize != lenData {
return nil, fmt.Errorf("%s proto.Size(m){%d} != m.Size(){%d} != len(data){%d}", desc, protoSize, mSize, lenData)
}
if got := protoSize; got != expected {
return nil, fmt.Errorf("%s proto.Size(m) got %d expected %d", desc, got, expected)
}
if got := mSize; got != expected {
return nil, fmt.Errorf("%s m.Size() got %d expected %d", desc, got, expected)
}
if got := lenData; got != expected {
return nil, fmt.Errorf("%s len(data) got %d expected %d", desc, got, expected)
}
return data, nil
}
func TestInt32Int64Compatibility(t *testing.T) {
//test nullable int32 and int64
data1, err := testSize(&NinOptNative{
Field3: proto.Int32(-1),
}, "nullable", 11)
if err != nil {
t.Error(err)
}
//change marshaled data1 to unmarshal into 4th field which is an int64
data1[0] = uint8(uint32(4 /*fieldNumber*/)<<3 | uint32(0 /*wireType*/))
u1 := &NinOptNative{}
if err := proto.Unmarshal(data1, u1); err != nil {
t.Error(err)
}
if !u1.Equal(&NinOptNative{
Field4: proto.Int64(-1),
}) {
t.Error("nullable unmarshaled int32 is not the same int64")
}
//test non-nullable int32 and int64
data2, err := testSize(&NidOptNative{
Field3: -1,
}, "non nullable", 67)
if err != nil {
t.Error(err)
}
//change marshaled data2 to unmarshal into 4th field which is an int64
field3 := uint8(uint32(3 /*fieldNumber*/)<<3 | uint32(0 /*wireType*/))
field4 := uint8(uint32(4 /*fieldNumber*/)<<3 | uint32(0 /*wireType*/))
for i, c := range data2 {
if c == field4 {
data2[i] = field3
} else if c == field3 {
data2[i] = field4
}
}
u2 := &NidOptNative{}
if err := proto.Unmarshal(data2, u2); err != nil {
t.Error(err)
}
if !u2.Equal(&NidOptNative{
Field4: -1,
}) {
t.Error("non nullable unmarshaled int32 is not the same int64")
}
//test packed repeated int32 and int64
m4 := &NinRepPackedNative{
Field3: []int32{-1},
}
data4, err := testSize(m4, "packed", 12)
if err != nil {
t.Error(err)
}
u4 := &NinRepPackedNative{}
if err := proto.Unmarshal(data4, u4); err != nil {
t.Error(err)
}
if err := u4.VerboseEqual(m4); err != nil {
t.Fatalf("%#v", u4)
}
//test repeated int32 and int64
if _, err := testSize(&NinRepNative{
Field3: []int32{-1},
}, "repeated", 11); err != nil {
t.Error(err)
}
t.Logf("tested all")
}
# Extensions for Protocol Buffers to create more go like structures.
#
# Copyright (c) 2015, Vastech SA (PTY) LTD. All rights reserved.
# http://github.com/gogo/protobuf/gogoproto
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
regenerate:
go install github.com/gogo/protobuf/protoc-gen-combo
protoc-gen-combo --version="3.0.0" --proto_path=../../../../../:../../protobuf/:. casttype.proto
// Copyright (c) 2015, Vastech SA (PTY) LTD. All rights reserved.
// http://github.com/gogo/protobuf/gogoproto
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
syntax = "proto2";
package casttype;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.goproto_enum_prefix_all) = false;
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true;
option (gogoproto.stringer_all) = true;
option (gogoproto.gostring_all) = true;
option (gogoproto.face_all) = true;
option (gogoproto.description_all) = true;
option (gogoproto.testgen_all) = true;
option (gogoproto.populate_all) = true;
option (gogoproto.benchgen_all) = true;
option (gogoproto.unmarshaler_all) = false;
option (gogoproto.marshaler_all) = false;
option (gogoproto.sizer_all) = true;
option (gogoproto.goproto_enum_stringer_all) = false;
option (gogoproto.enum_stringer_all) = true;
option (gogoproto.unsafe_marshaler_all) = false;
option (gogoproto.unsafe_unmarshaler_all) = false;
message Castaway {
optional int64 Int32Ptr = 1 [(gogoproto.casttype) = "int32"];
optional int64 Int32 = 2 [(gogoproto.nullable) = false, (gogoproto.casttype) = "int32"];
optional uint64 MyUint64Ptr = 3 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
optional uint64 MyUint64 = 4 [(gogoproto.nullable) = false, (gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
optional bytes MyBytes = 5 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.Bytes"];
optional bytes NormalBytes = 6;
repeated uint64 MyUint64s = 7 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
}
// Code generated by protoc-gen-gogo.
// source: combos/both/casttype.proto
// DO NOT EDIT!
/*
Package casttype is a generated protocol buffer package.
It is generated from these files:
combos/both/casttype.proto
It has these top-level messages:
Castaway
*/
package casttype
import proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import fmt "fmt"
import math "math"
// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
import github_com_gogo_protobuf_test_casttype "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/test/casttype"
import google_protobuf "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/protoc-gen-gogo/descriptor"
import bytes "bytes"
import github_com_gogo_protobuf_proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import strings "strings"
import sort "sort"
import strconv "strconv"
import reflect "reflect"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type Castaway struct {
Int32Ptr *int32 `protobuf:"varint,1,opt,name=Int32Ptr,casttype=int32" json:"Int32Ptr,omitempty"`
Int32 int32 `protobuf:"varint,2,opt,name=Int32,casttype=int32" json:"Int32"`
MyUint64Ptr *github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,3,opt,name=MyUint64Ptr,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64Ptr,omitempty"`
MyUint64 github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,4,opt,name=MyUint64,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64"`
MyBytes github_com_gogo_protobuf_test_casttype.Bytes `protobuf:"bytes,5,opt,name=MyBytes,casttype=github.com/gogo/protobuf/test/casttype.Bytes" json:"MyBytes,omitempty"`
NormalBytes []byte `protobuf:"bytes,6,opt,name=NormalBytes" json:"NormalBytes,omitempty"`
MyUint64S []github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,7,rep,name=MyUint64s,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64s,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Castaway) Reset() { *m = Castaway{} }
func (*Castaway) ProtoMessage() {}
func (this *Castaway) Description() (desc *google_protobuf.FileDescriptorSet) {
return CasttypeDescription()
}
func CasttypeDescription() (desc *google_protobuf.FileDescriptorSet) {
return &google_protobuf.FileDescriptorSet{File: []*google_protobuf.FileDescriptorProto{{Name: func(v string) *string { return &v }("google/protobuf/descriptor.proto"),
Package: func(v string) *string { return &v }("google.protobuf"),
MessageType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("FileDescriptorSet"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("file"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FileDescriptorProto"),
}},
}, {Name: func(v string) *string { return &v }("FileDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("package"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("dependency"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("public_dependency"),
Number: func(v int32) *int32 { return &v }(10),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("weak_dependency"),
Number: func(v int32) *int32 { return &v }(11),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("message_type"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.DescriptorProto"),
}, {Name: func(v string) *string { return &v }("enum_type"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumDescriptorProto"),
}, {Name: func(v string) *string { return &v }("service"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.ServiceDescriptorProto"),
}, {Name: func(v string) *string { return &v }("extension"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("source_code_info"),
Number: func(v int32) *int32 { return &v }(9),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.SourceCodeInfo"),
}, {Name: func(v string) *string { return &v }("syntax"),
Number: func(v int32) *int32 { return &v }(12),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
}, {Name: func(v string) *string { return &v }("DescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("field"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto"),
}, {Name: func(v string) *string { return &v }("extension"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto"),
}, {Name: func(v string) *string { return &v }("nested_type"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.DescriptorProto"),
}, {Name: func(v string) *string { return &v }("enum_type"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumDescriptorProto"),
}, {Name: func(v string) *string { return &v }("extension_range"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.DescriptorProto.ExtensionRange"),
}, {Name: func(v string) *string { return &v }("oneof_decl"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.OneofDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}},
NestedType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("ExtensionRange"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("start"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("end"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}},
}},
}, {Name: func(v string) *string { return &v }("FieldDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("number"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("label"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto.Label"),
}, {Name: func(v string) *string { return &v }("type"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto.Type"),
}, {Name: func(v string) *string { return &v }("type_name"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("extendee"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("default_value"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("oneof_index"),
Number: func(v int32) *int32 { return &v }(9),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}},
EnumType: []*google_protobuf.EnumDescriptorProto{{Name: func(v string) *string { return &v }("Type"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("TYPE_DOUBLE"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("TYPE_FLOAT"),
Number: func(v int32) *int32 { return &v }(2),
}, {Name: func(v string) *string { return &v }("TYPE_INT64"),
Number: func(v int32) *int32 { return &v }(3),
}, {Name: func(v string) *string { return &v }("TYPE_UINT64"),
Number: func(v int32) *int32 { return &v }(4),
}, {Name: func(v string) *string { return &v }("TYPE_INT32"),
Number: func(v int32) *int32 { return &v }(5),
}, {Name: func(v string) *string { return &v }("TYPE_FIXED64"),
Number: func(v int32) *int32 { return &v }(6),
}, {Name: func(v string) *string { return &v }("TYPE_FIXED32"),
Number: func(v int32) *int32 { return &v }(7),
}, {Name: func(v string) *string { return &v }("TYPE_BOOL"),
Number: func(v int32) *int32 { return &v }(8),
}, {Name: func(v string) *string { return &v }("TYPE_STRING"),
Number: func(v int32) *int32 { return &v }(9),
}, {Name: func(v string) *string { return &v }("TYPE_GROUP"),
Number: func(v int32) *int32 { return &v }(10),
}, {Name: func(v string) *string { return &v }("TYPE_MESSAGE"),
Number: func(v int32) *int32 { return &v }(11),
}, {Name: func(v string) *string { return &v }("TYPE_BYTES"),
Number: func(v int32) *int32 { return &v }(12),
}, {Name: func(v string) *string { return &v }("TYPE_UINT32"),
Number: func(v int32) *int32 { return &v }(13),
}, {Name: func(v string) *string { return &v }("TYPE_ENUM"),
Number: func(v int32) *int32 { return &v }(14),
}, {Name: func(v string) *string { return &v }("TYPE_SFIXED32"),
Number: func(v int32) *int32 { return &v }(15),
}, {Name: func(v string) *string { return &v }("TYPE_SFIXED64"),
Number: func(v int32) *int32 { return &v }(16),
}, {Name: func(v string) *string { return &v }("TYPE_SINT32"),
Number: func(v int32) *int32 { return &v }(17),
}, {Name: func(v string) *string { return &v }("TYPE_SINT64"),
Number: func(v int32) *int32 { return &v }(18),
}},
}, {Name: func(v string) *string { return &v }("Label"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("LABEL_OPTIONAL"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("LABEL_REQUIRED"),
Number: func(v int32) *int32 { return &v }(2),
}, {Name: func(v string) *string { return &v }("LABEL_REPEATED"),
Number: func(v int32) *int32 { return &v }(3),
}},
}},
}, {Name: func(v string) *string { return &v }("OneofDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
}, {Name: func(v string) *string { return &v }("EnumDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("value"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumValueDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}},
}, {Name: func(v string) *string { return &v }("EnumValueDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("number"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumValueOptions"),
}},
}, {Name: func(v string) *string { return &v }("ServiceDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("method"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.MethodDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.ServiceOptions"),
}},
}, {Name: func(v string) *string { return &v }("MethodDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("input_type"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("output_type"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.MethodOptions"),
}, {Name: func(v string) *string { return &v }("client_streaming"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("server_streaming"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}},
}, {Name: func(v string) *string { return &v }("FileOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("java_package"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("java_outer_classname"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("java_multiple_files"),
Number: func(v int32) *int32 { return &v }(10),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("java_generate_equals_and_hash"),
Number: func(v int32) *int32 { return &v }(20),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("java_string_check_utf8"),
Number: func(v int32) *int32 { return &v }(27),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("optimize_for"),
Number: func(v int32) *int32 { return &v }(9),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FileOptions.OptimizeMode"),
DefaultValue: func(v string) *string { return &v }("SPEED"),
}, {Name: func(v string) *string { return &v }("go_package"),
Number: func(v int32) *int32 { return &v }(11),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("cc_generic_services"),
Number: func(v int32) *int32 { return &v }(16),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("java_generic_services"),
Number: func(v int32) *int32 { return &v }(17),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("py_generic_services"),
Number: func(v int32) *int32 { return &v }(18),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(23),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("cc_enable_arenas"),
Number: func(v int32) *int32 { return &v }(31),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
EnumType: []*google_protobuf.EnumDescriptorProto{{Name: func(v string) *string { return &v }("OptimizeMode"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("SPEED"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("CODE_SIZE"),
Number: func(v int32) *int32 { return &v }(2),
}, {Name: func(v string) *string { return &v }("LITE_RUNTIME"),
Number: func(v int32) *int32 { return &v }(3),
}},
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("MessageOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("message_set_wire_format"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("no_standard_descriptor_accessor"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("map_entry"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("FieldOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("ctype"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldOptions.CType"),
DefaultValue: func(v string) *string { return &v }("STRING"),
}, {Name: func(v string) *string { return &v }("packed"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}, {Name: func(v string) *string { return &v }("lazy"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("weak"),
Number: func(v int32) *int32 { return &v }(10),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
EnumType: []*google_protobuf.EnumDescriptorProto{{Name: func(v string) *string { return &v }("CType"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("STRING"),
Number: func(v int32) *int32 { return &v }(0),
}, {Name: func(v string) *string { return &v }("CORD"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("STRING_PIECE"),
Number: func(v int32) *int32 { return &v }(2),
}},
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("EnumOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("allow_alias"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("EnumValueOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("ServiceOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(33),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("MethodOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(33),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("UninterpretedOption"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption.NamePart"),
}, {Name: func(v string) *string { return &v }("identifier_value"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("positive_int_value"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
}, {Name: func(v string) *string { return &v }("negative_int_value"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(3),
}, {Name: func(v string) *string { return &v }("double_value"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(1),
}, {Name: func(v string) *string { return &v }("string_value"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(12),
}, {Name: func(v string) *string { return &v }("aggregate_value"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
NestedType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("NamePart"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name_part"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(2),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("is_extension"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(2),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}},
}},
}, {Name: func(v string) *string { return &v }("SourceCodeInfo"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("location"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.SourceCodeInfo.Location"),
}},
NestedType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("Location"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("path"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
Options: &google_protobuf.FieldOptions{Packed: func(v bool) *bool { return &v }(true),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("span"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
Options: &google_protobuf.FieldOptions{Packed: func(v bool) *bool { return &v }(true),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("leading_comments"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("trailing_comments"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
}},
}},
Options: &google_protobuf.FileOptions{JavaPackage: func(v string) *string { return &v }("com.google.protobuf"),
JavaOuterClassname: func(v string) *string { return &v }("DescriptorProtos"),
OptimizeFor: func(v google_protobuf.FileOptions_OptimizeMode) *google_protobuf.FileOptions_OptimizeMode { return &v }(1),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("github.com/gogo/protobuf/gogoproto/gogo.proto"),
Package: func(v string) *string { return &v }("gogoproto"),
Dependency: []string{"google/protobuf/descriptor.proto"},
Extension: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("goproto_enum_prefix"),
Number: func(v int32) *int32 { return &v }(62001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}, {Name: func(v string) *string { return &v }("goproto_enum_stringer"),
Number: func(v int32) *int32 { return &v }(62021),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}, {Name: func(v string) *string { return &v }("enum_stringer"),
Number: func(v int32) *int32 { return &v }(62022),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}, {Name: func(v string) *string { return &v }("goproto_getters_all"),
Number: func(v int32) *int32 { return &v }(63001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_enum_prefix_all"),
Number: func(v int32) *int32 { return &v }(63002),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_stringer_all"),
Number: func(v int32) *int32 { return &v }(63003),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("verbose_equal_all"),
Number: func(v int32) *int32 { return &v }(63004),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("face_all"),
Number: func(v int32) *int32 { return &v }(63005),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("gostring_all"),
Number: func(v int32) *int32 { return &v }(63006),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("populate_all"),
Number: func(v int32) *int32 { return &v }(63007),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("stringer_all"),
Number: func(v int32) *int32 { return &v }(63008),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("onlyone_all"),
Number: func(v int32) *int32 { return &v }(63009),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("equal_all"),
Number: func(v int32) *int32 { return &v }(63013),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("description_all"),
Number: func(v int32) *int32 { return &v }(63014),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("testgen_all"),
Number: func(v int32) *int32 { return &v }(63015),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("benchgen_all"),
Number: func(v int32) *int32 { return &v }(63016),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("marshaler_all"),
Number: func(v int32) *int32 { return &v }(63017),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("unmarshaler_all"),
Number: func(v int32) *int32 { return &v }(63018),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("sizer_all"),
Number: func(v int32) *int32 { return &v }(63020),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_enum_stringer_all"),
Number: func(v int32) *int32 { return &v }(63021),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("enum_stringer_all"),
Number: func(v int32) *int32 { return &v }(63022),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_marshaler_all"),
Number: func(v int32) *int32 { return &v }(63023),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_unmarshaler_all"),
Number: func(v int32) *int32 { return &v }(63024),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_extensions_map_all"),
Number: func(v int32) *int32 { return &v }(63025),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_unrecognized_all"),
Number: func(v int32) *int32 { return &v }(63026),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("gogoproto_import"),
Number: func(v int32) *int32 { return &v }(63027),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_getters"),
Number: func(v int32) *int32 { return &v }(64001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("goproto_stringer"),
Number: func(v int32) *int32 { return &v }(64003),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("verbose_equal"),
Number: func(v int32) *int32 { return &v }(64004),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("face"),
Number: func(v int32) *int32 { return &v }(64005),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("gostring"),
Number: func(v int32) *int32 { return &v }(64006),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("populate"),
Number: func(v int32) *int32 { return &v }(64007),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("stringer"),
Number: func(v int32) *int32 { return &v }(67008),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("onlyone"),
Number: func(v int32) *int32 { return &v }(64009),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("equal"),
Number: func(v int32) *int32 { return &v }(64013),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("description"),
Number: func(v int32) *int32 { return &v }(64014),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("testgen"),
Number: func(v int32) *int32 { return &v }(64015),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("benchgen"),
Number: func(v int32) *int32 { return &v }(64016),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("marshaler"),
Number: func(v int32) *int32 { return &v }(64017),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("unmarshaler"),
Number: func(v int32) *int32 { return &v }(64018),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("sizer"),
Number: func(v int32) *int32 { return &v }(64020),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_marshaler"),
Number: func(v int32) *int32 { return &v }(64023),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_unmarshaler"),
Number: func(v int32) *int32 { return &v }(64024),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("goproto_extensions_map"),
Number: func(v int32) *int32 { return &v }(64025),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("goproto_unrecognized"),
Number: func(v int32) *int32 { return &v }(64026),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("nullable"),
Number: func(v int32) *int32 { return &v }(65001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("embed"),
Number: func(v int32) *int32 { return &v }(65002),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("customtype"),
Number: func(v int32) *int32 { return &v }(65003),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("customname"),
Number: func(v int32) *int32 { return &v }(65004),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("jsontag"),
Number: func(v int32) *int32 { return &v }(65005),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("moretags"),
Number: func(v int32) *int32 { return &v }(65006),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("casttype"),
Number: func(v int32) *int32 { return &v }(65007),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}},
Options: &google_protobuf.FileOptions{JavaPackage: func(v string) *string { return &v }("com.google.protobuf"),
JavaOuterClassname: func(v string) *string { return &v }("GoGoProtos"),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("combos/both/casttype.proto"),
Package: func(v string) *string { return &v }("casttype"),
Dependency: []string{"github.com/gogo/protobuf/gogoproto/gogo.proto"},
MessageType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("Castaway"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("Int32Ptr"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(3),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x5, 0x69, 0x6e, 0x74, 0x33, 0x32})}},
}, {Name: func(v string) *string { return &v }("Int32"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(3),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65001: proto.NewExtension([]byte{0xc8, 0xde, 0x1f, 0x0}), 65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x5, 0x69, 0x6e, 0x74, 0x33, 0x32})}},
}, {Name: func(v string) *string { return &v }("MyUint64Ptr"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x79, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x79, 0x70, 0x65})}},
}, {Name: func(v string) *string { return &v }("MyUint64"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65001: proto.NewExtension([]byte{0xc8, 0xde, 0x1f, 0x0}), 65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x79, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x79, 0x70, 0x65})}},
}, {Name: func(v string) *string { return &v }("MyBytes"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(12),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x73})}},
}, {Name: func(v string) *string { return &v }("NormalBytes"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(12),
}, {Name: func(v string) *string { return &v }("MyUint64s"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x79, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x79, 0x70, 0x65})}},
}},
}},
Options: &google_protobuf.FileOptions{XXX_extensions: map[int32]proto.Extension{63001: proto.NewExtension([]byte{0xc8, 0xe1, 0x1e, 0x0}), 63002: proto.NewExtension([]byte{0xd0, 0xe1, 0x1e, 0x0}), 63003: proto.NewExtension([]byte{0xd8, 0xe1, 0x1e, 0x0}), 63004: proto.NewExtension([]byte{0xe0, 0xe1, 0x1e, 0x1}), 63005: proto.NewExtension([]byte{0xe8, 0xe1, 0x1e, 0x1}), 63006: proto.NewExtension([]byte{0xf0, 0xe1, 0x1e, 0x1}), 63007: proto.NewExtension([]byte{0xf8, 0xe1, 0x1e, 0x1}), 63008: proto.NewExtension([]byte{0x80, 0xe2, 0x1e, 0x1}), 63013: proto.NewExtension([]byte{0xa8, 0xe2, 0x1e, 0x1}), 63014: proto.NewExtension([]byte{0xb0, 0xe2, 0x1e, 0x1}), 63015: proto.NewExtension([]byte{0xb8, 0xe2, 0x1e, 0x1}), 63016: proto.NewExtension([]byte{0xc0, 0xe2, 0x1e, 0x1}), 63017: proto.NewExtension([]byte{0xc8, 0xe2, 0x1e, 0x1}), 63018: proto.NewExtension([]byte{0xd0, 0xe2, 0x1e, 0x1}), 63020: proto.NewExtension([]byte{0xe0, 0xe2, 0x1e, 0x1}), 63021: proto.NewExtension([]byte{0xe8, 0xe2, 0x1e, 0x0}), 63022: proto.NewExtension([]byte{0xf0, 0xe2, 0x1e, 0x1}), 63023: proto.NewExtension([]byte{0xf8, 0xe2, 0x1e, 0x0}), 63024: proto.NewExtension([]byte{0x80, 0xe3, 0x1e, 0x0})}},
}},
}
}
func (this *Castaway) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Castaway)
if !ok {
return fmt.Errorf("that is not of type *Castaway")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Castaway but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Castawaybut is not nil && this == nil")
}
if this.Int32Ptr != nil && that1.Int32Ptr != nil {
if *this.Int32Ptr != *that1.Int32Ptr {
return fmt.Errorf("Int32Ptr this(%v) Not Equal that(%v)", *this.Int32Ptr, *that1.Int32Ptr)
}
} else if this.Int32Ptr != nil {
return fmt.Errorf("this.Int32Ptr == nil && that.Int32Ptr != nil")
} else if that1.Int32Ptr != nil {
return fmt.Errorf("Int32Ptr this(%v) Not Equal that(%v)", this.Int32Ptr, that1.Int32Ptr)
}
if this.Int32 != that1.Int32 {
return fmt.Errorf("Int32 this(%v) Not Equal that(%v)", this.Int32, that1.Int32)
}
if this.MyUint64Ptr != nil && that1.MyUint64Ptr != nil {
if *this.MyUint64Ptr != *that1.MyUint64Ptr {
return fmt.Errorf("MyUint64Ptr this(%v) Not Equal that(%v)", *this.MyUint64Ptr, *that1.MyUint64Ptr)
}
} else if this.MyUint64Ptr != nil {
return fmt.Errorf("this.MyUint64Ptr == nil && that.MyUint64Ptr != nil")
} else if that1.MyUint64Ptr != nil {
return fmt.Errorf("MyUint64Ptr this(%v) Not Equal that(%v)", this.MyUint64Ptr, that1.MyUint64Ptr)
}
if this.MyUint64 != that1.MyUint64 {
return fmt.Errorf("MyUint64 this(%v) Not Equal that(%v)", this.MyUint64, that1.MyUint64)
}
if !bytes.Equal(this.MyBytes, that1.MyBytes) {
return fmt.Errorf("MyBytes this(%v) Not Equal that(%v)", this.MyBytes, that1.MyBytes)
}
if !bytes.Equal(this.NormalBytes, that1.NormalBytes) {
return fmt.Errorf("NormalBytes this(%v) Not Equal that(%v)", this.NormalBytes, that1.NormalBytes)
}
if len(this.MyUint64S) != len(that1.MyUint64S) {
return fmt.Errorf("MyUint64S this(%v) Not Equal that(%v)", len(this.MyUint64S), len(that1.MyUint64S))
}
for i := range this.MyUint64S {
if this.MyUint64S[i] != that1.MyUint64S[i] {
return fmt.Errorf("MyUint64S this[%v](%v) Not Equal that[%v](%v)", i, this.MyUint64S[i], i, that1.MyUint64S[i])
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Castaway) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Castaway)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Int32Ptr != nil && that1.Int32Ptr != nil {
if *this.Int32Ptr != *that1.Int32Ptr {
return false
}
} else if this.Int32Ptr != nil {
return false
} else if that1.Int32Ptr != nil {
return false
}
if this.Int32 != that1.Int32 {
return false
}
if this.MyUint64Ptr != nil && that1.MyUint64Ptr != nil {
if *this.MyUint64Ptr != *that1.MyUint64Ptr {
return false
}
} else if this.MyUint64Ptr != nil {
return false
} else if that1.MyUint64Ptr != nil {
return false
}
if this.MyUint64 != that1.MyUint64 {
return false
}
if !bytes.Equal(this.MyBytes, that1.MyBytes) {
return false
}
if !bytes.Equal(this.NormalBytes, that1.NormalBytes) {
return false
}
if len(this.MyUint64S) != len(that1.MyUint64S) {
return false
}
for i := range this.MyUint64S {
if this.MyUint64S[i] != that1.MyUint64S[i] {
return false
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
type CastawayFace interface {
Proto() github_com_gogo_protobuf_proto.Message
GetInt32Ptr() *int32
GetInt32() int32
GetMyUint64Ptr() *github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyUint64() github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyBytes() github_com_gogo_protobuf_test_casttype.Bytes
GetNormalBytes() []byte
GetMyUint64S() []github_com_gogo_protobuf_test_casttype.MyUint64Type
}
func (this *Castaway) Proto() github_com_gogo_protobuf_proto.Message {
return this
}
func (this *Castaway) TestProto() github_com_gogo_protobuf_proto.Message {
return NewCastawayFromFace(this)
}
func (this *Castaway) GetInt32Ptr() *int32 {
return this.Int32Ptr
}
func (this *Castaway) GetInt32() int32 {
return this.Int32
}
func (this *Castaway) GetMyUint64Ptr() *github_com_gogo_protobuf_test_casttype.MyUint64Type {
return this.MyUint64Ptr
}
func (this *Castaway) GetMyUint64() github_com_gogo_protobuf_test_casttype.MyUint64Type {
return this.MyUint64
}
func (this *Castaway) GetMyBytes() github_com_gogo_protobuf_test_casttype.Bytes {
return this.MyBytes
}
func (this *Castaway) GetNormalBytes() []byte {
return this.NormalBytes
}
func (this *Castaway) GetMyUint64S() []github_com_gogo_protobuf_test_casttype.MyUint64Type {
return this.MyUint64S
}
func NewCastawayFromFace(that CastawayFace) *Castaway {
this := &Castaway{}
this.Int32Ptr = that.GetInt32Ptr()
this.Int32 = that.GetInt32()
this.MyUint64Ptr = that.GetMyUint64Ptr()
this.MyUint64 = that.GetMyUint64()
this.MyBytes = that.GetMyBytes()
this.NormalBytes = that.GetNormalBytes()
this.MyUint64S = that.GetMyUint64S()
return this
}
func (this *Castaway) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 11)
s = append(s, "&casttype.Castaway{")
if this.Int32Ptr != nil {
s = append(s, "Int32Ptr: "+valueToGoStringCasttype(this.Int32Ptr, "int32")+",\n")
}
s = append(s, "Int32: "+fmt.Sprintf("%#v", this.Int32)+",\n")
if this.MyUint64Ptr != nil {
s = append(s, "MyUint64Ptr: "+valueToGoStringCasttype(this.MyUint64Ptr, "github_com_gogo_protobuf_test_casttype.MyUint64Type")+",\n")
}
s = append(s, "MyUint64: "+fmt.Sprintf("%#v", this.MyUint64)+",\n")
if this.MyBytes != nil {
s = append(s, "MyBytes: "+valueToGoStringCasttype(this.MyBytes, "github_com_gogo_protobuf_test_casttype.Bytes")+",\n")
}
if this.NormalBytes != nil {
s = append(s, "NormalBytes: "+valueToGoStringCasttype(this.NormalBytes, "byte")+",\n")
}
if this.MyUint64S != nil {
s = append(s, "MyUint64S: "+fmt.Sprintf("%#v", this.MyUint64S)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringCasttype(v interface{}, typ string) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}
func extensionToGoStringCasttype(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
if e == nil {
return "nil"
}
s := "map[int32]proto.Extension{"
keys := make([]int, 0, len(e))
for k := range e {
keys = append(keys, int(k))
}
sort.Ints(keys)
ss := []string{}
for _, k := range keys {
ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
}
s += strings.Join(ss, ",") + "}"
return s
}
func (m *Castaway) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Castaway) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Int32Ptr != nil {
data[i] = 0x8
i++
i = encodeVarintCasttype(data, i, uint64(*m.Int32Ptr))
}
data[i] = 0x10
i++
i = encodeVarintCasttype(data, i, uint64(m.Int32))
if m.MyUint64Ptr != nil {
data[i] = 0x18
i++
i = encodeVarintCasttype(data, i, uint64(*m.MyUint64Ptr))
}
data[i] = 0x20
i++
i = encodeVarintCasttype(data, i, uint64(m.MyUint64))
if m.MyBytes != nil {
data[i] = 0x2a
i++
i = encodeVarintCasttype(data, i, uint64(len(m.MyBytes)))
i += copy(data[i:], m.MyBytes)
}
if m.NormalBytes != nil {
data[i] = 0x32
i++
i = encodeVarintCasttype(data, i, uint64(len(m.NormalBytes)))
i += copy(data[i:], m.NormalBytes)
}
if len(m.MyUint64S) > 0 {
for _, num := range m.MyUint64S {
data[i] = 0x38
i++
i = encodeVarintCasttype(data, i, uint64(num))
}
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func encodeFixed64Casttype(data []byte, offset int, v uint64) int {
data[offset] = uint8(v)
data[offset+1] = uint8(v >> 8)
data[offset+2] = uint8(v >> 16)
data[offset+3] = uint8(v >> 24)
data[offset+4] = uint8(v >> 32)
data[offset+5] = uint8(v >> 40)
data[offset+6] = uint8(v >> 48)
data[offset+7] = uint8(v >> 56)
return offset + 8
}
func encodeFixed32Casttype(data []byte, offset int, v uint32) int {
data[offset] = uint8(v)
data[offset+1] = uint8(v >> 8)
data[offset+2] = uint8(v >> 16)
data[offset+3] = uint8(v >> 24)
return offset + 4
}
func encodeVarintCasttype(data []byte, offset int, v uint64) int {
for v >= 1<<7 {
data[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
data[offset] = uint8(v)
return offset + 1
}
func NewPopulatedCastaway(r randyCasttype, easy bool) *Castaway {
this := &Castaway{}
if r.Intn(10) != 0 {
v1 := int32(r.Int63())
if r.Intn(2) == 0 {
v1 *= -1
}
this.Int32Ptr = &v1
}
this.Int32 = int32(r.Int63())
if r.Intn(2) == 0 {
this.Int32 *= -1
}
if r.Intn(10) != 0 {
v2 := github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32()))
this.MyUint64Ptr = &v2
}
this.MyUint64 = github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32()))
if r.Intn(10) != 0 {
v3 := r.Intn(100)
this.MyBytes = make(github_com_gogo_protobuf_test_casttype.Bytes, v3)
for i := 0; i < v3; i++ {
this.MyBytes[i] = byte(r.Intn(256))
}
}
if r.Intn(10) != 0 {
v4 := r.Intn(100)
this.NormalBytes = make([]byte, v4)
for i := 0; i < v4; i++ {
this.NormalBytes[i] = byte(r.Intn(256))
}
}
if r.Intn(10) != 0 {
v5 := r.Intn(100)
this.MyUint64S = make([]github_com_gogo_protobuf_test_casttype.MyUint64Type, v5)
for i := 0; i < v5; i++ {
this.MyUint64S[i] = github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32()))
}
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedCasttype(r, 8)
}
return this
}
type randyCasttype interface {
Float32() float32
Float64() float64
Int63() int64
Int31() int32
Uint32() uint32
Intn(n int) int
}
func randUTF8RuneCasttype(r randyCasttype) rune {
ru := r.Intn(62)
if ru < 10 {
return rune(ru + 48)
} else if ru < 36 {
return rune(ru + 55)
}
return rune(ru + 61)
}
func randStringCasttype(r randyCasttype) string {
v6 := r.Intn(100)
tmps := make([]rune, v6)
for i := 0; i < v6; i++ {
tmps[i] = randUTF8RuneCasttype(r)
}
return string(tmps)
}
func randUnrecognizedCasttype(r randyCasttype, maxFieldNumber int) (data []byte) {
l := r.Intn(5)
for i := 0; i < l; i++ {
wire := r.Intn(4)
if wire == 3 {
wire = 5
}
fieldNumber := maxFieldNumber + r.Intn(100)
data = randFieldCasttype(data, r, fieldNumber, wire)
}
return data
}
func randFieldCasttype(data []byte, r randyCasttype, fieldNumber int, wire int) []byte {
key := uint32(fieldNumber)<<3 | uint32(wire)
switch wire {
case 0:
data = encodeVarintPopulateCasttype(data, uint64(key))
v7 := r.Int63()
if r.Intn(2) == 0 {
v7 *= -1
}
data = encodeVarintPopulateCasttype(data, uint64(v7))
case 1:
data = encodeVarintPopulateCasttype(data, uint64(key))
data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
case 2:
data = encodeVarintPopulateCasttype(data, uint64(key))
ll := r.Intn(100)
data = encodeVarintPopulateCasttype(data, uint64(ll))
for j := 0; j < ll; j++ {
data = append(data, byte(r.Intn(256)))
}
default:
data = encodeVarintPopulateCasttype(data, uint64(key))
data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
}
return data
}
func encodeVarintPopulateCasttype(data []byte, v uint64) []byte {
for v >= 1<<7 {
data = append(data, uint8(uint64(v)&0x7f|0x80))
v >>= 7
}
data = append(data, uint8(v))
return data
}
func (m *Castaway) Size() (n int) {
var l int
_ = l
if m.Int32Ptr != nil {
n += 1 + sovCasttype(uint64(*m.Int32Ptr))
}
n += 1 + sovCasttype(uint64(m.Int32))
if m.MyUint64Ptr != nil {
n += 1 + sovCasttype(uint64(*m.MyUint64Ptr))
}
n += 1 + sovCasttype(uint64(m.MyUint64))
if m.MyBytes != nil {
l = len(m.MyBytes)
n += 1 + l + sovCasttype(uint64(l))
}
if m.NormalBytes != nil {
l = len(m.NormalBytes)
n += 1 + l + sovCasttype(uint64(l))
}
if len(m.MyUint64S) > 0 {
for _, e := range m.MyUint64S {
n += 1 + sovCasttype(uint64(e))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovCasttype(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozCasttype(x uint64) (n int) {
return sovCasttype(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *Castaway) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Castaway{`,
`Int32Ptr:` + valueToStringCasttype(this.Int32Ptr) + `,`,
`Int32:` + fmt.Sprintf("%v", this.Int32) + `,`,
`MyUint64Ptr:` + valueToStringCasttype(this.MyUint64Ptr) + `,`,
`MyUint64:` + fmt.Sprintf("%v", this.MyUint64) + `,`,
`MyBytes:` + valueToStringCasttype(this.MyBytes) + `,`,
`NormalBytes:` + valueToStringCasttype(this.NormalBytes) + `,`,
`MyUint64S:` + fmt.Sprintf("%v", this.MyUint64S) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func valueToStringCasttype(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
func (m *Castaway) 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 ErrIntOverflowCasttype
}
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: Castaway: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Castaway: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Int32Ptr", wireType)
}
var v int32
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCasttype
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
v |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.Int32Ptr = &v
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Int32", wireType)
}
m.Int32 = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCasttype
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
m.Int32 |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field MyUint64Ptr", wireType)
}
var v github_com_gogo_protobuf_test_casttype.MyUint64Type
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCasttype
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
v |= (github_com_gogo_protobuf_test_casttype.MyUint64Type(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.MyUint64Ptr = &v
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field MyUint64", wireType)
}
m.MyUint64 = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCasttype
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
m.MyUint64 |= (github_com_gogo_protobuf_test_casttype.MyUint64Type(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field MyBytes", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCasttype
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthCasttype
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.MyBytes = append([]byte{}, data[iNdEx:postIndex]...)
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field NormalBytes", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCasttype
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthCasttype
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.NormalBytes = append([]byte{}, data[iNdEx:postIndex]...)
iNdEx = postIndex
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field MyUint64S", wireType)
}
var v github_com_gogo_protobuf_test_casttype.MyUint64Type
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowCasttype
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
v |= (github_com_gogo_protobuf_test_casttype.MyUint64Type(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.MyUint64S = append(m.MyUint64S, v)
default:
iNdEx = preIndex
skippy, err := skipCasttype(data[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthCasttype
}
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 skipCasttype(data []byte) (n int, err error) {
l := len(data)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowCasttype
}
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, ErrIntOverflowCasttype
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if data[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowCasttype
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthCasttype
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowCasttype
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipCasttype(data[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthCasttype = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowCasttype = fmt.Errorf("proto: integer overflow")
)
// Copyright (c) 2015, Vastech SA (PTY) LTD. All rights reserved.
// http://github.com/gogo/protobuf/gogoproto
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
syntax = "proto2";
package casttype;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.goproto_enum_prefix_all) = false;
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true;
option (gogoproto.stringer_all) = true;
option (gogoproto.gostring_all) = true;
option (gogoproto.face_all) = true;
option (gogoproto.description_all) = true;
option (gogoproto.testgen_all) = true;
option (gogoproto.populate_all) = true;
option (gogoproto.benchgen_all) = true;
option (gogoproto.unmarshaler_all) = true;
option (gogoproto.marshaler_all) = true;
option (gogoproto.sizer_all) = true;
option (gogoproto.goproto_enum_stringer_all) = false;
option (gogoproto.enum_stringer_all) = true;
option (gogoproto.unsafe_marshaler_all) = false;
option (gogoproto.unsafe_unmarshaler_all) = false;
message Castaway {
optional int64 Int32Ptr = 1 [(gogoproto.casttype) = "int32"];
optional int64 Int32 = 2 [(gogoproto.nullable) = false, (gogoproto.casttype) = "int32"];
optional uint64 MyUint64Ptr = 3 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
optional uint64 MyUint64 = 4 [(gogoproto.nullable) = false, (gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
optional bytes MyBytes = 5 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.Bytes"];
optional bytes NormalBytes = 6;
repeated uint64 MyUint64s = 7 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
}
// Code generated by protoc-gen-gogo.
// source: combos/both/casttype.proto
// DO NOT EDIT!
/*
Package casttype is a generated protocol buffer package.
It is generated from these files:
combos/both/casttype.proto
It has these top-level messages:
Castaway
*/
package casttype
import testing "testing"
import math_rand "math/rand"
import time "time"
import github_com_gogo_protobuf_proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import github_com_gogo_protobuf_jsonpb "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/jsonpb"
import fmt "fmt"
import go_parser "go/parser"
import proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import math "math"
// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
func TestCastawayProto(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, false)
data, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
littlefuzz := make([]byte, len(data))
copy(littlefuzz, data)
for i := range data {
data[i] = byte(popr.Intn(256))
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
if len(littlefuzz) > 0 {
fuzzamount := 100
for i := 0; i < fuzzamount; i++ {
littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
}
// shouldn't panic
_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
}
}
func TestCastawayMarshalTo(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, false)
size := p.Size()
data := make([]byte, size)
for i := range data {
data[i] = byte(popr.Intn(256))
}
_, err := p.MarshalTo(data)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
for i := range data {
data[i] = byte(popr.Intn(256))
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
}
func BenchmarkCastawayProtoMarshal(b *testing.B) {
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Castaway, 10000)
for i := 0; i < 10000; i++ {
pops[i] = NewPopulatedCastaway(popr, false)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
data, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000])
if err != nil {
panic(err)
}
total += len(data)
}
b.SetBytes(int64(total / b.N))
}
func BenchmarkCastawayProtoUnmarshal(b *testing.B) {
popr := math_rand.New(math_rand.NewSource(616))
total := 0
datas := make([][]byte, 10000)
for i := 0; i < 10000; i++ {
data, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedCastaway(popr, false))
if err != nil {
panic(err)
}
datas[i] = data
}
msg := &Castaway{}
b.ResetTimer()
for i := 0; i < b.N; i++ {
total += len(datas[i%10000])
if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil {
panic(err)
}
}
b.SetBytes(int64(total / b.N))
}
func TestCastawayJSON(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
jsondata, err := marshaler.MarshalToString(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Castaway{}
err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
}
}
func TestCastawayProtoText(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
data := github_com_gogo_protobuf_proto.MarshalTextString(p)
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.UnmarshalText(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
}
func TestCastawayProtoCompactText(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
data := github_com_gogo_protobuf_proto.CompactTextString(p)
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.UnmarshalText(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
}
func TestCasttypeDescription(t *testing.T) {
CasttypeDescription()
}
func TestCastawayVerboseEqual(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, false)
data, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
panic(err)
}
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil {
panic(err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("%#v !VerboseEqual %#v, since %v", msg, p, err)
}
}
func TestCastawayFace(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, true)
msg := p.TestProto()
if !p.Equal(msg) {
t.Fatalf("%#v !Face Equal %#v", msg, p)
}
}
func TestCastawayGoString(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, false)
s1 := p.GoString()
s2 := fmt.Sprintf("%#v", p)
if s1 != s2 {
t.Fatalf("GoString want %v got %v", s1, s2)
}
_, err := go_parser.ParseExpr(s1)
if err != nil {
panic(err)
}
}
func TestCastawaySize(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
size2 := github_com_gogo_protobuf_proto.Size(p)
data, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
size := p.Size()
if len(data) != size {
t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(data))
}
if size2 != size {
t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2)
}
size3 := github_com_gogo_protobuf_proto.Size(p)
if size3 != size {
t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3)
}
}
func BenchmarkCastawaySize(b *testing.B) {
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Castaway, 1000)
for i := 0; i < 1000; i++ {
pops[i] = NewPopulatedCastaway(popr, false)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
total += pops[i%1000].Size()
}
b.SetBytes(int64(total / b.N))
}
func TestCastawayStringer(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, false)
s1 := p.String()
s2 := fmt.Sprintf("%v", p)
if s1 != s2 {
t.Fatalf("String want %v got %v", s1, s2)
}
}
//These tests are generated by github.com/gogo/protobuf/plugin/testgen
// Code generated by protoc-gen-gogo.
// source: combos/marshaler/casttype.proto
// DO NOT EDIT!
/*
Package casttype is a generated protocol buffer package.
It is generated from these files:
combos/marshaler/casttype.proto
It has these top-level messages:
Castaway
*/
package casttype
import proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import fmt "fmt"
import math "math"
// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
import github_com_gogo_protobuf_test_casttype "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/test/casttype"
import google_protobuf "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/protoc-gen-gogo/descriptor"
import bytes "bytes"
import github_com_gogo_protobuf_proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import strings "strings"
import sort "sort"
import strconv "strconv"
import reflect "reflect"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type Castaway struct {
Int32Ptr *int32 `protobuf:"varint,1,opt,name=Int32Ptr,casttype=int32" json:"Int32Ptr,omitempty"`
Int32 int32 `protobuf:"varint,2,opt,name=Int32,casttype=int32" json:"Int32"`
MyUint64Ptr *github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,3,opt,name=MyUint64Ptr,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64Ptr,omitempty"`
MyUint64 github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,4,opt,name=MyUint64,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64"`
MyBytes github_com_gogo_protobuf_test_casttype.Bytes `protobuf:"bytes,5,opt,name=MyBytes,casttype=github.com/gogo/protobuf/test/casttype.Bytes" json:"MyBytes,omitempty"`
NormalBytes []byte `protobuf:"bytes,6,opt,name=NormalBytes" json:"NormalBytes,omitempty"`
MyUint64S []github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,7,rep,name=MyUint64s,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64s,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Castaway) Reset() { *m = Castaway{} }
func (*Castaway) ProtoMessage() {}
func (this *Castaway) Description() (desc *google_protobuf.FileDescriptorSet) {
return CasttypeDescription()
}
func CasttypeDescription() (desc *google_protobuf.FileDescriptorSet) {
return &google_protobuf.FileDescriptorSet{File: []*google_protobuf.FileDescriptorProto{{Name: func(v string) *string { return &v }("google/protobuf/descriptor.proto"),
Package: func(v string) *string { return &v }("google.protobuf"),
MessageType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("FileDescriptorSet"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("file"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FileDescriptorProto"),
}},
}, {Name: func(v string) *string { return &v }("FileDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("package"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("dependency"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("public_dependency"),
Number: func(v int32) *int32 { return &v }(10),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("weak_dependency"),
Number: func(v int32) *int32 { return &v }(11),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("message_type"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.DescriptorProto"),
}, {Name: func(v string) *string { return &v }("enum_type"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumDescriptorProto"),
}, {Name: func(v string) *string { return &v }("service"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.ServiceDescriptorProto"),
}, {Name: func(v string) *string { return &v }("extension"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("source_code_info"),
Number: func(v int32) *int32 { return &v }(9),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.SourceCodeInfo"),
}, {Name: func(v string) *string { return &v }("syntax"),
Number: func(v int32) *int32 { return &v }(12),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
}, {Name: func(v string) *string { return &v }("DescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("field"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto"),
}, {Name: func(v string) *string { return &v }("extension"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto"),
}, {Name: func(v string) *string { return &v }("nested_type"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.DescriptorProto"),
}, {Name: func(v string) *string { return &v }("enum_type"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumDescriptorProto"),
}, {Name: func(v string) *string { return &v }("extension_range"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.DescriptorProto.ExtensionRange"),
}, {Name: func(v string) *string { return &v }("oneof_decl"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.OneofDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}},
NestedType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("ExtensionRange"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("start"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("end"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}},
}},
}, {Name: func(v string) *string { return &v }("FieldDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("number"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("label"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto.Label"),
}, {Name: func(v string) *string { return &v }("type"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto.Type"),
}, {Name: func(v string) *string { return &v }("type_name"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("extendee"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("default_value"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("oneof_index"),
Number: func(v int32) *int32 { return &v }(9),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}},
EnumType: []*google_protobuf.EnumDescriptorProto{{Name: func(v string) *string { return &v }("Type"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("TYPE_DOUBLE"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("TYPE_FLOAT"),
Number: func(v int32) *int32 { return &v }(2),
}, {Name: func(v string) *string { return &v }("TYPE_INT64"),
Number: func(v int32) *int32 { return &v }(3),
}, {Name: func(v string) *string { return &v }("TYPE_UINT64"),
Number: func(v int32) *int32 { return &v }(4),
}, {Name: func(v string) *string { return &v }("TYPE_INT32"),
Number: func(v int32) *int32 { return &v }(5),
}, {Name: func(v string) *string { return &v }("TYPE_FIXED64"),
Number: func(v int32) *int32 { return &v }(6),
}, {Name: func(v string) *string { return &v }("TYPE_FIXED32"),
Number: func(v int32) *int32 { return &v }(7),
}, {Name: func(v string) *string { return &v }("TYPE_BOOL"),
Number: func(v int32) *int32 { return &v }(8),
}, {Name: func(v string) *string { return &v }("TYPE_STRING"),
Number: func(v int32) *int32 { return &v }(9),
}, {Name: func(v string) *string { return &v }("TYPE_GROUP"),
Number: func(v int32) *int32 { return &v }(10),
}, {Name: func(v string) *string { return &v }("TYPE_MESSAGE"),
Number: func(v int32) *int32 { return &v }(11),
}, {Name: func(v string) *string { return &v }("TYPE_BYTES"),
Number: func(v int32) *int32 { return &v }(12),
}, {Name: func(v string) *string { return &v }("TYPE_UINT32"),
Number: func(v int32) *int32 { return &v }(13),
}, {Name: func(v string) *string { return &v }("TYPE_ENUM"),
Number: func(v int32) *int32 { return &v }(14),
}, {Name: func(v string) *string { return &v }("TYPE_SFIXED32"),
Number: func(v int32) *int32 { return &v }(15),
}, {Name: func(v string) *string { return &v }("TYPE_SFIXED64"),
Number: func(v int32) *int32 { return &v }(16),
}, {Name: func(v string) *string { return &v }("TYPE_SINT32"),
Number: func(v int32) *int32 { return &v }(17),
}, {Name: func(v string) *string { return &v }("TYPE_SINT64"),
Number: func(v int32) *int32 { return &v }(18),
}},
}, {Name: func(v string) *string { return &v }("Label"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("LABEL_OPTIONAL"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("LABEL_REQUIRED"),
Number: func(v int32) *int32 { return &v }(2),
}, {Name: func(v string) *string { return &v }("LABEL_REPEATED"),
Number: func(v int32) *int32 { return &v }(3),
}},
}},
}, {Name: func(v string) *string { return &v }("OneofDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
}, {Name: func(v string) *string { return &v }("EnumDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("value"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumValueDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}},
}, {Name: func(v string) *string { return &v }("EnumValueDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("number"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumValueOptions"),
}},
}, {Name: func(v string) *string { return &v }("ServiceDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("method"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.MethodDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.ServiceOptions"),
}},
}, {Name: func(v string) *string { return &v }("MethodDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("input_type"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("output_type"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.MethodOptions"),
}, {Name: func(v string) *string { return &v }("client_streaming"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("server_streaming"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}},
}, {Name: func(v string) *string { return &v }("FileOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("java_package"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("java_outer_classname"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("java_multiple_files"),
Number: func(v int32) *int32 { return &v }(10),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("java_generate_equals_and_hash"),
Number: func(v int32) *int32 { return &v }(20),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("java_string_check_utf8"),
Number: func(v int32) *int32 { return &v }(27),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("optimize_for"),
Number: func(v int32) *int32 { return &v }(9),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FileOptions.OptimizeMode"),
DefaultValue: func(v string) *string { return &v }("SPEED"),
}, {Name: func(v string) *string { return &v }("go_package"),
Number: func(v int32) *int32 { return &v }(11),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("cc_generic_services"),
Number: func(v int32) *int32 { return &v }(16),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("java_generic_services"),
Number: func(v int32) *int32 { return &v }(17),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("py_generic_services"),
Number: func(v int32) *int32 { return &v }(18),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(23),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("cc_enable_arenas"),
Number: func(v int32) *int32 { return &v }(31),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
EnumType: []*google_protobuf.EnumDescriptorProto{{Name: func(v string) *string { return &v }("OptimizeMode"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("SPEED"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("CODE_SIZE"),
Number: func(v int32) *int32 { return &v }(2),
}, {Name: func(v string) *string { return &v }("LITE_RUNTIME"),
Number: func(v int32) *int32 { return &v }(3),
}},
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("MessageOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("message_set_wire_format"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("no_standard_descriptor_accessor"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("map_entry"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("FieldOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("ctype"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldOptions.CType"),
DefaultValue: func(v string) *string { return &v }("STRING"),
}, {Name: func(v string) *string { return &v }("packed"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}, {Name: func(v string) *string { return &v }("lazy"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("weak"),
Number: func(v int32) *int32 { return &v }(10),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
EnumType: []*google_protobuf.EnumDescriptorProto{{Name: func(v string) *string { return &v }("CType"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("STRING"),
Number: func(v int32) *int32 { return &v }(0),
}, {Name: func(v string) *string { return &v }("CORD"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("STRING_PIECE"),
Number: func(v int32) *int32 { return &v }(2),
}},
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("EnumOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("allow_alias"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("EnumValueOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("ServiceOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(33),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("MethodOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(33),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("UninterpretedOption"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption.NamePart"),
}, {Name: func(v string) *string { return &v }("identifier_value"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("positive_int_value"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
}, {Name: func(v string) *string { return &v }("negative_int_value"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(3),
}, {Name: func(v string) *string { return &v }("double_value"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(1),
}, {Name: func(v string) *string { return &v }("string_value"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(12),
}, {Name: func(v string) *string { return &v }("aggregate_value"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
NestedType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("NamePart"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name_part"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(2),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("is_extension"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(2),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}},
}},
}, {Name: func(v string) *string { return &v }("SourceCodeInfo"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("location"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.SourceCodeInfo.Location"),
}},
NestedType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("Location"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("path"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
Options: &google_protobuf.FieldOptions{Packed: func(v bool) *bool { return &v }(true),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("span"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
Options: &google_protobuf.FieldOptions{Packed: func(v bool) *bool { return &v }(true),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("leading_comments"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("trailing_comments"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
}},
}},
Options: &google_protobuf.FileOptions{JavaPackage: func(v string) *string { return &v }("com.google.protobuf"),
JavaOuterClassname: func(v string) *string { return &v }("DescriptorProtos"),
OptimizeFor: func(v google_protobuf.FileOptions_OptimizeMode) *google_protobuf.FileOptions_OptimizeMode { return &v }(1),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("github.com/gogo/protobuf/gogoproto/gogo.proto"),
Package: func(v string) *string { return &v }("gogoproto"),
Dependency: []string{"google/protobuf/descriptor.proto"},
Extension: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("goproto_enum_prefix"),
Number: func(v int32) *int32 { return &v }(62001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}, {Name: func(v string) *string { return &v }("goproto_enum_stringer"),
Number: func(v int32) *int32 { return &v }(62021),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}, {Name: func(v string) *string { return &v }("enum_stringer"),
Number: func(v int32) *int32 { return &v }(62022),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}, {Name: func(v string) *string { return &v }("goproto_getters_all"),
Number: func(v int32) *int32 { return &v }(63001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_enum_prefix_all"),
Number: func(v int32) *int32 { return &v }(63002),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_stringer_all"),
Number: func(v int32) *int32 { return &v }(63003),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("verbose_equal_all"),
Number: func(v int32) *int32 { return &v }(63004),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("face_all"),
Number: func(v int32) *int32 { return &v }(63005),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("gostring_all"),
Number: func(v int32) *int32 { return &v }(63006),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("populate_all"),
Number: func(v int32) *int32 { return &v }(63007),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("stringer_all"),
Number: func(v int32) *int32 { return &v }(63008),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("onlyone_all"),
Number: func(v int32) *int32 { return &v }(63009),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("equal_all"),
Number: func(v int32) *int32 { return &v }(63013),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("description_all"),
Number: func(v int32) *int32 { return &v }(63014),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("testgen_all"),
Number: func(v int32) *int32 { return &v }(63015),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("benchgen_all"),
Number: func(v int32) *int32 { return &v }(63016),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("marshaler_all"),
Number: func(v int32) *int32 { return &v }(63017),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("unmarshaler_all"),
Number: func(v int32) *int32 { return &v }(63018),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("sizer_all"),
Number: func(v int32) *int32 { return &v }(63020),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_enum_stringer_all"),
Number: func(v int32) *int32 { return &v }(63021),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("enum_stringer_all"),
Number: func(v int32) *int32 { return &v }(63022),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_marshaler_all"),
Number: func(v int32) *int32 { return &v }(63023),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_unmarshaler_all"),
Number: func(v int32) *int32 { return &v }(63024),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_extensions_map_all"),
Number: func(v int32) *int32 { return &v }(63025),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_unrecognized_all"),
Number: func(v int32) *int32 { return &v }(63026),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("gogoproto_import"),
Number: func(v int32) *int32 { return &v }(63027),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_getters"),
Number: func(v int32) *int32 { return &v }(64001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("goproto_stringer"),
Number: func(v int32) *int32 { return &v }(64003),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("verbose_equal"),
Number: func(v int32) *int32 { return &v }(64004),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("face"),
Number: func(v int32) *int32 { return &v }(64005),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("gostring"),
Number: func(v int32) *int32 { return &v }(64006),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("populate"),
Number: func(v int32) *int32 { return &v }(64007),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("stringer"),
Number: func(v int32) *int32 { return &v }(67008),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("onlyone"),
Number: func(v int32) *int32 { return &v }(64009),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("equal"),
Number: func(v int32) *int32 { return &v }(64013),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("description"),
Number: func(v int32) *int32 { return &v }(64014),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("testgen"),
Number: func(v int32) *int32 { return &v }(64015),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("benchgen"),
Number: func(v int32) *int32 { return &v }(64016),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("marshaler"),
Number: func(v int32) *int32 { return &v }(64017),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("unmarshaler"),
Number: func(v int32) *int32 { return &v }(64018),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("sizer"),
Number: func(v int32) *int32 { return &v }(64020),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_marshaler"),
Number: func(v int32) *int32 { return &v }(64023),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_unmarshaler"),
Number: func(v int32) *int32 { return &v }(64024),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("goproto_extensions_map"),
Number: func(v int32) *int32 { return &v }(64025),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("goproto_unrecognized"),
Number: func(v int32) *int32 { return &v }(64026),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("nullable"),
Number: func(v int32) *int32 { return &v }(65001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("embed"),
Number: func(v int32) *int32 { return &v }(65002),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("customtype"),
Number: func(v int32) *int32 { return &v }(65003),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("customname"),
Number: func(v int32) *int32 { return &v }(65004),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("jsontag"),
Number: func(v int32) *int32 { return &v }(65005),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("moretags"),
Number: func(v int32) *int32 { return &v }(65006),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("casttype"),
Number: func(v int32) *int32 { return &v }(65007),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}},
Options: &google_protobuf.FileOptions{JavaPackage: func(v string) *string { return &v }("com.google.protobuf"),
JavaOuterClassname: func(v string) *string { return &v }("GoGoProtos"),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("combos/marshaler/casttype.proto"),
Package: func(v string) *string { return &v }("casttype"),
Dependency: []string{"github.com/gogo/protobuf/gogoproto/gogo.proto"},
MessageType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("Castaway"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("Int32Ptr"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(3),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x5, 0x69, 0x6e, 0x74, 0x33, 0x32})}},
}, {Name: func(v string) *string { return &v }("Int32"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(3),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65001: proto.NewExtension([]byte{0xc8, 0xde, 0x1f, 0x0}), 65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x5, 0x69, 0x6e, 0x74, 0x33, 0x32})}},
}, {Name: func(v string) *string { return &v }("MyUint64Ptr"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x79, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x79, 0x70, 0x65})}},
}, {Name: func(v string) *string { return &v }("MyUint64"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65001: proto.NewExtension([]byte{0xc8, 0xde, 0x1f, 0x0}), 65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x79, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x79, 0x70, 0x65})}},
}, {Name: func(v string) *string { return &v }("MyBytes"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(12),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x73})}},
}, {Name: func(v string) *string { return &v }("NormalBytes"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(12),
}, {Name: func(v string) *string { return &v }("MyUint64s"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x79, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x79, 0x70, 0x65})}},
}},
}},
Options: &google_protobuf.FileOptions{XXX_extensions: map[int32]proto.Extension{63001: proto.NewExtension([]byte{0xc8, 0xe1, 0x1e, 0x0}), 63002: proto.NewExtension([]byte{0xd0, 0xe1, 0x1e, 0x0}), 63003: proto.NewExtension([]byte{0xd8, 0xe1, 0x1e, 0x0}), 63004: proto.NewExtension([]byte{0xe0, 0xe1, 0x1e, 0x1}), 63005: proto.NewExtension([]byte{0xe8, 0xe1, 0x1e, 0x1}), 63006: proto.NewExtension([]byte{0xf0, 0xe1, 0x1e, 0x1}), 63007: proto.NewExtension([]byte{0xf8, 0xe1, 0x1e, 0x1}), 63008: proto.NewExtension([]byte{0x80, 0xe2, 0x1e, 0x1}), 63013: proto.NewExtension([]byte{0xa8, 0xe2, 0x1e, 0x1}), 63014: proto.NewExtension([]byte{0xb0, 0xe2, 0x1e, 0x1}), 63015: proto.NewExtension([]byte{0xb8, 0xe2, 0x1e, 0x1}), 63016: proto.NewExtension([]byte{0xc0, 0xe2, 0x1e, 0x1}), 63017: proto.NewExtension([]byte{0xc8, 0xe2, 0x1e, 0x1}), 63018: proto.NewExtension([]byte{0xd0, 0xe2, 0x1e, 0x0}), 63020: proto.NewExtension([]byte{0xe0, 0xe2, 0x1e, 0x1}), 63021: proto.NewExtension([]byte{0xe8, 0xe2, 0x1e, 0x0}), 63022: proto.NewExtension([]byte{0xf0, 0xe2, 0x1e, 0x1}), 63023: proto.NewExtension([]byte{0xf8, 0xe2, 0x1e, 0x0}), 63024: proto.NewExtension([]byte{0x80, 0xe3, 0x1e, 0x0})}},
}},
}
}
func (this *Castaway) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Castaway)
if !ok {
return fmt.Errorf("that is not of type *Castaway")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Castaway but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Castawaybut is not nil && this == nil")
}
if this.Int32Ptr != nil && that1.Int32Ptr != nil {
if *this.Int32Ptr != *that1.Int32Ptr {
return fmt.Errorf("Int32Ptr this(%v) Not Equal that(%v)", *this.Int32Ptr, *that1.Int32Ptr)
}
} else if this.Int32Ptr != nil {
return fmt.Errorf("this.Int32Ptr == nil && that.Int32Ptr != nil")
} else if that1.Int32Ptr != nil {
return fmt.Errorf("Int32Ptr this(%v) Not Equal that(%v)", this.Int32Ptr, that1.Int32Ptr)
}
if this.Int32 != that1.Int32 {
return fmt.Errorf("Int32 this(%v) Not Equal that(%v)", this.Int32, that1.Int32)
}
if this.MyUint64Ptr != nil && that1.MyUint64Ptr != nil {
if *this.MyUint64Ptr != *that1.MyUint64Ptr {
return fmt.Errorf("MyUint64Ptr this(%v) Not Equal that(%v)", *this.MyUint64Ptr, *that1.MyUint64Ptr)
}
} else if this.MyUint64Ptr != nil {
return fmt.Errorf("this.MyUint64Ptr == nil && that.MyUint64Ptr != nil")
} else if that1.MyUint64Ptr != nil {
return fmt.Errorf("MyUint64Ptr this(%v) Not Equal that(%v)", this.MyUint64Ptr, that1.MyUint64Ptr)
}
if this.MyUint64 != that1.MyUint64 {
return fmt.Errorf("MyUint64 this(%v) Not Equal that(%v)", this.MyUint64, that1.MyUint64)
}
if !bytes.Equal(this.MyBytes, that1.MyBytes) {
return fmt.Errorf("MyBytes this(%v) Not Equal that(%v)", this.MyBytes, that1.MyBytes)
}
if !bytes.Equal(this.NormalBytes, that1.NormalBytes) {
return fmt.Errorf("NormalBytes this(%v) Not Equal that(%v)", this.NormalBytes, that1.NormalBytes)
}
if len(this.MyUint64S) != len(that1.MyUint64S) {
return fmt.Errorf("MyUint64S this(%v) Not Equal that(%v)", len(this.MyUint64S), len(that1.MyUint64S))
}
for i := range this.MyUint64S {
if this.MyUint64S[i] != that1.MyUint64S[i] {
return fmt.Errorf("MyUint64S this[%v](%v) Not Equal that[%v](%v)", i, this.MyUint64S[i], i, that1.MyUint64S[i])
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Castaway) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Castaway)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Int32Ptr != nil && that1.Int32Ptr != nil {
if *this.Int32Ptr != *that1.Int32Ptr {
return false
}
} else if this.Int32Ptr != nil {
return false
} else if that1.Int32Ptr != nil {
return false
}
if this.Int32 != that1.Int32 {
return false
}
if this.MyUint64Ptr != nil && that1.MyUint64Ptr != nil {
if *this.MyUint64Ptr != *that1.MyUint64Ptr {
return false
}
} else if this.MyUint64Ptr != nil {
return false
} else if that1.MyUint64Ptr != nil {
return false
}
if this.MyUint64 != that1.MyUint64 {
return false
}
if !bytes.Equal(this.MyBytes, that1.MyBytes) {
return false
}
if !bytes.Equal(this.NormalBytes, that1.NormalBytes) {
return false
}
if len(this.MyUint64S) != len(that1.MyUint64S) {
return false
}
for i := range this.MyUint64S {
if this.MyUint64S[i] != that1.MyUint64S[i] {
return false
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
type CastawayFace interface {
Proto() github_com_gogo_protobuf_proto.Message
GetInt32Ptr() *int32
GetInt32() int32
GetMyUint64Ptr() *github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyUint64() github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyBytes() github_com_gogo_protobuf_test_casttype.Bytes
GetNormalBytes() []byte
GetMyUint64S() []github_com_gogo_protobuf_test_casttype.MyUint64Type
}
func (this *Castaway) Proto() github_com_gogo_protobuf_proto.Message {
return this
}
func (this *Castaway) TestProto() github_com_gogo_protobuf_proto.Message {
return NewCastawayFromFace(this)
}
func (this *Castaway) GetInt32Ptr() *int32 {
return this.Int32Ptr
}
func (this *Castaway) GetInt32() int32 {
return this.Int32
}
func (this *Castaway) GetMyUint64Ptr() *github_com_gogo_protobuf_test_casttype.MyUint64Type {
return this.MyUint64Ptr
}
func (this *Castaway) GetMyUint64() github_com_gogo_protobuf_test_casttype.MyUint64Type {
return this.MyUint64
}
func (this *Castaway) GetMyBytes() github_com_gogo_protobuf_test_casttype.Bytes {
return this.MyBytes
}
func (this *Castaway) GetNormalBytes() []byte {
return this.NormalBytes
}
func (this *Castaway) GetMyUint64S() []github_com_gogo_protobuf_test_casttype.MyUint64Type {
return this.MyUint64S
}
func NewCastawayFromFace(that CastawayFace) *Castaway {
this := &Castaway{}
this.Int32Ptr = that.GetInt32Ptr()
this.Int32 = that.GetInt32()
this.MyUint64Ptr = that.GetMyUint64Ptr()
this.MyUint64 = that.GetMyUint64()
this.MyBytes = that.GetMyBytes()
this.NormalBytes = that.GetNormalBytes()
this.MyUint64S = that.GetMyUint64S()
return this
}
func (this *Castaway) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 11)
s = append(s, "&casttype.Castaway{")
if this.Int32Ptr != nil {
s = append(s, "Int32Ptr: "+valueToGoStringCasttype(this.Int32Ptr, "int32")+",\n")
}
s = append(s, "Int32: "+fmt.Sprintf("%#v", this.Int32)+",\n")
if this.MyUint64Ptr != nil {
s = append(s, "MyUint64Ptr: "+valueToGoStringCasttype(this.MyUint64Ptr, "github_com_gogo_protobuf_test_casttype.MyUint64Type")+",\n")
}
s = append(s, "MyUint64: "+fmt.Sprintf("%#v", this.MyUint64)+",\n")
if this.MyBytes != nil {
s = append(s, "MyBytes: "+valueToGoStringCasttype(this.MyBytes, "github_com_gogo_protobuf_test_casttype.Bytes")+",\n")
}
if this.NormalBytes != nil {
s = append(s, "NormalBytes: "+valueToGoStringCasttype(this.NormalBytes, "byte")+",\n")
}
if this.MyUint64S != nil {
s = append(s, "MyUint64S: "+fmt.Sprintf("%#v", this.MyUint64S)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringCasttype(v interface{}, typ string) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}
func extensionToGoStringCasttype(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
if e == nil {
return "nil"
}
s := "map[int32]proto.Extension{"
keys := make([]int, 0, len(e))
for k := range e {
keys = append(keys, int(k))
}
sort.Ints(keys)
ss := []string{}
for _, k := range keys {
ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
}
s += strings.Join(ss, ",") + "}"
return s
}
func (m *Castaway) Marshal() (data []byte, err error) {
size := m.Size()
data = make([]byte, size)
n, err := m.MarshalTo(data)
if err != nil {
return nil, err
}
return data[:n], nil
}
func (m *Castaway) MarshalTo(data []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Int32Ptr != nil {
data[i] = 0x8
i++
i = encodeVarintCasttype(data, i, uint64(*m.Int32Ptr))
}
data[i] = 0x10
i++
i = encodeVarintCasttype(data, i, uint64(m.Int32))
if m.MyUint64Ptr != nil {
data[i] = 0x18
i++
i = encodeVarintCasttype(data, i, uint64(*m.MyUint64Ptr))
}
data[i] = 0x20
i++
i = encodeVarintCasttype(data, i, uint64(m.MyUint64))
if m.MyBytes != nil {
data[i] = 0x2a
i++
i = encodeVarintCasttype(data, i, uint64(len(m.MyBytes)))
i += copy(data[i:], m.MyBytes)
}
if m.NormalBytes != nil {
data[i] = 0x32
i++
i = encodeVarintCasttype(data, i, uint64(len(m.NormalBytes)))
i += copy(data[i:], m.NormalBytes)
}
if len(m.MyUint64S) > 0 {
for _, num := range m.MyUint64S {
data[i] = 0x38
i++
i = encodeVarintCasttype(data, i, uint64(num))
}
}
if m.XXX_unrecognized != nil {
i += copy(data[i:], m.XXX_unrecognized)
}
return i, nil
}
func encodeFixed64Casttype(data []byte, offset int, v uint64) int {
data[offset] = uint8(v)
data[offset+1] = uint8(v >> 8)
data[offset+2] = uint8(v >> 16)
data[offset+3] = uint8(v >> 24)
data[offset+4] = uint8(v >> 32)
data[offset+5] = uint8(v >> 40)
data[offset+6] = uint8(v >> 48)
data[offset+7] = uint8(v >> 56)
return offset + 8
}
func encodeFixed32Casttype(data []byte, offset int, v uint32) int {
data[offset] = uint8(v)
data[offset+1] = uint8(v >> 8)
data[offset+2] = uint8(v >> 16)
data[offset+3] = uint8(v >> 24)
return offset + 4
}
func encodeVarintCasttype(data []byte, offset int, v uint64) int {
for v >= 1<<7 {
data[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
data[offset] = uint8(v)
return offset + 1
}
func NewPopulatedCastaway(r randyCasttype, easy bool) *Castaway {
this := &Castaway{}
if r.Intn(10) != 0 {
v1 := int32(r.Int63())
if r.Intn(2) == 0 {
v1 *= -1
}
this.Int32Ptr = &v1
}
this.Int32 = int32(r.Int63())
if r.Intn(2) == 0 {
this.Int32 *= -1
}
if r.Intn(10) != 0 {
v2 := github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32()))
this.MyUint64Ptr = &v2
}
this.MyUint64 = github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32()))
if r.Intn(10) != 0 {
v3 := r.Intn(100)
this.MyBytes = make(github_com_gogo_protobuf_test_casttype.Bytes, v3)
for i := 0; i < v3; i++ {
this.MyBytes[i] = byte(r.Intn(256))
}
}
if r.Intn(10) != 0 {
v4 := r.Intn(100)
this.NormalBytes = make([]byte, v4)
for i := 0; i < v4; i++ {
this.NormalBytes[i] = byte(r.Intn(256))
}
}
if r.Intn(10) != 0 {
v5 := r.Intn(100)
this.MyUint64S = make([]github_com_gogo_protobuf_test_casttype.MyUint64Type, v5)
for i := 0; i < v5; i++ {
this.MyUint64S[i] = github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32()))
}
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedCasttype(r, 8)
}
return this
}
type randyCasttype interface {
Float32() float32
Float64() float64
Int63() int64
Int31() int32
Uint32() uint32
Intn(n int) int
}
func randUTF8RuneCasttype(r randyCasttype) rune {
ru := r.Intn(62)
if ru < 10 {
return rune(ru + 48)
} else if ru < 36 {
return rune(ru + 55)
}
return rune(ru + 61)
}
func randStringCasttype(r randyCasttype) string {
v6 := r.Intn(100)
tmps := make([]rune, v6)
for i := 0; i < v6; i++ {
tmps[i] = randUTF8RuneCasttype(r)
}
return string(tmps)
}
func randUnrecognizedCasttype(r randyCasttype, maxFieldNumber int) (data []byte) {
l := r.Intn(5)
for i := 0; i < l; i++ {
wire := r.Intn(4)
if wire == 3 {
wire = 5
}
fieldNumber := maxFieldNumber + r.Intn(100)
data = randFieldCasttype(data, r, fieldNumber, wire)
}
return data
}
func randFieldCasttype(data []byte, r randyCasttype, fieldNumber int, wire int) []byte {
key := uint32(fieldNumber)<<3 | uint32(wire)
switch wire {
case 0:
data = encodeVarintPopulateCasttype(data, uint64(key))
v7 := r.Int63()
if r.Intn(2) == 0 {
v7 *= -1
}
data = encodeVarintPopulateCasttype(data, uint64(v7))
case 1:
data = encodeVarintPopulateCasttype(data, uint64(key))
data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
case 2:
data = encodeVarintPopulateCasttype(data, uint64(key))
ll := r.Intn(100)
data = encodeVarintPopulateCasttype(data, uint64(ll))
for j := 0; j < ll; j++ {
data = append(data, byte(r.Intn(256)))
}
default:
data = encodeVarintPopulateCasttype(data, uint64(key))
data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
}
return data
}
func encodeVarintPopulateCasttype(data []byte, v uint64) []byte {
for v >= 1<<7 {
data = append(data, uint8(uint64(v)&0x7f|0x80))
v >>= 7
}
data = append(data, uint8(v))
return data
}
func (m *Castaway) Size() (n int) {
var l int
_ = l
if m.Int32Ptr != nil {
n += 1 + sovCasttype(uint64(*m.Int32Ptr))
}
n += 1 + sovCasttype(uint64(m.Int32))
if m.MyUint64Ptr != nil {
n += 1 + sovCasttype(uint64(*m.MyUint64Ptr))
}
n += 1 + sovCasttype(uint64(m.MyUint64))
if m.MyBytes != nil {
l = len(m.MyBytes)
n += 1 + l + sovCasttype(uint64(l))
}
if m.NormalBytes != nil {
l = len(m.NormalBytes)
n += 1 + l + sovCasttype(uint64(l))
}
if len(m.MyUint64S) > 0 {
for _, e := range m.MyUint64S {
n += 1 + sovCasttype(uint64(e))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovCasttype(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozCasttype(x uint64) (n int) {
return sovCasttype(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *Castaway) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Castaway{`,
`Int32Ptr:` + valueToStringCasttype(this.Int32Ptr) + `,`,
`Int32:` + fmt.Sprintf("%v", this.Int32) + `,`,
`MyUint64Ptr:` + valueToStringCasttype(this.MyUint64Ptr) + `,`,
`MyUint64:` + fmt.Sprintf("%v", this.MyUint64) + `,`,
`MyBytes:` + valueToStringCasttype(this.MyBytes) + `,`,
`NormalBytes:` + valueToStringCasttype(this.NormalBytes) + `,`,
`MyUint64S:` + fmt.Sprintf("%v", this.MyUint64S) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func valueToStringCasttype(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
// Copyright (c) 2015, Vastech SA (PTY) LTD. All rights reserved.
// http://github.com/gogo/protobuf/gogoproto
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
syntax = "proto2";
package casttype;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.goproto_enum_prefix_all) = false;
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true;
option (gogoproto.stringer_all) = true;
option (gogoproto.gostring_all) = true;
option (gogoproto.face_all) = true;
option (gogoproto.description_all) = true;
option (gogoproto.testgen_all) = true;
option (gogoproto.populate_all) = true;
option (gogoproto.benchgen_all) = true;
option (gogoproto.unmarshaler_all) = false;
option (gogoproto.marshaler_all) = true;
option (gogoproto.sizer_all) = true;
option (gogoproto.goproto_enum_stringer_all) = false;
option (gogoproto.enum_stringer_all) = true;
option (gogoproto.unsafe_marshaler_all) = false;
option (gogoproto.unsafe_unmarshaler_all) = false;
message Castaway {
optional int64 Int32Ptr = 1 [(gogoproto.casttype) = "int32"];
optional int64 Int32 = 2 [(gogoproto.nullable) = false, (gogoproto.casttype) = "int32"];
optional uint64 MyUint64Ptr = 3 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
optional uint64 MyUint64 = 4 [(gogoproto.nullable) = false, (gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
optional bytes MyBytes = 5 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.Bytes"];
optional bytes NormalBytes = 6;
repeated uint64 MyUint64s = 7 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
}
// Code generated by protoc-gen-gogo.
// source: combos/marshaler/casttype.proto
// DO NOT EDIT!
/*
Package casttype is a generated protocol buffer package.
It is generated from these files:
combos/marshaler/casttype.proto
It has these top-level messages:
Castaway
*/
package casttype
import testing "testing"
import math_rand "math/rand"
import time "time"
import github_com_gogo_protobuf_proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import github_com_gogo_protobuf_jsonpb "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/jsonpb"
import fmt "fmt"
import go_parser "go/parser"
import proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import math "math"
// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
func TestCastawayProto(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, false)
data, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
littlefuzz := make([]byte, len(data))
copy(littlefuzz, data)
for i := range data {
data[i] = byte(popr.Intn(256))
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
if len(littlefuzz) > 0 {
fuzzamount := 100
for i := 0; i < fuzzamount; i++ {
littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
}
// shouldn't panic
_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
}
}
func TestCastawayMarshalTo(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, false)
size := p.Size()
data := make([]byte, size)
for i := range data {
data[i] = byte(popr.Intn(256))
}
_, err := p.MarshalTo(data)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
for i := range data {
data[i] = byte(popr.Intn(256))
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
}
func BenchmarkCastawayProtoMarshal(b *testing.B) {
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Castaway, 10000)
for i := 0; i < 10000; i++ {
pops[i] = NewPopulatedCastaway(popr, false)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
data, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000])
if err != nil {
panic(err)
}
total += len(data)
}
b.SetBytes(int64(total / b.N))
}
func BenchmarkCastawayProtoUnmarshal(b *testing.B) {
popr := math_rand.New(math_rand.NewSource(616))
total := 0
datas := make([][]byte, 10000)
for i := 0; i < 10000; i++ {
data, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedCastaway(popr, false))
if err != nil {
panic(err)
}
datas[i] = data
}
msg := &Castaway{}
b.ResetTimer()
for i := 0; i < b.N; i++ {
total += len(datas[i%10000])
if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil {
panic(err)
}
}
b.SetBytes(int64(total / b.N))
}
func TestCastawayJSON(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
jsondata, err := marshaler.MarshalToString(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Castaway{}
err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
}
}
func TestCastawayProtoText(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
data := github_com_gogo_protobuf_proto.MarshalTextString(p)
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.UnmarshalText(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
}
func TestCastawayProtoCompactText(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
data := github_com_gogo_protobuf_proto.CompactTextString(p)
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.UnmarshalText(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
}
func TestCasttypeDescription(t *testing.T) {
CasttypeDescription()
}
func TestCastawayVerboseEqual(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, false)
data, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
panic(err)
}
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil {
panic(err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("%#v !VerboseEqual %#v, since %v", msg, p, err)
}
}
func TestCastawayFace(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, true)
msg := p.TestProto()
if !p.Equal(msg) {
t.Fatalf("%#v !Face Equal %#v", msg, p)
}
}
func TestCastawayGoString(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, false)
s1 := p.GoString()
s2 := fmt.Sprintf("%#v", p)
if s1 != s2 {
t.Fatalf("GoString want %v got %v", s1, s2)
}
_, err := go_parser.ParseExpr(s1)
if err != nil {
panic(err)
}
}
func TestCastawaySize(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
size2 := github_com_gogo_protobuf_proto.Size(p)
data, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
size := p.Size()
if len(data) != size {
t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(data))
}
if size2 != size {
t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2)
}
size3 := github_com_gogo_protobuf_proto.Size(p)
if size3 != size {
t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3)
}
}
func BenchmarkCastawaySize(b *testing.B) {
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Castaway, 1000)
for i := 0; i < 1000; i++ {
pops[i] = NewPopulatedCastaway(popr, false)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
total += pops[i%1000].Size()
}
b.SetBytes(int64(total / b.N))
}
func TestCastawayStringer(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, false)
s1 := p.String()
s2 := fmt.Sprintf("%v", p)
if s1 != s2 {
t.Fatalf("String want %v got %v", s1, s2)
}
}
//These tests are generated by github.com/gogo/protobuf/plugin/testgen
// Code generated by protoc-gen-gogo.
// source: combos/neither/casttype.proto
// DO NOT EDIT!
/*
Package casttype is a generated protocol buffer package.
It is generated from these files:
combos/neither/casttype.proto
It has these top-level messages:
Castaway
*/
package casttype
import proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import fmt "fmt"
import math "math"
// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
import github_com_gogo_protobuf_test_casttype "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/test/casttype"
import google_protobuf "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/protoc-gen-gogo/descriptor"
import bytes "bytes"
import github_com_gogo_protobuf_proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import strings "strings"
import sort "sort"
import strconv "strconv"
import reflect "reflect"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type Castaway struct {
Int32Ptr *int32 `protobuf:"varint,1,opt,name=Int32Ptr,casttype=int32" json:"Int32Ptr,omitempty"`
Int32 int32 `protobuf:"varint,2,opt,name=Int32,casttype=int32" json:"Int32"`
MyUint64Ptr *github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,3,opt,name=MyUint64Ptr,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64Ptr,omitempty"`
MyUint64 github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,4,opt,name=MyUint64,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64"`
MyBytes github_com_gogo_protobuf_test_casttype.Bytes `protobuf:"bytes,5,opt,name=MyBytes,casttype=github.com/gogo/protobuf/test/casttype.Bytes" json:"MyBytes,omitempty"`
NormalBytes []byte `protobuf:"bytes,6,opt,name=NormalBytes" json:"NormalBytes,omitempty"`
MyUint64S []github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,7,rep,name=MyUint64s,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64s,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Castaway) Reset() { *m = Castaway{} }
func (*Castaway) ProtoMessage() {}
func (this *Castaway) Description() (desc *google_protobuf.FileDescriptorSet) {
return CasttypeDescription()
}
func CasttypeDescription() (desc *google_protobuf.FileDescriptorSet) {
return &google_protobuf.FileDescriptorSet{File: []*google_protobuf.FileDescriptorProto{{Name: func(v string) *string { return &v }("google/protobuf/descriptor.proto"),
Package: func(v string) *string { return &v }("google.protobuf"),
MessageType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("FileDescriptorSet"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("file"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FileDescriptorProto"),
}},
}, {Name: func(v string) *string { return &v }("FileDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("package"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("dependency"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("public_dependency"),
Number: func(v int32) *int32 { return &v }(10),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("weak_dependency"),
Number: func(v int32) *int32 { return &v }(11),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("message_type"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.DescriptorProto"),
}, {Name: func(v string) *string { return &v }("enum_type"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumDescriptorProto"),
}, {Name: func(v string) *string { return &v }("service"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.ServiceDescriptorProto"),
}, {Name: func(v string) *string { return &v }("extension"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("source_code_info"),
Number: func(v int32) *int32 { return &v }(9),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.SourceCodeInfo"),
}, {Name: func(v string) *string { return &v }("syntax"),
Number: func(v int32) *int32 { return &v }(12),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
}, {Name: func(v string) *string { return &v }("DescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("field"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto"),
}, {Name: func(v string) *string { return &v }("extension"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto"),
}, {Name: func(v string) *string { return &v }("nested_type"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.DescriptorProto"),
}, {Name: func(v string) *string { return &v }("enum_type"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumDescriptorProto"),
}, {Name: func(v string) *string { return &v }("extension_range"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.DescriptorProto.ExtensionRange"),
}, {Name: func(v string) *string { return &v }("oneof_decl"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.OneofDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}},
NestedType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("ExtensionRange"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("start"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("end"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}},
}},
}, {Name: func(v string) *string { return &v }("FieldDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("number"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("label"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto.Label"),
}, {Name: func(v string) *string { return &v }("type"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldDescriptorProto.Type"),
}, {Name: func(v string) *string { return &v }("type_name"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("extendee"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("default_value"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("oneof_index"),
Number: func(v int32) *int32 { return &v }(9),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}},
EnumType: []*google_protobuf.EnumDescriptorProto{{Name: func(v string) *string { return &v }("Type"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("TYPE_DOUBLE"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("TYPE_FLOAT"),
Number: func(v int32) *int32 { return &v }(2),
}, {Name: func(v string) *string { return &v }("TYPE_INT64"),
Number: func(v int32) *int32 { return &v }(3),
}, {Name: func(v string) *string { return &v }("TYPE_UINT64"),
Number: func(v int32) *int32 { return &v }(4),
}, {Name: func(v string) *string { return &v }("TYPE_INT32"),
Number: func(v int32) *int32 { return &v }(5),
}, {Name: func(v string) *string { return &v }("TYPE_FIXED64"),
Number: func(v int32) *int32 { return &v }(6),
}, {Name: func(v string) *string { return &v }("TYPE_FIXED32"),
Number: func(v int32) *int32 { return &v }(7),
}, {Name: func(v string) *string { return &v }("TYPE_BOOL"),
Number: func(v int32) *int32 { return &v }(8),
}, {Name: func(v string) *string { return &v }("TYPE_STRING"),
Number: func(v int32) *int32 { return &v }(9),
}, {Name: func(v string) *string { return &v }("TYPE_GROUP"),
Number: func(v int32) *int32 { return &v }(10),
}, {Name: func(v string) *string { return &v }("TYPE_MESSAGE"),
Number: func(v int32) *int32 { return &v }(11),
}, {Name: func(v string) *string { return &v }("TYPE_BYTES"),
Number: func(v int32) *int32 { return &v }(12),
}, {Name: func(v string) *string { return &v }("TYPE_UINT32"),
Number: func(v int32) *int32 { return &v }(13),
}, {Name: func(v string) *string { return &v }("TYPE_ENUM"),
Number: func(v int32) *int32 { return &v }(14),
}, {Name: func(v string) *string { return &v }("TYPE_SFIXED32"),
Number: func(v int32) *int32 { return &v }(15),
}, {Name: func(v string) *string { return &v }("TYPE_SFIXED64"),
Number: func(v int32) *int32 { return &v }(16),
}, {Name: func(v string) *string { return &v }("TYPE_SINT32"),
Number: func(v int32) *int32 { return &v }(17),
}, {Name: func(v string) *string { return &v }("TYPE_SINT64"),
Number: func(v int32) *int32 { return &v }(18),
}},
}, {Name: func(v string) *string { return &v }("Label"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("LABEL_OPTIONAL"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("LABEL_REQUIRED"),
Number: func(v int32) *int32 { return &v }(2),
}, {Name: func(v string) *string { return &v }("LABEL_REPEATED"),
Number: func(v int32) *int32 { return &v }(3),
}},
}},
}, {Name: func(v string) *string { return &v }("OneofDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
}, {Name: func(v string) *string { return &v }("EnumDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("value"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumValueDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}},
}, {Name: func(v string) *string { return &v }("EnumValueDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("number"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.EnumValueOptions"),
}},
}, {Name: func(v string) *string { return &v }("ServiceDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("method"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.MethodDescriptorProto"),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.ServiceOptions"),
}},
}, {Name: func(v string) *string { return &v }("MethodDescriptorProto"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("input_type"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("output_type"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("options"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.MethodOptions"),
}, {Name: func(v string) *string { return &v }("client_streaming"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("server_streaming"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}},
}, {Name: func(v string) *string { return &v }("FileOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("java_package"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("java_outer_classname"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("java_multiple_files"),
Number: func(v int32) *int32 { return &v }(10),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("java_generate_equals_and_hash"),
Number: func(v int32) *int32 { return &v }(20),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("java_string_check_utf8"),
Number: func(v int32) *int32 { return &v }(27),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("optimize_for"),
Number: func(v int32) *int32 { return &v }(9),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FileOptions.OptimizeMode"),
DefaultValue: func(v string) *string { return &v }("SPEED"),
}, {Name: func(v string) *string { return &v }("go_package"),
Number: func(v int32) *int32 { return &v }(11),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("cc_generic_services"),
Number: func(v int32) *int32 { return &v }(16),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("java_generic_services"),
Number: func(v int32) *int32 { return &v }(17),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("py_generic_services"),
Number: func(v int32) *int32 { return &v }(18),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(23),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("cc_enable_arenas"),
Number: func(v int32) *int32 { return &v }(31),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
EnumType: []*google_protobuf.EnumDescriptorProto{{Name: func(v string) *string { return &v }("OptimizeMode"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("SPEED"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("CODE_SIZE"),
Number: func(v int32) *int32 { return &v }(2),
}, {Name: func(v string) *string { return &v }("LITE_RUNTIME"),
Number: func(v int32) *int32 { return &v }(3),
}},
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("MessageOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("message_set_wire_format"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("no_standard_descriptor_accessor"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("map_entry"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("FieldOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("ctype"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(14),
TypeName: func(v string) *string { return &v }(".google.protobuf.FieldOptions.CType"),
DefaultValue: func(v string) *string { return &v }("STRING"),
}, {Name: func(v string) *string { return &v }("packed"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}, {Name: func(v string) *string { return &v }("lazy"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("weak"),
Number: func(v int32) *int32 { return &v }(10),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
EnumType: []*google_protobuf.EnumDescriptorProto{{Name: func(v string) *string { return &v }("CType"),
Value: []*google_protobuf.EnumValueDescriptorProto{{Name: func(v string) *string { return &v }("STRING"),
Number: func(v int32) *int32 { return &v }(0),
}, {Name: func(v string) *string { return &v }("CORD"),
Number: func(v int32) *int32 { return &v }(1),
}, {Name: func(v string) *string { return &v }("STRING_PIECE"),
Number: func(v int32) *int32 { return &v }(2),
}},
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("EnumOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("allow_alias"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}, {Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("EnumValueOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("ServiceOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(33),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("MethodOptions"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("deprecated"),
Number: func(v int32) *int32 { return &v }(33),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
DefaultValue: func(v string) *string { return &v }("false"),
}, {Name: func(v string) *string { return &v }("uninterpreted_option"),
Number: func(v int32) *int32 { return &v }(999),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption"),
}},
ExtensionRange: []*google_protobuf.DescriptorProto_ExtensionRange{{Start: func(v int32) *int32 { return &v }(1000),
End: func(v int32) *int32 { return &v }(536870912),
}},
}, {Name: func(v string) *string { return &v }("UninterpretedOption"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.UninterpretedOption.NamePart"),
}, {Name: func(v string) *string { return &v }("identifier_value"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("positive_int_value"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
}, {Name: func(v string) *string { return &v }("negative_int_value"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(3),
}, {Name: func(v string) *string { return &v }("double_value"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(1),
}, {Name: func(v string) *string { return &v }("string_value"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(12),
}, {Name: func(v string) *string { return &v }("aggregate_value"),
Number: func(v int32) *int32 { return &v }(8),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
NestedType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("NamePart"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("name_part"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(2),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("is_extension"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(2),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
}},
}},
}, {Name: func(v string) *string { return &v }("SourceCodeInfo"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("location"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(11),
TypeName: func(v string) *string { return &v }(".google.protobuf.SourceCodeInfo.Location"),
}},
NestedType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("Location"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("path"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
Options: &google_protobuf.FieldOptions{Packed: func(v bool) *bool { return &v }(true),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("span"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(5),
Options: &google_protobuf.FieldOptions{Packed: func(v bool) *bool { return &v }(true),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("leading_comments"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}, {Name: func(v string) *string { return &v }("trailing_comments"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
}},
}},
}},
Options: &google_protobuf.FileOptions{JavaPackage: func(v string) *string { return &v }("com.google.protobuf"),
JavaOuterClassname: func(v string) *string { return &v }("DescriptorProtos"),
OptimizeFor: func(v google_protobuf.FileOptions_OptimizeMode) *google_protobuf.FileOptions_OptimizeMode { return &v }(1),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("github.com/gogo/protobuf/gogoproto/gogo.proto"),
Package: func(v string) *string { return &v }("gogoproto"),
Dependency: []string{"google/protobuf/descriptor.proto"},
Extension: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("goproto_enum_prefix"),
Number: func(v int32) *int32 { return &v }(62001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}, {Name: func(v string) *string { return &v }("goproto_enum_stringer"),
Number: func(v int32) *int32 { return &v }(62021),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}, {Name: func(v string) *string { return &v }("enum_stringer"),
Number: func(v int32) *int32 { return &v }(62022),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.EnumOptions"),
}, {Name: func(v string) *string { return &v }("goproto_getters_all"),
Number: func(v int32) *int32 { return &v }(63001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_enum_prefix_all"),
Number: func(v int32) *int32 { return &v }(63002),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_stringer_all"),
Number: func(v int32) *int32 { return &v }(63003),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("verbose_equal_all"),
Number: func(v int32) *int32 { return &v }(63004),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("face_all"),
Number: func(v int32) *int32 { return &v }(63005),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("gostring_all"),
Number: func(v int32) *int32 { return &v }(63006),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("populate_all"),
Number: func(v int32) *int32 { return &v }(63007),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("stringer_all"),
Number: func(v int32) *int32 { return &v }(63008),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("onlyone_all"),
Number: func(v int32) *int32 { return &v }(63009),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("equal_all"),
Number: func(v int32) *int32 { return &v }(63013),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("description_all"),
Number: func(v int32) *int32 { return &v }(63014),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("testgen_all"),
Number: func(v int32) *int32 { return &v }(63015),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("benchgen_all"),
Number: func(v int32) *int32 { return &v }(63016),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("marshaler_all"),
Number: func(v int32) *int32 { return &v }(63017),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("unmarshaler_all"),
Number: func(v int32) *int32 { return &v }(63018),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("sizer_all"),
Number: func(v int32) *int32 { return &v }(63020),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_enum_stringer_all"),
Number: func(v int32) *int32 { return &v }(63021),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("enum_stringer_all"),
Number: func(v int32) *int32 { return &v }(63022),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_marshaler_all"),
Number: func(v int32) *int32 { return &v }(63023),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_unmarshaler_all"),
Number: func(v int32) *int32 { return &v }(63024),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_extensions_map_all"),
Number: func(v int32) *int32 { return &v }(63025),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_unrecognized_all"),
Number: func(v int32) *int32 { return &v }(63026),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("gogoproto_import"),
Number: func(v int32) *int32 { return &v }(63027),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FileOptions"),
}, {Name: func(v string) *string { return &v }("goproto_getters"),
Number: func(v int32) *int32 { return &v }(64001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("goproto_stringer"),
Number: func(v int32) *int32 { return &v }(64003),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("verbose_equal"),
Number: func(v int32) *int32 { return &v }(64004),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("face"),
Number: func(v int32) *int32 { return &v }(64005),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("gostring"),
Number: func(v int32) *int32 { return &v }(64006),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("populate"),
Number: func(v int32) *int32 { return &v }(64007),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("stringer"),
Number: func(v int32) *int32 { return &v }(67008),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("onlyone"),
Number: func(v int32) *int32 { return &v }(64009),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("equal"),
Number: func(v int32) *int32 { return &v }(64013),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("description"),
Number: func(v int32) *int32 { return &v }(64014),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("testgen"),
Number: func(v int32) *int32 { return &v }(64015),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("benchgen"),
Number: func(v int32) *int32 { return &v }(64016),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("marshaler"),
Number: func(v int32) *int32 { return &v }(64017),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("unmarshaler"),
Number: func(v int32) *int32 { return &v }(64018),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("sizer"),
Number: func(v int32) *int32 { return &v }(64020),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_marshaler"),
Number: func(v int32) *int32 { return &v }(64023),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("unsafe_unmarshaler"),
Number: func(v int32) *int32 { return &v }(64024),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("goproto_extensions_map"),
Number: func(v int32) *int32 { return &v }(64025),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("goproto_unrecognized"),
Number: func(v int32) *int32 { return &v }(64026),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.MessageOptions"),
}, {Name: func(v string) *string { return &v }("nullable"),
Number: func(v int32) *int32 { return &v }(65001),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("embed"),
Number: func(v int32) *int32 { return &v }(65002),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(8),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("customtype"),
Number: func(v int32) *int32 { return &v }(65003),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("customname"),
Number: func(v int32) *int32 { return &v }(65004),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("jsontag"),
Number: func(v int32) *int32 { return &v }(65005),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("moretags"),
Number: func(v int32) *int32 { return &v }(65006),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}, {Name: func(v string) *string { return &v }("casttype"),
Number: func(v int32) *int32 { return &v }(65007),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(9),
Extendee: func(v string) *string { return &v }(".google.protobuf.FieldOptions"),
}},
Options: &google_protobuf.FileOptions{JavaPackage: func(v string) *string { return &v }("com.google.protobuf"),
JavaOuterClassname: func(v string) *string { return &v }("GoGoProtos"),
XXX_extensions: map[int32]proto.Extension{},
},
}, {Name: func(v string) *string { return &v }("combos/neither/casttype.proto"),
Package: func(v string) *string { return &v }("casttype"),
Dependency: []string{"github.com/gogo/protobuf/gogoproto/gogo.proto"},
MessageType: []*google_protobuf.DescriptorProto{{Name: func(v string) *string { return &v }("Castaway"),
Field: []*google_protobuf.FieldDescriptorProto{{Name: func(v string) *string { return &v }("Int32Ptr"),
Number: func(v int32) *int32 { return &v }(1),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(3),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x5, 0x69, 0x6e, 0x74, 0x33, 0x32})}},
}, {Name: func(v string) *string { return &v }("Int32"),
Number: func(v int32) *int32 { return &v }(2),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(3),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65001: proto.NewExtension([]byte{0xc8, 0xde, 0x1f, 0x0}), 65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x5, 0x69, 0x6e, 0x74, 0x33, 0x32})}},
}, {Name: func(v string) *string { return &v }("MyUint64Ptr"),
Number: func(v int32) *int32 { return &v }(3),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x79, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x79, 0x70, 0x65})}},
}, {Name: func(v string) *string { return &v }("MyUint64"),
Number: func(v int32) *int32 { return &v }(4),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65001: proto.NewExtension([]byte{0xc8, 0xde, 0x1f, 0x0}), 65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x79, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x79, 0x70, 0x65})}},
}, {Name: func(v string) *string { return &v }("MyBytes"),
Number: func(v int32) *int32 { return &v }(5),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(12),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x73})}},
}, {Name: func(v string) *string { return &v }("NormalBytes"),
Number: func(v int32) *int32 { return &v }(6),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(1),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(12),
}, {Name: func(v string) *string { return &v }("MyUint64s"),
Number: func(v int32) *int32 { return &v }(7),
Label: func(v google_protobuf.FieldDescriptorProto_Label) *google_protobuf.FieldDescriptorProto_Label {
return &v
}(3),
Type: func(v google_protobuf.FieldDescriptorProto_Type) *google_protobuf.FieldDescriptorProto_Type {
return &v
}(4),
Options: &google_protobuf.FieldOptions{XXX_extensions: map[int32]proto.Extension{65007: proto.NewExtension([]byte{0xfa, 0xde, 0x1f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x79, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x79, 0x70, 0x65})}},
}},
}},
Options: &google_protobuf.FileOptions{XXX_extensions: map[int32]proto.Extension{63001: proto.NewExtension([]byte{0xc8, 0xe1, 0x1e, 0x0}), 63002: proto.NewExtension([]byte{0xd0, 0xe1, 0x1e, 0x0}), 63003: proto.NewExtension([]byte{0xd8, 0xe1, 0x1e, 0x0}), 63004: proto.NewExtension([]byte{0xe0, 0xe1, 0x1e, 0x1}), 63005: proto.NewExtension([]byte{0xe8, 0xe1, 0x1e, 0x1}), 63006: proto.NewExtension([]byte{0xf0, 0xe1, 0x1e, 0x1}), 63007: proto.NewExtension([]byte{0xf8, 0xe1, 0x1e, 0x1}), 63008: proto.NewExtension([]byte{0x80, 0xe2, 0x1e, 0x1}), 63013: proto.NewExtension([]byte{0xa8, 0xe2, 0x1e, 0x1}), 63014: proto.NewExtension([]byte{0xb0, 0xe2, 0x1e, 0x1}), 63015: proto.NewExtension([]byte{0xb8, 0xe2, 0x1e, 0x1}), 63016: proto.NewExtension([]byte{0xc0, 0xe2, 0x1e, 0x1}), 63017: proto.NewExtension([]byte{0xc8, 0xe2, 0x1e, 0x0}), 63018: proto.NewExtension([]byte{0xd0, 0xe2, 0x1e, 0x0}), 63020: proto.NewExtension([]byte{0xe0, 0xe2, 0x1e, 0x1}), 63021: proto.NewExtension([]byte{0xe8, 0xe2, 0x1e, 0x0}), 63022: proto.NewExtension([]byte{0xf0, 0xe2, 0x1e, 0x1}), 63023: proto.NewExtension([]byte{0xf8, 0xe2, 0x1e, 0x0}), 63024: proto.NewExtension([]byte{0x80, 0xe3, 0x1e, 0x0})}},
}},
}
}
func (this *Castaway) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Castaway)
if !ok {
return fmt.Errorf("that is not of type *Castaway")
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Castaway but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Castawaybut is not nil && this == nil")
}
if this.Int32Ptr != nil && that1.Int32Ptr != nil {
if *this.Int32Ptr != *that1.Int32Ptr {
return fmt.Errorf("Int32Ptr this(%v) Not Equal that(%v)", *this.Int32Ptr, *that1.Int32Ptr)
}
} else if this.Int32Ptr != nil {
return fmt.Errorf("this.Int32Ptr == nil && that.Int32Ptr != nil")
} else if that1.Int32Ptr != nil {
return fmt.Errorf("Int32Ptr this(%v) Not Equal that(%v)", this.Int32Ptr, that1.Int32Ptr)
}
if this.Int32 != that1.Int32 {
return fmt.Errorf("Int32 this(%v) Not Equal that(%v)", this.Int32, that1.Int32)
}
if this.MyUint64Ptr != nil && that1.MyUint64Ptr != nil {
if *this.MyUint64Ptr != *that1.MyUint64Ptr {
return fmt.Errorf("MyUint64Ptr this(%v) Not Equal that(%v)", *this.MyUint64Ptr, *that1.MyUint64Ptr)
}
} else if this.MyUint64Ptr != nil {
return fmt.Errorf("this.MyUint64Ptr == nil && that.MyUint64Ptr != nil")
} else if that1.MyUint64Ptr != nil {
return fmt.Errorf("MyUint64Ptr this(%v) Not Equal that(%v)", this.MyUint64Ptr, that1.MyUint64Ptr)
}
if this.MyUint64 != that1.MyUint64 {
return fmt.Errorf("MyUint64 this(%v) Not Equal that(%v)", this.MyUint64, that1.MyUint64)
}
if !bytes.Equal(this.MyBytes, that1.MyBytes) {
return fmt.Errorf("MyBytes this(%v) Not Equal that(%v)", this.MyBytes, that1.MyBytes)
}
if !bytes.Equal(this.NormalBytes, that1.NormalBytes) {
return fmt.Errorf("NormalBytes this(%v) Not Equal that(%v)", this.NormalBytes, that1.NormalBytes)
}
if len(this.MyUint64S) != len(that1.MyUint64S) {
return fmt.Errorf("MyUint64S this(%v) Not Equal that(%v)", len(this.MyUint64S), len(that1.MyUint64S))
}
for i := range this.MyUint64S {
if this.MyUint64S[i] != that1.MyUint64S[i] {
return fmt.Errorf("MyUint64S this[%v](%v) Not Equal that[%v](%v)", i, this.MyUint64S[i], i, that1.MyUint64S[i])
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Castaway) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Castaway)
if !ok {
return false
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Int32Ptr != nil && that1.Int32Ptr != nil {
if *this.Int32Ptr != *that1.Int32Ptr {
return false
}
} else if this.Int32Ptr != nil {
return false
} else if that1.Int32Ptr != nil {
return false
}
if this.Int32 != that1.Int32 {
return false
}
if this.MyUint64Ptr != nil && that1.MyUint64Ptr != nil {
if *this.MyUint64Ptr != *that1.MyUint64Ptr {
return false
}
} else if this.MyUint64Ptr != nil {
return false
} else if that1.MyUint64Ptr != nil {
return false
}
if this.MyUint64 != that1.MyUint64 {
return false
}
if !bytes.Equal(this.MyBytes, that1.MyBytes) {
return false
}
if !bytes.Equal(this.NormalBytes, that1.NormalBytes) {
return false
}
if len(this.MyUint64S) != len(that1.MyUint64S) {
return false
}
for i := range this.MyUint64S {
if this.MyUint64S[i] != that1.MyUint64S[i] {
return false
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
type CastawayFace interface {
Proto() github_com_gogo_protobuf_proto.Message
GetInt32Ptr() *int32
GetInt32() int32
GetMyUint64Ptr() *github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyUint64() github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyBytes() github_com_gogo_protobuf_test_casttype.Bytes
GetNormalBytes() []byte
GetMyUint64S() []github_com_gogo_protobuf_test_casttype.MyUint64Type
}
func (this *Castaway) Proto() github_com_gogo_protobuf_proto.Message {
return this
}
func (this *Castaway) TestProto() github_com_gogo_protobuf_proto.Message {
return NewCastawayFromFace(this)
}
func (this *Castaway) GetInt32Ptr() *int32 {
return this.Int32Ptr
}
func (this *Castaway) GetInt32() int32 {
return this.Int32
}
func (this *Castaway) GetMyUint64Ptr() *github_com_gogo_protobuf_test_casttype.MyUint64Type {
return this.MyUint64Ptr
}
func (this *Castaway) GetMyUint64() github_com_gogo_protobuf_test_casttype.MyUint64Type {
return this.MyUint64
}
func (this *Castaway) GetMyBytes() github_com_gogo_protobuf_test_casttype.Bytes {
return this.MyBytes
}
func (this *Castaway) GetNormalBytes() []byte {
return this.NormalBytes
}
func (this *Castaway) GetMyUint64S() []github_com_gogo_protobuf_test_casttype.MyUint64Type {
return this.MyUint64S
}
func NewCastawayFromFace(that CastawayFace) *Castaway {
this := &Castaway{}
this.Int32Ptr = that.GetInt32Ptr()
this.Int32 = that.GetInt32()
this.MyUint64Ptr = that.GetMyUint64Ptr()
this.MyUint64 = that.GetMyUint64()
this.MyBytes = that.GetMyBytes()
this.NormalBytes = that.GetNormalBytes()
this.MyUint64S = that.GetMyUint64S()
return this
}
func (this *Castaway) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 11)
s = append(s, "&casttype.Castaway{")
if this.Int32Ptr != nil {
s = append(s, "Int32Ptr: "+valueToGoStringCasttype(this.Int32Ptr, "int32")+",\n")
}
s = append(s, "Int32: "+fmt.Sprintf("%#v", this.Int32)+",\n")
if this.MyUint64Ptr != nil {
s = append(s, "MyUint64Ptr: "+valueToGoStringCasttype(this.MyUint64Ptr, "github_com_gogo_protobuf_test_casttype.MyUint64Type")+",\n")
}
s = append(s, "MyUint64: "+fmt.Sprintf("%#v", this.MyUint64)+",\n")
if this.MyBytes != nil {
s = append(s, "MyBytes: "+valueToGoStringCasttype(this.MyBytes, "github_com_gogo_protobuf_test_casttype.Bytes")+",\n")
}
if this.NormalBytes != nil {
s = append(s, "NormalBytes: "+valueToGoStringCasttype(this.NormalBytes, "byte")+",\n")
}
if this.MyUint64S != nil {
s = append(s, "MyUint64S: "+fmt.Sprintf("%#v", this.MyUint64S)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringCasttype(v interface{}, typ string) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}
func extensionToGoStringCasttype(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
if e == nil {
return "nil"
}
s := "map[int32]proto.Extension{"
keys := make([]int, 0, len(e))
for k := range e {
keys = append(keys, int(k))
}
sort.Ints(keys)
ss := []string{}
for _, k := range keys {
ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
}
s += strings.Join(ss, ",") + "}"
return s
}
func NewPopulatedCastaway(r randyCasttype, easy bool) *Castaway {
this := &Castaway{}
if r.Intn(10) != 0 {
v1 := int32(r.Int63())
if r.Intn(2) == 0 {
v1 *= -1
}
this.Int32Ptr = &v1
}
this.Int32 = int32(r.Int63())
if r.Intn(2) == 0 {
this.Int32 *= -1
}
if r.Intn(10) != 0 {
v2 := github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32()))
this.MyUint64Ptr = &v2
}
this.MyUint64 = github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32()))
if r.Intn(10) != 0 {
v3 := r.Intn(100)
this.MyBytes = make(github_com_gogo_protobuf_test_casttype.Bytes, v3)
for i := 0; i < v3; i++ {
this.MyBytes[i] = byte(r.Intn(256))
}
}
if r.Intn(10) != 0 {
v4 := r.Intn(100)
this.NormalBytes = make([]byte, v4)
for i := 0; i < v4; i++ {
this.NormalBytes[i] = byte(r.Intn(256))
}
}
if r.Intn(10) != 0 {
v5 := r.Intn(100)
this.MyUint64S = make([]github_com_gogo_protobuf_test_casttype.MyUint64Type, v5)
for i := 0; i < v5; i++ {
this.MyUint64S[i] = github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32()))
}
}
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedCasttype(r, 8)
}
return this
}
type randyCasttype interface {
Float32() float32
Float64() float64
Int63() int64
Int31() int32
Uint32() uint32
Intn(n int) int
}
func randUTF8RuneCasttype(r randyCasttype) rune {
ru := r.Intn(62)
if ru < 10 {
return rune(ru + 48)
} else if ru < 36 {
return rune(ru + 55)
}
return rune(ru + 61)
}
func randStringCasttype(r randyCasttype) string {
v6 := r.Intn(100)
tmps := make([]rune, v6)
for i := 0; i < v6; i++ {
tmps[i] = randUTF8RuneCasttype(r)
}
return string(tmps)
}
func randUnrecognizedCasttype(r randyCasttype, maxFieldNumber int) (data []byte) {
l := r.Intn(5)
for i := 0; i < l; i++ {
wire := r.Intn(4)
if wire == 3 {
wire = 5
}
fieldNumber := maxFieldNumber + r.Intn(100)
data = randFieldCasttype(data, r, fieldNumber, wire)
}
return data
}
func randFieldCasttype(data []byte, r randyCasttype, fieldNumber int, wire int) []byte {
key := uint32(fieldNumber)<<3 | uint32(wire)
switch wire {
case 0:
data = encodeVarintPopulateCasttype(data, uint64(key))
v7 := r.Int63()
if r.Intn(2) == 0 {
v7 *= -1
}
data = encodeVarintPopulateCasttype(data, uint64(v7))
case 1:
data = encodeVarintPopulateCasttype(data, uint64(key))
data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
case 2:
data = encodeVarintPopulateCasttype(data, uint64(key))
ll := r.Intn(100)
data = encodeVarintPopulateCasttype(data, uint64(ll))
for j := 0; j < ll; j++ {
data = append(data, byte(r.Intn(256)))
}
default:
data = encodeVarintPopulateCasttype(data, uint64(key))
data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
}
return data
}
func encodeVarintPopulateCasttype(data []byte, v uint64) []byte {
for v >= 1<<7 {
data = append(data, uint8(uint64(v)&0x7f|0x80))
v >>= 7
}
data = append(data, uint8(v))
return data
}
func (m *Castaway) Size() (n int) {
var l int
_ = l
if m.Int32Ptr != nil {
n += 1 + sovCasttype(uint64(*m.Int32Ptr))
}
n += 1 + sovCasttype(uint64(m.Int32))
if m.MyUint64Ptr != nil {
n += 1 + sovCasttype(uint64(*m.MyUint64Ptr))
}
n += 1 + sovCasttype(uint64(m.MyUint64))
if m.MyBytes != nil {
l = len(m.MyBytes)
n += 1 + l + sovCasttype(uint64(l))
}
if m.NormalBytes != nil {
l = len(m.NormalBytes)
n += 1 + l + sovCasttype(uint64(l))
}
if len(m.MyUint64S) > 0 {
for _, e := range m.MyUint64S {
n += 1 + sovCasttype(uint64(e))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovCasttype(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozCasttype(x uint64) (n int) {
return sovCasttype(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *Castaway) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Castaway{`,
`Int32Ptr:` + valueToStringCasttype(this.Int32Ptr) + `,`,
`Int32:` + fmt.Sprintf("%v", this.Int32) + `,`,
`MyUint64Ptr:` + valueToStringCasttype(this.MyUint64Ptr) + `,`,
`MyUint64:` + fmt.Sprintf("%v", this.MyUint64) + `,`,
`MyBytes:` + valueToStringCasttype(this.MyBytes) + `,`,
`NormalBytes:` + valueToStringCasttype(this.NormalBytes) + `,`,
`MyUint64S:` + fmt.Sprintf("%v", this.MyUint64S) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func valueToStringCasttype(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
// Copyright (c) 2015, Vastech SA (PTY) LTD. All rights reserved.
// http://github.com/gogo/protobuf/gogoproto
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
syntax = "proto2";
package casttype;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.goproto_enum_prefix_all) = false;
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true;
option (gogoproto.stringer_all) = true;
option (gogoproto.gostring_all) = true;
option (gogoproto.face_all) = true;
option (gogoproto.description_all) = true;
option (gogoproto.testgen_all) = true;
option (gogoproto.populate_all) = true;
option (gogoproto.benchgen_all) = true;
option (gogoproto.unmarshaler_all) = false;
option (gogoproto.marshaler_all) = false;
option (gogoproto.sizer_all) = true;
option (gogoproto.goproto_enum_stringer_all) = false;
option (gogoproto.enum_stringer_all) = true;
option (gogoproto.unsafe_marshaler_all) = false;
option (gogoproto.unsafe_unmarshaler_all) = false;
message Castaway {
optional int64 Int32Ptr = 1 [(gogoproto.casttype) = "int32"];
optional int64 Int32 = 2 [(gogoproto.nullable) = false, (gogoproto.casttype) = "int32"];
optional uint64 MyUint64Ptr = 3 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
optional uint64 MyUint64 = 4 [(gogoproto.nullable) = false, (gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
optional bytes MyBytes = 5 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.Bytes"];
optional bytes NormalBytes = 6;
repeated uint64 MyUint64s = 7 [(gogoproto.casttype) = "github.com/gogo/protobuf/test/casttype.MyUint64Type"];
}
// Code generated by protoc-gen-gogo.
// source: combos/neither/casttype.proto
// DO NOT EDIT!
/*
Package casttype is a generated protocol buffer package.
It is generated from these files:
combos/neither/casttype.proto
It has these top-level messages:
Castaway
*/
package casttype
import testing "testing"
import math_rand "math/rand"
import time "time"
import github_com_gogo_protobuf_proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import github_com_gogo_protobuf_jsonpb "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/jsonpb"
import fmt "fmt"
import go_parser "go/parser"
import proto "QmfH4HuZyN1p2wQLWWkXC91Z76435xKrBVfLQ2MY8ayG5R/gogo-protobuf/proto"
import math "math"
// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
func TestCastawayProto(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, false)
data, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
littlefuzz := make([]byte, len(data))
copy(littlefuzz, data)
for i := range data {
data[i] = byte(popr.Intn(256))
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
if len(littlefuzz) > 0 {
fuzzamount := 100
for i := 0; i < fuzzamount; i++ {
littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
}
// shouldn't panic
_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
}
}
func BenchmarkCastawayProtoMarshal(b *testing.B) {
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Castaway, 10000)
for i := 0; i < 10000; i++ {
pops[i] = NewPopulatedCastaway(popr, false)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
data, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000])
if err != nil {
panic(err)
}
total += len(data)
}
b.SetBytes(int64(total / b.N))
}
func BenchmarkCastawayProtoUnmarshal(b *testing.B) {
popr := math_rand.New(math_rand.NewSource(616))
total := 0
datas := make([][]byte, 10000)
for i := 0; i < 10000; i++ {
data, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedCastaway(popr, false))
if err != nil {
panic(err)
}
datas[i] = data
}
msg := &Castaway{}
b.ResetTimer()
for i := 0; i < b.N; i++ {
total += len(datas[i%10000])
if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil {
panic(err)
}
}
b.SetBytes(int64(total / b.N))
}
func TestCastawayJSON(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
jsondata, err := marshaler.MarshalToString(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Castaway{}
err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
}
}
func TestCastawayProtoText(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
data := github_com_gogo_protobuf_proto.MarshalTextString(p)
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.UnmarshalText(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
}
func TestCastawayProtoCompactText(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
data := github_com_gogo_protobuf_proto.CompactTextString(p)
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.UnmarshalText(data, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("seed = %d, %#v !VerboseProto %#v, since %v", seed, msg, p, err)
}
if !p.Equal(msg) {
t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
}
}
func TestCasttypeDescription(t *testing.T) {
CasttypeDescription()
}
func TestCastawayVerboseEqual(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, false)
data, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
panic(err)
}
msg := &Castaway{}
if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil {
panic(err)
}
if err := p.VerboseEqual(msg); err != nil {
t.Fatalf("%#v !VerboseEqual %#v, since %v", msg, p, err)
}
}
func TestCastawayFace(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, true)
msg := p.TestProto()
if !p.Equal(msg) {
t.Fatalf("%#v !Face Equal %#v", msg, p)
}
}
func TestCastawayGoString(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, false)
s1 := p.GoString()
s2 := fmt.Sprintf("%#v", p)
if s1 != s2 {
t.Fatalf("GoString want %v got %v", s1, s2)
}
_, err := go_parser.ParseExpr(s1)
if err != nil {
panic(err)
}
}
func TestCastawaySize(t *testing.T) {
seed := time.Now().UnixNano()
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedCastaway(popr, true)
size2 := github_com_gogo_protobuf_proto.Size(p)
data, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
size := p.Size()
if len(data) != size {
t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(data))
}
if size2 != size {
t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2)
}
size3 := github_com_gogo_protobuf_proto.Size(p)
if size3 != size {
t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3)
}
}
func BenchmarkCastawaySize(b *testing.B) {
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Castaway, 1000)
for i := 0; i < 1000; i++ {
pops[i] = NewPopulatedCastaway(popr, false)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
total += pops[i%1000].Size()
}
b.SetBytes(int64(total / b.N))
}
func TestCastawayStringer(t *testing.T) {
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedCastaway(popr, false)
s1 := p.String()
s2 := fmt.Sprintf("%v", p)
if s1 != s2 {
t.Fatalf("String want %v got %v", s1, s2)
}
}
//These tests are generated by github.com/gogo/protobuf/plugin/testgen
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment