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/test/importduplicate/proto/proto.pb.go
generated
vendored
60
vendor/github.com/gogo/protobuf/test/importduplicate/proto/proto.pb.go
generated
vendored
@@ -1,27 +1,20 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: proto/proto.proto
|
||||
|
||||
/*
|
||||
Package proto is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
proto/proto.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Subject
|
||||
*/
|
||||
package proto
|
||||
|
||||
import proto1 "github.com/gogo/protobuf/proto"
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
|
||||
import bytes "bytes"
|
||||
|
||||
import strings "strings"
|
||||
import reflect "reflect"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto1.Marshal
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
@@ -29,18 +22,40 @@ var _ = math.Inf
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto1.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Subject struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Subject) Reset() { *m = Subject{} }
|
||||
func (m *Subject) String() string { return proto1.CompactTextString(m) }
|
||||
func (*Subject) ProtoMessage() {}
|
||||
func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptorProto, []int{0} }
|
||||
func (m *Subject) Reset() { *m = Subject{} }
|
||||
func (m *Subject) String() string { return proto.CompactTextString(m) }
|
||||
func (*Subject) ProtoMessage() {}
|
||||
func (*Subject) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_proto_2eb405ba8c57e5a9, []int{0}
|
||||
}
|
||||
func (m *Subject) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Subject.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Subject.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Subject) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Subject.Merge(dst, src)
|
||||
}
|
||||
func (m *Subject) XXX_Size() int {
|
||||
return xxx_messageInfo_Subject.Size(m)
|
||||
}
|
||||
func (m *Subject) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Subject.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Subject proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto1.RegisterType((*Subject)(nil), "proto.Subject")
|
||||
proto.RegisterType((*Subject)(nil), "proto.Subject")
|
||||
}
|
||||
func (this *Subject) Equal(that interface{}) bool {
|
||||
if that == nil {
|
||||
@@ -61,6 +76,9 @@ func (this *Subject) Equal(that interface{}) bool {
|
||||
} else if this == nil {
|
||||
return false
|
||||
}
|
||||
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (this *Subject) GoString() string {
|
||||
@@ -69,6 +87,9 @@ func (this *Subject) GoString() string {
|
||||
}
|
||||
s := make([]string, 0, 4)
|
||||
s = append(s, "&proto.Subject{")
|
||||
if this.XXX_unrecognized != nil {
|
||||
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
|
||||
}
|
||||
s = append(s, "}")
|
||||
return strings.Join(s, "")
|
||||
}
|
||||
@@ -83,6 +104,7 @@ func valueToGoStringProto(v interface{}, typ string) string {
|
||||
func NewPopulatedSubject(r randyProto, easy bool) *Subject {
|
||||
this := &Subject{}
|
||||
if !easy && r.Intn(10) != 0 {
|
||||
this.XXX_unrecognized = randUnrecognizedProto(r, 1)
|
||||
}
|
||||
return this
|
||||
}
|
||||
@@ -160,9 +182,9 @@ func encodeVarintPopulateProto(dAtA []byte, v uint64) []byte {
|
||||
return dAtA
|
||||
}
|
||||
|
||||
func init() { proto1.RegisterFile("proto/proto.proto", fileDescriptorProto) }
|
||||
func init() { proto.RegisterFile("proto/proto.proto", fileDescriptor_proto_2eb405ba8c57e5a9) }
|
||||
|
||||
var fileDescriptorProto = []byte{
|
||||
var fileDescriptor_proto_2eb405ba8c57e5a9 = []byte{
|
||||
// 103 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2c, 0x28, 0xca, 0x2f,
|
||||
0xc9, 0xd7, 0x07, 0x93, 0x7a, 0x60, 0x52, 0x88, 0x15, 0x4c, 0x49, 0xe9, 0xa6, 0x67, 0x96, 0x64,
|
||||
|
||||
52
vendor/github.com/gogo/protobuf/test/importduplicate/sortkeys/sortable.pb.go
generated
vendored
52
vendor/github.com/gogo/protobuf/test/importduplicate/sortkeys/sortable.pb.go
generated
vendored
@@ -1,15 +1,6 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: sortkeys/sortable.proto
|
||||
|
||||
/*
|
||||
Package sortkeys is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
sortkeys/sortable.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Object
|
||||
*/
|
||||
package sortkeys
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
@@ -17,6 +8,8 @@ import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
|
||||
import bytes "bytes"
|
||||
|
||||
import strings "strings"
|
||||
import reflect "reflect"
|
||||
|
||||
@@ -32,12 +25,34 @@ var _ = math.Inf
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Object struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Object) Reset() { *m = Object{} }
|
||||
func (m *Object) String() string { return proto.CompactTextString(m) }
|
||||
func (*Object) ProtoMessage() {}
|
||||
func (*Object) Descriptor() ([]byte, []int) { return fileDescriptorSortable, []int{0} }
|
||||
func (m *Object) Reset() { *m = Object{} }
|
||||
func (m *Object) String() string { return proto.CompactTextString(m) }
|
||||
func (*Object) ProtoMessage() {}
|
||||
func (*Object) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_sortable_d1adc3e2593f24f3, []int{0}
|
||||
}
|
||||
func (m *Object) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Object.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Object) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Object.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Object) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Object.Merge(dst, src)
|
||||
}
|
||||
func (m *Object) XXX_Size() int {
|
||||
return xxx_messageInfo_Object.Size(m)
|
||||
}
|
||||
func (m *Object) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Object.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Object proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Object)(nil), "sortkeys.Object")
|
||||
@@ -61,6 +76,9 @@ func (this *Object) Equal(that interface{}) bool {
|
||||
} else if this == nil {
|
||||
return false
|
||||
}
|
||||
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (this *Object) GoString() string {
|
||||
@@ -69,6 +87,9 @@ func (this *Object) GoString() string {
|
||||
}
|
||||
s := make([]string, 0, 4)
|
||||
s = append(s, "&sortkeys.Object{")
|
||||
if this.XXX_unrecognized != nil {
|
||||
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
|
||||
}
|
||||
s = append(s, "}")
|
||||
return strings.Join(s, "")
|
||||
}
|
||||
@@ -83,6 +104,7 @@ func valueToGoStringSortable(v interface{}, typ string) string {
|
||||
func NewPopulatedObject(r randySortable, easy bool) *Object {
|
||||
this := &Object{}
|
||||
if !easy && r.Intn(10) != 0 {
|
||||
this.XXX_unrecognized = randUnrecognizedSortable(r, 1)
|
||||
}
|
||||
return this
|
||||
}
|
||||
@@ -160,9 +182,9 @@ func encodeVarintPopulateSortable(dAtA []byte, v uint64) []byte {
|
||||
return dAtA
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("sortkeys/sortable.proto", fileDescriptorSortable) }
|
||||
func init() { proto.RegisterFile("sortkeys/sortable.proto", fileDescriptor_sortable_d1adc3e2593f24f3) }
|
||||
|
||||
var fileDescriptorSortable = []byte{
|
||||
var fileDescriptor_sortable_d1adc3e2593f24f3 = []byte{
|
||||
// 115 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0xce, 0x2f, 0x2a,
|
||||
0xc9, 0x4e, 0xad, 0x2c, 0xd6, 0x07, 0x31, 0x12, 0x93, 0x72, 0x52, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b,
|
||||
|
||||
Reference in New Issue
Block a user