metadata/triple_api/proto/metadata_service.hessian2.go (100 lines of code) (raw):
// Code generated by protoc-gen-go-dubbo. DO NOT EDIT.
// Source: metadata_service.proto
// Package: org_apache_dubbo_metadata
package triple_api
import (
dubbo_go_hessian2 "github.com/apache/dubbo-go-hessian2"
)
type MetadataInfo struct {
App string
Version string
Services map[string]*ServiceInfo
}
func (x *MetadataInfo) JavaClassName() string {
return "org.apache.dubbo.metadata.MetadataInfo"
}
func (x *MetadataInfo) String() string {
e := dubbo_go_hessian2.NewEncoder()
err := e.Encode(x)
if err != nil {
return ""
}
return string(e.Buffer())
}
func (x *MetadataInfo) GetApp() string {
if x != nil {
return x.App
}
return ""
}
func (x *MetadataInfo) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *MetadataInfo) GetServices() map[string]*ServiceInfo {
if x != nil {
return x.Services
}
return nil
}
type ServiceInfo struct {
Name string
Group string
Version string
Protocol string
Port int32
Path string
Params map[string]string
}
func (x *ServiceInfo) JavaClassName() string {
return "org.apache.dubbo.metadata.MetadataInfo$ServiceInfo"
}
func (x *ServiceInfo) String() string {
e := dubbo_go_hessian2.NewEncoder()
err := e.Encode(x)
if err != nil {
return ""
}
return string(e.Buffer())
}
func (x *ServiceInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ServiceInfo) GetGroup() string {
if x != nil {
return x.Group
}
return ""
}
func (x *ServiceInfo) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *ServiceInfo) GetProtocol() string {
if x != nil {
return x.Protocol
}
return ""
}
func (x *ServiceInfo) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
func (x *ServiceInfo) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *ServiceInfo) GetParams() map[string]string {
if x != nil {
return x.Params
}
return nil
}
//func init() {
// dubbo_go_hessian2.RegisterPOJO(new(MetadataInfo))
// dubbo_go_hessian2.RegisterPOJO(new(ServiceInfo))
//}