2023-03-16 08:53:25 +00:00
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
// - protoc-gen-go-triple v1.0.8
// - protoc v4.22.0--rc2
// source: pb/artistinfoStatement.proto
2023-03-16 10:17:12 +00:00
package artistinfoStatement
2023-03-16 08:53:25 +00:00
import (
context "context"
protocol "dubbo.apache.org/dubbo-go/v3/protocol"
dubbo3 "dubbo.apache.org/dubbo-go/v3/protocol/dubbo3"
invocation "dubbo.apache.org/dubbo-go/v3/protocol/invocation"
grpc_go "github.com/dubbogo/grpc-go"
codes "github.com/dubbogo/grpc-go/codes"
metadata "github.com/dubbogo/grpc-go/metadata"
status "github.com/dubbogo/grpc-go/status"
common "github.com/dubbogo/triple/pkg/common"
constant "github.com/dubbogo/triple/pkg/common/constant"
triple "github.com/dubbogo/triple/pkg/triple"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc_go . SupportPackageIsVersion7
// StatementClient is the client API for Statement service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type StatementClient interface {
CreateStatementBatch ( ctx context . Context , in * StatementBatchRequest , opts ... grpc_go . CallOption ) ( * CreateStatementBatchResponse , common . ErrorWithAttachment )
BatchCreateStatementBatch ( ctx context . Context , in * BatchCreateStatementBatchRequest , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment )
GetStatementBatchList ( ctx context . Context , in * GetStatementBatchListRequest , opts ... grpc_go . CallOption ) ( * GetStatementBatchListResponse , common . ErrorWithAttachment )
2023-03-17 06:36:55 +00:00
GetStatementBatchTimeMenus ( ctx context . Context , in * GetStatementBatchListRequest , opts ... grpc_go . CallOption ) ( * GetStatementBatchTimeMenusResponse , common . ErrorWithAttachment )
2023-03-16 08:53:25 +00:00
CreateStatementDetail ( ctx context . Context , in * StatementDetailRequest , opts ... grpc_go . CallOption ) ( * CreateStatementDetailResponse , common . ErrorWithAttachment )
BatchCreateStatementDetail ( ctx context . Context , in * BatchCreateStatementDetailRequest , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment )
GetStatementDetailList ( ctx context . Context , in * GetStatementDetailListRequest , opts ... grpc_go . CallOption ) ( * GetStatementDetailListResponse , common . ErrorWithAttachment )
}
type statementClient struct {
cc * triple . TripleConn
}
type StatementClientImpl struct {
CreateStatementBatch func ( ctx context . Context , in * StatementBatchRequest ) ( * CreateStatementBatchResponse , error )
BatchCreateStatementBatch func ( ctx context . Context , in * BatchCreateStatementBatchRequest ) ( * emptypb . Empty , error )
GetStatementBatchList func ( ctx context . Context , in * GetStatementBatchListRequest ) ( * GetStatementBatchListResponse , error )
2023-03-17 06:36:55 +00:00
GetStatementBatchTimeMenus func ( ctx context . Context , in * GetStatementBatchListRequest ) ( * GetStatementBatchTimeMenusResponse , error )
2023-03-16 08:53:25 +00:00
CreateStatementDetail func ( ctx context . Context , in * StatementDetailRequest ) ( * CreateStatementDetailResponse , error )
BatchCreateStatementDetail func ( ctx context . Context , in * BatchCreateStatementDetailRequest ) ( * emptypb . Empty , error )
GetStatementDetailList func ( ctx context . Context , in * GetStatementDetailListRequest ) ( * GetStatementDetailListResponse , error )
}
func ( c * StatementClientImpl ) GetDubboStub ( cc * triple . TripleConn ) StatementClient {
return NewStatementClient ( cc )
}
func ( c * StatementClientImpl ) XXX_InterfaceName ( ) string {
return "artistinfo.Statement"
}
func NewStatementClient ( cc * triple . TripleConn ) StatementClient {
return & statementClient { cc }
}
func ( c * statementClient ) CreateStatementBatch ( ctx context . Context , in * StatementBatchRequest , opts ... grpc_go . CallOption ) ( * CreateStatementBatchResponse , common . ErrorWithAttachment ) {
out := new ( CreateStatementBatchResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/CreateStatementBatch" , in , out )
}
func ( c * statementClient ) BatchCreateStatementBatch ( ctx context . Context , in * BatchCreateStatementBatchRequest , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment ) {
out := new ( emptypb . Empty )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/BatchCreateStatementBatch" , in , out )
}
func ( c * statementClient ) GetStatementBatchList ( ctx context . Context , in * GetStatementBatchListRequest , opts ... grpc_go . CallOption ) ( * GetStatementBatchListResponse , common . ErrorWithAttachment ) {
out := new ( GetStatementBatchListResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/GetStatementBatchList" , in , out )
}
2023-03-17 06:36:55 +00:00
func ( c * statementClient ) GetStatementBatchTimeMenus ( ctx context . Context , in * GetStatementBatchListRequest , opts ... grpc_go . CallOption ) ( * GetStatementBatchTimeMenusResponse , common . ErrorWithAttachment ) {
out := new ( GetStatementBatchTimeMenusResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/GetStatementBatchTimeMenus" , in , out )
}
2023-03-16 08:53:25 +00:00
func ( c * statementClient ) CreateStatementDetail ( ctx context . Context , in * StatementDetailRequest , opts ... grpc_go . CallOption ) ( * CreateStatementDetailResponse , common . ErrorWithAttachment ) {
out := new ( CreateStatementDetailResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/CreateStatementDetail" , in , out )
}
func ( c * statementClient ) BatchCreateStatementDetail ( ctx context . Context , in * BatchCreateStatementDetailRequest , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment ) {
out := new ( emptypb . Empty )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/BatchCreateStatementDetail" , in , out )
}
func ( c * statementClient ) GetStatementDetailList ( ctx context . Context , in * GetStatementDetailListRequest , opts ... grpc_go . CallOption ) ( * GetStatementDetailListResponse , common . ErrorWithAttachment ) {
out := new ( GetStatementDetailListResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/GetStatementDetailList" , in , out )
}
// StatementServer is the server API for Statement service.
// All implementations must embed UnimplementedStatementServer
// for forward compatibility
type StatementServer interface {
CreateStatementBatch ( context . Context , * StatementBatchRequest ) ( * CreateStatementBatchResponse , error )
BatchCreateStatementBatch ( context . Context , * BatchCreateStatementBatchRequest ) ( * emptypb . Empty , error )
GetStatementBatchList ( context . Context , * GetStatementBatchListRequest ) ( * GetStatementBatchListResponse , error )
2023-03-17 06:36:55 +00:00
GetStatementBatchTimeMenus ( context . Context , * GetStatementBatchListRequest ) ( * GetStatementBatchTimeMenusResponse , error )
2023-03-16 08:53:25 +00:00
CreateStatementDetail ( context . Context , * StatementDetailRequest ) ( * CreateStatementDetailResponse , error )
BatchCreateStatementDetail ( context . Context , * BatchCreateStatementDetailRequest ) ( * emptypb . Empty , error )
GetStatementDetailList ( context . Context , * GetStatementDetailListRequest ) ( * GetStatementDetailListResponse , error )
mustEmbedUnimplementedStatementServer ( )
}
// UnimplementedStatementServer must be embedded to have forward compatible implementations.
type UnimplementedStatementServer struct {
proxyImpl protocol . Invoker
}
func ( UnimplementedStatementServer ) CreateStatementBatch ( context . Context , * StatementBatchRequest ) ( * CreateStatementBatchResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateStatementBatch not implemented" )
}
func ( UnimplementedStatementServer ) BatchCreateStatementBatch ( context . Context , * BatchCreateStatementBatchRequest ) ( * emptypb . Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method BatchCreateStatementBatch not implemented" )
}
func ( UnimplementedStatementServer ) GetStatementBatchList ( context . Context , * GetStatementBatchListRequest ) ( * GetStatementBatchListResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetStatementBatchList not implemented" )
}
2023-03-17 06:36:55 +00:00
func ( UnimplementedStatementServer ) GetStatementBatchTimeMenus ( context . Context , * GetStatementBatchListRequest ) ( * GetStatementBatchTimeMenusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetStatementBatchTimeMenus not implemented" )
}
2023-03-16 08:53:25 +00:00
func ( UnimplementedStatementServer ) CreateStatementDetail ( context . Context , * StatementDetailRequest ) ( * CreateStatementDetailResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateStatementDetail not implemented" )
}
func ( UnimplementedStatementServer ) BatchCreateStatementDetail ( context . Context , * BatchCreateStatementDetailRequest ) ( * emptypb . Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method BatchCreateStatementDetail not implemented" )
}
func ( UnimplementedStatementServer ) GetStatementDetailList ( context . Context , * GetStatementDetailListRequest ) ( * GetStatementDetailListResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetStatementDetailList not implemented" )
}
func ( s * UnimplementedStatementServer ) XXX_SetProxyImpl ( impl protocol . Invoker ) {
s . proxyImpl = impl
}
func ( s * UnimplementedStatementServer ) XXX_GetProxyImpl ( ) protocol . Invoker {
return s . proxyImpl
}
func ( s * UnimplementedStatementServer ) XXX_ServiceDesc ( ) * grpc_go . ServiceDesc {
return & Statement_ServiceDesc
}
func ( s * UnimplementedStatementServer ) XXX_InterfaceName ( ) string {
return "artistinfo.Statement"
}
func ( UnimplementedStatementServer ) mustEmbedUnimplementedStatementServer ( ) { }
// UnsafeStatementServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to StatementServer will
// result in compilation errors.
type UnsafeStatementServer interface {
mustEmbedUnimplementedStatementServer ( )
}
func RegisterStatementServer ( s grpc_go . ServiceRegistrar , srv StatementServer ) {
s . RegisterService ( & Statement_ServiceDesc , srv )
}
func _Statement_CreateStatementBatch_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( StatementBatchRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
base := srv . ( dubbo3 . Dubbo3GrpcService )
args := [ ] interface { } { }
args = append ( args , in )
md , _ := metadata . FromIncomingContext ( ctx )
invAttachment := make ( map [ string ] interface { } , len ( md ) )
for k , v := range md {
invAttachment [ k ] = v
}
invo := invocation . NewRPCInvocation ( "CreateStatementBatch" , args , invAttachment )
if interceptor == nil {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
info := & grpc_go . UnaryServerInfo {
Server : srv ,
FullMethod : ctx . Value ( "XXX_TRIPLE_GO_INTERFACE_NAME" ) . ( string ) ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
return interceptor ( ctx , in , info , handler )
}
func _Statement_BatchCreateStatementBatch_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( BatchCreateStatementBatchRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
base := srv . ( dubbo3 . Dubbo3GrpcService )
args := [ ] interface { } { }
args = append ( args , in )
md , _ := metadata . FromIncomingContext ( ctx )
invAttachment := make ( map [ string ] interface { } , len ( md ) )
for k , v := range md {
invAttachment [ k ] = v
}
invo := invocation . NewRPCInvocation ( "BatchCreateStatementBatch" , args , invAttachment )
if interceptor == nil {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
info := & grpc_go . UnaryServerInfo {
Server : srv ,
FullMethod : ctx . Value ( "XXX_TRIPLE_GO_INTERFACE_NAME" ) . ( string ) ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
return interceptor ( ctx , in , info , handler )
}
func _Statement_GetStatementBatchList_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetStatementBatchListRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
base := srv . ( dubbo3 . Dubbo3GrpcService )
args := [ ] interface { } { }
args = append ( args , in )
md , _ := metadata . FromIncomingContext ( ctx )
invAttachment := make ( map [ string ] interface { } , len ( md ) )
for k , v := range md {
invAttachment [ k ] = v
}
invo := invocation . NewRPCInvocation ( "GetStatementBatchList" , args , invAttachment )
if interceptor == nil {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
info := & grpc_go . UnaryServerInfo {
Server : srv ,
FullMethod : ctx . Value ( "XXX_TRIPLE_GO_INTERFACE_NAME" ) . ( string ) ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
return interceptor ( ctx , in , info , handler )
}
2023-03-17 06:36:55 +00:00
func _Statement_GetStatementBatchTimeMenus_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetStatementBatchListRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
base := srv . ( dubbo3 . Dubbo3GrpcService )
args := [ ] interface { } { }
args = append ( args , in )
md , _ := metadata . FromIncomingContext ( ctx )
invAttachment := make ( map [ string ] interface { } , len ( md ) )
for k , v := range md {
invAttachment [ k ] = v
}
invo := invocation . NewRPCInvocation ( "GetStatementBatchTimeMenus" , args , invAttachment )
if interceptor == nil {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
info := & grpc_go . UnaryServerInfo {
Server : srv ,
FullMethod : ctx . Value ( "XXX_TRIPLE_GO_INTERFACE_NAME" ) . ( string ) ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
return interceptor ( ctx , in , info , handler )
}
2023-03-16 08:53:25 +00:00
func _Statement_CreateStatementDetail_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( StatementDetailRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
base := srv . ( dubbo3 . Dubbo3GrpcService )
args := [ ] interface { } { }
args = append ( args , in )
md , _ := metadata . FromIncomingContext ( ctx )
invAttachment := make ( map [ string ] interface { } , len ( md ) )
for k , v := range md {
invAttachment [ k ] = v
}
invo := invocation . NewRPCInvocation ( "CreateStatementDetail" , args , invAttachment )
if interceptor == nil {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
info := & grpc_go . UnaryServerInfo {
Server : srv ,
FullMethod : ctx . Value ( "XXX_TRIPLE_GO_INTERFACE_NAME" ) . ( string ) ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
return interceptor ( ctx , in , info , handler )
}
func _Statement_BatchCreateStatementDetail_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( BatchCreateStatementDetailRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
base := srv . ( dubbo3 . Dubbo3GrpcService )
args := [ ] interface { } { }
args = append ( args , in )
md , _ := metadata . FromIncomingContext ( ctx )
invAttachment := make ( map [ string ] interface { } , len ( md ) )
for k , v := range md {
invAttachment [ k ] = v
}
invo := invocation . NewRPCInvocation ( "BatchCreateStatementDetail" , args , invAttachment )
if interceptor == nil {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
info := & grpc_go . UnaryServerInfo {
Server : srv ,
FullMethod : ctx . Value ( "XXX_TRIPLE_GO_INTERFACE_NAME" ) . ( string ) ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
return interceptor ( ctx , in , info , handler )
}
func _Statement_GetStatementDetailList_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetStatementDetailListRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
base := srv . ( dubbo3 . Dubbo3GrpcService )
args := [ ] interface { } { }
args = append ( args , in )
md , _ := metadata . FromIncomingContext ( ctx )
invAttachment := make ( map [ string ] interface { } , len ( md ) )
for k , v := range md {
invAttachment [ k ] = v
}
invo := invocation . NewRPCInvocation ( "GetStatementDetailList" , args , invAttachment )
if interceptor == nil {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
info := & grpc_go . UnaryServerInfo {
Server : srv ,
FullMethod : ctx . Value ( "XXX_TRIPLE_GO_INTERFACE_NAME" ) . ( string ) ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
result := base . XXX_GetProxyImpl ( ) . Invoke ( ctx , invo )
return result , result . Error ( )
}
return interceptor ( ctx , in , info , handler )
}
// Statement_ServiceDesc is the grpc_go.ServiceDesc for Statement service.
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
var Statement_ServiceDesc = grpc_go . ServiceDesc {
ServiceName : "artistinfo.Statement" ,
HandlerType : ( * StatementServer ) ( nil ) ,
Methods : [ ] grpc_go . MethodDesc {
{
MethodName : "CreateStatementBatch" ,
Handler : _Statement_CreateStatementBatch_Handler ,
} ,
{
MethodName : "BatchCreateStatementBatch" ,
Handler : _Statement_BatchCreateStatementBatch_Handler ,
} ,
{
MethodName : "GetStatementBatchList" ,
Handler : _Statement_GetStatementBatchList_Handler ,
} ,
2023-03-17 06:36:55 +00:00
{
MethodName : "GetStatementBatchTimeMenus" ,
Handler : _Statement_GetStatementBatchTimeMenus_Handler ,
} ,
2023-03-16 08:53:25 +00:00
{
MethodName : "CreateStatementDetail" ,
Handler : _Statement_CreateStatementDetail_Handler ,
} ,
{
MethodName : "BatchCreateStatementDetail" ,
Handler : _Statement_BatchCreateStatementDetail_Handler ,
} ,
{
MethodName : "GetStatementDetailList" ,
Handler : _Statement_GetStatementDetailList_Handler ,
} ,
} ,
Streams : [ ] grpc_go . StreamDesc { } ,
Metadata : "pb/artistinfoStatement.proto" ,
}