mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-31 00:36:18 +08:00
628 lines
22 KiB
Go
628 lines
22 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: label.proto
|
|
|
|
package api
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type KeyValue struct {
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *KeyValue) Reset() { *m = KeyValue{} }
|
|
func (m *KeyValue) String() string { return proto.CompactTextString(m) }
|
|
func (*KeyValue) ProtoMessage() {}
|
|
func (*KeyValue) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6100d2b5ae808f16, []int{0}
|
|
}
|
|
|
|
func (m *KeyValue) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_KeyValue.Unmarshal(m, b)
|
|
}
|
|
func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *KeyValue) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_KeyValue.Merge(m, src)
|
|
}
|
|
func (m *KeyValue) XXX_Size() int {
|
|
return xxx_messageInfo_KeyValue.Size(m)
|
|
}
|
|
func (m *KeyValue) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_KeyValue.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_KeyValue proto.InternalMessageInfo
|
|
|
|
func (m *KeyValue) GetKey() string {
|
|
if m != nil {
|
|
return m.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *KeyValue) GetValue() string {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Labels struct {
|
|
Items []*KeyValue `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Labels) Reset() { *m = Labels{} }
|
|
func (m *Labels) String() string { return proto.CompactTextString(m) }
|
|
func (*Labels) ProtoMessage() {}
|
|
func (*Labels) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6100d2b5ae808f16, []int{1}
|
|
}
|
|
|
|
func (m *Labels) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Labels.Unmarshal(m, b)
|
|
}
|
|
func (m *Labels) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Labels.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Labels) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Labels.Merge(m, src)
|
|
}
|
|
func (m *Labels) XXX_Size() int {
|
|
return xxx_messageInfo_Labels.Size(m)
|
|
}
|
|
func (m *Labels) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Labels.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Labels proto.InternalMessageInfo
|
|
|
|
func (m *Labels) GetItems() []*KeyValue {
|
|
if m != nil {
|
|
return m.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AddLabelsRequest struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
|
|
Labels *Labels `protobuf:"bytes,4,opt,name=labels,proto3" json:"labels,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AddLabelsRequest) Reset() { *m = AddLabelsRequest{} }
|
|
func (m *AddLabelsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*AddLabelsRequest) ProtoMessage() {}
|
|
func (*AddLabelsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6100d2b5ae808f16, []int{2}
|
|
}
|
|
|
|
func (m *AddLabelsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AddLabelsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *AddLabelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AddLabelsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AddLabelsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AddLabelsRequest.Merge(m, src)
|
|
}
|
|
func (m *AddLabelsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_AddLabelsRequest.Size(m)
|
|
}
|
|
func (m *AddLabelsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AddLabelsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AddLabelsRequest proto.InternalMessageInfo
|
|
|
|
func (m *AddLabelsRequest) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AddLabelsRequest) GetResource() string {
|
|
if m != nil {
|
|
return m.Resource
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AddLabelsRequest) GetUid() string {
|
|
if m != nil {
|
|
return m.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AddLabelsRequest) GetLabels() *Labels {
|
|
if m != nil {
|
|
return m.Labels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReplaceLabelsRequest struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
|
|
Labels *Labels `protobuf:"bytes,4,opt,name=labels,proto3" json:"labels,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReplaceLabelsRequest) Reset() { *m = ReplaceLabelsRequest{} }
|
|
func (m *ReplaceLabelsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ReplaceLabelsRequest) ProtoMessage() {}
|
|
func (*ReplaceLabelsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6100d2b5ae808f16, []int{3}
|
|
}
|
|
|
|
func (m *ReplaceLabelsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReplaceLabelsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ReplaceLabelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReplaceLabelsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ReplaceLabelsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReplaceLabelsRequest.Merge(m, src)
|
|
}
|
|
func (m *ReplaceLabelsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ReplaceLabelsRequest.Size(m)
|
|
}
|
|
func (m *ReplaceLabelsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReplaceLabelsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReplaceLabelsRequest proto.InternalMessageInfo
|
|
|
|
func (m *ReplaceLabelsRequest) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReplaceLabelsRequest) GetResource() string {
|
|
if m != nil {
|
|
return m.Resource
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReplaceLabelsRequest) GetUid() string {
|
|
if m != nil {
|
|
return m.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReplaceLabelsRequest) GetLabels() *Labels {
|
|
if m != nil {
|
|
return m.Labels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetLabelsRequest struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetLabelsRequest) Reset() { *m = GetLabelsRequest{} }
|
|
func (m *GetLabelsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetLabelsRequest) ProtoMessage() {}
|
|
func (*GetLabelsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6100d2b5ae808f16, []int{4}
|
|
}
|
|
|
|
func (m *GetLabelsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetLabelsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *GetLabelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetLabelsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetLabelsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetLabelsRequest.Merge(m, src)
|
|
}
|
|
func (m *GetLabelsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_GetLabelsRequest.Size(m)
|
|
}
|
|
func (m *GetLabelsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetLabelsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetLabelsRequest proto.InternalMessageInfo
|
|
|
|
func (m *GetLabelsRequest) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetLabelsRequest) GetResource() string {
|
|
if m != nil {
|
|
return m.Resource
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetLabelsRequest) GetUid() string {
|
|
if m != nil {
|
|
return m.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetLabelsResponse struct {
|
|
Labels []*KeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetLabelsResponse) Reset() { *m = GetLabelsResponse{} }
|
|
func (m *GetLabelsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetLabelsResponse) ProtoMessage() {}
|
|
func (*GetLabelsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6100d2b5ae808f16, []int{5}
|
|
}
|
|
|
|
func (m *GetLabelsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetLabelsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *GetLabelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetLabelsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetLabelsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetLabelsResponse.Merge(m, src)
|
|
}
|
|
func (m *GetLabelsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_GetLabelsResponse.Size(m)
|
|
}
|
|
func (m *GetLabelsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetLabelsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetLabelsResponse proto.InternalMessageInfo
|
|
|
|
func (m *GetLabelsResponse) GetLabels() []*KeyValue {
|
|
if m != nil {
|
|
return m.Labels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteLabelRequest struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
|
|
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeleteLabelRequest) Reset() { *m = DeleteLabelRequest{} }
|
|
func (m *DeleteLabelRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteLabelRequest) ProtoMessage() {}
|
|
func (*DeleteLabelRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6100d2b5ae808f16, []int{6}
|
|
}
|
|
|
|
func (m *DeleteLabelRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeleteLabelRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *DeleteLabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeleteLabelRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DeleteLabelRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeleteLabelRequest.Merge(m, src)
|
|
}
|
|
func (m *DeleteLabelRequest) XXX_Size() int {
|
|
return xxx_messageInfo_DeleteLabelRequest.Size(m)
|
|
}
|
|
func (m *DeleteLabelRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeleteLabelRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeleteLabelRequest proto.InternalMessageInfo
|
|
|
|
func (m *DeleteLabelRequest) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteLabelRequest) GetResource() string {
|
|
if m != nil {
|
|
return m.Resource
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteLabelRequest) GetUid() string {
|
|
if m != nil {
|
|
return m.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteLabelRequest) GetKey() string {
|
|
if m != nil {
|
|
return m.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*KeyValue)(nil), "api.KeyValue")
|
|
proto.RegisterType((*Labels)(nil), "api.Labels")
|
|
proto.RegisterType((*AddLabelsRequest)(nil), "api.AddLabelsRequest")
|
|
proto.RegisterType((*ReplaceLabelsRequest)(nil), "api.ReplaceLabelsRequest")
|
|
proto.RegisterType((*GetLabelsRequest)(nil), "api.GetLabelsRequest")
|
|
proto.RegisterType((*GetLabelsResponse)(nil), "api.GetLabelsResponse")
|
|
proto.RegisterType((*DeleteLabelRequest)(nil), "api.DeleteLabelRequest")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("label.proto", fileDescriptor_6100d2b5ae808f16) }
|
|
|
|
var fileDescriptor_6100d2b5ae808f16 = []byte{
|
|
// 434 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 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, 0xf6, 0x59, 0x70, 0x7b, 0xec,
|
|
0x69, 0xbb, 0x7a, 0xfc, 0xec, 0xc0, 0xfe, 0x6f, 0x01, 0xc5, 0x87, 0x06, 0x76, 0x5d, 0x68, 0xff,
|
|
0xe6, 0xe1, 0xff, 0x83, 0xc7, 0x07, 0x70, 0xaf, 0x44, 0x00, 0x1f, 0x18, 0xd2, 0x9f, 0xa1, 0xb8,
|
|
0x51, 0xe1, 0xb9, 0x51, 0x38, 0x79, 0xfc, 0xf4, 0xd6, 0x0a, 0xac, 0xba, 0xa0, 0x75, 0xbd, 0x1c,
|
|
0x99, 0x2f, 0xd3, 0xf1, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x89, 0xee, 0x20, 0xcb, 0x04,
|
|
0x00, 0x00,
|
|
}
|
|
|
|
// 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
|
|
|
|
// LabelServiceClient is the client API for LabelService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type LabelServiceClient interface {
|
|
GetLabels(ctx context.Context, in *GetLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error)
|
|
AddLabels(ctx context.Context, in *AddLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error)
|
|
ReplaceLabels(ctx context.Context, in *ReplaceLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error)
|
|
DeleteLabel(ctx context.Context, in *DeleteLabelRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error)
|
|
}
|
|
|
|
type labelServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewLabelServiceClient(cc *grpc.ClientConn) LabelServiceClient {
|
|
return &labelServiceClient{cc}
|
|
}
|
|
|
|
func (c *labelServiceClient) GetLabels(ctx context.Context, in *GetLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error) {
|
|
out := new(GetLabelsResponse)
|
|
err := c.cc.Invoke(ctx, "/api.LabelService/GetLabels", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *labelServiceClient) AddLabels(ctx context.Context, in *AddLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error) {
|
|
out := new(GetLabelsResponse)
|
|
err := c.cc.Invoke(ctx, "/api.LabelService/AddLabels", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *labelServiceClient) ReplaceLabels(ctx context.Context, in *ReplaceLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error) {
|
|
out := new(GetLabelsResponse)
|
|
err := c.cc.Invoke(ctx, "/api.LabelService/ReplaceLabels", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *labelServiceClient) DeleteLabel(ctx context.Context, in *DeleteLabelRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error) {
|
|
out := new(GetLabelsResponse)
|
|
err := c.cc.Invoke(ctx, "/api.LabelService/DeleteLabel", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// LabelServiceServer is the server API for LabelService service.
|
|
type LabelServiceServer interface {
|
|
GetLabels(context.Context, *GetLabelsRequest) (*GetLabelsResponse, error)
|
|
AddLabels(context.Context, *AddLabelsRequest) (*GetLabelsResponse, error)
|
|
ReplaceLabels(context.Context, *ReplaceLabelsRequest) (*GetLabelsResponse, error)
|
|
DeleteLabel(context.Context, *DeleteLabelRequest) (*GetLabelsResponse, error)
|
|
}
|
|
|
|
// UnimplementedLabelServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedLabelServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedLabelServiceServer) GetLabels(ctx context.Context, req *GetLabelsRequest) (*GetLabelsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetLabels not implemented")
|
|
}
|
|
func (*UnimplementedLabelServiceServer) AddLabels(ctx context.Context, req *AddLabelsRequest) (*GetLabelsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method AddLabels not implemented")
|
|
}
|
|
func (*UnimplementedLabelServiceServer) ReplaceLabels(ctx context.Context, req *ReplaceLabelsRequest) (*GetLabelsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReplaceLabels not implemented")
|
|
}
|
|
func (*UnimplementedLabelServiceServer) DeleteLabel(ctx context.Context, req *DeleteLabelRequest) (*GetLabelsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteLabel not implemented")
|
|
}
|
|
|
|
func RegisterLabelServiceServer(s *grpc.Server, srv LabelServiceServer) {
|
|
s.RegisterService(&_LabelService_serviceDesc, srv)
|
|
}
|
|
|
|
func _LabelService_GetLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetLabelsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(LabelServiceServer).GetLabels(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.LabelService/GetLabels",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(LabelServiceServer).GetLabels(ctx, req.(*GetLabelsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _LabelService_AddLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AddLabelsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(LabelServiceServer).AddLabels(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.LabelService/AddLabels",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(LabelServiceServer).AddLabels(ctx, req.(*AddLabelsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _LabelService_ReplaceLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ReplaceLabelsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(LabelServiceServer).ReplaceLabels(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.LabelService/ReplaceLabels",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(LabelServiceServer).ReplaceLabels(ctx, req.(*ReplaceLabelsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _LabelService_DeleteLabel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DeleteLabelRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(LabelServiceServer).DeleteLabel(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.LabelService/DeleteLabel",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(LabelServiceServer).DeleteLabel(ctx, req.(*DeleteLabelRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _LabelService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "api.LabelService",
|
|
HandlerType: (*LabelServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetLabels",
|
|
Handler: _LabelService_GetLabels_Handler,
|
|
},
|
|
{
|
|
MethodName: "AddLabels",
|
|
Handler: _LabelService_AddLabels_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReplaceLabels",
|
|
Handler: _LabelService_ReplaceLabels_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeleteLabel",
|
|
Handler: _LabelService_DeleteLabel_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "label.proto",
|
|
}
|