mirror of
				https://github.com/onepanelio/onepanel.git
				synced 2025-10-31 08:46:20 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			880 lines
		
	
	
		
			30 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			880 lines
		
	
	
		
			30 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | |
| // versions:
 | |
| // 	protoc-gen-go v1.22.0
 | |
| // 	protoc        v3.11.4
 | |
| // source: label.proto
 | |
| 
 | |
| package api
 | |
| 
 | |
| import (
 | |
| 	context "context"
 | |
| 	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"
 | |
| 	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | |
| 	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | |
| 	reflect "reflect"
 | |
| 	sync "sync"
 | |
| )
 | |
| 
 | |
| const (
 | |
| 	// Verify that this generated code is sufficiently up-to-date.
 | |
| 	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
 | |
| 	// Verify that runtime/protoimpl is sufficiently up-to-date.
 | |
| 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 | |
| )
 | |
| 
 | |
| // This is a compile-time assertion that a sufficiently up-to-date version
 | |
| // of the legacy proto package is being used.
 | |
| const _ = proto.ProtoPackageIsVersion4
 | |
| 
 | |
| type KeyValue struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
 | |
| 	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *KeyValue) Reset() {
 | |
| 	*x = KeyValue{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_label_proto_msgTypes[0]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *KeyValue) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*KeyValue) ProtoMessage() {}
 | |
| 
 | |
| func (x *KeyValue) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_label_proto_msgTypes[0]
 | |
| 	if protoimpl.UnsafeEnabled && x != nil {
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		if ms.LoadMessageInfo() == nil {
 | |
| 			ms.StoreMessageInfo(mi)
 | |
| 		}
 | |
| 		return ms
 | |
| 	}
 | |
| 	return mi.MessageOf(x)
 | |
| }
 | |
| 
 | |
| // Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.
 | |
| func (*KeyValue) Descriptor() ([]byte, []int) {
 | |
| 	return file_label_proto_rawDescGZIP(), []int{0}
 | |
| }
 | |
| 
 | |
| func (x *KeyValue) GetKey() string {
 | |
| 	if x != nil {
 | |
| 		return x.Key
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *KeyValue) GetValue() string {
 | |
| 	if x != nil {
 | |
| 		return x.Value
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| type Labels struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Items []*KeyValue `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *Labels) Reset() {
 | |
| 	*x = Labels{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_label_proto_msgTypes[1]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *Labels) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*Labels) ProtoMessage() {}
 | |
| 
 | |
| func (x *Labels) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_label_proto_msgTypes[1]
 | |
| 	if protoimpl.UnsafeEnabled && x != nil {
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		if ms.LoadMessageInfo() == nil {
 | |
| 			ms.StoreMessageInfo(mi)
 | |
| 		}
 | |
| 		return ms
 | |
| 	}
 | |
| 	return mi.MessageOf(x)
 | |
| }
 | |
| 
 | |
| // Deprecated: Use Labels.ProtoReflect.Descriptor instead.
 | |
| func (*Labels) Descriptor() ([]byte, []int) {
 | |
| 	return file_label_proto_rawDescGZIP(), []int{1}
 | |
| }
 | |
| 
 | |
| func (x *Labels) GetItems() []*KeyValue {
 | |
| 	if x != nil {
 | |
| 		return x.Items
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type AddLabelsRequest struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	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"`
 | |
| }
 | |
| 
 | |
| func (x *AddLabelsRequest) Reset() {
 | |
| 	*x = AddLabelsRequest{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_label_proto_msgTypes[2]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *AddLabelsRequest) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*AddLabelsRequest) ProtoMessage() {}
 | |
| 
 | |
| func (x *AddLabelsRequest) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_label_proto_msgTypes[2]
 | |
| 	if protoimpl.UnsafeEnabled && x != nil {
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		if ms.LoadMessageInfo() == nil {
 | |
| 			ms.StoreMessageInfo(mi)
 | |
| 		}
 | |
| 		return ms
 | |
| 	}
 | |
| 	return mi.MessageOf(x)
 | |
| }
 | |
| 
 | |
| // Deprecated: Use AddLabelsRequest.ProtoReflect.Descriptor instead.
 | |
| func (*AddLabelsRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_label_proto_rawDescGZIP(), []int{2}
 | |
| }
 | |
| 
 | |
| func (x *AddLabelsRequest) GetNamespace() string {
 | |
| 	if x != nil {
 | |
| 		return x.Namespace
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *AddLabelsRequest) GetResource() string {
 | |
| 	if x != nil {
 | |
| 		return x.Resource
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *AddLabelsRequest) GetUid() string {
 | |
| 	if x != nil {
 | |
| 		return x.Uid
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *AddLabelsRequest) GetLabels() *Labels {
 | |
| 	if x != nil {
 | |
| 		return x.Labels
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type ReplaceLabelsRequest struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	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"`
 | |
| }
 | |
| 
 | |
| func (x *ReplaceLabelsRequest) Reset() {
 | |
| 	*x = ReplaceLabelsRequest{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_label_proto_msgTypes[3]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *ReplaceLabelsRequest) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*ReplaceLabelsRequest) ProtoMessage() {}
 | |
| 
 | |
| func (x *ReplaceLabelsRequest) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_label_proto_msgTypes[3]
 | |
| 	if protoimpl.UnsafeEnabled && x != nil {
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		if ms.LoadMessageInfo() == nil {
 | |
| 			ms.StoreMessageInfo(mi)
 | |
| 		}
 | |
| 		return ms
 | |
| 	}
 | |
| 	return mi.MessageOf(x)
 | |
| }
 | |
| 
 | |
| // Deprecated: Use ReplaceLabelsRequest.ProtoReflect.Descriptor instead.
 | |
| func (*ReplaceLabelsRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_label_proto_rawDescGZIP(), []int{3}
 | |
| }
 | |
| 
 | |
| func (x *ReplaceLabelsRequest) GetNamespace() string {
 | |
| 	if x != nil {
 | |
| 		return x.Namespace
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *ReplaceLabelsRequest) GetResource() string {
 | |
| 	if x != nil {
 | |
| 		return x.Resource
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *ReplaceLabelsRequest) GetUid() string {
 | |
| 	if x != nil {
 | |
| 		return x.Uid
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *ReplaceLabelsRequest) GetLabels() *Labels {
 | |
| 	if x != nil {
 | |
| 		return x.Labels
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type GetLabelsRequest struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	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"`
 | |
| }
 | |
| 
 | |
| func (x *GetLabelsRequest) Reset() {
 | |
| 	*x = GetLabelsRequest{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_label_proto_msgTypes[4]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *GetLabelsRequest) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*GetLabelsRequest) ProtoMessage() {}
 | |
| 
 | |
| func (x *GetLabelsRequest) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_label_proto_msgTypes[4]
 | |
| 	if protoimpl.UnsafeEnabled && x != nil {
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		if ms.LoadMessageInfo() == nil {
 | |
| 			ms.StoreMessageInfo(mi)
 | |
| 		}
 | |
| 		return ms
 | |
| 	}
 | |
| 	return mi.MessageOf(x)
 | |
| }
 | |
| 
 | |
| // Deprecated: Use GetLabelsRequest.ProtoReflect.Descriptor instead.
 | |
| func (*GetLabelsRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_label_proto_rawDescGZIP(), []int{4}
 | |
| }
 | |
| 
 | |
| func (x *GetLabelsRequest) GetNamespace() string {
 | |
| 	if x != nil {
 | |
| 		return x.Namespace
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *GetLabelsRequest) GetResource() string {
 | |
| 	if x != nil {
 | |
| 		return x.Resource
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *GetLabelsRequest) GetUid() string {
 | |
| 	if x != nil {
 | |
| 		return x.Uid
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| type GetLabelsResponse struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Labels []*KeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *GetLabelsResponse) Reset() {
 | |
| 	*x = GetLabelsResponse{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_label_proto_msgTypes[5]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *GetLabelsResponse) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*GetLabelsResponse) ProtoMessage() {}
 | |
| 
 | |
| func (x *GetLabelsResponse) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_label_proto_msgTypes[5]
 | |
| 	if protoimpl.UnsafeEnabled && x != nil {
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		if ms.LoadMessageInfo() == nil {
 | |
| 			ms.StoreMessageInfo(mi)
 | |
| 		}
 | |
| 		return ms
 | |
| 	}
 | |
| 	return mi.MessageOf(x)
 | |
| }
 | |
| 
 | |
| // Deprecated: Use GetLabelsResponse.ProtoReflect.Descriptor instead.
 | |
| func (*GetLabelsResponse) Descriptor() ([]byte, []int) {
 | |
| 	return file_label_proto_rawDescGZIP(), []int{5}
 | |
| }
 | |
| 
 | |
| func (x *GetLabelsResponse) GetLabels() []*KeyValue {
 | |
| 	if x != nil {
 | |
| 		return x.Labels
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type DeleteLabelRequest struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	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"`
 | |
| }
 | |
| 
 | |
| func (x *DeleteLabelRequest) Reset() {
 | |
| 	*x = DeleteLabelRequest{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_label_proto_msgTypes[6]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *DeleteLabelRequest) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*DeleteLabelRequest) ProtoMessage() {}
 | |
| 
 | |
| func (x *DeleteLabelRequest) ProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_label_proto_msgTypes[6]
 | |
| 	if protoimpl.UnsafeEnabled && x != nil {
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		if ms.LoadMessageInfo() == nil {
 | |
| 			ms.StoreMessageInfo(mi)
 | |
| 		}
 | |
| 		return ms
 | |
| 	}
 | |
| 	return mi.MessageOf(x)
 | |
| }
 | |
| 
 | |
| // Deprecated: Use DeleteLabelRequest.ProtoReflect.Descriptor instead.
 | |
| func (*DeleteLabelRequest) Descriptor() ([]byte, []int) {
 | |
| 	return file_label_proto_rawDescGZIP(), []int{6}
 | |
| }
 | |
| 
 | |
| func (x *DeleteLabelRequest) GetNamespace() string {
 | |
| 	if x != nil {
 | |
| 		return x.Namespace
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *DeleteLabelRequest) GetResource() string {
 | |
| 	if x != nil {
 | |
| 		return x.Resource
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *DeleteLabelRequest) GetUid() string {
 | |
| 	if x != nil {
 | |
| 		return x.Uid
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *DeleteLabelRequest) GetKey() string {
 | |
| 	if x != nil {
 | |
| 		return x.Key
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| var File_label_proto protoreflect.FileDescriptor
 | |
| 
 | |
| var file_label_proto_rawDesc = []byte{
 | |
| 	0x0a, 0x0b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61,
 | |
| 	0x70, 0x69, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
 | |
| 	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
 | |
| 	0x22, 0x32, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03,
 | |
| 	0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
 | |
| 	0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
 | |
| 	0x61, 0x6c, 0x75, 0x65, 0x22, 0x2d, 0x0a, 0x06, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x23,
 | |
| 	0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
 | |
| 	0x61, 0x70, 0x69, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x74,
 | |
| 	0x65, 0x6d, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c,
 | |
| 	0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65,
 | |
| 	0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d,
 | |
| 	0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
 | |
| 	0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
 | |
| 	0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
 | |
| 	0x03, 0x75, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04,
 | |
| 	0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c,
 | |
| 	0x73, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, 0x87, 0x01, 0x0a, 0x14, 0x52, 0x65,
 | |
| 	0x70, 0x6c, 0x61, 0x63, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
 | |
| 	0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18,
 | |
| 	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
 | |
| 	0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
 | |
| 	0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03,
 | |
| 	0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x23,
 | |
| 	0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b,
 | |
| 	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x06, 0x6c, 0x61, 0x62,
 | |
| 	0x65, 0x6c, 0x73, 0x22, 0x5e, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
 | |
| 	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73,
 | |
| 	0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65,
 | |
| 	0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
 | |
| 	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
 | |
| 	0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
 | |
| 	0x75, 0x69, 0x64, 0x22, 0x3a, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
 | |
| 	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65,
 | |
| 	0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4b,
 | |
| 	0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22,
 | |
| 	0x72, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65,
 | |
| 	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
 | |
| 	0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
 | |
| 	0x61, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18,
 | |
| 	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
 | |
| 	0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69,
 | |
| 	0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
 | |
| 	0x6b, 0x65, 0x79, 0x32, 0x8d, 0x04, 0x0a, 0x0c, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x72,
 | |
| 	0x76, 0x69, 0x63, 0x65, 0x12, 0x75, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c,
 | |
| 	0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c,
 | |
| 	0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47,
 | |
| 	0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
 | |
| 	0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f,
 | |
| 	0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
 | |
| 	0x63, 0x65, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x7b,
 | |
| 	0x75, 0x69, 0x64, 0x7d, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x7d, 0x0a, 0x09, 0x41,
 | |
| 	0x64, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x41,
 | |
| 	0x64, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
 | |
| 	0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52,
 | |
| 	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x22,
 | |
| 	0x31, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b,
 | |
| 	0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f,
 | |
| 	0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x7b, 0x75, 0x69, 0x64, 0x7d, 0x2f, 0x6c, 0x61, 0x62, 0x65,
 | |
| 	0x6c, 0x73, 0x3a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x0d, 0x52,
 | |
| 	0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x19, 0x2e, 0x61,
 | |
| 	0x70, 0x69, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
 | |
| 	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x65,
 | |
| 	0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
 | |
| 	0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x1a, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76,
 | |
| 	0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63,
 | |
| 	0x65, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x7b, 0x75,
 | |
| 	0x69, 0x64, 0x7d, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x3a, 0x06, 0x6c, 0x61, 0x62, 0x65,
 | |
| 	0x6c, 0x73, 0x12, 0x7f, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65,
 | |
| 	0x6c, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x61,
 | |
| 	0x62, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69,
 | |
| 	0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
 | |
| 	0x73, 0x65, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x2a, 0x37, 0x2f, 0x61, 0x70, 0x69,
 | |
| 	0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x73,
 | |
| 	0x70, 0x61, 0x63, 0x65, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d,
 | |
| 	0x2f, 0x7b, 0x75, 0x69, 0x64, 0x7d, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2f, 0x7b, 0x6b,
 | |
| 	0x65, 0x79, 0x7d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	file_label_proto_rawDescOnce sync.Once
 | |
| 	file_label_proto_rawDescData = file_label_proto_rawDesc
 | |
| )
 | |
| 
 | |
| func file_label_proto_rawDescGZIP() []byte {
 | |
| 	file_label_proto_rawDescOnce.Do(func() {
 | |
| 		file_label_proto_rawDescData = protoimpl.X.CompressGZIP(file_label_proto_rawDescData)
 | |
| 	})
 | |
| 	return file_label_proto_rawDescData
 | |
| }
 | |
| 
 | |
| var file_label_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
 | |
| var file_label_proto_goTypes = []interface{}{
 | |
| 	(*KeyValue)(nil),             // 0: api.KeyValue
 | |
| 	(*Labels)(nil),               // 1: api.Labels
 | |
| 	(*AddLabelsRequest)(nil),     // 2: api.AddLabelsRequest
 | |
| 	(*ReplaceLabelsRequest)(nil), // 3: api.ReplaceLabelsRequest
 | |
| 	(*GetLabelsRequest)(nil),     // 4: api.GetLabelsRequest
 | |
| 	(*GetLabelsResponse)(nil),    // 5: api.GetLabelsResponse
 | |
| 	(*DeleteLabelRequest)(nil),   // 6: api.DeleteLabelRequest
 | |
| }
 | |
| var file_label_proto_depIdxs = []int32{
 | |
| 	0, // 0: api.Labels.items:type_name -> api.KeyValue
 | |
| 	1, // 1: api.AddLabelsRequest.labels:type_name -> api.Labels
 | |
| 	1, // 2: api.ReplaceLabelsRequest.labels:type_name -> api.Labels
 | |
| 	0, // 3: api.GetLabelsResponse.labels:type_name -> api.KeyValue
 | |
| 	4, // 4: api.LabelService.GetLabels:input_type -> api.GetLabelsRequest
 | |
| 	2, // 5: api.LabelService.AddLabels:input_type -> api.AddLabelsRequest
 | |
| 	3, // 6: api.LabelService.ReplaceLabels:input_type -> api.ReplaceLabelsRequest
 | |
| 	6, // 7: api.LabelService.DeleteLabel:input_type -> api.DeleteLabelRequest
 | |
| 	5, // 8: api.LabelService.GetLabels:output_type -> api.GetLabelsResponse
 | |
| 	5, // 9: api.LabelService.AddLabels:output_type -> api.GetLabelsResponse
 | |
| 	5, // 10: api.LabelService.ReplaceLabels:output_type -> api.GetLabelsResponse
 | |
| 	5, // 11: api.LabelService.DeleteLabel:output_type -> api.GetLabelsResponse
 | |
| 	8, // [8:12] is the sub-list for method output_type
 | |
| 	4, // [4:8] is the sub-list for method input_type
 | |
| 	4, // [4:4] is the sub-list for extension type_name
 | |
| 	4, // [4:4] is the sub-list for extension extendee
 | |
| 	0, // [0:4] is the sub-list for field type_name
 | |
| }
 | |
| 
 | |
| func init() { file_label_proto_init() }
 | |
| func file_label_proto_init() {
 | |
| 	if File_label_proto != nil {
 | |
| 		return
 | |
| 	}
 | |
| 	if !protoimpl.UnsafeEnabled {
 | |
| 		file_label_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*KeyValue); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_label_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*Labels); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_label_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*AddLabelsRequest); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_label_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*ReplaceLabelsRequest); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_label_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*GetLabelsRequest); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_label_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*GetLabelsResponse); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_label_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*DeleteLabelRequest); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| 	type x struct{}
 | |
| 	out := protoimpl.TypeBuilder{
 | |
| 		File: protoimpl.DescBuilder{
 | |
| 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 | |
| 			RawDescriptor: file_label_proto_rawDesc,
 | |
| 			NumEnums:      0,
 | |
| 			NumMessages:   7,
 | |
| 			NumExtensions: 0,
 | |
| 			NumServices:   1,
 | |
| 		},
 | |
| 		GoTypes:           file_label_proto_goTypes,
 | |
| 		DependencyIndexes: file_label_proto_depIdxs,
 | |
| 		MessageInfos:      file_label_proto_msgTypes,
 | |
| 	}.Build()
 | |
| 	File_label_proto = out.File
 | |
| 	file_label_proto_rawDesc = nil
 | |
| 	file_label_proto_goTypes = nil
 | |
| 	file_label_proto_depIdxs = nil
 | |
| }
 | |
| 
 | |
| // Reference imports to suppress errors if they are not otherwise used.
 | |
| var _ context.Context
 | |
| var _ grpc.ClientConnInterface
 | |
| 
 | |
| // 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.SupportPackageIsVersion6
 | |
| 
 | |
| // 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.ClientConnInterface
 | |
| }
 | |
| 
 | |
| func NewLabelServiceClient(cc grpc.ClientConnInterface) 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(context.Context, *GetLabelsRequest) (*GetLabelsResponse, error) {
 | |
| 	return nil, status.Errorf(codes.Unimplemented, "method GetLabels not implemented")
 | |
| }
 | |
| func (*UnimplementedLabelServiceServer) AddLabels(context.Context, *AddLabelsRequest) (*GetLabelsResponse, error) {
 | |
| 	return nil, status.Errorf(codes.Unimplemented, "method AddLabels not implemented")
 | |
| }
 | |
| func (*UnimplementedLabelServiceServer) ReplaceLabels(context.Context, *ReplaceLabelsRequest) (*GetLabelsResponse, error) {
 | |
| 	return nil, status.Errorf(codes.Unimplemented, "method ReplaceLabels not implemented")
 | |
| }
 | |
| func (*UnimplementedLabelServiceServer) DeleteLabel(context.Context, *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",
 | |
| }
 | 
