2023-03-02 05:32:45 +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/artistinfoArtshow.proto
package artistinfoArtshow
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
// ArtistInfoArtshowClient is the client API for ArtistInfoArtshow 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 ArtistInfoArtshowClient interface {
// 画展视频
GetArtshowVideoList ( ctx context . Context , in * GetArtshowVideoListRequst , opts ... grpc_go . CallOption ) ( * GetArtshowVideoListResponse , common . ErrorWithAttachment )
2023-03-02 09:22:10 +00:00
CreateArtshowVideo ( ctx context . Context , in * ArtshowVideoInfo , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment )
BatchCreateArtshowVideo ( ctx context . Context , in * BatchCreateArtshowVideoRequest , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment )
2023-03-02 05:32:45 +00:00
AuditArtshowVideo ( ctx context . Context , in * AuditArtshowVideoRequest , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment )
UpdateArtshowVideo ( ctx context . Context , in * UpdateArtshowVideoRequest , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment )
DeletedArtshowVideo ( ctx context . Context , in * DeletedArtshowVideoRequest , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment )
2023-03-02 09:22:10 +00:00
CheckeExists ( ctx context . Context , in * CheckeExistsRequest , opts ... grpc_go . CallOption ) ( * emptypb . Empty , common . ErrorWithAttachment )
2023-03-02 05:32:45 +00:00
}
type artistInfoArtshowClient struct {
cc * triple . TripleConn
}
type ArtistInfoArtshowClientImpl struct {
2023-03-02 09:22:10 +00:00
GetArtshowVideoList func ( ctx context . Context , in * GetArtshowVideoListRequst ) ( * GetArtshowVideoListResponse , error )
CreateArtshowVideo func ( ctx context . Context , in * ArtshowVideoInfo ) ( * emptypb . Empty , error )
BatchCreateArtshowVideo func ( ctx context . Context , in * BatchCreateArtshowVideoRequest ) ( * emptypb . Empty , error )
AuditArtshowVideo func ( ctx context . Context , in * AuditArtshowVideoRequest ) ( * emptypb . Empty , error )
UpdateArtshowVideo func ( ctx context . Context , in * UpdateArtshowVideoRequest ) ( * emptypb . Empty , error )
DeletedArtshowVideo func ( ctx context . Context , in * DeletedArtshowVideoRequest ) ( * emptypb . Empty , error )
CheckeExists func ( ctx context . Context , in * CheckeExistsRequest ) ( * emptypb . Empty , error )
2023-03-02 05:32:45 +00:00
}
func ( c * ArtistInfoArtshowClientImpl ) GetDubboStub ( cc * triple . TripleConn ) ArtistInfoArtshowClient {
return NewArtistInfoArtshowClient ( cc )
}
func ( c * ArtistInfoArtshowClientImpl ) XXX_InterfaceName ( ) string {
return "artistinfo.ArtistInfoArtshow"
}
func NewArtistInfoArtshowClient ( cc * triple . TripleConn ) ArtistInfoArtshowClient {
return & artistInfoArtshowClient { cc }
}
func ( c * artistInfoArtshowClient ) GetArtshowVideoList ( ctx context . Context , in * GetArtshowVideoListRequst , opts ... grpc_go . CallOption ) ( * GetArtshowVideoListResponse , common . ErrorWithAttachment ) {
out := new ( GetArtshowVideoListResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/GetArtshowVideoList" , in , out )
}
2023-03-02 09:22:10 +00:00
func ( c * artistInfoArtshowClient ) CreateArtshowVideo ( ctx context . Context , in * ArtshowVideoInfo , 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 + "/CreateArtshowVideo" , in , out )
}
func ( c * artistInfoArtshowClient ) BatchCreateArtshowVideo ( ctx context . Context , in * BatchCreateArtshowVideoRequest , 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 + "/BatchCreateArtshowVideo" , in , out )
}
2023-03-02 05:32:45 +00:00
func ( c * artistInfoArtshowClient ) AuditArtshowVideo ( ctx context . Context , in * AuditArtshowVideoRequest , 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 + "/AuditArtshowVideo" , in , out )
}
func ( c * artistInfoArtshowClient ) UpdateArtshowVideo ( ctx context . Context , in * UpdateArtshowVideoRequest , 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 + "/UpdateArtshowVideo" , in , out )
}
func ( c * artistInfoArtshowClient ) DeletedArtshowVideo ( ctx context . Context , in * DeletedArtshowVideoRequest , 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 + "/DeletedArtshowVideo" , in , out )
}
2023-03-02 09:22:10 +00:00
func ( c * artistInfoArtshowClient ) CheckeExists ( ctx context . Context , in * CheckeExistsRequest , 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 + "/CheckeExists" , in , out )
}
2023-03-02 05:32:45 +00:00
// ArtistInfoArtshowServer is the server API for ArtistInfoArtshow service.
// All implementations must embed UnimplementedArtistInfoArtshowServer
// for forward compatibility
type ArtistInfoArtshowServer interface {
// 画展视频
GetArtshowVideoList ( context . Context , * GetArtshowVideoListRequst ) ( * GetArtshowVideoListResponse , error )
2023-03-02 09:22:10 +00:00
CreateArtshowVideo ( context . Context , * ArtshowVideoInfo ) ( * emptypb . Empty , error )
BatchCreateArtshowVideo ( context . Context , * BatchCreateArtshowVideoRequest ) ( * emptypb . Empty , error )
2023-03-02 05:32:45 +00:00
AuditArtshowVideo ( context . Context , * AuditArtshowVideoRequest ) ( * emptypb . Empty , error )
UpdateArtshowVideo ( context . Context , * UpdateArtshowVideoRequest ) ( * emptypb . Empty , error )
DeletedArtshowVideo ( context . Context , * DeletedArtshowVideoRequest ) ( * emptypb . Empty , error )
2023-03-02 09:22:10 +00:00
CheckeExists ( context . Context , * CheckeExistsRequest ) ( * emptypb . Empty , error )
2023-03-02 05:32:45 +00:00
mustEmbedUnimplementedArtistInfoArtshowServer ( )
}
// UnimplementedArtistInfoArtshowServer must be embedded to have forward compatible implementations.
type UnimplementedArtistInfoArtshowServer struct {
proxyImpl protocol . Invoker
}
func ( UnimplementedArtistInfoArtshowServer ) GetArtshowVideoList ( context . Context , * GetArtshowVideoListRequst ) ( * GetArtshowVideoListResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetArtshowVideoList not implemented" )
}
2023-03-02 09:22:10 +00:00
func ( UnimplementedArtistInfoArtshowServer ) CreateArtshowVideo ( context . Context , * ArtshowVideoInfo ) ( * emptypb . Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateArtshowVideo not implemented" )
}
func ( UnimplementedArtistInfoArtshowServer ) BatchCreateArtshowVideo ( context . Context , * BatchCreateArtshowVideoRequest ) ( * emptypb . Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method BatchCreateArtshowVideo not implemented" )
}
2023-03-02 05:32:45 +00:00
func ( UnimplementedArtistInfoArtshowServer ) AuditArtshowVideo ( context . Context , * AuditArtshowVideoRequest ) ( * emptypb . Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method AuditArtshowVideo not implemented" )
}
func ( UnimplementedArtistInfoArtshowServer ) UpdateArtshowVideo ( context . Context , * UpdateArtshowVideoRequest ) ( * emptypb . Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateArtshowVideo not implemented" )
}
func ( UnimplementedArtistInfoArtshowServer ) DeletedArtshowVideo ( context . Context , * DeletedArtshowVideoRequest ) ( * emptypb . Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeletedArtshowVideo not implemented" )
}
2023-03-02 09:22:10 +00:00
func ( UnimplementedArtistInfoArtshowServer ) CheckeExists ( context . Context , * CheckeExistsRequest ) ( * emptypb . Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CheckeExists not implemented" )
}
2023-03-02 05:32:45 +00:00
func ( s * UnimplementedArtistInfoArtshowServer ) XXX_SetProxyImpl ( impl protocol . Invoker ) {
s . proxyImpl = impl
}
func ( s * UnimplementedArtistInfoArtshowServer ) XXX_GetProxyImpl ( ) protocol . Invoker {
return s . proxyImpl
}
func ( s * UnimplementedArtistInfoArtshowServer ) XXX_ServiceDesc ( ) * grpc_go . ServiceDesc {
return & ArtistInfoArtshow_ServiceDesc
}
func ( s * UnimplementedArtistInfoArtshowServer ) XXX_InterfaceName ( ) string {
return "artistinfo.ArtistInfoArtshow"
}
func ( UnimplementedArtistInfoArtshowServer ) mustEmbedUnimplementedArtistInfoArtshowServer ( ) { }
// UnsafeArtistInfoArtshowServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ArtistInfoArtshowServer will
// result in compilation errors.
type UnsafeArtistInfoArtshowServer interface {
mustEmbedUnimplementedArtistInfoArtshowServer ( )
}
func RegisterArtistInfoArtshowServer ( s grpc_go . ServiceRegistrar , srv ArtistInfoArtshowServer ) {
s . RegisterService ( & ArtistInfoArtshow_ServiceDesc , srv )
}
func _ArtistInfoArtshow_GetArtshowVideoList_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetArtshowVideoListRequst )
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 ( "GetArtshowVideoList" , 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-02 09:22:10 +00:00
func _ArtistInfoArtshow_CreateArtshowVideo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ArtshowVideoInfo )
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 ( "CreateArtshowVideo" , 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 _ArtistInfoArtshow_BatchCreateArtshowVideo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( BatchCreateArtshowVideoRequest )
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 ( "BatchCreateArtshowVideo" , 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-02 05:32:45 +00:00
func _ArtistInfoArtshow_AuditArtshowVideo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( AuditArtshowVideoRequest )
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 ( "AuditArtshowVideo" , 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 _ArtistInfoArtshow_UpdateArtshowVideo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdateArtshowVideoRequest )
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 ( "UpdateArtshowVideo" , 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 _ArtistInfoArtshow_DeletedArtshowVideo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeletedArtshowVideoRequest )
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 ( "DeletedArtshowVideo" , 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-02 09:22:10 +00:00
func _ArtistInfoArtshow_CheckeExists_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CheckeExistsRequest )
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 ( "CheckeExists" , 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-02 05:32:45 +00:00
// ArtistInfoArtshow_ServiceDesc is the grpc_go.ServiceDesc for ArtistInfoArtshow service.
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
var ArtistInfoArtshow_ServiceDesc = grpc_go . ServiceDesc {
ServiceName : "artistinfo.ArtistInfoArtshow" ,
HandlerType : ( * ArtistInfoArtshowServer ) ( nil ) ,
Methods : [ ] grpc_go . MethodDesc {
{
MethodName : "GetArtshowVideoList" ,
Handler : _ArtistInfoArtshow_GetArtshowVideoList_Handler ,
} ,
2023-03-02 09:22:10 +00:00
{
MethodName : "CreateArtshowVideo" ,
Handler : _ArtistInfoArtshow_CreateArtshowVideo_Handler ,
} ,
{
MethodName : "BatchCreateArtshowVideo" ,
Handler : _ArtistInfoArtshow_BatchCreateArtshowVideo_Handler ,
} ,
2023-03-02 05:32:45 +00:00
{
MethodName : "AuditArtshowVideo" ,
Handler : _ArtistInfoArtshow_AuditArtshowVideo_Handler ,
} ,
{
MethodName : "UpdateArtshowVideo" ,
Handler : _ArtistInfoArtshow_UpdateArtshowVideo_Handler ,
} ,
{
MethodName : "DeletedArtshowVideo" ,
Handler : _ArtistInfoArtshow_DeletedArtshowVideo_Handler ,
} ,
2023-03-02 09:22:10 +00:00
{
MethodName : "CheckeExists" ,
Handler : _ArtistInfoArtshow_CheckeExists_Handler ,
} ,
2023-03-02 05:32:45 +00:00
} ,
Streams : [ ] grpc_go . StreamDesc { } ,
Metadata : "pb/artistinfoArtshow.proto" ,
}