Bumping k8s dependencies to 1.13
This commit is contained in:
122
vendor/github.com/gogo/protobuf/test/oneofembed/oneofembed.pb.go
generated
vendored
122
vendor/github.com/gogo/protobuf/test/oneofembed/oneofembed.pb.go
generated
vendored
@@ -1,25 +1,17 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: oneofembed.proto
|
||||
|
||||
/*
|
||||
Package proto is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
oneofembed.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Foo
|
||||
Bar
|
||||
*/
|
||||
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"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto1.Marshal
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
@@ -27,28 +19,72 @@ 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 Foo struct {
|
||||
*Bar `protobuf:"bytes,1,opt,name=bar,embedded=bar" json:"bar,omitempty"`
|
||||
*Bar `protobuf:"bytes,1,opt,name=bar,embedded=bar" json:"bar,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Foo) Reset() { *m = Foo{} }
|
||||
func (m *Foo) String() string { return proto1.CompactTextString(m) }
|
||||
func (*Foo) ProtoMessage() {}
|
||||
func (*Foo) Descriptor() ([]byte, []int) { return fileDescriptorOneofembed, []int{0} }
|
||||
func (m *Foo) Reset() { *m = Foo{} }
|
||||
func (m *Foo) String() string { return proto.CompactTextString(m) }
|
||||
func (*Foo) ProtoMessage() {}
|
||||
func (*Foo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_oneofembed_d85d6690bc6cfd92, []int{0}
|
||||
}
|
||||
func (m *Foo) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Foo.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Foo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Foo.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Foo) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Foo.Merge(dst, src)
|
||||
}
|
||||
func (m *Foo) XXX_Size() int {
|
||||
return xxx_messageInfo_Foo.Size(m)
|
||||
}
|
||||
func (m *Foo) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Foo.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Foo proto.InternalMessageInfo
|
||||
|
||||
type Bar struct {
|
||||
// Types that are valid to be assigned to Pick:
|
||||
// *Bar_A
|
||||
// *Bar_B
|
||||
Pick isBar_Pick `protobuf_oneof:"pick"`
|
||||
Pick isBar_Pick `protobuf_oneof:"pick"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Bar) Reset() { *m = Bar{} }
|
||||
func (m *Bar) String() string { return proto1.CompactTextString(m) }
|
||||
func (*Bar) ProtoMessage() {}
|
||||
func (*Bar) Descriptor() ([]byte, []int) { return fileDescriptorOneofembed, []int{1} }
|
||||
func (m *Bar) Reset() { *m = Bar{} }
|
||||
func (m *Bar) String() string { return proto.CompactTextString(m) }
|
||||
func (*Bar) ProtoMessage() {}
|
||||
func (*Bar) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_oneofembed_d85d6690bc6cfd92, []int{1}
|
||||
}
|
||||
func (m *Bar) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Bar.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Bar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Bar.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Bar) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Bar.Merge(dst, src)
|
||||
}
|
||||
func (m *Bar) XXX_Size() int {
|
||||
return xxx_messageInfo_Bar.Size(m)
|
||||
}
|
||||
func (m *Bar) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Bar.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Bar proto.InternalMessageInfo
|
||||
|
||||
type isBar_Pick interface {
|
||||
isBar_Pick()
|
||||
@@ -87,14 +123,14 @@ func (m *Bar) GetB() bool {
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Bar) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {
|
||||
func (*Bar) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Bar_OneofMarshaler, _Bar_OneofUnmarshaler, _Bar_OneofSizer, []interface{}{
|
||||
(*Bar_A)(nil),
|
||||
(*Bar_B)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Bar_OneofMarshaler(msg proto1.Message, b *proto1.Buffer) error {
|
||||
func _Bar_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Bar)
|
||||
// pick
|
||||
switch x := m.Pick.(type) {
|
||||
@@ -103,14 +139,14 @@ func _Bar_OneofMarshaler(msg proto1.Message, b *proto1.Buffer) error {
|
||||
if x.A {
|
||||
t = 1
|
||||
}
|
||||
_ = b.EncodeVarint(11<<3 | proto1.WireVarint)
|
||||
_ = b.EncodeVarint(11<<3 | proto.WireVarint)
|
||||
_ = b.EncodeVarint(t)
|
||||
case *Bar_B:
|
||||
t := uint64(0)
|
||||
if x.B {
|
||||
t = 1
|
||||
}
|
||||
_ = b.EncodeVarint(12<<3 | proto1.WireVarint)
|
||||
_ = b.EncodeVarint(12<<3 | proto.WireVarint)
|
||||
_ = b.EncodeVarint(t)
|
||||
case nil:
|
||||
default:
|
||||
@@ -119,19 +155,19 @@ func _Bar_OneofMarshaler(msg proto1.Message, b *proto1.Buffer) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Bar_OneofUnmarshaler(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error) {
|
||||
func _Bar_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Bar)
|
||||
switch tag {
|
||||
case 11: // pick.a
|
||||
if wire != proto1.WireVarint {
|
||||
return true, proto1.ErrInternalBadWireType
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.Pick = &Bar_A{x != 0}
|
||||
return true, err
|
||||
case 12: // pick.b
|
||||
if wire != proto1.WireVarint {
|
||||
return true, proto1.ErrInternalBadWireType
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.Pick = &Bar_B{x != 0}
|
||||
@@ -141,15 +177,15 @@ func _Bar_OneofUnmarshaler(msg proto1.Message, tag, wire int, b *proto1.Buffer)
|
||||
}
|
||||
}
|
||||
|
||||
func _Bar_OneofSizer(msg proto1.Message) (n int) {
|
||||
func _Bar_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Bar)
|
||||
// pick
|
||||
switch x := m.Pick.(type) {
|
||||
case *Bar_A:
|
||||
n += proto1.SizeVarint(11<<3 | proto1.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += 1
|
||||
case *Bar_B:
|
||||
n += proto1.SizeVarint(12<<3 | proto1.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += 1
|
||||
case nil:
|
||||
default:
|
||||
@@ -159,8 +195,8 @@ func _Bar_OneofSizer(msg proto1.Message) (n int) {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto1.RegisterType((*Foo)(nil), "proto.Foo")
|
||||
proto1.RegisterType((*Bar)(nil), "proto.Bar")
|
||||
proto.RegisterType((*Foo)(nil), "proto.Foo")
|
||||
proto.RegisterType((*Bar)(nil), "proto.Bar")
|
||||
}
|
||||
func (this *Foo) Equal(that interface{}) bool {
|
||||
if that == nil {
|
||||
@@ -184,6 +220,9 @@ func (this *Foo) Equal(that interface{}) bool {
|
||||
if !this.Bar.Equal(that1.Bar) {
|
||||
return false
|
||||
}
|
||||
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (this *Bar) Equal(that interface{}) bool {
|
||||
@@ -214,6 +253,9 @@ func (this *Bar) Equal(that interface{}) bool {
|
||||
} else if !this.Pick.Equal(that1.Pick) {
|
||||
return false
|
||||
}
|
||||
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (this *Bar_A) Equal(that interface{}) bool {
|
||||
@@ -270,6 +312,7 @@ func NewPopulatedFoo(r randyOneofembed, easy bool) *Foo {
|
||||
this.Bar = NewPopulatedBar(r, easy)
|
||||
}
|
||||
if !easy && r.Intn(10) != 0 {
|
||||
this.XXX_unrecognized = randUnrecognizedOneofembed(r, 2)
|
||||
}
|
||||
return this
|
||||
}
|
||||
@@ -284,6 +327,7 @@ func NewPopulatedBar(r randyOneofembed, easy bool) *Bar {
|
||||
this.Pick = NewPopulatedBar_B(r, easy)
|
||||
}
|
||||
if !easy && r.Intn(10) != 0 {
|
||||
this.XXX_unrecognized = randUnrecognizedOneofembed(r, 13)
|
||||
}
|
||||
return this
|
||||
}
|
||||
@@ -372,9 +416,9 @@ func encodeVarintPopulateOneofembed(dAtA []byte, v uint64) []byte {
|
||||
return dAtA
|
||||
}
|
||||
|
||||
func init() { proto1.RegisterFile("oneofembed.proto", fileDescriptorOneofembed) }
|
||||
func init() { proto.RegisterFile("oneofembed.proto", fileDescriptor_oneofembed_d85d6690bc6cfd92) }
|
||||
|
||||
var fileDescriptorOneofembed = []byte{
|
||||
var fileDescriptor_oneofembed_d85d6690bc6cfd92 = []byte{
|
||||
// 171 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xc8, 0xcf, 0x4b, 0xcd,
|
||||
0x4f, 0x4b, 0xcd, 0x4d, 0x4a, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53,
|
||||
|
||||
71
vendor/github.com/gogo/protobuf/test/oneofembed/oneofembedpb_test.go
generated
vendored
71
vendor/github.com/gogo/protobuf/test/oneofembed/oneofembedpb_test.go
generated
vendored
@@ -1,42 +1,33 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: oneofembed.proto
|
||||
|
||||
/*
|
||||
Package proto is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
oneofembed.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Foo
|
||||
Bar
|
||||
*/
|
||||
package proto
|
||||
|
||||
import testing "testing"
|
||||
import rand "math/rand"
|
||||
import math_rand "math/rand"
|
||||
import time "time"
|
||||
import proto1 "github.com/gogo/protobuf/proto"
|
||||
import jsonpb "github.com/gogo/protobuf/jsonpb"
|
||||
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
|
||||
import github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto1.Marshal
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
func TestFooProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedFoo(popr, false)
|
||||
dAtA, err := proto1.Marshal(p)
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
|
||||
if err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
msg := &Foo{}
|
||||
if err := proto1.Unmarshal(dAtA, msg); err != nil {
|
||||
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))
|
||||
@@ -54,20 +45,20 @@ func TestFooProto(t *testing.T) {
|
||||
littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
|
||||
}
|
||||
// shouldn't panic
|
||||
_ = proto1.Unmarshal(littlefuzz, msg)
|
||||
_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
|
||||
}
|
||||
}
|
||||
|
||||
func TestBarProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedBar(popr, false)
|
||||
dAtA, err := proto1.Marshal(p)
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
|
||||
if err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
msg := &Bar{}
|
||||
if err := proto1.Unmarshal(dAtA, msg); err != nil {
|
||||
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))
|
||||
@@ -85,21 +76,21 @@ func TestBarProto(t *testing.T) {
|
||||
littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
|
||||
}
|
||||
// shouldn't panic
|
||||
_ = proto1.Unmarshal(littlefuzz, msg)
|
||||
_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
|
||||
}
|
||||
}
|
||||
|
||||
func TestFooJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedFoo(popr, true)
|
||||
marshaler := jsonpb.Marshaler{}
|
||||
marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
|
||||
jsondata, err := marshaler.MarshalToString(p)
|
||||
if err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
msg := &Foo{}
|
||||
err = jsonpb.UnmarshalString(jsondata, msg)
|
||||
err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
|
||||
if err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
@@ -109,15 +100,15 @@ func TestFooJSON(t *testing.T) {
|
||||
}
|
||||
func TestBarJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedBar(popr, true)
|
||||
marshaler := jsonpb.Marshaler{}
|
||||
marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
|
||||
jsondata, err := marshaler.MarshalToString(p)
|
||||
if err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
msg := &Bar{}
|
||||
err = jsonpb.UnmarshalString(jsondata, msg)
|
||||
err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
|
||||
if err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
@@ -127,11 +118,11 @@ func TestBarJSON(t *testing.T) {
|
||||
}
|
||||
func TestFooProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedFoo(popr, true)
|
||||
dAtA := proto1.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &Foo{}
|
||||
if err := proto1.UnmarshalText(dAtA, msg); err != nil {
|
||||
if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
if !p.Equal(msg) {
|
||||
@@ -141,11 +132,11 @@ func TestFooProtoText(t *testing.T) {
|
||||
|
||||
func TestFooProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedFoo(popr, true)
|
||||
dAtA := proto1.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &Foo{}
|
||||
if err := proto1.UnmarshalText(dAtA, msg); err != nil {
|
||||
if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
if !p.Equal(msg) {
|
||||
@@ -155,11 +146,11 @@ func TestFooProtoCompactText(t *testing.T) {
|
||||
|
||||
func TestBarProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedBar(popr, true)
|
||||
dAtA := proto1.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &Bar{}
|
||||
if err := proto1.UnmarshalText(dAtA, msg); err != nil {
|
||||
if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
if !p.Equal(msg) {
|
||||
@@ -169,11 +160,11 @@ func TestBarProtoText(t *testing.T) {
|
||||
|
||||
func TestBarProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedBar(popr, true)
|
||||
dAtA := proto1.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &Bar{}
|
||||
if err := proto1.UnmarshalText(dAtA, msg); err != nil {
|
||||
if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
if !p.Equal(msg) {
|
||||
|
||||
Reference in New Issue
Block a user