Bumping k8s dependencies to 1.13
This commit is contained in:
102
vendor/github.com/gogo/protobuf/test/moredefaults/md.pb.go
generated
vendored
102
vendor/github.com/gogo/protobuf/test/moredefaults/md.pb.go
generated
vendored
@@ -1,23 +1,13 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: md.proto
|
||||
|
||||
/*
|
||||
Package moredefaults is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
md.proto
|
||||
|
||||
It has these top-level messages:
|
||||
MoreDefaultsB
|
||||
MoreDefaultsA
|
||||
*/
|
||||
package moredefaults
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
import test "github.com/gogo/protobuf/test/example"
|
||||
import example "github.com/gogo/protobuf/test/example"
|
||||
|
||||
import bytes "bytes"
|
||||
|
||||
@@ -33,14 +23,35 @@ var _ = math.Inf
|
||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type MoreDefaultsB struct {
|
||||
Field1 *string `protobuf:"bytes,1,opt,name=Field1" json:"Field1,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
Field1 *string `protobuf:"bytes,1,opt,name=Field1" json:"Field1,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MoreDefaultsB) Reset() { *m = MoreDefaultsB{} }
|
||||
func (m *MoreDefaultsB) String() string { return proto.CompactTextString(m) }
|
||||
func (*MoreDefaultsB) ProtoMessage() {}
|
||||
func (*MoreDefaultsB) Descriptor() ([]byte, []int) { return fileDescriptorMd, []int{0} }
|
||||
func (m *MoreDefaultsB) Reset() { *m = MoreDefaultsB{} }
|
||||
func (m *MoreDefaultsB) String() string { return proto.CompactTextString(m) }
|
||||
func (*MoreDefaultsB) ProtoMessage() {}
|
||||
func (*MoreDefaultsB) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_md_dba3fb70ca5eb304, []int{0}
|
||||
}
|
||||
func (m *MoreDefaultsB) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MoreDefaultsB.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MoreDefaultsB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MoreDefaultsB.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *MoreDefaultsB) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MoreDefaultsB.Merge(dst, src)
|
||||
}
|
||||
func (m *MoreDefaultsB) XXX_Size() int {
|
||||
return xxx_messageInfo_MoreDefaultsB.Size(m)
|
||||
}
|
||||
func (m *MoreDefaultsB) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MoreDefaultsB.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MoreDefaultsB proto.InternalMessageInfo
|
||||
|
||||
func (m *MoreDefaultsB) GetField1() string {
|
||||
if m != nil && m.Field1 != nil {
|
||||
@@ -50,19 +61,40 @@ func (m *MoreDefaultsB) GetField1() string {
|
||||
}
|
||||
|
||||
type MoreDefaultsA struct {
|
||||
Field1 *int64 `protobuf:"varint,1,opt,name=Field1,def=1234" json:"Field1,omitempty"`
|
||||
Field2 int64 `protobuf:"varint,2,opt,name=Field2" json:"Field2"`
|
||||
B1 *MoreDefaultsB `protobuf:"bytes,3,opt,name=B1" json:"B1,omitempty"`
|
||||
B2 MoreDefaultsB `protobuf:"bytes,4,opt,name=B2" json:"B2"`
|
||||
A1 *test.A `protobuf:"bytes,5,opt,name=A1" json:"A1,omitempty"`
|
||||
A2 test.A `protobuf:"bytes,6,opt,name=A2" json:"A2"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
Field1 *int64 `protobuf:"varint,1,opt,name=Field1,def=1234" json:"Field1,omitempty"`
|
||||
Field2 int64 `protobuf:"varint,2,opt,name=Field2" json:"Field2"`
|
||||
B1 *MoreDefaultsB `protobuf:"bytes,3,opt,name=B1" json:"B1,omitempty"`
|
||||
B2 MoreDefaultsB `protobuf:"bytes,4,opt,name=B2" json:"B2"`
|
||||
A1 *example.A `protobuf:"bytes,5,opt,name=A1" json:"A1,omitempty"`
|
||||
A2 example.A `protobuf:"bytes,6,opt,name=A2" json:"A2"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MoreDefaultsA) Reset() { *m = MoreDefaultsA{} }
|
||||
func (m *MoreDefaultsA) String() string { return proto.CompactTextString(m) }
|
||||
func (*MoreDefaultsA) ProtoMessage() {}
|
||||
func (*MoreDefaultsA) Descriptor() ([]byte, []int) { return fileDescriptorMd, []int{1} }
|
||||
func (m *MoreDefaultsA) Reset() { *m = MoreDefaultsA{} }
|
||||
func (m *MoreDefaultsA) String() string { return proto.CompactTextString(m) }
|
||||
func (*MoreDefaultsA) ProtoMessage() {}
|
||||
func (*MoreDefaultsA) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_md_dba3fb70ca5eb304, []int{1}
|
||||
}
|
||||
func (m *MoreDefaultsA) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MoreDefaultsA.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MoreDefaultsA) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MoreDefaultsA.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *MoreDefaultsA) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MoreDefaultsA.Merge(dst, src)
|
||||
}
|
||||
func (m *MoreDefaultsA) XXX_Size() int {
|
||||
return xxx_messageInfo_MoreDefaultsA.Size(m)
|
||||
}
|
||||
func (m *MoreDefaultsA) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MoreDefaultsA.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MoreDefaultsA proto.InternalMessageInfo
|
||||
|
||||
const Default_MoreDefaultsA_Field1 int64 = 1234
|
||||
|
||||
@@ -94,18 +126,18 @@ func (m *MoreDefaultsA) GetB2() MoreDefaultsB {
|
||||
return MoreDefaultsB{}
|
||||
}
|
||||
|
||||
func (m *MoreDefaultsA) GetA1() *test.A {
|
||||
func (m *MoreDefaultsA) GetA1() *example.A {
|
||||
if m != nil {
|
||||
return m.A1
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MoreDefaultsA) GetA2() test.A {
|
||||
func (m *MoreDefaultsA) GetA2() example.A {
|
||||
if m != nil {
|
||||
return m.A2
|
||||
}
|
||||
return test.A{}
|
||||
return example.A{}
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -224,9 +256,9 @@ func NewPopulatedMoreDefaultsA(r randyMd, easy bool) *MoreDefaultsA {
|
||||
v3 := NewPopulatedMoreDefaultsB(r, easy)
|
||||
this.B2 = *v3
|
||||
if r.Intn(10) != 0 {
|
||||
this.A1 = test.NewPopulatedA(r, easy)
|
||||
this.A1 = example.NewPopulatedA(r, easy)
|
||||
}
|
||||
v4 := test.NewPopulatedA(r, easy)
|
||||
v4 := example.NewPopulatedA(r, easy)
|
||||
this.A2 = *v4
|
||||
if !easy && r.Intn(10) != 0 {
|
||||
this.XXX_unrecognized = randUnrecognizedMd(r, 7)
|
||||
@@ -307,9 +339,9 @@ func encodeVarintPopulateMd(dAtA []byte, v uint64) []byte {
|
||||
return dAtA
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("md.proto", fileDescriptorMd) }
|
||||
func init() { proto.RegisterFile("md.proto", fileDescriptor_md_dba3fb70ca5eb304) }
|
||||
|
||||
var fileDescriptorMd = []byte{
|
||||
var fileDescriptor_md_dba3fb70ca5eb304 = []byte{
|
||||
// 258 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xc8, 0x4d, 0xd1, 0x2b,
|
||||
0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xc9, 0xcd, 0x2f, 0x4a, 0x4d, 0x49, 0x4d, 0x4b, 0x2c, 0xcd,
|
||||
|
||||
67
vendor/github.com/gogo/protobuf/test/moredefaults/mdpb_test.go
generated
vendored
67
vendor/github.com/gogo/protobuf/test/moredefaults/mdpb_test.go
generated
vendored
@@ -1,23 +1,14 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: md.proto
|
||||
|
||||
/*
|
||||
Package moredefaults is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
md.proto
|
||||
|
||||
It has these top-level messages:
|
||||
MoreDefaultsB
|
||||
MoreDefaultsA
|
||||
*/
|
||||
package moredefaults
|
||||
|
||||
import testing "testing"
|
||||
import rand "math/rand"
|
||||
import math_rand "math/rand"
|
||||
import time "time"
|
||||
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 jsonpb "github.com/gogo/protobuf/jsonpb"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
@@ -30,14 +21,14 @@ var _ = math.Inf
|
||||
|
||||
func TestMoreDefaultsBProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMoreDefaultsB(popr, false)
|
||||
dAtA, err := proto.Marshal(p)
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
|
||||
if err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
msg := &MoreDefaultsB{}
|
||||
if err := proto.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))
|
||||
@@ -55,20 +46,20 @@ func TestMoreDefaultsBProto(t *testing.T) {
|
||||
littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
|
||||
}
|
||||
// shouldn't panic
|
||||
_ = proto.Unmarshal(littlefuzz, msg)
|
||||
_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
|
||||
}
|
||||
}
|
||||
|
||||
func TestMoreDefaultsAProto(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMoreDefaultsA(popr, false)
|
||||
dAtA, err := proto.Marshal(p)
|
||||
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
|
||||
if err != nil {
|
||||
t.Fatalf("seed = %d, err = %v", seed, err)
|
||||
}
|
||||
msg := &MoreDefaultsA{}
|
||||
if err := proto.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))
|
||||
@@ -86,21 +77,21 @@ func TestMoreDefaultsAProto(t *testing.T) {
|
||||
littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
|
||||
}
|
||||
// shouldn't panic
|
||||
_ = proto.Unmarshal(littlefuzz, msg)
|
||||
_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
|
||||
}
|
||||
}
|
||||
|
||||
func TestMoreDefaultsBJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMoreDefaultsB(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 := &MoreDefaultsB{}
|
||||
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)
|
||||
}
|
||||
@@ -110,15 +101,15 @@ func TestMoreDefaultsBJSON(t *testing.T) {
|
||||
}
|
||||
func TestMoreDefaultsAJSON(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMoreDefaultsA(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 := &MoreDefaultsA{}
|
||||
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)
|
||||
}
|
||||
@@ -128,11 +119,11 @@ func TestMoreDefaultsAJSON(t *testing.T) {
|
||||
}
|
||||
func TestMoreDefaultsBProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMoreDefaultsB(popr, true)
|
||||
dAtA := proto.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &MoreDefaultsB{}
|
||||
if err := proto.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) {
|
||||
@@ -142,11 +133,11 @@ func TestMoreDefaultsBProtoText(t *testing.T) {
|
||||
|
||||
func TestMoreDefaultsBProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMoreDefaultsB(popr, true)
|
||||
dAtA := proto.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &MoreDefaultsB{}
|
||||
if err := proto.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) {
|
||||
@@ -156,11 +147,11 @@ func TestMoreDefaultsBProtoCompactText(t *testing.T) {
|
||||
|
||||
func TestMoreDefaultsAProtoText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMoreDefaultsA(popr, true)
|
||||
dAtA := proto.MarshalTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
|
||||
msg := &MoreDefaultsA{}
|
||||
if err := proto.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) {
|
||||
@@ -170,11 +161,11 @@ func TestMoreDefaultsAProtoText(t *testing.T) {
|
||||
|
||||
func TestMoreDefaultsAProtoCompactText(t *testing.T) {
|
||||
seed := time.Now().UnixNano()
|
||||
popr := rand.New(rand.NewSource(seed))
|
||||
popr := math_rand.New(math_rand.NewSource(seed))
|
||||
p := NewPopulatedMoreDefaultsA(popr, true)
|
||||
dAtA := proto.CompactTextString(p)
|
||||
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
|
||||
msg := &MoreDefaultsA{}
|
||||
if err := proto.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