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:
60
vendor/github.com/gogo/protobuf/vanity/test/faster/gogovanity.pb.go
generated
vendored
60
vendor/github.com/gogo/protobuf/vanity/test/faster/gogovanity.pb.go
generated
vendored
@@ -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"
|
||||
@@ -36,10 +27,38 @@ type B struct {
|
||||
Int32 *int32 `protobuf:"varint,3,opt,name=Int32,def=1234" json:"Int32,omitempty"`
|
||||
}
|
||||
|
||||
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_5ec1359daac061c2, []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
|
||||
|
||||
@@ -109,6 +128,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 {
|
||||
@@ -359,10 +381,10 @@ var (
|
||||
ErrIntOverflowGogovanity = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("gogovanity.proto", fileDescriptorGogovanity) }
|
||||
func init() { proto.RegisterFile("gogovanity.proto", fileDescriptor_gogovanity_5ec1359daac061c2) }
|
||||
|
||||
var fileDescriptorGogovanity = []byte{
|
||||
// 163 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_gogovanity_5ec1359daac061c2 = []byte{
|
||||
// 171 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,
|
||||
0xa4, 0x74, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x41, 0x8a, 0xf4,
|
||||
@@ -371,7 +393,7 @@ var fileDescriptorGogovanity = []byte{
|
||||
0x70, 0x3a, 0xb1, 0x9c, 0xb8, 0x27, 0xcf, 0x18, 0x04, 0x15, 0x13, 0x92, 0xe2, 0x62, 0xf5, 0xcc,
|
||||
0x2b, 0x31, 0x33, 0x91, 0x60, 0x52, 0x60, 0xd4, 0x60, 0x06, 0x4b, 0x32, 0x04, 0x41, 0x84, 0xa0,
|
||||
0x72, 0xc6, 0x46, 0x12, 0xcc, 0x0a, 0x8c, 0x1a, 0xac, 0x56, 0x2c, 0x86, 0x46, 0xc6, 0x26, 0x41,
|
||||
0x10, 0x21, 0x27, 0x81, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e,
|
||||
0x71, 0xc2, 0x63, 0x39, 0x06, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xde, 0x29, 0x72, 0xb6,
|
||||
0x00, 0x00, 0x00,
|
||||
0x10, 0x21, 0x27, 0x89, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e,
|
||||
0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x00, 0x04, 0x00,
|
||||
0x00, 0xff, 0xff, 0xbf, 0xbb, 0x2c, 0x28, 0xbe, 0x00, 0x00, 0x00,
|
||||
}
|
||||
|
||||
60
vendor/github.com/gogo/protobuf/vanity/test/faster/proto3.pb.go
generated
vendored
60
vendor/github.com/gogo/protobuf/vanity/test/faster/proto3.pb.go
generated
vendored
@@ -1,15 +1,6 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: proto3.proto
|
||||
|
||||
/*
|
||||
Package vanity is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
proto3.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Aproto3
|
||||
*/
|
||||
package vanity
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
@@ -33,10 +24,38 @@ type Aproto3 struct {
|
||||
B string `protobuf:"bytes,1,opt,name=B,proto3" json:"B,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Aproto3) Reset() { *m = Aproto3{} }
|
||||
func (m *Aproto3) String() string { return proto.CompactTextString(m) }
|
||||
func (*Aproto3) ProtoMessage() {}
|
||||
func (*Aproto3) Descriptor() ([]byte, []int) { return fileDescriptorProto3, []int{0} }
|
||||
func (m *Aproto3) Reset() { *m = Aproto3{} }
|
||||
func (m *Aproto3) String() string { return proto.CompactTextString(m) }
|
||||
func (*Aproto3) ProtoMessage() {}
|
||||
func (*Aproto3) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_proto3_b593ea763dc96224, []int{0}
|
||||
}
|
||||
func (m *Aproto3) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *Aproto3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_Aproto3.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 *Aproto3) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Aproto3.Merge(dst, src)
|
||||
}
|
||||
func (m *Aproto3) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *Aproto3) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Aproto3.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Aproto3 proto.InternalMessageInfo
|
||||
|
||||
func (m *Aproto3) GetB() string {
|
||||
if m != nil {
|
||||
@@ -82,6 +101,9 @@ func encodeVarintProto3(dAtA []byte, offset int, v uint64) int {
|
||||
return offset + 1
|
||||
}
|
||||
func (m *Aproto3) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.B)
|
||||
@@ -288,14 +310,14 @@ var (
|
||||
ErrIntOverflowProto3 = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("proto3.proto", fileDescriptorProto3) }
|
||||
func init() { proto.RegisterFile("proto3.proto", fileDescriptor_proto3_b593ea763dc96224) }
|
||||
|
||||
var fileDescriptorProto3 = []byte{
|
||||
// 87 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_proto3_b593ea763dc96224 = []byte{
|
||||
// 95 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x28, 0xca, 0x2f,
|
||||
0xc9, 0x37, 0xd6, 0x03, 0x53, 0x42, 0x6c, 0x65, 0x89, 0x79, 0x99, 0x25, 0x95, 0x4a, 0xe2, 0x5c,
|
||||
0xec, 0x8e, 0x10, 0x09, 0x21, 0x1e, 0x2e, 0x46, 0x27, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20,
|
||||
0x46, 0x27, 0x27, 0x81, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e,
|
||||
0x71, 0xc2, 0x63, 0x39, 0x86, 0x24, 0x36, 0x88, 0x3a, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x77,
|
||||
0x21, 0xa3, 0xc0, 0x49, 0x00, 0x00, 0x00,
|
||||
0x46, 0x27, 0x27, 0x89, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e,
|
||||
0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x48, 0x62, 0x83,
|
||||
0xa8, 0x07, 0x04, 0x00, 0x00, 0xff, 0xff, 0x73, 0xb1, 0xdb, 0xd2, 0x51, 0x00, 0x00, 0x00,
|
||||
}
|
||||
|
||||
64
vendor/github.com/gogo/protobuf/vanity/test/faster/vanity.pb.go
generated
vendored
64
vendor/github.com/gogo/protobuf/vanity/test/faster/vanity.pb.go
generated
vendored
@@ -1,15 +1,6 @@
|
||||
// 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"
|
||||
@@ -17,6 +8,7 @@ import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
import io "io"
|
||||
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
@@ -34,10 +26,38 @@ type A struct {
|
||||
Int int64 `protobuf:"varint,2,req,name=Int" json:"Int"`
|
||||
}
|
||||
|
||||
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_c8a9a949a2e14347, []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 {
|
||||
@@ -91,6 +111,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
|
||||
l = len(m.Strings)
|
||||
@@ -207,7 +230,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 {
|
||||
@@ -320,15 +343,16 @@ var (
|
||||
ErrIntOverflowVanity = fmt.Errorf("proto: integer overflow")
|
||||
)
|
||||
|
||||
func init() { proto.RegisterFile("vanity.proto", fileDescriptorVanity) }
|
||||
func init() { proto.RegisterFile("vanity.proto", fileDescriptor_vanity_c8a9a949a2e14347) }
|
||||
|
||||
var fileDescriptorVanity = []byte{
|
||||
// 109 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_vanity_c8a9a949a2e14347 = []byte{
|
||||
// 117 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, 0xac, 0xb9, 0x18,
|
||||
0x1d, 0x85, 0xe4, 0xb8, 0xd8, 0x83, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, 0x8b, 0x25, 0x18, 0x15, 0x18,
|
||||
0x35, 0x38, 0x9d, 0x58, 0x4e, 0xdc, 0x93, 0x67, 0x08, 0x82, 0x09, 0x0a, 0x89, 0x71, 0x31, 0x7b,
|
||||
0xe6, 0x95, 0x48, 0x30, 0x29, 0x30, 0x69, 0x30, 0x43, 0xe5, 0x40, 0x02, 0x4e, 0x02, 0x27, 0x1e,
|
||||
0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x80,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0x56, 0x0d, 0x52, 0xbb, 0x65, 0x00, 0x00, 0x00,
|
||||
0xe6, 0x95, 0x48, 0x30, 0x29, 0x30, 0x69, 0x30, 0x43, 0xe5, 0x40, 0x02, 0x4e, 0x12, 0x27, 0x1e,
|
||||
0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17,
|
||||
0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x00, 0x08, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x2e, 0x6a,
|
||||
0x0c, 0x6d, 0x00, 0x00, 0x00,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user