mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-04 05:16:24 +08:00
391 lines
13 KiB
Go
391 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: label.proto
|
|
|
|
package api
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
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"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Labels *Labels `protobuf:"bytes,3,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) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
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"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Labels *Labels `protobuf:"bytes,3,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) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
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"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,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) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
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"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Key string `protobuf:"bytes,3,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) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
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{
|
|
// 247 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x92, 0x3f, 0x4f, 0xc3, 0x30,
|
|
0x10, 0xc5, 0x15, 0x4c, 0x23, 0x7a, 0x11, 0x52, 0x38, 0x75, 0xf0, 0xc0, 0x10, 0xb9, 0x42, 0xca,
|
|
0x42, 0x86, 0xb0, 0xb1, 0x21, 0x55, 0x62, 0x80, 0xc9, 0x03, 0x62, 0x75, 0xdb, 0x1b, 0x2c, 0x9c,
|
|
0xc6, 0x60, 0x17, 0xa9, 0xdf, 0x1e, 0xf9, 0x4f, 0x03, 0x03, 0x13, 0x48, 0xdd, 0xee, 0xee, 0xc9,
|
|
0xef, 0x77, 0xe7, 0x3b, 0xa8, 0x8c, 0x5a, 0x93, 0xe9, 0xec, 0xc7, 0xe8, 0x47, 0x64, 0xca, 0x6a,
|
|
0xd1, 0xc3, 0xc5, 0x13, 0x1d, 0x5e, 0x94, 0xd9, 0x13, 0xd6, 0xc0, 0xde, 0xe8, 0xc0, 0x8b, 0xa6,
|
|
0x68, 0xe7, 0x32, 0x84, 0xb8, 0x80, 0xd9, 0x67, 0x90, 0xf8, 0x59, 0xac, 0xa5, 0x44, 0xdc, 0x42,
|
|
0xf9, 0x1c, 0x7c, 0x1c, 0x2e, 0x61, 0xa6, 0x3d, 0x0d, 0x8e, 0x17, 0x0d, 0x6b, 0xab, 0xfe, 0xb2,
|
|
0x53, 0x56, 0x77, 0x47, 0x3f, 0x99, 0x34, 0xa1, 0xa1, 0x7e, 0xd8, 0x6e, 0xd3, 0x0b, 0x49, 0xef,
|
|
0x7b, 0x72, 0x1e, 0xaf, 0x61, 0xbe, 0x53, 0x03, 0x39, 0xab, 0x36, 0x94, 0x81, 0xdf, 0x05, 0x44,
|
|
0x38, 0x0f, 0x49, 0xa6, 0xc6, 0x18, 0x97, 0x50, 0xc6, 0xe6, 0x1d, 0x67, 0x4d, 0xd1, 0x56, 0x7d,
|
|
0x15, 0x59, 0xd9, 0x35, 0x4b, 0x62, 0x80, 0x85, 0x24, 0x6b, 0xd4, 0x86, 0x4e, 0x82, 0x5b, 0x41,
|
|
0xfd, 0x48, 0xfe, 0x9f, 0x28, 0x71, 0x0f, 0x57, 0x3f, 0x5c, 0x9c, 0x1d, 0x77, 0x8e, 0xf0, 0x66,
|
|
0xe2, 0xff, 0xfa, 0xb5, 0xc7, 0x0e, 0x5e, 0x01, 0x57, 0x64, 0xc8, 0xa7, 0x79, 0xff, 0x3e, 0x6e,
|
|
0x5e, 0x3d, 0x9b, 0x56, 0xbf, 0x2e, 0xe3, 0x91, 0xdc, 0x7d, 0x05, 0x00, 0x00, 0xff, 0xff, 0xef,
|
|
0xc9, 0xad, 0xce, 0x33, 0x02, 0x00, 0x00,
|
|
}
|