// Code generated by protoc-gen-go. DO NOT EDIT. // source: BackupItemAction.proto /* Package generated is a generated protocol buffer package. It is generated from these files: BackupItemAction.proto BlockStore.proto ObjectStore.proto PluginLister.proto RestoreItemAction.proto Shared.proto It has these top-level messages: ExecuteRequest ExecuteResponse ResourceIdentifier CreateVolumeRequest CreateVolumeResponse GetVolumeInfoRequest GetVolumeInfoResponse CreateSnapshotRequest CreateSnapshotResponse DeleteSnapshotRequest GetVolumeIDRequest GetVolumeIDResponse SetVolumeIDRequest SetVolumeIDResponse PutObjectRequest GetObjectRequest Bytes ListCommonPrefixesRequest ListCommonPrefixesResponse ListObjectsRequest ListObjectsResponse DeleteObjectRequest CreateSignedURLRequest CreateSignedURLResponse PluginIdentifier ListPluginsResponse RestoreExecuteRequest RestoreExecuteResponse Empty InitRequest AppliesToRequest AppliesToResponse */ 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 // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ExecuteRequest struct { Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"` Item []byte `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"` Backup []byte `protobuf:"bytes,3,opt,name=backup,proto3" json:"backup,omitempty"` } func (m *ExecuteRequest) Reset() { *m = ExecuteRequest{} } func (m *ExecuteRequest) String() string { return proto.CompactTextString(m) } func (*ExecuteRequest) ProtoMessage() {} func (*ExecuteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } func (m *ExecuteRequest) GetPlugin() string { if m != nil { return m.Plugin } return "" } func (m *ExecuteRequest) GetItem() []byte { if m != nil { return m.Item } return nil } func (m *ExecuteRequest) GetBackup() []byte { if m != nil { return m.Backup } return nil } type ExecuteResponse 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 *ExecuteResponse) Reset() { *m = ExecuteResponse{} } func (m *ExecuteResponse) String() string { return proto.CompactTextString(m) } func (*ExecuteResponse) ProtoMessage() {} func (*ExecuteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func (m *ExecuteResponse) GetItem() []byte { if m != nil { return m.Item } return nil } func (m *ExecuteResponse) GetAdditionalItems() []*ResourceIdentifier { if m != nil { return m.AdditionalItems } return nil } type ResourceIdentifier struct { Group string `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"` Resource string `protobuf:"bytes,2,opt,name=resource" json:"resource,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"` Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` } func (m *ResourceIdentifier) Reset() { *m = ResourceIdentifier{} } func (m *ResourceIdentifier) String() string { return proto.CompactTextString(m) } func (*ResourceIdentifier) ProtoMessage() {} func (*ResourceIdentifier) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } func (m *ResourceIdentifier) GetGroup() string { if m != nil { return m.Group } return "" } func (m *ResourceIdentifier) GetResource() string { if m != nil { return m.Resource } return "" } func (m *ResourceIdentifier) GetNamespace() string { if m != nil { return m.Namespace } return "" } func (m *ResourceIdentifier) GetName() string { if m != nil { return m.Name } return "" } func init() { proto.RegisterType((*ExecuteRequest)(nil), "generated.ExecuteRequest") proto.RegisterType((*ExecuteResponse)(nil), "generated.ExecuteResponse") proto.RegisterType((*ResourceIdentifier)(nil), "generated.ResourceIdentifier") } // 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 BackupItemAction service type BackupItemActionClient interface { AppliesTo(ctx context.Context, in *AppliesToRequest, opts ...grpc.CallOption) (*AppliesToResponse, error) Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) } type backupItemActionClient struct { cc *grpc.ClientConn } func NewBackupItemActionClient(cc *grpc.ClientConn) BackupItemActionClient { return &backupItemActionClient{cc} } func (c *backupItemActionClient) AppliesTo(ctx context.Context, in *AppliesToRequest, opts ...grpc.CallOption) (*AppliesToResponse, error) { out := new(AppliesToResponse) err := grpc.Invoke(ctx, "/generated.BackupItemAction/AppliesTo", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } func (c *backupItemActionClient) Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) { out := new(ExecuteResponse) err := grpc.Invoke(ctx, "/generated.BackupItemAction/Execute", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } // Server API for BackupItemAction service type BackupItemActionServer interface { AppliesTo(context.Context, *AppliesToRequest) (*AppliesToResponse, error) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) } func RegisterBackupItemActionServer(s *grpc.Server, srv BackupItemActionServer) { s.RegisterService(&_BackupItemAction_serviceDesc, srv) } func _BackupItemAction_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.(BackupItemActionServer).AppliesTo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/generated.BackupItemAction/AppliesTo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BackupItemActionServer).AppliesTo(ctx, req.(*AppliesToRequest)) } return interceptor(ctx, in, info, handler) } func _BackupItemAction_Execute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ExecuteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(BackupItemActionServer).Execute(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/generated.BackupItemAction/Execute", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BackupItemActionServer).Execute(ctx, req.(*ExecuteRequest)) } return interceptor(ctx, in, info, handler) } var _BackupItemAction_serviceDesc = grpc.ServiceDesc{ ServiceName: "generated.BackupItemAction", HandlerType: (*BackupItemActionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AppliesTo", Handler: _BackupItemAction_AppliesTo_Handler, }, { MethodName: "Execute", Handler: _BackupItemAction_Execute_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "BackupItemAction.proto", } func init() { proto.RegisterFile("BackupItemAction.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ // 298 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0x4d, 0x4f, 0x02, 0x31, 0x10, 0xcd, 0x02, 0xa2, 0x1d, 0x89, 0x98, 0xc6, 0x90, 0x75, 0xc5, 0x84, 0x70, 0xe2, 0xc4, 0x01, 0xff, 0x80, 0x98, 0xa8, 0xe1, 0x5a, 0xf9, 0x03, 0x65, 0x77, 0xc4, 0xc6, 0xdd, 0xb6, 0xf6, 0x23, 0xe1, 0xc7, 0xf8, 0x63, 0xcd, 0x76, 0x9b, 0x75, 0x45, 0x6e, 0x7d, 0xf3, 0xde, 0x4c, 0xe7, 0xbd, 0x81, 0xc9, 0x13, 0xcf, 0x3f, 0xbd, 0xde, 0x38, 0xac, 0xd6, 0xb9, 0x13, 0x4a, 0x2e, 0xb5, 0x51, 0x4e, 0x51, 0xb2, 0x47, 0x89, 0x86, 0x3b, 0x2c, 0xb2, 0xd1, 0xdb, 0x07, 0x37, 0x58, 0x34, 0xc4, 0x7c, 0x0b, 0x57, 0xcf, 0x07, 0xcc, 0xbd, 0x43, 0x86, 0x5f, 0x1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