123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: helloworld.proto
- package passportpb
- 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 _ = 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
- type HelloRequest struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *HelloRequest) Reset() { *m = HelloRequest{} }
- func (m *HelloRequest) String() string { return proto.CompactTextString(m) }
- func (*HelloRequest) ProtoMessage() {}
- func (*HelloRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_helloworld_855a0359e361950c, []int{0}
- }
- func (m *HelloRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_HelloRequest.Unmarshal(m, b)
- }
- func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_HelloRequest.Marshal(b, m, deterministic)
- }
- func (dst *HelloRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_HelloRequest.Merge(dst, src)
- }
- func (m *HelloRequest) XXX_Size() int {
- return xxx_messageInfo_HelloRequest.Size(m)
- }
- func (m *HelloRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_HelloRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_HelloRequest proto.InternalMessageInfo
- func (m *HelloRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- type HelloReply struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *HelloReply) Reset() { *m = HelloReply{} }
- func (m *HelloReply) String() string { return proto.CompactTextString(m) }
- func (*HelloReply) ProtoMessage() {}
- func (*HelloReply) Descriptor() ([]byte, []int) {
- return fileDescriptor_helloworld_855a0359e361950c, []int{1}
- }
- func (m *HelloReply) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_HelloReply.Unmarshal(m, b)
- }
- func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_HelloReply.Marshal(b, m, deterministic)
- }
- func (dst *HelloReply) XXX_Merge(src proto.Message) {
- xxx_messageInfo_HelloReply.Merge(dst, src)
- }
- func (m *HelloReply) XXX_Size() int {
- return xxx_messageInfo_HelloReply.Size(m)
- }
- func (m *HelloReply) XXX_DiscardUnknown() {
- xxx_messageInfo_HelloReply.DiscardUnknown(m)
- }
- var xxx_messageInfo_HelloReply proto.InternalMessageInfo
- func (m *HelloReply) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func init() {
- proto.RegisterType((*HelloRequest)(nil), "passportpb.HelloRequest")
- proto.RegisterType((*HelloReply)(nil), "passportpb.HelloReply")
- }
- func NewPopulatedHelloRequest(r randyHelloworld, easy bool) *HelloRequest {
- this := &HelloRequest{}
- this.Name = string(randStringHelloworld(r))
- if !easy && r.Intn(10) != 0 {
- this.XXX_unrecognized = randUnrecognizedHelloworld(r, 2)
- }
- return this
- }
- func NewPopulatedHelloReply(r randyHelloworld, easy bool) *HelloReply {
- this := &HelloReply{}
- this.Name = string(randStringHelloworld(r))
- if !easy && r.Intn(10) != 0 {
- this.XXX_unrecognized = randUnrecognizedHelloworld(r, 2)
- }
- return this
- }
- type randyHelloworld interface {
- Float32() float32
- Float64() float64
- Int63() int64
- Int31() int32
- Uint32() uint32
- Intn(n int) int
- }
- func randUTF8RuneHelloworld(r randyHelloworld) rune {
- ru := r.Intn(62)
- if ru < 10 {
- return rune(ru + 48)
- } else if ru < 36 {
- return rune(ru + 55)
- }
- return rune(ru + 61)
- }
- func randStringHelloworld(r randyHelloworld) string {
- v1 := r.Intn(100)
- tmps := make([]rune, v1)
- for i := 0; i < v1; i++ {
- tmps[i] = randUTF8RuneHelloworld(r)
- }
- return string(tmps)
- }
- func randUnrecognizedHelloworld(r randyHelloworld, maxFieldNumber int) (dAtA []byte) {
- l := r.Intn(5)
- for i := 0; i < l; i++ {
- wire := r.Intn(4)
- if wire == 3 {
- wire = 5
- }
- fieldNumber := maxFieldNumber + r.Intn(100)
- dAtA = randFieldHelloworld(dAtA, r, fieldNumber, wire)
- }
- return dAtA
- }
- func randFieldHelloworld(dAtA []byte, r randyHelloworld, fieldNumber int, wire int) []byte {
- key := uint32(fieldNumber)<<3 | uint32(wire)
- switch wire {
- case 0:
- dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(key))
- v2 := r.Int63()
- if r.Intn(2) == 0 {
- v2 *= -1
- }
- dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(v2))
- case 1:
- dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(key))
- dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
- case 2:
- dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(key))
- ll := r.Intn(100)
- dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(ll))
- for j := 0; j < ll; j++ {
- dAtA = append(dAtA, byte(r.Intn(256)))
- }
- default:
- dAtA = encodeVarintPopulateHelloworld(dAtA, uint64(key))
- dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
- }
- return dAtA
- }
- func encodeVarintPopulateHelloworld(dAtA []byte, v uint64) []byte {
- for v >= 1<<7 {
- dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
- v >>= 7
- }
- dAtA = append(dAtA, uint8(v))
- return dAtA
- }
- func init() { proto.RegisterFile("helloworld.proto", fileDescriptor_helloworld_855a0359e361950c) }
- var fileDescriptor_helloworld_855a0359e361950c = []byte{
- // 141 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xc8, 0x48, 0xcd, 0xc9,
- 0xc9, 0x2f, 0xcf, 0x2f, 0xca, 0x49, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48,
- 0x2c, 0x2e, 0x2e, 0xc8, 0x2f, 0x2a, 0x29, 0x48, 0x92, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d,
- 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, 0x07, 0x2b, 0x49, 0x2a, 0x4d, 0x03,
- 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0xa2, 0x55, 0x49, 0x89, 0x8b, 0xc7, 0x03, 0x64, 0x5c, 0x50, 0x6a,
- 0x61, 0x69, 0x6a, 0x71, 0x89, 0x90, 0x10, 0x17, 0x4b, 0x5e, 0x62, 0x6e, 0xaa, 0x04, 0xa3, 0x02,
- 0xa3, 0x06, 0x67, 0x10, 0x98, 0xad, 0xa4, 0xc0, 0xc5, 0x05, 0x55, 0x53, 0x90, 0x53, 0x89, 0x4d,
- 0x85, 0x93, 0xc0, 0x8f, 0x87, 0x72, 0x8c, 0x51, 0x48, 0xce, 0x48, 0x62, 0x03, 0x1b, 0x6f, 0x0c,
- 0x08, 0x00, 0x00, 0xff, 0xff, 0x0f, 0xe3, 0xab, 0xe3, 0xad, 0x00, 0x00, 0x00,
- }
|