| // Code generated by protoc-gen-go-dubbo. DO NOT EDIT. |
| |
| // Source: greet.proto |
| // Package: org_apache_dubbo_tri_hessian2_api |
| |
| package greet |
| |
| import ( |
| dubbo_go_hessian2 "github.com/apache/dubbo-go-hessian2" |
| ) |
| |
| type GreetRequest struct { |
| Name string |
| } |
| |
| func (x *GreetRequest) JavaClassName() string { |
| return "org.apache.dubbo.tri.hessian2.api.GreetRequest" |
| } |
| |
| func (x *GreetRequest) String() string { |
| e := dubbo_go_hessian2.NewEncoder() |
| err := e.Encode(x) |
| if err != nil { |
| return "" |
| } |
| return string(e.Buffer()) |
| } |
| |
| func (x *GreetRequest) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| type GreetResponse struct { |
| Greeting string |
| } |
| |
| func (x *GreetResponse) JavaClassName() string { |
| return "org.apache.dubbo.tri.hessian2.api.GreetResponse" |
| } |
| |
| func (x *GreetResponse) String() string { |
| e := dubbo_go_hessian2.NewEncoder() |
| err := e.Encode(x) |
| if err != nil { |
| return "" |
| } |
| return string(e.Buffer()) |
| } |
| |
| func (x *GreetResponse) GetGreeting() string { |
| if x != nil { |
| return x.Greeting |
| } |
| return "" |
| } |
| |
| func init() { |
| dubbo_go_hessian2.RegisterPOJO(new(GreetRequest)) |
| dubbo_go_hessian2.RegisterPOJO(new(GreetResponse)) |
| } |