Refactor protobuf (#1354)

* Update protobuffs

Signed-off-by: Carlisia <carlisiac@vmware.com>
This commit is contained in:
KubeKween
2019-04-09 13:50:05 -04:00
committed by Nolan Brubaker
parent 956152d6e1
commit 13eaad0e64
18 changed files with 413 additions and 299 deletions
+71 -26
View File
@@ -15,6 +15,8 @@ It is generated from these files:
It has these top-level messages:
ExecuteRequest
ExecuteResponse
BackupItemActionAppliesToRequest
BackupItemActionAppliesToResponse
PutObjectRequest
GetObjectRequest
Bytes
@@ -25,17 +27,18 @@ It has these top-level messages:
DeleteObjectRequest
CreateSignedURLRequest
CreateSignedURLResponse
ObjectStoreInitRequest
PluginIdentifier
ListPluginsResponse
RestoreItemActionExecuteRequest
RestoreItemActionExecuteResponse
RestoreItemActionAppliesToRequest
RestoreItemActionAppliesToResponse
Empty
InitRequest
AppliesToRequest
AppliesToResponse
Stack
StackFrame
ResourceIdentifier
ResourceSelector
CreateVolumeRequest
CreateVolumeResponse
GetVolumeInfoRequest
@@ -47,6 +50,7 @@ It has these top-level messages:
GetVolumeIDResponse
SetVolumeIDRequest
SetVolumeIDResponse
VolumeSnapshotterInitRequest
*/
package generated
@@ -126,9 +130,47 @@ func (m *ExecuteResponse) GetAdditionalItems() []*ResourceIdentifier {
return nil
}
type BackupItemActionAppliesToRequest struct {
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
}
func (m *BackupItemActionAppliesToRequest) Reset() { *m = BackupItemActionAppliesToRequest{} }
func (m *BackupItemActionAppliesToRequest) String() string { return proto.CompactTextString(m) }
func (*BackupItemActionAppliesToRequest) ProtoMessage() {}
func (*BackupItemActionAppliesToRequest) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{2}
}
func (m *BackupItemActionAppliesToRequest) GetPlugin() string {
if m != nil {
return m.Plugin
}
return ""
}
type BackupItemActionAppliesToResponse struct {
ResourceSelector *ResourceSelector `protobuf:"bytes,1,opt,name=ResourceSelector" json:"ResourceSelector,omitempty"`
}
func (m *BackupItemActionAppliesToResponse) Reset() { *m = BackupItemActionAppliesToResponse{} }
func (m *BackupItemActionAppliesToResponse) String() string { return proto.CompactTextString(m) }
func (*BackupItemActionAppliesToResponse) ProtoMessage() {}
func (*BackupItemActionAppliesToResponse) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{3}
}
func (m *BackupItemActionAppliesToResponse) GetResourceSelector() *ResourceSelector {
if m != nil {
return m.ResourceSelector
}
return nil
}
func init() {
proto.RegisterType((*ExecuteRequest)(nil), "generated.ExecuteRequest")
proto.RegisterType((*ExecuteResponse)(nil), "generated.ExecuteResponse")
proto.RegisterType((*BackupItemActionAppliesToRequest)(nil), "generated.BackupItemActionAppliesToRequest")
proto.RegisterType((*BackupItemActionAppliesToResponse)(nil), "generated.BackupItemActionAppliesToResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -142,7 +184,7 @@ const _ = grpc.SupportPackageIsVersion4
// Client API for BackupItemAction service
type BackupItemActionClient interface {
AppliesTo(ctx context.Context, in *AppliesToRequest, opts ...grpc.CallOption) (*AppliesToResponse, error)
AppliesTo(ctx context.Context, in *BackupItemActionAppliesToRequest, opts ...grpc.CallOption) (*BackupItemActionAppliesToResponse, error)
Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error)
}
@@ -154,8 +196,8 @@ 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)
func (c *backupItemActionClient) AppliesTo(ctx context.Context, in *BackupItemActionAppliesToRequest, opts ...grpc.CallOption) (*BackupItemActionAppliesToResponse, error) {
out := new(BackupItemActionAppliesToResponse)
err := grpc.Invoke(ctx, "/generated.BackupItemAction/AppliesTo", in, out, c.cc, opts...)
if err != nil {
return nil, err
@@ -175,7 +217,7 @@ func (c *backupItemActionClient) Execute(ctx context.Context, in *ExecuteRequest
// Server API for BackupItemAction service
type BackupItemActionServer interface {
AppliesTo(context.Context, *AppliesToRequest) (*AppliesToResponse, error)
AppliesTo(context.Context, *BackupItemActionAppliesToRequest) (*BackupItemActionAppliesToResponse, error)
Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
}
@@ -184,7 +226,7 @@ func RegisterBackupItemActionServer(s *grpc.Server, srv BackupItemActionServer)
}
func _BackupItemAction_AppliesTo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AppliesToRequest)
in := new(BackupItemActionAppliesToRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -196,7 +238,7 @@ func _BackupItemAction_AppliesTo_Handler(srv interface{}, ctx context.Context, d
FullMethod: "/generated.BackupItemAction/AppliesTo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BackupItemActionServer).AppliesTo(ctx, req.(*AppliesToRequest))
return srv.(BackupItemActionServer).AppliesTo(ctx, req.(*BackupItemActionAppliesToRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -239,21 +281,24 @@ var _BackupItemAction_serviceDesc = grpc.ServiceDesc{
func init() { proto.RegisterFile("BackupItemAction.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 250 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x50, 0xcb, 0x4e, 0xc3, 0x30,
0x10, 0x94, 0x5b, 0x54, 0x94, 0xa5, 0xa2, 0xc8, 0x87, 0x2a, 0x04, 0x90, 0xa2, 0x9e, 0x72, 0xca,
0xa1, 0xfc, 0x00, 0x45, 0x02, 0xd4, 0xab, 0xe9, 0x0f, 0xb8, 0xf1, 0x52, 0x2c, 0x52, 0xdb, 0xf8,
0x21, 0xf1, 0x31, 0x7c, 0x2c, 0x4a, 0x6a, 0x59, 0xa1, 0xca, 0xcd, 0xbb, 0xb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, 0x7f, 0x0f, 0x9e, 0x01, 0x00, 0x00,
// 293 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x4a, 0xc3, 0x40,
0x10, 0x86, 0x49, 0x2b, 0x95, 0x4e, 0x8b, 0x2d, 0x7b, 0x28, 0x31, 0x22, 0xc4, 0x9c, 0x02, 0x4a,
0x0e, 0xf1, 0xe6, 0xc9, 0x0a, 0x52, 0x7a, 0xdd, 0xf6, 0x05, 0xd2, 0x64, 0x5a, 0x17, 0xd3, 0xdd,
0x75, 0x77, 0x03, 0x3e, 0x9c, 0x0f, 0x27, 0xd9, 0x6e, 0x43, 0x8c, 0xc5, 0x7a, 0xcb, 0x64, 0xe6,
0xff, 0xe7, 0xfb, 0xd9, 0x81, 0xd9, 0x4b, 0x96, 0xbf, 0x57, 0x72, 0x69, 0x70, 0x3f, 0xcf, 0x0d,
0x13, 0x3c, 0x91, 0x4a, 0x18, 0x41, 0x86, 0x3b, 0xe4, 0xa8, 0x32, 0x83, 0x45, 0x30, 0x5e, 0xbd,
0x65, 0x0a, 0x8b, 0x43, 0x23, 0x5a, 0xc3, 0xd5, 0xeb, 0x27, 0xe6, 0x95, 0x41, 0x8a, 0x1f, 0x15,
0x6a, 0x43, 0x66, 0x30, 0x90, 0x65, 0xb5, 0x63, 0xdc, 0xf7, 0x42, 0x2f, 0x1e, 0x52, 0x57, 0x11,
0x02, 0x17, 0xcc, 0xe0, 0xde, 0xef, 0x85, 0x5e, 0x3c, 0xa6, 0xf6, 0xbb, 0x9e, 0xdd, 0xd8, 0x85,
0x7e, 0xdf, 0xfe, 0x75, 0x55, 0xc4, 0x61, 0xd2, 0xb8, 0x6a, 0x29, 0xb8, 0xc6, 0x46, 0xee, 0xb5,
0xe4, 0x0b, 0x98, 0x64, 0x45, 0xc1, 0x6a, 0xce, 0xac, 0xac, 0x99, 0xb5, 0xdf, 0x0b, 0x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