300 lines
9.6 KiB
Go
300 lines
9.6 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: common.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package oaktree is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
common.proto
|
|
|
|
It has these top-level messages:
|
|
Project
|
|
Location
|
|
Filter
|
|
*/
|
|
package oaktree
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type Project struct {
|
|
// Types that are valid to be assigned to Project:
|
|
// *Project_Id
|
|
// *Project_Name
|
|
Project isProject_Project `protobuf_oneof:"project"`
|
|
// Types that are valid to be assigned to Domain:
|
|
// *Project_DomainId
|
|
// *Project_DomainName
|
|
Domain isProject_Domain `protobuf_oneof:"domain"`
|
|
}
|
|
|
|
func (m *Project) Reset() { *m = Project{} }
|
|
func (m *Project) String() string { return proto.CompactTextString(m) }
|
|
func (*Project) ProtoMessage() {}
|
|
func (*Project) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
type isProject_Project interface {
|
|
isProject_Project()
|
|
}
|
|
type isProject_Domain interface {
|
|
isProject_Domain()
|
|
}
|
|
|
|
type Project_Id struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id,oneof"`
|
|
}
|
|
type Project_Name struct {
|
|
Name string `protobuf:"bytes,2,opt,name=name,oneof"`
|
|
}
|
|
type Project_DomainId struct {
|
|
DomainId string `protobuf:"bytes,3,opt,name=domain_id,json=domainId,oneof"`
|
|
}
|
|
type Project_DomainName struct {
|
|
DomainName string `protobuf:"bytes,4,opt,name=domain_name,json=domainName,oneof"`
|
|
}
|
|
|
|
func (*Project_Id) isProject_Project() {}
|
|
func (*Project_Name) isProject_Project() {}
|
|
func (*Project_DomainId) isProject_Domain() {}
|
|
func (*Project_DomainName) isProject_Domain() {}
|
|
|
|
func (m *Project) GetProject() isProject_Project {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Project) GetDomain() isProject_Domain {
|
|
if m != nil {
|
|
return m.Domain
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Project) GetId() string {
|
|
if x, ok := m.GetProject().(*Project_Id); ok {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Project) GetName() string {
|
|
if x, ok := m.GetProject().(*Project_Name); ok {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Project) GetDomainId() string {
|
|
if x, ok := m.GetDomain().(*Project_DomainId); ok {
|
|
return x.DomainId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Project) GetDomainName() string {
|
|
if x, ok := m.GetDomain().(*Project_DomainName); ok {
|
|
return x.DomainName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
|
func (*Project) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
|
return _Project_OneofMarshaler, _Project_OneofUnmarshaler, _Project_OneofSizer, []interface{}{
|
|
(*Project_Id)(nil),
|
|
(*Project_Name)(nil),
|
|
(*Project_DomainId)(nil),
|
|
(*Project_DomainName)(nil),
|
|
}
|
|
}
|
|
|
|
func _Project_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
|
m := msg.(*Project)
|
|
// project
|
|
switch x := m.Project.(type) {
|
|
case *Project_Id:
|
|
b.EncodeVarint(1<<3 | proto.WireBytes)
|
|
b.EncodeStringBytes(x.Id)
|
|
case *Project_Name:
|
|
b.EncodeVarint(2<<3 | proto.WireBytes)
|
|
b.EncodeStringBytes(x.Name)
|
|
case nil:
|
|
default:
|
|
return fmt.Errorf("Project.Project has unexpected type %T", x)
|
|
}
|
|
// domain
|
|
switch x := m.Domain.(type) {
|
|
case *Project_DomainId:
|
|
b.EncodeVarint(3<<3 | proto.WireBytes)
|
|
b.EncodeStringBytes(x.DomainId)
|
|
case *Project_DomainName:
|
|
b.EncodeVarint(4<<3 | proto.WireBytes)
|
|
b.EncodeStringBytes(x.DomainName)
|
|
case nil:
|
|
default:
|
|
return fmt.Errorf("Project.Domain has unexpected type %T", x)
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func _Project_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
|
m := msg.(*Project)
|
|
switch tag {
|
|
case 1: // project.id
|
|
if wire != proto.WireBytes {
|
|
return true, proto.ErrInternalBadWireType
|
|
}
|
|
x, err := b.DecodeStringBytes()
|
|
m.Project = &Project_Id{x}
|
|
return true, err
|
|
case 2: // project.name
|
|
if wire != proto.WireBytes {
|
|
return true, proto.ErrInternalBadWireType
|
|
}
|
|
x, err := b.DecodeStringBytes()
|
|
m.Project = &Project_Name{x}
|
|
return true, err
|
|
case 3: // domain.domain_id
|
|
if wire != proto.WireBytes {
|
|
return true, proto.ErrInternalBadWireType
|
|
}
|
|
x, err := b.DecodeStringBytes()
|
|
m.Domain = &Project_DomainId{x}
|
|
return true, err
|
|
case 4: // domain.domain_name
|
|
if wire != proto.WireBytes {
|
|
return true, proto.ErrInternalBadWireType
|
|
}
|
|
x, err := b.DecodeStringBytes()
|
|
m.Domain = &Project_DomainName{x}
|
|
return true, err
|
|
default:
|
|
return false, nil
|
|
}
|
|
}
|
|
|
|
func _Project_OneofSizer(msg proto.Message) (n int) {
|
|
m := msg.(*Project)
|
|
// project
|
|
switch x := m.Project.(type) {
|
|
case *Project_Id:
|
|
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
|
n += proto.SizeVarint(uint64(len(x.Id)))
|
|
n += len(x.Id)
|
|
case *Project_Name:
|
|
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
|
n += proto.SizeVarint(uint64(len(x.Name)))
|
|
n += len(x.Name)
|
|
case nil:
|
|
default:
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
|
}
|
|
// domain
|
|
switch x := m.Domain.(type) {
|
|
case *Project_DomainId:
|
|
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
|
n += proto.SizeVarint(uint64(len(x.DomainId)))
|
|
n += len(x.DomainId)
|
|
case *Project_DomainName:
|
|
n += proto.SizeVarint(4<<3 | proto.WireBytes)
|
|
n += proto.SizeVarint(uint64(len(x.DomainName)))
|
|
n += len(x.DomainName)
|
|
case nil:
|
|
default:
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
|
}
|
|
return n
|
|
}
|
|
|
|
type Location struct {
|
|
Cloud string `protobuf:"bytes,1,opt,name=cloud" json:"cloud,omitempty"`
|
|
Region string `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"`
|
|
Zone string `protobuf:"bytes,3,opt,name=zone" json:"zone,omitempty"`
|
|
Project *Project `protobuf:"bytes,4,opt,name=project" json:"project,omitempty"`
|
|
}
|
|
|
|
func (m *Location) Reset() { *m = Location{} }
|
|
func (m *Location) String() string { return proto.CompactTextString(m) }
|
|
func (*Location) ProtoMessage() {}
|
|
func (*Location) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *Location) GetProject() *Project {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Filter struct {
|
|
Location *Location `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
|
|
NameOrId string `protobuf:"bytes,2,opt,name=name_or_id,json=nameOrId" json:"name_or_id,omitempty"`
|
|
Jmespath string `protobuf:"bytes,3,opt,name=jmespath" json:"jmespath,omitempty"`
|
|
Filter map[string]string `protobuf:"bytes,4,rep,name=filter" json:"filter,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
}
|
|
|
|
func (m *Filter) Reset() { *m = Filter{} }
|
|
func (m *Filter) String() string { return proto.CompactTextString(m) }
|
|
func (*Filter) ProtoMessage() {}
|
|
func (*Filter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
func (m *Filter) GetLocation() *Location {
|
|
if m != nil {
|
|
return m.Location
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Filter) GetFilter() map[string]string {
|
|
if m != nil {
|
|
return m.Filter
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Project)(nil), "oaktree.Project")
|
|
proto.RegisterType((*Location)(nil), "oaktree.Location")
|
|
proto.RegisterType((*Filter)(nil), "oaktree.Filter")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("common.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 326 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x4c, 0x91, 0xc1, 0x4e, 0xf3, 0x30,
|
|
0x0c, 0xc7, 0xbf, 0x6e, 0xfb, 0xba, 0xce, 0xe5, 0x30, 0x2c, 0x84, 0xa6, 0x01, 0x12, 0xec, 0x84,
|
|
0x90, 0xd8, 0x61, 0xbb, 0x00, 0xc7, 0x49, 0x20, 0x90, 0x10, 0xa0, 0xbc, 0xc0, 0x14, 0xba, 0x00,
|
|
0xdd, 0xda, 0xb8, 0x0a, 0x19, 0x62, 0x3c, 0x01, 0xaf, 0xc9, 0x9b, 0x90, 0x26, 0x5e, 0xc5, 0x29,
|
|
0xf6, 0xdf, 0x8e, 0xfe, 0x3f, 0xdb, 0xb0, 0x93, 0x51, 0x59, 0x92, 0x1e, 0x57, 0x86, 0x2c, 0x61,
|
|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