src.dualinventive.com/go/assets-service/grpc/assets_service.pb.go

477 lines
17 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: assets_service.proto
package grpc
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 GetAssetsRequest_SortCol int32
const (
GetAssetsRequest_ID_ASC GetAssetsRequest_SortCol = 0
GetAssetsRequest_ID_DESC GetAssetsRequest_SortCol = 1
GetAssetsRequest_UID_ASC GetAssetsRequest_SortCol = 2
GetAssetsRequest_UID_DESC GetAssetsRequest_SortCol = 3
GetAssetsRequest_SERIALNR_ASC GetAssetsRequest_SortCol = 4
GetAssetsRequest_SERIALNR_DESC GetAssetsRequest_SortCol = 5
)
var GetAssetsRequest_SortCol_name = map[int32]string{
0: "ID_ASC",
1: "ID_DESC",
2: "UID_ASC",
3: "UID_DESC",
4: "SERIALNR_ASC",
5: "SERIALNR_DESC",
}
var GetAssetsRequest_SortCol_value = map[string]int32{
"ID_ASC": 0,
"ID_DESC": 1,
"UID_ASC": 2,
"UID_DESC": 3,
"SERIALNR_ASC": 4,
"SERIALNR_DESC": 5,
}
func (x GetAssetsRequest_SortCol) String() string {
return proto.EnumName(GetAssetsRequest_SortCol_name, int32(x))
}
func (GetAssetsRequest_SortCol) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_assets_service_5ca971858b0b5c87, []int{3, 0}
}
type GetAssetByIDRequest struct {
AssetID uint64 `protobuf:"varint,2,opt,name=assetID,proto3" json:"assetID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAssetByIDRequest) Reset() { *m = GetAssetByIDRequest{} }
func (m *GetAssetByIDRequest) String() string { return proto.CompactTextString(m) }
func (*GetAssetByIDRequest) ProtoMessage() {}
func (*GetAssetByIDRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_assets_service_5ca971858b0b5c87, []int{0}
}
func (m *GetAssetByIDRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAssetByIDRequest.Unmarshal(m, b)
}
func (m *GetAssetByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAssetByIDRequest.Marshal(b, m, deterministic)
}
func (dst *GetAssetByIDRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAssetByIDRequest.Merge(dst, src)
}
func (m *GetAssetByIDRequest) XXX_Size() int {
return xxx_messageInfo_GetAssetByIDRequest.Size(m)
}
func (m *GetAssetByIDRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetAssetByIDRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetAssetByIDRequest proto.InternalMessageInfo
func (m *GetAssetByIDRequest) GetAssetID() uint64 {
if m != nil {
return m.AssetID
}
return 0
}
type GetAssetByIDResponse struct {
Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAssetByIDResponse) Reset() { *m = GetAssetByIDResponse{} }
func (m *GetAssetByIDResponse) String() string { return proto.CompactTextString(m) }
func (*GetAssetByIDResponse) ProtoMessage() {}
func (*GetAssetByIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_assets_service_5ca971858b0b5c87, []int{1}
}
func (m *GetAssetByIDResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAssetByIDResponse.Unmarshal(m, b)
}
func (m *GetAssetByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAssetByIDResponse.Marshal(b, m, deterministic)
}
func (dst *GetAssetByIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAssetByIDResponse.Merge(dst, src)
}
func (m *GetAssetByIDResponse) XXX_Size() int {
return xxx_messageInfo_GetAssetByIDResponse.Size(m)
}
func (m *GetAssetByIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetAssetByIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetAssetByIDResponse proto.InternalMessageInfo
func (m *GetAssetByIDResponse) GetAsset() *Asset {
if m != nil {
return m.Asset
}
return nil
}
type Asset struct {
AssetID uint64 `protobuf:"varint,1,opt,name=assetID,proto3" json:"assetID,omitempty"`
AssetUID string `protobuf:"bytes,2,opt,name=assetUID,proto3" json:"assetUID,omitempty"`
AssetTypeCode string `protobuf:"bytes,3,opt,name=assetTypeCode,proto3" json:"assetTypeCode,omitempty"`
AssetSerialNr string `protobuf:"bytes,4,opt,name=assetSerialNr,proto3" json:"assetSerialNr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Asset) Reset() { *m = Asset{} }
func (m *Asset) String() string { return proto.CompactTextString(m) }
func (*Asset) ProtoMessage() {}
func (*Asset) Descriptor() ([]byte, []int) {
return fileDescriptor_assets_service_5ca971858b0b5c87, []int{2}
}
func (m *Asset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Asset.Unmarshal(m, b)
}
func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Asset.Marshal(b, m, deterministic)
}
func (dst *Asset) XXX_Merge(src proto.Message) {
xxx_messageInfo_Asset.Merge(dst, src)
}
func (m *Asset) XXX_Size() int {
return xxx_messageInfo_Asset.Size(m)
}
func (m *Asset) XXX_DiscardUnknown() {
xxx_messageInfo_Asset.DiscardUnknown(m)
}
var xxx_messageInfo_Asset proto.InternalMessageInfo
func (m *Asset) GetAssetID() uint64 {
if m != nil {
return m.AssetID
}
return 0
}
func (m *Asset) GetAssetUID() string {
if m != nil {
return m.AssetUID
}
return ""
}
func (m *Asset) GetAssetTypeCode() string {
if m != nil {
return m.AssetTypeCode
}
return ""
}
func (m *Asset) GetAssetSerialNr() string {
if m != nil {
return m.AssetSerialNr
}
return ""
}
type GetAssetsRequest struct {
Page uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
PerPage uint64 `protobuf:"varint,2,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
Sort GetAssetsRequest_SortCol `protobuf:"varint,3,opt,name=sort,proto3,enum=assetsservice.GetAssetsRequest_SortCol" json:"sort,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAssetsRequest) Reset() { *m = GetAssetsRequest{} }
func (m *GetAssetsRequest) String() string { return proto.CompactTextString(m) }
func (*GetAssetsRequest) ProtoMessage() {}
func (*GetAssetsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_assets_service_5ca971858b0b5c87, []int{3}
}
func (m *GetAssetsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAssetsRequest.Unmarshal(m, b)
}
func (m *GetAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAssetsRequest.Marshal(b, m, deterministic)
}
func (dst *GetAssetsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAssetsRequest.Merge(dst, src)
}
func (m *GetAssetsRequest) XXX_Size() int {
return xxx_messageInfo_GetAssetsRequest.Size(m)
}
func (m *GetAssetsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetAssetsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetAssetsRequest proto.InternalMessageInfo
func (m *GetAssetsRequest) GetPage() uint64 {
if m != nil {
return m.Page
}
return 0
}
func (m *GetAssetsRequest) GetPerPage() uint64 {
if m != nil {
return m.PerPage
}
return 0
}
func (m *GetAssetsRequest) GetSort() GetAssetsRequest_SortCol {
if m != nil {
return m.Sort
}
return GetAssetsRequest_ID_ASC
}
type GetAssetsResponse struct {
Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAssetsResponse) Reset() { *m = GetAssetsResponse{} }
func (m *GetAssetsResponse) String() string { return proto.CompactTextString(m) }
func (*GetAssetsResponse) ProtoMessage() {}
func (*GetAssetsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_assets_service_5ca971858b0b5c87, []int{4}
}
func (m *GetAssetsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAssetsResponse.Unmarshal(m, b)
}
func (m *GetAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAssetsResponse.Marshal(b, m, deterministic)
}
func (dst *GetAssetsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAssetsResponse.Merge(dst, src)
}
func (m *GetAssetsResponse) XXX_Size() int {
return xxx_messageInfo_GetAssetsResponse.Size(m)
}
func (m *GetAssetsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetAssetsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetAssetsResponse proto.InternalMessageInfo
func (m *GetAssetsResponse) GetAssets() []*Asset {
if m != nil {
return m.Assets
}
return nil
}
func (m *GetAssetsResponse) GetCount() uint64 {
if m != nil {
return m.Count
}
return 0
}
type Empty struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) {
return fileDescriptor_assets_service_5ca971858b0b5c87, []int{5}
}
func (m *Empty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Empty.Unmarshal(m, b)
}
func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
}
func (dst *Empty) XXX_Merge(src proto.Message) {
xxx_messageInfo_Empty.Merge(dst, src)
}
func (m *Empty) XXX_Size() int {
return xxx_messageInfo_Empty.Size(m)
}
func (m *Empty) XXX_DiscardUnknown() {
xxx_messageInfo_Empty.DiscardUnknown(m)
}
var xxx_messageInfo_Empty proto.InternalMessageInfo
func init() {
proto.RegisterType((*GetAssetByIDRequest)(nil), "assetsservice.GetAssetByIDRequest")
proto.RegisterType((*GetAssetByIDResponse)(nil), "assetsservice.GetAssetByIDResponse")
proto.RegisterType((*Asset)(nil), "assetsservice.Asset")
proto.RegisterType((*GetAssetsRequest)(nil), "assetsservice.GetAssetsRequest")
proto.RegisterType((*GetAssetsResponse)(nil), "assetsservice.GetAssetsResponse")
proto.RegisterType((*Empty)(nil), "assetsservice.Empty")
proto.RegisterEnum("assetsservice.GetAssetsRequest_SortCol", GetAssetsRequest_SortCol_name, GetAssetsRequest_SortCol_value)
}
// 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
// AssetsServiceClient is the client API for AssetsService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AssetsServiceClient interface {
GetAssetByID(ctx context.Context, in *GetAssetByIDRequest, opts ...grpc.CallOption) (*GetAssetByIDResponse, error)
GetAssets(ctx context.Context, in *GetAssetsRequest, opts ...grpc.CallOption) (*GetAssetsResponse, error)
}
type assetsServiceClient struct {
cc *grpc.ClientConn
}
func NewAssetsServiceClient(cc *grpc.ClientConn) AssetsServiceClient {
return &assetsServiceClient{cc}
}
func (c *assetsServiceClient) GetAssetByID(ctx context.Context, in *GetAssetByIDRequest, opts ...grpc.CallOption) (*GetAssetByIDResponse, error) {
out := new(GetAssetByIDResponse)
err := c.cc.Invoke(ctx, "/assetsservice.AssetsService/GetAssetByID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *assetsServiceClient) GetAssets(ctx context.Context, in *GetAssetsRequest, opts ...grpc.CallOption) (*GetAssetsResponse, error) {
out := new(GetAssetsResponse)
err := c.cc.Invoke(ctx, "/assetsservice.AssetsService/GetAssets", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AssetsServiceServer is the server API for AssetsService service.
type AssetsServiceServer interface {
GetAssetByID(context.Context, *GetAssetByIDRequest) (*GetAssetByIDResponse, error)
GetAssets(context.Context, *GetAssetsRequest) (*GetAssetsResponse, error)
}
func RegisterAssetsServiceServer(s *grpc.Server, srv AssetsServiceServer) {
s.RegisterService(&_AssetsService_serviceDesc, srv)
}
func _AssetsService_GetAssetByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAssetByIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AssetsServiceServer).GetAssetByID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/assetsservice.AssetsService/GetAssetByID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AssetsServiceServer).GetAssetByID(ctx, req.(*GetAssetByIDRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AssetsService_GetAssets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAssetsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AssetsServiceServer).GetAssets(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/assetsservice.AssetsService/GetAssets",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AssetsServiceServer).GetAssets(ctx, req.(*GetAssetsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _AssetsService_serviceDesc = grpc.ServiceDesc{
ServiceName: "assetsservice.AssetsService",
HandlerType: (*AssetsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAssetByID",
Handler: _AssetsService_GetAssetByID_Handler,
},
{
MethodName: "GetAssets",
Handler: _AssetsService_GetAssets_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "assets_service.proto",
}
func init() {
proto.RegisterFile("assets_service.proto", fileDescriptor_assets_service_5ca971858b0b5c87)
}
var fileDescriptor_assets_service_5ca971858b0b5c87 = []byte{
// 406 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xcd, 0x8a, 0xdb, 0x30,
0x10, 0xae, 0x36, 0xfe, 0xc9, 0xce, 0x26, 0xc5, 0x3b, 0xf5, 0xc1, 0xcd, 0xa5, 0x46, 0x2d, 0x74,
0x29, 0xc5, 0x85, 0xf4, 0xd8, 0x53, 0x62, 0x87, 0x62, 0x28, 0xa1, 0xd8, 0x0d, 0x0b, 0xbd, 0x98,
0x6c, 0x2a, 0x96, 0x85, 0xed, 0x4a, 0x95, 0xb4, 0x85, 0x3c, 0x42, 0xdf, 0xa8, 0xcf, 0xd3, 0x27,
0x29, 0x91, 0x64, 0x63, 0x07, 0xd2, 0xde, 0x34, 0xdf, 0x7c, 0x33, 0xf3, 0x7d, 0x23, 0x09, 0xe2,
0xad, 0x52, 0x4c, 0xab, 0x46, 0x31, 0xf9, 0xf3, 0x6e, 0xc7, 0x32, 0x21, 0xb9, 0xe6, 0x38, 0xb5,
0xa8, 0x03, 0xe9, 0x3b, 0x78, 0xf6, 0x91, 0xe9, 0xc5, 0x01,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