2021-04-06 18:03:30 -04:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2022-10-04 17:46:16 -04:00
// versions:
2023-08-24 17:59:04 -04:00
// - protoc-gen-go-grpc v1.3.0
// - protoc v3.21.12
2022-10-04 17:46:16 -04:00
// source: proto/ruby_vagrant/ruby-server.proto
2021-04-06 18:03:30 -04:00
package ruby_vagrant
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
2022-02-10 17:42:36 -05:00
emptypb "google.golang.org/protobuf/types/known/emptypb"
2021-04-06 18:03:30 -04:00
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
2021-08-05 14:38:52 -04:00
// Requires gRPC-Go v1.32.0 or later.
2021-04-06 18:03:30 -04:00
const _ = grpc . SupportPackageIsVersion7
2023-08-24 17:59:04 -04:00
const (
RubyVagrant_GetPlugins_FullMethodName = "/hashicorp.vagrant.RubyVagrant/GetPlugins"
RubyVagrant_ParseVagrantfile_FullMethodName = "/hashicorp.vagrant.RubyVagrant/ParseVagrantfile"
RubyVagrant_ParseVagrantfileProc_FullMethodName = "/hashicorp.vagrant.RubyVagrant/ParseVagrantfileProc"
RubyVagrant_ParseVagrantfileSubvm_FullMethodName = "/hashicorp.vagrant.RubyVagrant/ParseVagrantfileSubvm"
RubyVagrant_ParseVagrantfileProvider_FullMethodName = "/hashicorp.vagrant.RubyVagrant/ParseVagrantfileProvider"
RubyVagrant_Stop_FullMethodName = "/hashicorp.vagrant.RubyVagrant/Stop"
)
2021-04-06 18:03:30 -04:00
// RubyVagrantClient is the client API for RubyVagrant 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 RubyVagrantClient interface {
// Gets available ruby plugins
2022-07-25 17:33:53 -04:00
GetPlugins ( ctx context . Context , in * GetPluginsRequest , opts ... grpc . CallOption ) ( * GetPluginsResponse , error )
2021-04-06 18:03:30 -04:00
ParseVagrantfile ( ctx context . Context , in * ParseVagrantfileRequest , opts ... grpc . CallOption ) ( * ParseVagrantfileResponse , error )
2022-06-20 16:13:06 -04:00
ParseVagrantfileProc ( ctx context . Context , in * ParseVagrantfileProcRequest , opts ... grpc . CallOption ) ( * ParseVagrantfileResponse , error )
ParseVagrantfileSubvm ( ctx context . Context , in * ParseVagrantfileSubvmRequest , opts ... grpc . CallOption ) ( * ParseVagrantfileResponse , error )
ParseVagrantfileProvider ( ctx context . Context , in * ParseVagrantfileProviderRequest , opts ... grpc . CallOption ) ( * ParseVagrantfileResponse , error )
2022-07-25 17:33:53 -04:00
Stop ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * emptypb . Empty , error )
2021-04-06 18:03:30 -04:00
}
type rubyVagrantClient struct {
cc grpc . ClientConnInterface
}
func NewRubyVagrantClient ( cc grpc . ClientConnInterface ) RubyVagrantClient {
return & rubyVagrantClient { cc }
}
2022-07-25 17:33:53 -04:00
func ( c * rubyVagrantClient ) GetPlugins ( ctx context . Context , in * GetPluginsRequest , opts ... grpc . CallOption ) ( * GetPluginsResponse , error ) {
2021-04-06 18:03:30 -04:00
out := new ( GetPluginsResponse )
2023-08-24 17:59:04 -04:00
err := c . cc . Invoke ( ctx , RubyVagrant_GetPlugins_FullMethodName , in , out , opts ... )
2021-04-06 18:03:30 -04:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * rubyVagrantClient ) ParseVagrantfile ( ctx context . Context , in * ParseVagrantfileRequest , opts ... grpc . CallOption ) ( * ParseVagrantfileResponse , error ) {
out := new ( ParseVagrantfileResponse )
2023-08-24 17:59:04 -04:00
err := c . cc . Invoke ( ctx , RubyVagrant_ParseVagrantfile_FullMethodName , in , out , opts ... )
2021-04-06 18:03:30 -04:00
if err != nil {
return nil , err
}
return out , nil
}
2022-06-20 16:13:06 -04:00
func ( c * rubyVagrantClient ) ParseVagrantfileProc ( ctx context . Context , in * ParseVagrantfileProcRequest , opts ... grpc . CallOption ) ( * ParseVagrantfileResponse , error ) {
out := new ( ParseVagrantfileResponse )
2023-08-24 17:59:04 -04:00
err := c . cc . Invoke ( ctx , RubyVagrant_ParseVagrantfileProc_FullMethodName , in , out , opts ... )
2022-06-20 16:13:06 -04:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * rubyVagrantClient ) ParseVagrantfileSubvm ( ctx context . Context , in * ParseVagrantfileSubvmRequest , opts ... grpc . CallOption ) ( * ParseVagrantfileResponse , error ) {
out := new ( ParseVagrantfileResponse )
2023-08-24 17:59:04 -04:00
err := c . cc . Invoke ( ctx , RubyVagrant_ParseVagrantfileSubvm_FullMethodName , in , out , opts ... )
2022-06-20 16:13:06 -04:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * rubyVagrantClient ) ParseVagrantfileProvider ( ctx context . Context , in * ParseVagrantfileProviderRequest , opts ... grpc . CallOption ) ( * ParseVagrantfileResponse , error ) {
out := new ( ParseVagrantfileResponse )
2023-08-24 17:59:04 -04:00
err := c . cc . Invoke ( ctx , RubyVagrant_ParseVagrantfileProvider_FullMethodName , in , out , opts ... )
2022-06-20 16:13:06 -04:00
if err != nil {
return nil , err
}
return out , nil
}
2022-07-25 17:33:53 -04:00
func ( c * rubyVagrantClient ) Stop ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * emptypb . Empty , error ) {
out := new ( emptypb . Empty )
2023-08-24 17:59:04 -04:00
err := c . cc . Invoke ( ctx , RubyVagrant_Stop_FullMethodName , in , out , opts ... )
2022-07-25 17:33:53 -04:00
if err != nil {
return nil , err
}
return out , nil
}
2021-04-06 18:03:30 -04:00
// RubyVagrantServer is the server API for RubyVagrant service.
// All implementations must embed UnimplementedRubyVagrantServer
// for forward compatibility
type RubyVagrantServer interface {
// Gets available ruby plugins
2022-07-25 17:33:53 -04:00
GetPlugins ( context . Context , * GetPluginsRequest ) ( * GetPluginsResponse , error )
2021-04-06 18:03:30 -04:00
ParseVagrantfile ( context . Context , * ParseVagrantfileRequest ) ( * ParseVagrantfileResponse , error )
2022-06-20 16:13:06 -04:00
ParseVagrantfileProc ( context . Context , * ParseVagrantfileProcRequest ) ( * ParseVagrantfileResponse , error )
ParseVagrantfileSubvm ( context . Context , * ParseVagrantfileSubvmRequest ) ( * ParseVagrantfileResponse , error )
ParseVagrantfileProvider ( context . Context , * ParseVagrantfileProviderRequest ) ( * ParseVagrantfileResponse , error )
2022-07-25 17:33:53 -04:00
Stop ( context . Context , * emptypb . Empty ) ( * emptypb . Empty , error )
2021-04-06 18:03:30 -04:00
mustEmbedUnimplementedRubyVagrantServer ( )
}
// UnimplementedRubyVagrantServer must be embedded to have forward compatible implementations.
type UnimplementedRubyVagrantServer struct {
}
2022-07-25 17:33:53 -04:00
func ( UnimplementedRubyVagrantServer ) GetPlugins ( context . Context , * GetPluginsRequest ) ( * GetPluginsResponse , error ) {
2021-04-06 18:03:30 -04:00
return nil , status . Errorf ( codes . Unimplemented , "method GetPlugins not implemented" )
}
func ( UnimplementedRubyVagrantServer ) ParseVagrantfile ( context . Context , * ParseVagrantfileRequest ) ( * ParseVagrantfileResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ParseVagrantfile not implemented" )
}
2022-06-20 16:13:06 -04:00
func ( UnimplementedRubyVagrantServer ) ParseVagrantfileProc ( context . Context , * ParseVagrantfileProcRequest ) ( * ParseVagrantfileResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ParseVagrantfileProc not implemented" )
}
func ( UnimplementedRubyVagrantServer ) ParseVagrantfileSubvm ( context . Context , * ParseVagrantfileSubvmRequest ) ( * ParseVagrantfileResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ParseVagrantfileSubvm not implemented" )
}
func ( UnimplementedRubyVagrantServer ) ParseVagrantfileProvider ( context . Context , * ParseVagrantfileProviderRequest ) ( * ParseVagrantfileResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ParseVagrantfileProvider not implemented" )
}
2022-07-25 17:33:53 -04:00
func ( UnimplementedRubyVagrantServer ) Stop ( context . Context , * emptypb . Empty ) ( * emptypb . Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Stop not implemented" )
}
2021-04-06 18:03:30 -04:00
func ( UnimplementedRubyVagrantServer ) mustEmbedUnimplementedRubyVagrantServer ( ) { }
// UnsafeRubyVagrantServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RubyVagrantServer will
// result in compilation errors.
type UnsafeRubyVagrantServer interface {
mustEmbedUnimplementedRubyVagrantServer ( )
}
func RegisterRubyVagrantServer ( s grpc . ServiceRegistrar , srv RubyVagrantServer ) {
2021-08-05 14:38:52 -04:00
s . RegisterService ( & RubyVagrant_ServiceDesc , srv )
2021-04-06 18:03:30 -04:00
}
func _RubyVagrant_GetPlugins_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2022-07-25 17:33:53 -04:00
in := new ( GetPluginsRequest )
2021-04-06 18:03:30 -04:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( RubyVagrantServer ) . GetPlugins ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-08-24 17:59:04 -04:00
FullMethod : RubyVagrant_GetPlugins_FullMethodName ,
2021-04-06 18:03:30 -04:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2022-07-25 17:33:53 -04:00
return srv . ( RubyVagrantServer ) . GetPlugins ( ctx , req . ( * GetPluginsRequest ) )
2021-04-06 18:03:30 -04:00
}
return interceptor ( ctx , in , info , handler )
}
func _RubyVagrant_ParseVagrantfile_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ParseVagrantfileRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( RubyVagrantServer ) . ParseVagrantfile ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-08-24 17:59:04 -04:00
FullMethod : RubyVagrant_ParseVagrantfile_FullMethodName ,
2021-04-06 18:03:30 -04:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( RubyVagrantServer ) . ParseVagrantfile ( ctx , req . ( * ParseVagrantfileRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-06-20 16:13:06 -04:00
func _RubyVagrant_ParseVagrantfileProc_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ParseVagrantfileProcRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( RubyVagrantServer ) . ParseVagrantfileProc ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-08-24 17:59:04 -04:00
FullMethod : RubyVagrant_ParseVagrantfileProc_FullMethodName ,
2022-06-20 16:13:06 -04:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( RubyVagrantServer ) . ParseVagrantfileProc ( ctx , req . ( * ParseVagrantfileProcRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _RubyVagrant_ParseVagrantfileSubvm_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ParseVagrantfileSubvmRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( RubyVagrantServer ) . ParseVagrantfileSubvm ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-08-24 17:59:04 -04:00
FullMethod : RubyVagrant_ParseVagrantfileSubvm_FullMethodName ,
2022-06-20 16:13:06 -04:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( RubyVagrantServer ) . ParseVagrantfileSubvm ( ctx , req . ( * ParseVagrantfileSubvmRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _RubyVagrant_ParseVagrantfileProvider_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ParseVagrantfileProviderRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( RubyVagrantServer ) . ParseVagrantfileProvider ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-08-24 17:59:04 -04:00
FullMethod : RubyVagrant_ParseVagrantfileProvider_FullMethodName ,
2022-06-20 16:13:06 -04:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( RubyVagrantServer ) . ParseVagrantfileProvider ( ctx , req . ( * ParseVagrantfileProviderRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-07-25 17:33:53 -04:00
func _RubyVagrant_Stop_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( emptypb . Empty )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( RubyVagrantServer ) . Stop ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-08-24 17:59:04 -04:00
FullMethod : RubyVagrant_Stop_FullMethodName ,
2022-07-25 17:33:53 -04:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( RubyVagrantServer ) . Stop ( ctx , req . ( * emptypb . Empty ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-08-05 14:38:52 -04:00
// RubyVagrant_ServiceDesc is the grpc.ServiceDesc for RubyVagrant service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RubyVagrant_ServiceDesc = grpc . ServiceDesc {
2021-04-06 18:03:30 -04:00
ServiceName : "hashicorp.vagrant.RubyVagrant" ,
HandlerType : ( * RubyVagrantServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "GetPlugins" ,
Handler : _RubyVagrant_GetPlugins_Handler ,
} ,
{
MethodName : "ParseVagrantfile" ,
Handler : _RubyVagrant_ParseVagrantfile_Handler ,
} ,
2022-06-20 16:13:06 -04:00
{
MethodName : "ParseVagrantfileProc" ,
Handler : _RubyVagrant_ParseVagrantfileProc_Handler ,
} ,
{
MethodName : "ParseVagrantfileSubvm" ,
Handler : _RubyVagrant_ParseVagrantfileSubvm_Handler ,
} ,
{
MethodName : "ParseVagrantfileProvider" ,
Handler : _RubyVagrant_ParseVagrantfileProvider_Handler ,
} ,
2022-07-25 17:33:53 -04:00
{
MethodName : "Stop" ,
Handler : _RubyVagrant_Stop_Handler ,
} ,
2021-04-06 18:03:30 -04:00
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "proto/ruby_vagrant/ruby-server.proto" ,
}