all: Update protobuf package 1.0.0 -> 1.2.0 (#5452)

Also adds a few file global options to keep the generated code similar
to what we already had.
This commit is contained in:
Jakob Borg
2019-01-14 11:53:36 +01:00
committed by GitHub
parent c87411851d
commit b01edca420
132 changed files with 41655 additions and 16821 deletions

View File

@@ -1,15 +1,6 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: gogovanity.proto
/*
Package vanity is a generated protocol buffer package.
It is generated from these files:
gogovanity.proto
It has these top-level messages:
B
*/
package vanity
import proto "github.com/gogo/protobuf/proto"
@@ -31,16 +22,46 @@ var _ = math.Inf
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type B struct {
String_ *string `protobuf:"bytes,1,opt,name=String" json:"String,omitempty"`
Int64 *int64 `protobuf:"varint,2,opt,name=Int64" json:"Int64,omitempty"`
Int32 *int32 `protobuf:"varint,3,opt,name=Int32,def=1234" json:"Int32,omitempty"`
XXX_unrecognized []byte `json:"-"`
String_ *string `protobuf:"bytes,1,opt,name=String" json:"String,omitempty"`
Int64 *int64 `protobuf:"varint,2,opt,name=Int64" json:"Int64,omitempty"`
Int32 *int32 `protobuf:"varint,3,opt,name=Int32,def=1234" json:"Int32,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *B) Reset() { *m = B{} }
func (m *B) String() string { return proto.CompactTextString(m) }
func (*B) ProtoMessage() {}
func (*B) Descriptor() ([]byte, []int) { return fileDescriptorGogovanity, []int{0} }
func (m *B) Reset() { *m = B{} }
func (m *B) String() string { return proto.CompactTextString(m) }
func (*B) ProtoMessage() {}
func (*B) Descriptor() ([]byte, []int) {
return fileDescriptor_gogovanity_77d0a6938d93e1f7, []int{0}
}
func (m *B) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_B.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *B) XXX_Merge(src proto.Message) {
xxx_messageInfo_B.Merge(dst, src)
}
func (m *B) XXX_Size() int {
return m.Size()
}
func (m *B) XXX_DiscardUnknown() {
xxx_messageInfo_B.DiscardUnknown(m)
}
var xxx_messageInfo_B proto.InternalMessageInfo
const Default_B_Int32 int32 = 1234
@@ -115,6 +136,9 @@ func encodeVarintGogovanity(dAtA []byte, offset int, v uint64) int {
return offset + 1
}
func (m *B) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.String_ != nil {
@@ -372,9 +396,9 @@ var (
ErrIntOverflowGogovanity = fmt.Errorf("proto: integer overflow")
)
func init() { proto.RegisterFile("gogovanity.proto", fileDescriptorGogovanity) }
func init() { proto.RegisterFile("gogovanity.proto", fileDescriptor_gogovanity_77d0a6938d93e1f7) }
var fileDescriptorGogovanity = []byte{
var fileDescriptor_gogovanity_77d0a6938d93e1f7 = []byte{
// 157 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0xcf, 0x4f, 0xcf,
0x2f, 0x4b, 0xcc, 0xcb, 0x2c, 0xa9, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x83, 0xf0,