summaryrefslogtreecommitdiff
path: root/oaktreemodel/common.pb.go
blob: dfd3f74b2320e63f5796c8d3817902891c03e0b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
// 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,
	0x97, 0xe4, 0xca, 0x1a, 0xa5, 0x46, 0xdf, 0x11, 0x74, 0x9f, 0x0c, 0x2d, 0x55, 0x66, 0xb1, 0x0f,
	0xad, 0x7c, 0x31, 0x88, 0x8e, 0xa3, 0xd3, 0xde, 0xed, 0x3f, 0xe1, 0x62, 0xdc, 0x83, 0x8e, 0x96,
	0xa5, 0x1a, 0xb4, 0x58, 0xf3, 0x19, 0x1e, 0x41, 0x6f, 0x41, 0xa5, 0xcc, 0xf5, 0xdc, 0xb5, 0xb7,
	0x7d, 0x29, 0x12, 0x49, 0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