|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// source: protos/inventory.proto
|
|
|
|
|
// source: inventory/v1/inventory.proto
|
|
|
|
|
|
|
|
|
|
package spotify_backstage_inventory_v1alpha1
|
|
|
|
|
package inventoryv1
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
context "context"
|
|
|
|
@@ -36,7 +36,7 @@ func (m *GetEntityRequest) Reset() { *m = GetEntityRequest{} }
|
|
|
|
|
func (m *GetEntityRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*GetEntityRequest) ProtoMessage() {}
|
|
|
|
|
func (*GetEntityRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_1a8706afd37ce83a, []int{0}
|
|
|
|
|
return fileDescriptor_70be9028e322f9d8, []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetEntityRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -83,7 +83,7 @@ func (m *GetEntityReply) Reset() { *m = GetEntityReply{} }
|
|
|
|
|
func (m *GetEntityReply) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*GetEntityReply) ProtoMessage() {}
|
|
|
|
|
func (*GetEntityReply) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_1a8706afd37ce83a, []int{1}
|
|
|
|
|
return fileDescriptor_70be9028e322f9d8, []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetEntityReply) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -118,9 +118,86 @@ func (m *GetEntityReply) GetFacts() []*Fact {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateEntityRequest struct {
|
|
|
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateEntityRequest) Reset() { *m = CreateEntityRequest{} }
|
|
|
|
|
func (m *CreateEntityRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*CreateEntityRequest) ProtoMessage() {}
|
|
|
|
|
func (*CreateEntityRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_70be9028e322f9d8, []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateEntityRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_CreateEntityRequest.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *CreateEntityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_CreateEntityRequest.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *CreateEntityRequest) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_CreateEntityRequest.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *CreateEntityRequest) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_CreateEntityRequest.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *CreateEntityRequest) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_CreateEntityRequest.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateEntityRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *CreateEntityRequest) GetEntity() *Entity {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Entity
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateEntityReply struct {
|
|
|
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateEntityReply) Reset() { *m = CreateEntityReply{} }
|
|
|
|
|
func (m *CreateEntityReply) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*CreateEntityReply) ProtoMessage() {}
|
|
|
|
|
func (*CreateEntityReply) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_70be9028e322f9d8, []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateEntityReply) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_CreateEntityReply.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *CreateEntityReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_CreateEntityReply.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *CreateEntityReply) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_CreateEntityReply.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *CreateEntityReply) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_CreateEntityReply.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *CreateEntityReply) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_CreateEntityReply.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateEntityReply proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *CreateEntityReply) GetEntity() *Entity {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Entity
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Entity struct {
|
|
|
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
|
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
@@ -130,7 +207,7 @@ func (m *Entity) Reset() { *m = Entity{} }
|
|
|
|
|
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Entity) ProtoMessage() {}
|
|
|
|
|
func (*Entity) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_1a8706afd37ce83a, []int{2}
|
|
|
|
|
return fileDescriptor_70be9028e322f9d8, []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Entity) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -151,16 +228,9 @@ func (m *Entity) XXX_DiscardUnknown() {
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Entity proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *Entity) GetKind() string {
|
|
|
|
|
func (m *Entity) GetUri() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Kind
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Entity) GetId() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Id
|
|
|
|
|
return m.Uri
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
@@ -177,7 +247,7 @@ func (m *Fact) Reset() { *m = Fact{} }
|
|
|
|
|
func (m *Fact) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Fact) ProtoMessage() {}
|
|
|
|
|
func (*Fact) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_1a8706afd37ce83a, []int{3}
|
|
|
|
|
return fileDescriptor_70be9028e322f9d8, []int{5}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Fact) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -213,34 +283,38 @@ func (m *Fact) GetValue() string {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
proto.RegisterType((*GetEntityRequest)(nil), "spotify.backstage.inventory.v1alpha1.GetEntityRequest")
|
|
|
|
|
proto.RegisterType((*GetEntityReply)(nil), "spotify.backstage.inventory.v1alpha1.GetEntityReply")
|
|
|
|
|
proto.RegisterType((*Entity)(nil), "spotify.backstage.inventory.v1alpha1.Entity")
|
|
|
|
|
proto.RegisterType((*Fact)(nil), "spotify.backstage.inventory.v1alpha1.Fact")
|
|
|
|
|
proto.RegisterType((*GetEntityRequest)(nil), "spotify.backstage.inventory.v1.GetEntityRequest")
|
|
|
|
|
proto.RegisterType((*GetEntityReply)(nil), "spotify.backstage.inventory.v1.GetEntityReply")
|
|
|
|
|
proto.RegisterType((*CreateEntityRequest)(nil), "spotify.backstage.inventory.v1.CreateEntityRequest")
|
|
|
|
|
proto.RegisterType((*CreateEntityReply)(nil), "spotify.backstage.inventory.v1.CreateEntityReply")
|
|
|
|
|
proto.RegisterType((*Entity)(nil), "spotify.backstage.inventory.v1.Entity")
|
|
|
|
|
proto.RegisterType((*Fact)(nil), "spotify.backstage.inventory.v1.Fact")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("protos/inventory.proto", fileDescriptor_1a8706afd37ce83a) }
|
|
|
|
|
func init() { proto.RegisterFile("inventory/v1/inventory.proto", fileDescriptor_70be9028e322f9d8) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptor_1a8706afd37ce83a = []byte{
|
|
|
|
|
// 273 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,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
|
0x97, 0x02, 0x76, 0x0f, 0x67, 0x10, 0x98, 0x2d, 0xc4, 0xc7, 0xc5, 0x94, 0x99, 0x22, 0xc1, 0x04,
|
|
|
|
|
0x16, 0x61, 0xca, 0x4c, 0x51, 0x32, 0xe0, 0x62, 0x01, 0x69, 0x06, 0xa9, 0xcd, 0x4b, 0xcc, 0x4d,
|
|
|
|
|
0x85, 0xa9, 0x05, 0xb1, 0x85, 0x44, 0xb8, 0x58, 0xcb, 0x12, 0x73, 0x4a, 0x53, 0xa1, 0xca, 0x21,
|
|
|
|
|
0x1c, 0xa3, 0x36, 0x46, 0x2e, 0x4e, 0x4f, 0x98, 0x13, 0x84, 0x2a, 0xb9, 0x38, 0xe1, 0xe1, 0x20,
|
|
|
|
|
0x64, 0x46, 0x9c, 0x6b, 0xd1, 0x23, 0x4e, 0xca, 0x84, 0x64, 0x7d, 0x05, 0x39, 0x95, 0x49, 0x6c,
|
|
|
|
|
0xe0, 0xf4, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x66, 0x0d, 0x53, 0x49, 0x02, 0x00,
|
|
|
|
|
0x00,
|
|
|
|
|
var fileDescriptor_70be9028e322f9d8 = []byte{
|
|
|
|
|
// 307 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc9, 0xcc, 0x2b, 0x4b,
|
|
|
|
|
0xcd, 0x2b, 0xc9, 0x2f, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x87, 0x73, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b,
|
|
|
|
|
0xf2, 0x85, 0xe4, 0x8a, 0x0b, 0xf2, 0x4b, 0x32, 0xd3, 0x2a, 0xf5, 0x92, 0x12, 0x93, 0xb3, 0x8b,
|
|
|
|
|
0x4b, 0x12, 0xd3, 0x53, 0xf5, 0x10, 0x4a, 0xca, 0x0c, 0x95, 0x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xa5, 0xa9, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xe8, 0x13, 0x23, 0x17, 0xa7, 0x27, 0xcc, 0x36,
|
|
|
|
|
0xa1, 0x5c, 0x2e, 0x4e, 0x78, 0xac, 0x08, 0x19, 0x10, 0x72, 0x18, 0x7a, 0xd2, 0x91, 0xd2, 0x23,
|
|
|
|
|
0x41, 0x07, 0x28, 0x28, 0xca, 0xb8, 0x78, 0x90, 0xc3, 0x47, 0xc8, 0x98, 0x90, 0x7e, 0x2c, 0x91,
|
|
|
|
|
0x24, 0x65, 0x48, 0x9a, 0xa6, 0x82, 0x9c, 0x4a, 0x27, 0xde, 0x28, 0x6e, 0xb8, 0x8a, 0x32, 0xc3,
|
|
|
|
|
0x24, 0x36, 0x70, 0x66, 0x31, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x24, 0xd0, 0xf1, 0x50, 0x4c,
|
|
|
|
|
0x03, 0x00, 0x00,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
@@ -256,6 +330,7 @@ const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
|
type InventoryClient interface {
|
|
|
|
|
GetEntity(ctx context.Context, in *GetEntityRequest, opts ...grpc.CallOption) (*GetEntityReply, error)
|
|
|
|
|
CreateEntity(ctx context.Context, in *CreateEntityRequest, opts ...grpc.CallOption) (*CreateEntityReply, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type inventoryClient struct {
|
|
|
|
@@ -268,7 +343,16 @@ func NewInventoryClient(cc grpc.ClientConnInterface) InventoryClient {
|
|
|
|
|
|
|
|
|
|
func (c *inventoryClient) GetEntity(ctx context.Context, in *GetEntityRequest, opts ...grpc.CallOption) (*GetEntityReply, error) {
|
|
|
|
|
out := new(GetEntityReply)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/spotify.backstage.inventory.v1alpha1.Inventory/GetEntity", in, out, opts...)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/spotify.backstage.inventory.v1.Inventory/GetEntity", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *inventoryClient) CreateEntity(ctx context.Context, in *CreateEntityRequest, opts ...grpc.CallOption) (*CreateEntityReply, error) {
|
|
|
|
|
out := new(CreateEntityReply)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/spotify.backstage.inventory.v1.Inventory/CreateEntity", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -278,6 +362,7 @@ func (c *inventoryClient) GetEntity(ctx context.Context, in *GetEntityRequest, o
|
|
|
|
|
// InventoryServer is the server API for Inventory service.
|
|
|
|
|
type InventoryServer interface {
|
|
|
|
|
GetEntity(context.Context, *GetEntityRequest) (*GetEntityReply, error)
|
|
|
|
|
CreateEntity(context.Context, *CreateEntityRequest) (*CreateEntityReply, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnimplementedInventoryServer can be embedded to have forward compatible implementations.
|
|
|
|
@@ -287,6 +372,9 @@ type UnimplementedInventoryServer struct {
|
|
|
|
|
func (*UnimplementedInventoryServer) GetEntity(ctx context.Context, req *GetEntityRequest) (*GetEntityReply, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetEntity not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedInventoryServer) CreateEntity(ctx context.Context, req *CreateEntityRequest) (*CreateEntityReply, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateEntity not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func RegisterInventoryServer(s *grpc.Server, srv InventoryServer) {
|
|
|
|
|
s.RegisterService(&_Inventory_serviceDesc, srv)
|
|
|
|
@@ -302,7 +390,7 @@ func _Inventory_GetEntity_Handler(srv interface{}, ctx context.Context, dec func
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/spotify.backstage.inventory.v1alpha1.Inventory/GetEntity",
|
|
|
|
|
FullMethod: "/spotify.backstage.inventory.v1.Inventory/GetEntity",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(InventoryServer).GetEntity(ctx, req.(*GetEntityRequest))
|
|
|
|
@@ -310,15 +398,37 @@ func _Inventory_GetEntity_Handler(srv interface{}, ctx context.Context, dec func
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Inventory_CreateEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(CreateEntityRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(InventoryServer).CreateEntity(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/spotify.backstage.inventory.v1.Inventory/CreateEntity",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(InventoryServer).CreateEntity(ctx, req.(*CreateEntityRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _Inventory_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
ServiceName: "spotify.backstage.inventory.v1alpha1.Inventory",
|
|
|
|
|
ServiceName: "spotify.backstage.inventory.v1.Inventory",
|
|
|
|
|
HandlerType: (*InventoryServer)(nil),
|
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
|
{
|
|
|
|
|
MethodName: "GetEntity",
|
|
|
|
|
Handler: _Inventory_GetEntity_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "CreateEntity",
|
|
|
|
|
Handler: _Inventory_CreateEntity_Handler,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
|
Metadata: "protos/inventory.proto",
|
|
|
|
|
Metadata: "inventory/v1/inventory.proto",
|
|
|
|
|
}
|