kuma

Форк
0
/
datasource.pb.go 
233 строки · 8.0 Кб
1
// Code generated by protoc-gen-go. DO NOT EDIT.
2
// versions:
3
// 	protoc-gen-go v1.28.1
4
// 	protoc        v3.20.0
5
// source: api/system/v1alpha1/datasource.proto
6

7
package v1alpha1
8

9
import (
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"
13
	reflect "reflect"
14
	sync "sync"
15
)
16

17
const (
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)
22
)
23

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
29

30
	// Types that are assignable to Type:
31
	//
32
	//	*DataSource_Secret
33
	//	*DataSource_File
34
	//	*DataSource_Inline
35
	//	*DataSource_InlineString
36
	Type isDataSource_Type `protobuf_oneof:"type"`
37
}
38

39
func (x *DataSource) Reset() {
40
	*x = DataSource{}
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)
45
	}
46
}
47

48
func (x *DataSource) String() string {
49
	return protoimpl.X.MessageStringOf(x)
50
}
51

52
func (*DataSource) ProtoMessage() {}
53

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)
60
		}
61
		return ms
62
	}
63
	return mi.MessageOf(x)
64
}
65

66
// Deprecated: Use DataSource.ProtoReflect.Descriptor instead.
67
func (*DataSource) Descriptor() ([]byte, []int) {
68
	return file_api_system_v1alpha1_datasource_proto_rawDescGZIP(), []int{0}
69
}
70

71
func (m *DataSource) GetType() isDataSource_Type {
72
	if m != nil {
73
		return m.Type
74
	}
75
	return nil
76
}
77

78
func (x *DataSource) GetSecret() string {
79
	if x, ok := x.GetType().(*DataSource_Secret); ok {
80
		return x.Secret
81
	}
82
	return ""
83
}
84

85
func (x *DataSource) GetFile() string {
86
	if x, ok := x.GetType().(*DataSource_File); ok {
87
		return x.File
88
	}
89
	return ""
90
}
91

92
func (x *DataSource) GetInline() *wrapperspb.BytesValue {
93
	if x, ok := x.GetType().(*DataSource_Inline); ok {
94
		return x.Inline
95
	}
96
	return nil
97
}
98

99
func (x *DataSource) GetInlineString() string {
100
	if x, ok := x.GetType().(*DataSource_InlineString); ok {
101
		return x.InlineString
102
	}
103
	return ""
104
}
105

106
type isDataSource_Type interface {
107
	isDataSource_Type()
108
}
109

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"`
113
}
114

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"`
119
}
120

121
type DataSource_Inline struct {
122
	// Data source is inline bytes.
123
	Inline *wrapperspb.BytesValue `protobuf:"bytes,3,opt,name=inline,proto3,oneof"`
124
}
125

126
type DataSource_InlineString struct {
127
	// Data source is inline string
128
	InlineString string `protobuf:"bytes,4,opt,name=inlineString,proto3,oneof"`
129
}
130

131
func (*DataSource_Secret) isDataSource_Type() {}
132

133
func (*DataSource_File) isDataSource_Type() {}
134

135
func (*DataSource_Inline) isDataSource_Type() {}
136

137
func (*DataSource_InlineString) isDataSource_Type() {}
138

139
var File_api_system_v1alpha1_datasource_proto protoreflect.FileDescriptor
140

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,
162
}
163

164
var (
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
167
)
168

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)
172
	})
173
	return file_api_system_v1alpha1_datasource_proto_rawDescData
174
}
175

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
180
}
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
188
}
189

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 {
193
		return
194
	}
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 {
198
			case 0:
199
				return &v.state
200
			case 1:
201
				return &v.sizeCache
202
			case 2:
203
				return &v.unknownFields
204
			default:
205
				return nil
206
			}
207
		}
208
	}
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),
214
	}
215
	type x struct{}
216
	out := protoimpl.TypeBuilder{
217
		File: protoimpl.DescBuilder{
218
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
219
			RawDescriptor: file_api_system_v1alpha1_datasource_proto_rawDesc,
220
			NumEnums:      0,
221
			NumMessages:   1,
222
			NumExtensions: 0,
223
			NumServices:   0,
224
		},
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,
228
	}.Build()
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
233
}
234

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.