1
// Code generated by protoc-gen-go. DO NOT EDIT.
3
// protoc-gen-go v1.28.1
5
// source: api/system/v1alpha1/datasource.proto
10
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
18
// Verify that this generated code is sufficiently up-to-date.
19
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20
// Verify that runtime/protoimpl is sufficiently up-to-date.
21
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24
// DataSource defines the source of bytes to use.
25
type DataSource struct {
26
state protoimpl.MessageState
27
sizeCache protoimpl.SizeCache
28
unknownFields protoimpl.UnknownFields
30
// Types that are assignable to Type:
35
// *DataSource_InlineString
36
Type isDataSource_Type `protobuf_oneof:"type"`
39
func (x *DataSource) Reset() {
41
if protoimpl.UnsafeEnabled {
42
mi := &file_api_system_v1alpha1_datasource_proto_msgTypes[0]
43
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
44
ms.StoreMessageInfo(mi)
48
func (x *DataSource) String() string {
49
return protoimpl.X.MessageStringOf(x)
52
func (*DataSource) ProtoMessage() {}
54
func (x *DataSource) ProtoReflect() protoreflect.Message {
55
mi := &file_api_system_v1alpha1_datasource_proto_msgTypes[0]
56
if protoimpl.UnsafeEnabled && x != nil {
57
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58
if ms.LoadMessageInfo() == nil {
59
ms.StoreMessageInfo(mi)
63
return mi.MessageOf(x)
66
// Deprecated: Use DataSource.ProtoReflect.Descriptor instead.
67
func (*DataSource) Descriptor() ([]byte, []int) {
68
return file_api_system_v1alpha1_datasource_proto_rawDescGZIP(), []int{0}
71
func (m *DataSource) GetType() isDataSource_Type {
78
func (x *DataSource) GetSecret() string {
79
if x, ok := x.GetType().(*DataSource_Secret); ok {
85
func (x *DataSource) GetFile() string {
86
if x, ok := x.GetType().(*DataSource_File); ok {
92
func (x *DataSource) GetInline() *wrapperspb.BytesValue {
93
if x, ok := x.GetType().(*DataSource_Inline); ok {
99
func (x *DataSource) GetInlineString() string {
100
if x, ok := x.GetType().(*DataSource_InlineString); ok {
101
return x.InlineString
106
type isDataSource_Type interface {
110
type DataSource_Secret struct {
111
// Data source is a secret with given Secret key.
112
Secret string `protobuf:"bytes,1,opt,name=secret,proto3,oneof"`
115
type DataSource_File struct {
116
// Data source is a path to a file.
117
// Deprecated, use other sources of a data.
118
File string `protobuf:"bytes,2,opt,name=file,proto3,oneof"`
121
type DataSource_Inline struct {
122
// Data source is inline bytes.
123
Inline *wrapperspb.BytesValue `protobuf:"bytes,3,opt,name=inline,proto3,oneof"`
126
type DataSource_InlineString struct {
127
// Data source is inline string
128
InlineString string `protobuf:"bytes,4,opt,name=inlineString,proto3,oneof"`
131
func (*DataSource_Secret) isDataSource_Type() {}
133
func (*DataSource_File) isDataSource_Type() {}
135
func (*DataSource_Inline) isDataSource_Type() {}
137
func (*DataSource_InlineString) isDataSource_Type() {}
139
var File_api_system_v1alpha1_datasource_proto protoreflect.FileDescriptor
141
var file_api_system_v1alpha1_datasource_proto_rawDesc = []byte{
142
0x0a, 0x24, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x76, 0x31, 0x61,
143
0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
144
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6b, 0x75, 0x6d, 0x61, 0x2e, 0x73, 0x79, 0x73,
145
0x74, 0x65, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1e, 0x67, 0x6f,
146
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72,
147
0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, 0x01, 0x0a,
148
0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x73,
149
0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73,
150
0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20,
151
0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x69,
152
0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f,
153
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x79,
154
0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x06, 0x69, 0x6e, 0x6c, 0x69,
155
0x6e, 0x65, 0x12, 0x24, 0x0a, 0x0c, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x74, 0x72, 0x69,
156
0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x6c, 0x69,
157
0x6e, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
158
0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b,
159
0x75, 0x6d, 0x61, 0x68, 0x71, 0x2f, 0x6b, 0x75, 0x6d, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73,
160
0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06,
161
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
165
file_api_system_v1alpha1_datasource_proto_rawDescOnce sync.Once
166
file_api_system_v1alpha1_datasource_proto_rawDescData = file_api_system_v1alpha1_datasource_proto_rawDesc
169
func file_api_system_v1alpha1_datasource_proto_rawDescGZIP() []byte {
170
file_api_system_v1alpha1_datasource_proto_rawDescOnce.Do(func() {
171
file_api_system_v1alpha1_datasource_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_system_v1alpha1_datasource_proto_rawDescData)
173
return file_api_system_v1alpha1_datasource_proto_rawDescData
176
var file_api_system_v1alpha1_datasource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
177
var file_api_system_v1alpha1_datasource_proto_goTypes = []interface{}{
178
(*DataSource)(nil), // 0: kuma.system.v1alpha1.DataSource
179
(*wrapperspb.BytesValue)(nil), // 1: google.protobuf.BytesValue
181
var file_api_system_v1alpha1_datasource_proto_depIdxs = []int32{
182
1, // 0: kuma.system.v1alpha1.DataSource.inline:type_name -> google.protobuf.BytesValue
183
1, // [1:1] is the sub-list for method output_type
184
1, // [1:1] is the sub-list for method input_type
185
1, // [1:1] is the sub-list for extension type_name
186
1, // [1:1] is the sub-list for extension extendee
187
0, // [0:1] is the sub-list for field type_name
190
func init() { file_api_system_v1alpha1_datasource_proto_init() }
191
func file_api_system_v1alpha1_datasource_proto_init() {
192
if File_api_system_v1alpha1_datasource_proto != nil {
195
if !protoimpl.UnsafeEnabled {
196
file_api_system_v1alpha1_datasource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
197
switch v := v.(*DataSource); i {
203
return &v.unknownFields
209
file_api_system_v1alpha1_datasource_proto_msgTypes[0].OneofWrappers = []interface{}{
210
(*DataSource_Secret)(nil),
211
(*DataSource_File)(nil),
212
(*DataSource_Inline)(nil),
213
(*DataSource_InlineString)(nil),
216
out := protoimpl.TypeBuilder{
217
File: protoimpl.DescBuilder{
218
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
219
RawDescriptor: file_api_system_v1alpha1_datasource_proto_rawDesc,
225
GoTypes: file_api_system_v1alpha1_datasource_proto_goTypes,
226
DependencyIndexes: file_api_system_v1alpha1_datasource_proto_depIdxs,
227
MessageInfos: file_api_system_v1alpha1_datasource_proto_msgTypes,
229
File_api_system_v1alpha1_datasource_proto = out.File
230
file_api_system_v1alpha1_datasource_proto_rawDesc = nil
231
file_api_system_v1alpha1_datasource_proto_goTypes = nil
232
file_api_system_v1alpha1_datasource_proto_depIdxs = nil