github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/booking/srv/profile/proto/profile.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto
     3  
     4  /*
     5  Package profile is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto
     9  
    10  It has these top-level messages:
    11  	Request
    12  	Result
    13  	Hotel
    14  	Address
    15  	Image
    16  */
    17  package profile
    18  
    19  import proto "github.com/golang/protobuf/proto"
    20  import fmt "fmt"
    21  import math "math"
    22  
    23  import (
    24  	context "golang.org/x/net/context"
    25  	grpc "google.golang.org/grpc"
    26  )
    27  
    28  // Reference imports to suppress errors if they are not otherwise used.
    29  var _ = proto.Marshal
    30  var _ = fmt.Errorf
    31  var _ = math.Inf
    32  
    33  // This is a compile-time assertion to ensure that this generated file
    34  // is compatible with the proto package it is being compiled against.
    35  // A compilation error at this line likely means your copy of the
    36  // proto package needs to be updated.
    37  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    38  
    39  type Request struct {
    40  	HotelIds []string `protobuf:"bytes,1,rep,name=hotelIds" json:"hotelIds,omitempty"`
    41  	Locale   string   `protobuf:"bytes,2,opt,name=locale" json:"locale,omitempty"`
    42  }
    43  
    44  func (m *Request) Reset()                    { *m = Request{} }
    45  func (m *Request) String() string            { return proto.CompactTextString(m) }
    46  func (*Request) ProtoMessage()               {}
    47  func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    48  
    49  func (m *Request) GetHotelIds() []string {
    50  	if m != nil {
    51  		return m.HotelIds
    52  	}
    53  	return nil
    54  }
    55  
    56  func (m *Request) GetLocale() string {
    57  	if m != nil {
    58  		return m.Locale
    59  	}
    60  	return ""
    61  }
    62  
    63  type Result struct {
    64  	Hotels []*Hotel `protobuf:"bytes,1,rep,name=hotels" json:"hotels,omitempty"`
    65  }
    66  
    67  func (m *Result) Reset()                    { *m = Result{} }
    68  func (m *Result) String() string            { return proto.CompactTextString(m) }
    69  func (*Result) ProtoMessage()               {}
    70  func (*Result) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
    71  
    72  func (m *Result) GetHotels() []*Hotel {
    73  	if m != nil {
    74  		return m.Hotels
    75  	}
    76  	return nil
    77  }
    78  
    79  type Hotel struct {
    80  	Id          string   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
    81  	Name        string   `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
    82  	PhoneNumber string   `protobuf:"bytes,3,opt,name=phoneNumber" json:"phoneNumber,omitempty"`
    83  	Description string   `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
    84  	Address     *Address `protobuf:"bytes,5,opt,name=address" json:"address,omitempty"`
    85  	Images      []*Image `protobuf:"bytes,6,rep,name=images" json:"images,omitempty"`
    86  }
    87  
    88  func (m *Hotel) Reset()                    { *m = Hotel{} }
    89  func (m *Hotel) String() string            { return proto.CompactTextString(m) }
    90  func (*Hotel) ProtoMessage()               {}
    91  func (*Hotel) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
    92  
    93  func (m *Hotel) GetId() string {
    94  	if m != nil {
    95  		return m.Id
    96  	}
    97  	return ""
    98  }
    99  
   100  func (m *Hotel) GetName() string {
   101  	if m != nil {
   102  		return m.Name
   103  	}
   104  	return ""
   105  }
   106  
   107  func (m *Hotel) GetPhoneNumber() string {
   108  	if m != nil {
   109  		return m.PhoneNumber
   110  	}
   111  	return ""
   112  }
   113  
   114  func (m *Hotel) GetDescription() string {
   115  	if m != nil {
   116  		return m.Description
   117  	}
   118  	return ""
   119  }
   120  
   121  func (m *Hotel) GetAddress() *Address {
   122  	if m != nil {
   123  		return m.Address
   124  	}
   125  	return nil
   126  }
   127  
   128  func (m *Hotel) GetImages() []*Image {
   129  	if m != nil {
   130  		return m.Images
   131  	}
   132  	return nil
   133  }
   134  
   135  type Address struct {
   136  	StreetNumber string `protobuf:"bytes,1,opt,name=streetNumber" json:"streetNumber,omitempty"`
   137  	StreetName   string `protobuf:"bytes,2,opt,name=streetName" json:"streetName,omitempty"`
   138  	City         string `protobuf:"bytes,3,opt,name=city" json:"city,omitempty"`
   139  	State        string `protobuf:"bytes,4,opt,name=state" json:"state,omitempty"`
   140  	Country      string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"`
   141  	PostalCode   string `protobuf:"bytes,6,opt,name=postalCode" json:"postalCode,omitempty"`
   142  }
   143  
   144  func (m *Address) Reset()                    { *m = Address{} }
   145  func (m *Address) String() string            { return proto.CompactTextString(m) }
   146  func (*Address) ProtoMessage()               {}
   147  func (*Address) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
   148  
   149  func (m *Address) GetStreetNumber() string {
   150  	if m != nil {
   151  		return m.StreetNumber
   152  	}
   153  	return ""
   154  }
   155  
   156  func (m *Address) GetStreetName() string {
   157  	if m != nil {
   158  		return m.StreetName
   159  	}
   160  	return ""
   161  }
   162  
   163  func (m *Address) GetCity() string {
   164  	if m != nil {
   165  		return m.City
   166  	}
   167  	return ""
   168  }
   169  
   170  func (m *Address) GetState() string {
   171  	if m != nil {
   172  		return m.State
   173  	}
   174  	return ""
   175  }
   176  
   177  func (m *Address) GetCountry() string {
   178  	if m != nil {
   179  		return m.Country
   180  	}
   181  	return ""
   182  }
   183  
   184  func (m *Address) GetPostalCode() string {
   185  	if m != nil {
   186  		return m.PostalCode
   187  	}
   188  	return ""
   189  }
   190  
   191  type Image struct {
   192  	Url     string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
   193  	Default bool   `protobuf:"varint,2,opt,name=default" json:"default,omitempty"`
   194  }
   195  
   196  func (m *Image) Reset()                    { *m = Image{} }
   197  func (m *Image) String() string            { return proto.CompactTextString(m) }
   198  func (*Image) ProtoMessage()               {}
   199  func (*Image) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
   200  
   201  func (m *Image) GetUrl() string {
   202  	if m != nil {
   203  		return m.Url
   204  	}
   205  	return ""
   206  }
   207  
   208  func (m *Image) GetDefault() bool {
   209  	if m != nil {
   210  		return m.Default
   211  	}
   212  	return false
   213  }
   214  
   215  func init() {
   216  	proto.RegisterType((*Request)(nil), "profile.Request")
   217  	proto.RegisterType((*Result)(nil), "profile.Result")
   218  	proto.RegisterType((*Hotel)(nil), "profile.Hotel")
   219  	proto.RegisterType((*Address)(nil), "profile.Address")
   220  	proto.RegisterType((*Image)(nil), "profile.Image")
   221  }
   222  
   223  // Reference imports to suppress errors if they are not otherwise used.
   224  var _ context.Context
   225  var _ grpc.ClientConn
   226  
   227  // This is a compile-time assertion to ensure that this generated file
   228  // is compatible with the grpc package it is being compiled against.
   229  const _ = grpc.SupportPackageIsVersion4
   230  
   231  // Client API for Profile service
   232  
   233  type ProfileClient interface {
   234  	GetProfiles(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Result, error)
   235  }
   236  
   237  type profileClient struct {
   238  	cc *grpc.ClientConn
   239  }
   240  
   241  func NewProfileClient(cc *grpc.ClientConn) ProfileClient {
   242  	return &profileClient{cc}
   243  }
   244  
   245  func (c *profileClient) GetProfiles(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Result, error) {
   246  	out := new(Result)
   247  	err := grpc.Invoke(ctx, "/profile.Profile/GetProfiles", in, out, c.cc, opts...)
   248  	if err != nil {
   249  		return nil, err
   250  	}
   251  	return out, nil
   252  }
   253  
   254  // Server API for Profile service
   255  
   256  type ProfileServer interface {
   257  	GetProfiles(context.Context, *Request) (*Result, error)
   258  }
   259  
   260  func RegisterProfileServer(s *grpc.Server, srv ProfileServer) {
   261  	s.RegisterService(&_Profile_serviceDesc, srv)
   262  }
   263  
   264  func _Profile_GetProfiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   265  	in := new(Request)
   266  	if err := dec(in); err != nil {
   267  		return nil, err
   268  	}
   269  	if interceptor == nil {
   270  		return srv.(ProfileServer).GetProfiles(ctx, in)
   271  	}
   272  	info := &grpc.UnaryServerInfo{
   273  		Server:     srv,
   274  		FullMethod: "/profile.Profile/GetProfiles",
   275  	}
   276  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   277  		return srv.(ProfileServer).GetProfiles(ctx, req.(*Request))
   278  	}
   279  	return interceptor(ctx, in, info, handler)
   280  }
   281  
   282  var _Profile_serviceDesc = grpc.ServiceDesc{
   283  	ServiceName: "profile.Profile",
   284  	HandlerType: (*ProfileServer)(nil),
   285  	Methods: []grpc.MethodDesc{
   286  		{
   287  			MethodName: "GetProfiles",
   288  			Handler:    _Profile_GetProfiles_Handler,
   289  		},
   290  	},
   291  	Streams:  []grpc.StreamDesc{},
   292  	Metadata: "github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto",
   293  }
   294  
   295  func init() {
   296  	proto.RegisterFile("github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto", fileDescriptor0)
   297  }
   298  
   299  var fileDescriptor0 = []byte{
   300  	// 397 bytes of a gzipped FileDescriptorProto
   301  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0xc1, 0x6e, 0xd4, 0x30,
   302  	0x10, 0x86, 0x95, 0xdd, 0x6e, 0xd2, 0x9d, 0x45, 0xa5, 0x1a, 0x21, 0x64, 0xf5, 0x80, 0x56, 0x39,
   303  	0xa0, 0x15, 0x87, 0x4d, 0xb5, 0x3d, 0x22, 0x0e, 0x15, 0x07, 0xe8, 0x05, 0x21, 0xbf, 0x81, 0x13,
   304  	0x4f, 0x77, 0x2d, 0x9c, 0x38, 0xd8, 0x0e, 0xa2, 0x8f, 0xc5, 0x33, 0xf0, 0x62, 0xc8, 0x8e, 0xd3,
   305  	0x0d, 0x3d, 0x79, 0xfe, 0x6f, 0xc6, 0x9e, 0xf9, 0xad, 0x81, 0xfb, 0xa3, 0xf2, 0xa7, 0xa1, 0xde,
   306  	0x37, 0xa6, 0xad, 0x5a, 0xd5, 0x58, 0x53, 0xd1, 0x6f, 0xd1, 0xf6, 0x9a, 0x5c, 0x55, 0x1b, 0xf3,
   307  	0x43, 0x75, 0xc7, 0xca, 0xd9, 0x5f, 0x55, 0x6f, 0xcd, 0xa3, 0xd2, 0x14, 0x4e, 0x6f, 0x26, 0xb5,
   308  	0x8f, 0x0a, 0x8b, 0x24, 0xcb, 0x4f, 0x50, 0x70, 0xfa, 0x39, 0x90, 0xf3, 0x78, 0x03, 0x97, 0x27,
   309  	0xe3, 0x49, 0x3f, 0x48, 0xc7, 0xb2, 0xed, 0x72, 0xb7, 0xe6, 0xcf, 0x1a, 0xdf, 0x42, 0xae, 0x4d,
   310  	0x23, 0x34, 0xb1, 0xc5, 0x36, 0xdb, 0xad, 0x79, 0x52, 0xe5, 0x2d, 0xe4, 0x9c, 0xdc, 0xa0, 0x3d,
   311  	0xbe, 0x87, 0x3c, 0x56, 0x8f, 0x77, 0x37, 0x87, 0xab, 0xfd, 0xd4, 0xf1, 0x6b, 0xc0, 0x3c, 0x65,
   312  	0xcb, 0xbf, 0x19, 0xac, 0x22, 0xc1, 0x2b, 0x58, 0x28, 0xc9, 0xb2, 0xf8, 0xde, 0x42, 0x49, 0x44,
   313  	0xb8, 0xe8, 0x44, 0x3b, 0x75, 0x88, 0x31, 0x6e, 0x61, 0xd3, 0x9f, 0x4c, 0x47, 0xdf, 0x86, 0xb6,
   314  	0x26, 0xcb, 0x96, 0x31, 0x35, 0x47, 0xa1, 0x42, 0x92, 0x6b, 0xac, 0xea, 0xbd, 0x32, 0x1d, 0xbb,
   315  	0x18, 0x2b, 0x66, 0x08, 0x3f, 0x40, 0x21, 0xa4, 0xb4, 0xe4, 0x1c, 0x5b, 0x6d, 0xb3, 0xdd, 0xe6,
   316  	0x70, 0xfd, 0x3c, 0xda, 0xfd, 0xc8, 0xf9, 0x54, 0x10, 0x5c, 0xa8, 0x56, 0x1c, 0xc9, 0xb1, 0xfc,
   317  	0x85, 0x8b, 0x87, 0x80, 0x79, 0xca, 0x96, 0x7f, 0x32, 0x28, 0xd2, 0x65, 0x2c, 0xe1, 0x95, 0xf3,
   318  	0x96, 0xc8, 0xa7, 0x21, 0x47, 0x47, 0xff, 0x31, 0x7c, 0x07, 0x90, 0xf4, 0xd9, 0xe1, 0x8c, 0x04,
   319  	0xef, 0x8d, 0xf2, 0x4f, 0xc9, 0x60, 0x8c, 0xf1, 0x0d, 0xac, 0x9c, 0x17, 0x9e, 0x92, 0xa7, 0x51,
   320  	0x20, 0x83, 0xa2, 0x31, 0x43, 0xe7, 0xed, 0x53, 0x74, 0xb3, 0xe6, 0x93, 0x0c, 0x3d, 0x7a, 0xe3,
   321  	0xbc, 0xd0, 0x9f, 0x8d, 0x24, 0x96, 0x8f, 0x3d, 0xce, 0xa4, 0xbc, 0x83, 0x55, 0x34, 0x81, 0xd7,
   322  	0xb0, 0x1c, 0xac, 0x4e, 0x73, 0x86, 0x30, 0x3c, 0x2a, 0xe9, 0x51, 0x0c, 0xda, 0xc7, 0xd9, 0x2e,
   323  	0xf9, 0x24, 0x0f, 0x1f, 0xa1, 0xf8, 0x3e, 0xfe, 0x00, 0xde, 0xc2, 0xe6, 0x0b, 0xf9, 0xa4, 0x1c,
   324  	0x9e, 0x7f, 0x31, 0x2d, 0xd0, 0xcd, 0xeb, 0x19, 0x09, 0x3b, 0x51, 0xe7, 0x71, 0xd9, 0xee, 0xfe,
   325  	0x05, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x00, 0x45, 0x96, 0xb1, 0x02, 0x00, 0x00,
   326  }