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,21 +1,14 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: vanity.proto
/*
Package vanity is a generated protocol buffer package.
It is generated from these files:
vanity.proto
It has these top-level messages:
A
*/
package vanity
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
@@ -30,15 +23,45 @@ var _ = math.Inf
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type A struct {
Strings *string `protobuf:"bytes,1,opt,name=Strings" json:"Strings,omitempty"`
Int *int64 `protobuf:"varint,2,req,name=Int" json:"Int,omitempty"`
XXX_unrecognized []byte `json:"-"`
Strings *string `protobuf:"bytes,1,opt,name=Strings" json:"Strings,omitempty"`
Int *int64 `protobuf:"varint,2,req,name=Int" json:"Int,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *A) Reset() { *m = A{} }
func (m *A) String() string { return proto.CompactTextString(m) }
func (*A) ProtoMessage() {}
func (*A) Descriptor() ([]byte, []int) { return fileDescriptorVanity, []int{0} }
func (m *A) Reset() { *m = A{} }
func (m *A) String() string { return proto.CompactTextString(m) }
func (*A) ProtoMessage() {}
func (*A) Descriptor() ([]byte, []int) {
return fileDescriptor_vanity_62f5a5ee00b3fc23, []int{0}
}
func (m *A) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_A.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 *A) XXX_Merge(src proto.Message) {
xxx_messageInfo_A.Merge(dst, src)
}
func (m *A) XXX_Size() int {
return m.Size()
}
func (m *A) XXX_DiscardUnknown() {
xxx_messageInfo_A.DiscardUnknown(m)
}
var xxx_messageInfo_A proto.InternalMessageInfo
func (m *A) GetStrings() string {
if m != nil && m.Strings != nil {
@@ -79,7 +102,7 @@ func (m *A) MarshalTo(dAtA []byte) (int, error) {
i += copy(dAtA[i:], *m.Strings)
}
if m.Int == nil {
return 0, proto.NewRequiredNotSetError("Int")
return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("Int")
} else {
dAtA[i] = 0x10
i++
@@ -101,6 +124,9 @@ func encodeVarintVanity(dAtA []byte, offset int, v uint64) int {
return offset + 1
}
func (m *A) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Strings != nil {
@@ -227,7 +253,7 @@ func (m *A) Unmarshal(dAtA []byte) error {
}
}
if hasFields[0]&uint64(0x00000001) == 0 {
return proto.NewRequiredNotSetError("Int")
return github_com_gogo_protobuf_proto.NewRequiredNotSetError("Int")
}
if iNdEx > l {
@@ -340,9 +366,9 @@ var (
ErrIntOverflowVanity = fmt.Errorf("proto: integer overflow")
)
func init() { proto.RegisterFile("vanity.proto", fileDescriptorVanity) }
func init() { proto.RegisterFile("vanity.proto", fileDescriptor_vanity_62f5a5ee00b3fc23) }
var fileDescriptorVanity = []byte{
var fileDescriptor_vanity_62f5a5ee00b3fc23 = []byte{
// 97 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x4b, 0xcc, 0xcb,
0x2c, 0xa9, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x83, 0xf0, 0x94, 0xf4, 0xb9, 0x18,