Created
March 30, 2020 14:44
-
-
Save psanzay/ed069c40c86f33644b2294010949feae to your computer and use it in GitHub Desktop.
protocol buffer file for go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code generated by protoc-gen-go. DO NOT EDIT. | |
// source: message.proto | |
package message | |
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.ProtoPackageIsVersion3 // please upgrade the proto package | |
type Person struct { | |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` | |
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` | |
City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"` | |
State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` | |
Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` | |
Age int32 `protobuf:"varint,6,opt,name=age,proto3" json:"age,omitempty"` | |
Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty"` | |
XXX_NoUnkeyedLiteral struct{} `json:"-"` | |
XXX_unrecognized []byte `json:"-"` | |
XXX_sizecache int32 `json:"-"` | |
} | |
func (m *Person) Reset() { *m = Person{} } | |
func (m *Person) String() string { return proto.CompactTextString(m) } | |
func (*Person) ProtoMessage() {} | |
func (*Person) Descriptor() ([]byte, []int) { | |
return fileDescriptor_33c57e4bae7b9afd, []int{0} | |
} | |
func (m *Person) XXX_Unmarshal(b []byte) error { | |
return xxx_messageInfo_Person.Unmarshal(m, b) | |
} | |
func (m *Person) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | |
return xxx_messageInfo_Person.Marshal(b, m, deterministic) | |
} | |
func (m *Person) XXX_Merge(src proto.Message) { | |
xxx_messageInfo_Person.Merge(m, src) | |
} | |
func (m *Person) XXX_Size() int { | |
return xxx_messageInfo_Person.Size(m) | |
} | |
func (m *Person) XXX_DiscardUnknown() { | |
xxx_messageInfo_Person.DiscardUnknown(m) | |
} | |
var xxx_messageInfo_Person proto.InternalMessageInfo | |
func (m *Person) GetName() string { | |
if m != nil { | |
return m.Name | |
} | |
return "" | |
} | |
func (m *Person) GetEmail() string { | |
if m != nil { | |
return m.Email | |
} | |
return "" | |
} | |
func (m *Person) GetCity() string { | |
if m != nil { | |
return m.City | |
} | |
return "" | |
} | |
func (m *Person) GetState() string { | |
if m != nil { | |
return m.State | |
} | |
return "" | |
} | |
func (m *Person) GetCountry() string { | |
if m != nil { | |
return m.Country | |
} | |
return "" | |
} | |
func (m *Person) GetAge() int32 { | |
if m != nil { | |
return m.Age | |
} | |
return 0 | |
} | |
func (m *Person) GetPhone() string { | |
if m != nil { | |
return m.Phone | |
} | |
return "" | |
} | |
func init() { | |
proto.RegisterType((*Person)(nil), "Person") | |
} | |
func init() { | |
proto.RegisterFile("message.proto", fileDescriptor_33c57e4bae7b9afd) | |
} | |
var fileDescriptor_33c57e4bae7b9afd = []byte{ | |
// 155 bytes of a gzipped FileDescriptorProto | |
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x34, 0x8e, 0xc1, 0x0a, 0xc2, 0x30, | |
0x0c, 0x86, 0xa9, 0xdb, 0x3a, 0x0c, 0x08, 0x52, 0x3c, 0xe4, 0x38, 0x3c, 0xed, 0xe4, 0xc5, 0x17, | |
0x91, 0xbd, 0x41, 0x1d, 0x61, 0x0e, 0x6c, 0x3b, 0xda, 0x78, 0xd8, 0xcb, 0xf8, 0xac, 0x92, 0x14, | |
0x6f, 0xdf, 0x17, 0x3e, 0x7e, 0x02, 0xa7, 0x40, 0xa5, 0xf8, 0x85, 0x6e, 0x5b, 0x4e, 0x9c, 0xae, | |
0x5f, 0x03, 0xf6, 0x41, 0xb9, 0xa4, 0xe8, 0x1c, 0xb4, 0xd1, 0x07, 0x42, 0x33, 0x98, 0xf1, 0x38, | |
0x29, 0xbb, 0x0b, 0x74, 0x14, 0xfc, 0xfa, 0xc6, 0x83, 0x1e, 0xab, 0x48, 0x39, 0xaf, 0xbc, 0x63, | |
0x53, 0x4b, 0x61, 0x29, 0x0b, 0x7b, 0x26, 0x6c, 0x6b, 0xa9, 0xe2, 0x10, 0xfa, 0x39, 0x7d, 0x22, | |
0xe7, 0x1d, 0x3b, 0xbd, 0xff, 0xd5, 0x9d, 0xa1, 0xf1, 0x0b, 0xa1, 0x1d, 0xcc, 0xd8, 0x4d, 0x82, | |
0xb2, 0xb0, 0xbd, 0x52, 0x24, 0xec, 0xeb, 0x82, 0xca, 0xd3, 0xea, 0x9f, 0xf7, 0x5f, 0x00, 0x00, | |
0x00, 0xff, 0xff, 0x37, 0xfc, 0x73, 0xb4, 0xb8, 0x00, 0x00, 0x00, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment