mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-02-08 21:10:13 +00:00
219 lines
8.2 KiB
Go
219 lines
8.2 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: RestoreItemAction.proto
|
|
|
|
package generated
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
type RestoreItemActionExecuteRequest struct {
|
|
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
|
Item []byte `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"`
|
|
Restore []byte `protobuf:"bytes,3,opt,name=restore,proto3" json:"restore,omitempty"`
|
|
ItemFromBackup []byte `protobuf:"bytes,4,opt,name=itemFromBackup,proto3" json:"itemFromBackup,omitempty"`
|
|
}
|
|
|
|
func (m *RestoreItemActionExecuteRequest) Reset() { *m = RestoreItemActionExecuteRequest{} }
|
|
func (m *RestoreItemActionExecuteRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RestoreItemActionExecuteRequest) ProtoMessage() {}
|
|
func (*RestoreItemActionExecuteRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
|
|
|
|
func (m *RestoreItemActionExecuteRequest) GetPlugin() string {
|
|
if m != nil {
|
|
return m.Plugin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RestoreItemActionExecuteRequest) GetItem() []byte {
|
|
if m != nil {
|
|
return m.Item
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RestoreItemActionExecuteRequest) GetRestore() []byte {
|
|
if m != nil {
|
|
return m.Restore
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RestoreItemActionExecuteRequest) GetItemFromBackup() []byte {
|
|
if m != nil {
|
|
return m.ItemFromBackup
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RestoreItemActionExecuteResponse struct {
|
|
Item []byte `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
|
|
AdditionalItems []*ResourceIdentifier `protobuf:"bytes,2,rep,name=additionalItems" json:"additionalItems,omitempty"`
|
|
}
|
|
|
|
func (m *RestoreItemActionExecuteResponse) Reset() { *m = RestoreItemActionExecuteResponse{} }
|
|
func (m *RestoreItemActionExecuteResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*RestoreItemActionExecuteResponse) ProtoMessage() {}
|
|
func (*RestoreItemActionExecuteResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor3, []int{1}
|
|
}
|
|
|
|
func (m *RestoreItemActionExecuteResponse) GetItem() []byte {
|
|
if m != nil {
|
|
return m.Item
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RestoreItemActionExecuteResponse) GetAdditionalItems() []*ResourceIdentifier {
|
|
if m != nil {
|
|
return m.AdditionalItems
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*RestoreItemActionExecuteRequest)(nil), "generated.RestoreItemActionExecuteRequest")
|
|
proto.RegisterType((*RestoreItemActionExecuteResponse)(nil), "generated.RestoreItemActionExecuteResponse")
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// 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.SupportPackageIsVersion4
|
|
|
|
// Client API for RestoreItemAction service
|
|
|
|
type RestoreItemActionClient interface {
|
|
AppliesTo(ctx context.Context, in *AppliesToRequest, opts ...grpc.CallOption) (*AppliesToResponse, error)
|
|
Execute(ctx context.Context, in *RestoreItemActionExecuteRequest, opts ...grpc.CallOption) (*RestoreItemActionExecuteResponse, error)
|
|
}
|
|
|
|
type restoreItemActionClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewRestoreItemActionClient(cc *grpc.ClientConn) RestoreItemActionClient {
|
|
return &restoreItemActionClient{cc}
|
|
}
|
|
|
|
func (c *restoreItemActionClient) AppliesTo(ctx context.Context, in *AppliesToRequest, opts ...grpc.CallOption) (*AppliesToResponse, error) {
|
|
out := new(AppliesToResponse)
|
|
err := grpc.Invoke(ctx, "/generated.RestoreItemAction/AppliesTo", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *restoreItemActionClient) Execute(ctx context.Context, in *RestoreItemActionExecuteRequest, opts ...grpc.CallOption) (*RestoreItemActionExecuteResponse, error) {
|
|
out := new(RestoreItemActionExecuteResponse)
|
|
err := grpc.Invoke(ctx, "/generated.RestoreItemAction/Execute", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for RestoreItemAction service
|
|
|
|
type RestoreItemActionServer interface {
|
|
AppliesTo(context.Context, *AppliesToRequest) (*AppliesToResponse, error)
|
|
Execute(context.Context, *RestoreItemActionExecuteRequest) (*RestoreItemActionExecuteResponse, error)
|
|
}
|
|
|
|
func RegisterRestoreItemActionServer(s *grpc.Server, srv RestoreItemActionServer) {
|
|
s.RegisterService(&_RestoreItemAction_serviceDesc, srv)
|
|
}
|
|
|
|
func _RestoreItemAction_AppliesTo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AppliesToRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RestoreItemActionServer).AppliesTo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generated.RestoreItemAction/AppliesTo",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RestoreItemActionServer).AppliesTo(ctx, req.(*AppliesToRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RestoreItemAction_Execute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RestoreItemActionExecuteRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RestoreItemActionServer).Execute(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generated.RestoreItemAction/Execute",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RestoreItemActionServer).Execute(ctx, req.(*RestoreItemActionExecuteRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _RestoreItemAction_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "generated.RestoreItemAction",
|
|
HandlerType: (*RestoreItemActionServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "AppliesTo",
|
|
Handler: _RestoreItemAction_AppliesTo_Handler,
|
|
},
|
|
{
|
|
MethodName: "Execute",
|
|
Handler: _RestoreItemAction_Execute_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "RestoreItemAction.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("RestoreItemAction.proto", fileDescriptor3) }
|
|
|
|
var fileDescriptor3 = []byte{
|
|
// 280 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0xdb, 0x4a, 0x03, 0x31,
|
|
0x10, 0x25, 0x6d, 0x69, 0xe9, 0x58, 0x14, 0xf3, 0xa0, 0x61, 0x55, 0x5c, 0xfa, 0x20, 0x8b, 0xc2,
|
|
0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