blob: eb97be1f2963aba1f6ded1c1cb415787a6f50a23 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: fieldnames/fieldnames.proto
package fieldnames
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// 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 _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Assorted edge cases in field name conflict resolution.
//
// Not all (or possibly any) of these behave in an easily-understood fashion.
// This exists to demonstrate the current behavior and catch unintended
// changes in it.
type Message struct {
// Various CamelCase conversions.
FieldOne *string `protobuf:"bytes,1,opt,name=field_one,json=fieldOne" json:"field_one,omitempty"`
FieldTwo *string `protobuf:"bytes,2,opt,name=FieldTwo" json:"FieldTwo,omitempty"`
FieldThree *string `protobuf:"bytes,3,opt,name=fieldThree" json:"fieldThree,omitempty"`
Field_Four *string `protobuf:"bytes,4,opt,name=field__four,json=fieldFour" json:"field__four,omitempty"`
// Field names that conflict with standard methods on the message struct.
Descriptor_ *string `protobuf:"bytes,10,opt,name=descriptor" json:"descriptor,omitempty"`
Marshal_ *string `protobuf:"bytes,11,opt,name=marshal" json:"marshal,omitempty"`
Unmarshal_ *string `protobuf:"bytes,12,opt,name=unmarshal" json:"unmarshal,omitempty"`
ProtoMessage_ *string `protobuf:"bytes,13,opt,name=proto_message,json=protoMessage" json:"proto_message,omitempty"`
// Field names that conflict with each other after CamelCasing.
CamelCase *string `protobuf:"bytes,20,opt,name=CamelCase" json:"CamelCase,omitempty"`
CamelCase_ *string `protobuf:"bytes,21,opt,name=CamelCase_,json=CamelCase" json:"CamelCase_,omitempty"`
CamelCase__ *string `protobuf:"bytes,22,opt,name=camel_case,json=camelCase" json:"camel_case,omitempty"`
CamelCase___ *string `protobuf:"bytes,23,opt,name=CamelCase__,json=CamelCase" json:"CamelCase__,omitempty"`
// Field with a getter that conflicts with another field.
GetName *string `protobuf:"bytes,30,opt,name=get_name,json=getName" json:"get_name,omitempty"`
Name_ *string `protobuf:"bytes,31,opt,name=name" json:"name,omitempty"`
// Oneof that conflicts with its first field: The oneof is renamed.
//
// Types that are valid to be assigned to OneofConflictA_:
// *Message_OneofConflictA
OneofConflictA_ isMessage_OneofConflictA_ `protobuf_oneof:"oneof_conflict_a"`
// Oneof that conflicts with its second field: The field is renamed.
//
// Types that are valid to be assigned to OneofConflictB:
// *Message_OneofNoConflict
// *Message_OneofConflictB_
OneofConflictB isMessage_OneofConflictB `protobuf_oneof:"oneof_conflict_b"`
// Oneof with a field name that conflicts with a nested message.
//
// Types that are valid to be assigned to OneofConflictC:
// *Message_OneofMessageConflict_
OneofConflictC isMessage_OneofConflictC `protobuf_oneof:"oneof_conflict_c"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return fileDescriptor_6bbe3f70febb9403, []int{0}
}
func (m *Message) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Message.Unmarshal(m, b)
}
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
}
func (m *Message) XXX_Merge(src proto.Message) {
xxx_messageInfo_Message.Merge(m, src)
}
func (m *Message) XXX_Size() int {
return xxx_messageInfo_Message.Size(m)
}
func (m *Message) XXX_DiscardUnknown() {
xxx_messageInfo_Message.DiscardUnknown(m)
}
var xxx_messageInfo_Message proto.InternalMessageInfo
func (m *Message) GetFieldOne() string {
if m != nil && m.FieldOne != nil {
return *m.FieldOne
}
return ""
}
func (m *Message) GetFieldTwo() string {
if m != nil && m.FieldTwo != nil {
return *m.FieldTwo
}
return ""
}
func (m *Message) GetFieldThree() string {
if m != nil && m.FieldThree != nil {
return *m.FieldThree
}
return ""
}
func (m *Message) GetField_Four() string {
if m != nil && m.Field_Four != nil {
return *m.Field_Four
}
return ""
}
func (m *Message) GetDescriptor_() string {
if m != nil && m.Descriptor_ != nil {
return *m.Descriptor_
}
return ""
}
func (m *Message) GetMarshal_() string {
if m != nil && m.Marshal_ != nil {
return *m.Marshal_
}
return ""
}
func (m *Message) GetUnmarshal_() string {
if m != nil && m.Unmarshal_ != nil {
return *m.Unmarshal_
}
return ""
}
func (m *Message) GetProtoMessage_() string {
if m != nil && m.ProtoMessage_ != nil {
return *m.ProtoMessage_
}
return ""
}
func (m *Message) GetCamelCase() string {
if m != nil && m.CamelCase != nil {
return *m.CamelCase
}
return ""
}
func (m *Message) GetCamelCase_() string {
if m != nil && m.CamelCase_ != nil {
return *m.CamelCase_
}
return ""
}
func (m *Message) GetCamelCase__() string {
if m != nil && m.CamelCase__ != nil {
return *m.CamelCase__
}
return ""
}
func (m *Message) GetCamelCase___() string {
if m != nil && m.CamelCase___ != nil {
return *m.CamelCase___
}
return ""
}
func (m *Message) GetGetName() string {
if m != nil && m.GetName != nil {
return *m.GetName
}
return ""
}
func (m *Message) GetName_() string {
if m != nil && m.Name_ != nil {
return *m.Name_
}
return ""
}
type isMessage_OneofConflictA_ interface {
isMessage_OneofConflictA_()
}
type Message_OneofConflictA struct {
OneofConflictA string `protobuf:"bytes,40,opt,name=OneofConflictA,oneof"`
}
func (*Message_OneofConflictA) isMessage_OneofConflictA_() {}
func (m *Message) GetOneofConflictA_() isMessage_OneofConflictA_ {
if m != nil {
return m.OneofConflictA_
}
return nil
}
func (m *Message) GetOneofConflictA() string {
if x, ok := m.GetOneofConflictA_().(*Message_OneofConflictA); ok {
return x.OneofConflictA
}
return ""
}
type isMessage_OneofConflictB interface {
isMessage_OneofConflictB()
}
type Message_OneofNoConflict struct {
OneofNoConflict string `protobuf:"bytes,50,opt,name=oneof_no_conflict,json=oneofNoConflict,oneof"`
}
type Message_OneofConflictB_ struct {
OneofConflictB_ string `protobuf:"bytes,51,opt,name=OneofConflictB,oneof"`
}
func (*Message_OneofNoConflict) isMessage_OneofConflictB() {}
func (*Message_OneofConflictB_) isMessage_OneofConflictB() {}
func (m *Message) GetOneofConflictB() isMessage_OneofConflictB {
if m != nil {
return m.OneofConflictB
}
return nil
}
func (m *Message) GetOneofNoConflict() string {
if x, ok := m.GetOneofConflictB().(*Message_OneofNoConflict); ok {
return x.OneofNoConflict
}
return ""
}
func (m *Message) GetOneofConflictB_() string {
if x, ok := m.GetOneofConflictB().(*Message_OneofConflictB_); ok {
return x.OneofConflictB_
}
return ""
}
type isMessage_OneofConflictC interface {
isMessage_OneofConflictC()
}
type Message_OneofMessageConflict_ struct {
OneofMessageConflict string `protobuf:"bytes,60,opt,name=oneof_message_conflict,json=oneofMessageConflict,oneof"`
}
func (*Message_OneofMessageConflict_) isMessage_OneofConflictC() {}
func (m *Message) GetOneofConflictC() isMessage_OneofConflictC {
if m != nil {
return m.OneofConflictC
}
return nil
}
func (m *Message) GetOneofMessageConflict() string {
if x, ok := m.GetOneofConflictC().(*Message_OneofMessageConflict_); ok {
return x.OneofMessageConflict
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Message) 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 _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{
(*Message_OneofConflictA)(nil),
(*Message_OneofNoConflict)(nil),
(*Message_OneofConflictB_)(nil),
(*Message_OneofMessageConflict_)(nil),
}
}
func _Message_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Message)
// oneof_conflict_a
switch x := m.OneofConflictA_.(type) {
case *Message_OneofConflictA:
b.EncodeVarint(40<<3 | proto.WireBytes)
b.EncodeStringBytes(x.OneofConflictA)
case nil:
default:
return fmt.Errorf("Message.OneofConflictA_ has unexpected type %T", x)
}
// oneof_conflict_b
switch x := m.OneofConflictB.(type) {
case *Message_OneofNoConflict:
b.EncodeVarint(50<<3 | proto.WireBytes)
b.EncodeStringBytes(x.OneofNoConflict)
case *Message_OneofConflictB_:
b.EncodeVarint(51<<3 | proto.WireBytes)
b.EncodeStringBytes(x.OneofConflictB_)
case nil:
default:
return fmt.Errorf("Message.OneofConflictB has unexpected type %T", x)
}
// oneof_conflict_c
switch x := m.OneofConflictC.(type) {
case *Message_OneofMessageConflict_:
b.EncodeVarint(60<<3 | proto.WireBytes)
b.EncodeStringBytes(x.OneofMessageConflict)
case nil:
default:
return fmt.Errorf("Message.OneofConflictC has unexpected type %T", x)
}
return nil
}
func _Message_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Message)
switch tag {
case 40: // oneof_conflict_a.OneofConflictA
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.OneofConflictA_ = &Message_OneofConflictA{x}
return true, err
case 50: // oneof_conflict_b.oneof_no_conflict
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.OneofConflictB = &Message_OneofNoConflict{x}
return true, err
case 51: // oneof_conflict_b.OneofConflictB
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.OneofConflictB = &Message_OneofConflictB_{x}
return true, err
case 60: // oneof_conflict_c.oneof_message_conflict
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.OneofConflictC = &Message_OneofMessageConflict_{x}
return true, err
default:
return false, nil
}
}
func _Message_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Message)
// oneof_conflict_a
switch x := m.OneofConflictA_.(type) {
case *Message_OneofConflictA:
n += 2 // tag and wire
n += proto.SizeVarint(uint64(len(x.OneofConflictA)))
n += len(x.OneofConflictA)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
// oneof_conflict_b
switch x := m.OneofConflictB.(type) {
case *Message_OneofNoConflict:
n += 2 // tag and wire
n += proto.SizeVarint(uint64(len(x.OneofNoConflict)))
n += len(x.OneofNoConflict)
case *Message_OneofConflictB_:
n += 2 // tag and wire
n += proto.SizeVarint(uint64(len(x.OneofConflictB_)))
n += len(x.OneofConflictB_)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
// oneof_conflict_c
switch x := m.OneofConflictC.(type) {
case *Message_OneofMessageConflict_:
n += 2 // tag and wire
n += proto.SizeVarint(uint64(len(x.OneofMessageConflict)))
n += len(x.OneofMessageConflict)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type Message_OneofMessageConflict struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Message_OneofMessageConflict) Reset() { *m = Message_OneofMessageConflict{} }
func (m *Message_OneofMessageConflict) String() string { return proto.CompactTextString(m) }
func (*Message_OneofMessageConflict) ProtoMessage() {}
func (*Message_OneofMessageConflict) Descriptor() ([]byte, []int) {
return fileDescriptor_6bbe3f70febb9403, []int{0, 0}
}
func (m *Message_OneofMessageConflict) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Message_OneofMessageConflict.Unmarshal(m, b)
}
func (m *Message_OneofMessageConflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Message_OneofMessageConflict.Marshal(b, m, deterministic)
}
func (m *Message_OneofMessageConflict) XXX_Merge(src proto.Message) {
xxx_messageInfo_Message_OneofMessageConflict.Merge(m, src)
}
func (m *Message_OneofMessageConflict) XXX_Size() int {
return xxx_messageInfo_Message_OneofMessageConflict.Size(m)
}
func (m *Message_OneofMessageConflict) XXX_DiscardUnknown() {
xxx_messageInfo_Message_OneofMessageConflict.DiscardUnknown(m)
}
var xxx_messageInfo_Message_OneofMessageConflict proto.InternalMessageInfo
func init() {
proto.RegisterType((*Message)(nil), "goproto.protoc.fieldnames.Message")
proto.RegisterType((*Message_OneofMessageConflict)(nil), "goproto.protoc.fieldnames.Message.OneofMessageConflict")
}
func init() { proto.RegisterFile("fieldnames/fieldnames.proto", fileDescriptor_6bbe3f70febb9403) }
var fileDescriptor_6bbe3f70febb9403 = []byte{
// 417 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0x4b, 0x6f, 0xd3, 0x40,
0x10, 0xc7, 0x49, 0x29, 0x6a, 0x32, 0x69, 0x79, 0xac, 0x42, 0xd8, 0x3e, 0x08, 0x08, 0x2e, 0x39,
0xd0, 0x58, 0x2a, 0x12, 0x27, 0x2e, 0x24, 0xa2, 0xe2, 0x42, 0x23, 0x45, 0x3d, 0x71, 0x59, 0x6d,
0x36, 0xe3, 0x8d, 0x25, 0x7b, 0xa7, 0xb2, 0xd7, 0xf0, 0xd5, 0xf8, 0x78, 0xc8, 0xb3, 0x7e, 0x54,
0xc1, 0xb7, 0x99, 0xdf, 0xff, 0x11, 0x8d, 0x57, 0x81, 0xcb, 0x38, 0xc1, 0x74, 0xe7, 0x74, 0x86,
0x45, 0xd4, 0x8d, 0x8b, 0x87, 0x9c, 0x3c, 0x89, 0x73, 0x4b, 0x3c, 0x84, 0xd5, 0x2c, 0x3a, 0xc3,
0x87, 0xbf, 0xcf, 0xe0, 0xe4, 0x27, 0x16, 0x85, 0xb6, 0x28, 0x2e, 0x61, 0xc4, 0x8a, 0x22, 0x87,
0x72, 0xf0, 0x7e, 0x30, 0x1f, 0x6d, 0x86, 0x0c, 0xd6, 0x0e, 0xc5, 0x05, 0x0c, 0x6f, 0xab, 0xf9,
0xfe, 0x0f, 0xc9, 0xa3, 0xa0, 0x35, 0xbb, 0x98, 0x01, 0xb0, 0xef, 0x7e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