pipelines/backend/api/go_client/resource_reference.pb.go

231 lines
8.2 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: backend/api/resource_reference.proto
package go_client
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 ResourceType int32
const (
ResourceType_UNKNOWN_RESOURCE_TYPE ResourceType = 0
ResourceType_EXPERIMENT ResourceType = 1
ResourceType_JOB ResourceType = 2
ResourceType_PIPELINE ResourceType = 3
ResourceType_PIPELINE_VERSION ResourceType = 4
ResourceType_NAMESPACE ResourceType = 5
)
var ResourceType_name = map[int32]string{
0: "UNKNOWN_RESOURCE_TYPE",
1: "EXPERIMENT",
2: "JOB",
3: "PIPELINE",
4: "PIPELINE_VERSION",
5: "NAMESPACE",
}
var ResourceType_value = map[string]int32{
"UNKNOWN_RESOURCE_TYPE": 0,
"EXPERIMENT": 1,
"JOB": 2,
"PIPELINE": 3,
"PIPELINE_VERSION": 4,
"NAMESPACE": 5,
}
func (x ResourceType) String() string {
return proto.EnumName(ResourceType_name, int32(x))
}
func (ResourceType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_465b210f45a041b3, []int{0}
}
type Relationship int32
const (
Relationship_UNKNOWN_RELATIONSHIP Relationship = 0
Relationship_OWNER Relationship = 1
Relationship_CREATOR Relationship = 2
)
var Relationship_name = map[int32]string{
0: "UNKNOWN_RELATIONSHIP",
1: "OWNER",
2: "CREATOR",
}
var Relationship_value = map[string]int32{
"UNKNOWN_RELATIONSHIP": 0,
"OWNER": 1,
"CREATOR": 2,
}
func (x Relationship) String() string {
return proto.EnumName(Relationship_name, int32(x))
}
func (Relationship) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_465b210f45a041b3, []int{1}
}
type ResourceKey struct {
// The type of the resource that referred to.
Type ResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=api.ResourceType" json:"type,omitempty"`
// The ID of the resource that referred to.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResourceKey) Reset() { *m = ResourceKey{} }
func (m *ResourceKey) String() string { return proto.CompactTextString(m) }
func (*ResourceKey) ProtoMessage() {}
func (*ResourceKey) Descriptor() ([]byte, []int) {
return fileDescriptor_465b210f45a041b3, []int{0}
}
func (m *ResourceKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResourceKey.Unmarshal(m, b)
}
func (m *ResourceKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResourceKey.Marshal(b, m, deterministic)
}
func (m *ResourceKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResourceKey.Merge(m, src)
}
func (m *ResourceKey) XXX_Size() int {
return xxx_messageInfo_ResourceKey.Size(m)
}
func (m *ResourceKey) XXX_DiscardUnknown() {
xxx_messageInfo_ResourceKey.DiscardUnknown(m)
}
var xxx_messageInfo_ResourceKey proto.InternalMessageInfo
func (m *ResourceKey) GetType() ResourceType {
if m != nil {
return m.Type
}
return ResourceType_UNKNOWN_RESOURCE_TYPE
}
func (m *ResourceKey) GetId() string {
if m != nil {
return m.Id
}
return ""
}
type ResourceReference struct {
Key *ResourceKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The name of the resource that referred to.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Required field. The relationship from referred resource to the object.
Relationship Relationship `protobuf:"varint,2,opt,name=relationship,proto3,enum=api.Relationship" json:"relationship,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResourceReference) Reset() { *m = ResourceReference{} }
func (m *ResourceReference) String() string { return proto.CompactTextString(m) }
func (*ResourceReference) ProtoMessage() {}
func (*ResourceReference) Descriptor() ([]byte, []int) {
return fileDescriptor_465b210f45a041b3, []int{1}
}
func (m *ResourceReference) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResourceReference.Unmarshal(m, b)
}
func (m *ResourceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResourceReference.Marshal(b, m, deterministic)
}
func (m *ResourceReference) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResourceReference.Merge(m, src)
}
func (m *ResourceReference) XXX_Size() int {
return xxx_messageInfo_ResourceReference.Size(m)
}
func (m *ResourceReference) XXX_DiscardUnknown() {
xxx_messageInfo_ResourceReference.DiscardUnknown(m)
}
var xxx_messageInfo_ResourceReference proto.InternalMessageInfo
func (m *ResourceReference) GetKey() *ResourceKey {
if m != nil {
return m.Key
}
return nil
}
func (m *ResourceReference) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ResourceReference) GetRelationship() Relationship {
if m != nil {
return m.Relationship
}
return Relationship_UNKNOWN_RELATIONSHIP
}
func init() {
proto.RegisterEnum("api.ResourceType", ResourceType_name, ResourceType_value)
proto.RegisterEnum("api.Relationship", Relationship_name, Relationship_value)
proto.RegisterType((*ResourceKey)(nil), "api.ResourceKey")
proto.RegisterType((*ResourceReference)(nil), "api.ResourceReference")
}
func init() {
proto.RegisterFile("backend/api/resource_reference.proto", fileDescriptor_465b210f45a041b3)
}
var fileDescriptor_465b210f45a041b3 = []byte{
// 366 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xc1, 0x6b, 0x9c, 0x40,
0x14, 0xc6, 0xa3, 0x6e, 0x9a, 0xee, 0xdb, 0xed, 0x32, 0x79, 0xa4, 0x60, 0x6f, 0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