Debian Codegraph @

envoy/extensions/access_loggers/file/v3/file.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.30.0
4 // protoc v5.29.1
5 // source: envoy/extensions/access_loggers/file/v3/file.proto
6
7 package filev3
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 _ "github.com/envoyproxy/go-control-plane/envoy/annotations"
12 v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
13 _ "github.com/envoyproxy/protoc-gen-validate/validate"
14 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
15 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
16 structpb "google.golang.org/protobuf/types/known/structpb"
17 reflect "reflect"
18 sync "sync"
19 )
20
21 const (
22 // Verify that this generated code is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
24 // Verify that runtime/protoimpl is sufficiently up-to-date.
25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
26 )
27
28 // Custom configuration for an :ref:`AccessLog <envoy_v3_api_msg_config.accesslog.v3.AccessLog>`
29 // that writes log entries directly to a file. Configures the built-in “envoy.access_loggers.file“
30 // AccessLog.
31 // [#next-free-field: 6]
32 type FileAccessLog struct {
33 state protoimpl.MessageState
34 sizeCache protoimpl.SizeCache
35 unknownFields protoimpl.UnknownFields
36
37 // A path to a local file to which to write the access log entries.
38 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
39 // Types that are assignable to AccessLogFormat:
40 //
41 // *FileAccessLog_Format
42 // *FileAccessLog_JsonFormat
43 // *FileAccessLog_TypedJsonFormat
44 // *FileAccessLog_LogFormat
45 AccessLogFormat isFileAccessLog_AccessLogFormat `protobuf_oneof:"access_log_format"`
46 }
47
48 func (x *FileAccessLog) Reset() {
49 *x = FileAccessLog{}
50 if protoimpl.UnsafeEnabled {
51 mi := &file_envoy_extensions_access_loggers_file_v3_file_proto_msgTypes[0]
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 ms.StoreMessageInfo(mi)
54 }
55 }
56
57 func (x *FileAccessLog) String() string {
58 return protoimpl.X.MessageStringOf(x)
59 }
60
61 func (*FileAccessLog) ProtoMessage() {}
62
63 func (x *FileAccessLog) ProtoReflect() protoreflect.Message {
64 mi := &file_envoy_extensions_access_loggers_file_v3_file_proto_msgTypes[0]
65 if protoimpl.UnsafeEnabled && x != nil {
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 if ms.LoadMessageInfo() == nil {
68 ms.StoreMessageInfo(mi)
69 }
70 return ms
71 }
72 return mi.MessageOf(x)
73 }
74
75 // Deprecated: Use FileAccessLog.ProtoReflect.Descriptor instead.
76 func (*FileAccessLog) Descriptor() ([]byte, []int) {
77 return file_envoy_extensions_access_loggers_file_v3_file_proto_rawDescGZIP(), []int{0}
78 }
79
80 func (x *FileAccessLog) GetPath() string {
81 if x != nil {
82 return x.Path
83 }
84 return ""
85 }
86
87 func (m *FileAccessLog) GetAccessLogFormat() isFileAccessLog_AccessLogFormat {
88 if m != nil {
89 return m.AccessLogFormat
90 }
91 return nil
92 }
93
94 // Deprecated: Marked as deprecated in envoy/extensions/access_loggers/file/v3/file.proto.
95 func (x *FileAccessLog) GetFormat() string {
96 if x, ok := x.GetAccessLogFormat().(*FileAccessLog_Format); ok {
97 return x.Format
98 }
99 return ""
100 }
101
102 // Deprecated: Marked as deprecated in envoy/extensions/access_loggers/file/v3/file.proto.
103 func (x *FileAccessLog) GetJsonFormat() *structpb.Struct {
104 if x, ok := x.GetAccessLogFormat().(*FileAccessLog_JsonFormat); ok {
105 return x.JsonFormat
106 }
107 return nil
108 }
109
110 // Deprecated: Marked as deprecated in envoy/extensions/access_loggers/file/v3/file.proto.
111 func (x *FileAccessLog) GetTypedJsonFormat() *structpb.Struct {
112 if x, ok := x.GetAccessLogFormat().(*FileAccessLog_TypedJsonFormat); ok {
113 return x.TypedJsonFormat
114 }
115 return nil
116 }
117
118 func (x *FileAccessLog) GetLogFormat() *v3.SubstitutionFormatString {
119 if x, ok := x.GetAccessLogFormat().(*FileAccessLog_LogFormat); ok {
120 return x.LogFormat
121 }
122 return nil
123 }
124
125 type isFileAccessLog_AccessLogFormat interface {
126 isFileAccessLog_AccessLogFormat()
127 }
128
129 type FileAccessLog_Format struct {
130 // Access log :ref:`format string<config_access_log_format_strings>`.
131 // Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a
132 // :ref:`default format <config_access_log_default_format>`.
133 // This field is deprecated.
134 // Please use :ref:`log_format <envoy_v3_api_field_extensions.access_loggers.file.v3.FileAccessLog.log_format>`.
135 //
136 // Deprecated: Marked as deprecated in envoy/extensions/access_loggers/file/v3/file.proto.
137 Format string `protobuf:"bytes,2,opt,name=format,proto3,oneof"`
138 }
139
140 type FileAccessLog_JsonFormat struct {
141 // Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values
142 // are rendered as strings.
143 // This field is deprecated.
144 // Please use :ref:`log_format <envoy_v3_api_field_extensions.access_loggers.file.v3.FileAccessLog.log_format>`.
145 //
146 // Deprecated: Marked as deprecated in envoy/extensions/access_loggers/file/v3/file.proto.
147 JsonFormat *structpb.Struct `protobuf:"bytes,3,opt,name=json_format,json=jsonFormat,proto3,oneof"`
148 }
149
150 type FileAccessLog_TypedJsonFormat struct {
151 // Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. Values are
152 // rendered as strings, numbers, or boolean values as appropriate. Nested JSON objects may
153 // be produced by some command operators (e.g.FILTER_STATE or DYNAMIC_METADATA). See the
154 // documentation for a specific command operator for details.
155 // This field is deprecated.
156 // Please use :ref:`log_format <envoy_v3_api_field_extensions.access_loggers.file.v3.FileAccessLog.log_format>`.
157 //
158 // Deprecated: Marked as deprecated in envoy/extensions/access_loggers/file/v3/file.proto.
159 TypedJsonFormat *structpb.Struct `protobuf:"bytes,4,opt,name=typed_json_format,json=typedJsonFormat,proto3,oneof"`
160 }
161
162 type FileAccessLog_LogFormat struct {
163 // Configuration to form access log data and format.
164 // If not specified, use :ref:`default format <config_access_log_default_format>`.
165 LogFormat *v3.SubstitutionFormatString `protobuf:"bytes,5,opt,name=log_format,json=logFormat,proto3,oneof"`
166 }
167
168 func (*FileAccessLog_Format) isFileAccessLog_AccessLogFormat() {}
169
170 func (*FileAccessLog_JsonFormat) isFileAccessLog_AccessLogFormat() {}
171
172 func (*FileAccessLog_TypedJsonFormat) isFileAccessLog_AccessLogFormat() {}
173
174 func (*FileAccessLog_LogFormat) isFileAccessLog_AccessLogFormat() {}
175
176 var File_envoy_extensions_access_loggers_file_v3_file_proto protoreflect.FileDescriptor
177
178 var file_envoy_extensions_access_loggers_file_v3_file_proto_rawDesc = []byte{
179 0x0a, 0x32, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
180 0x6e, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72,
181 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70,
182 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65,
183 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f,
184 0x67, 0x67, 0x65, 0x72, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x35, 0x65,
185 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65,
186 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e,
187 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70,
188 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
189 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f,
190 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
191 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f,
192 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
193 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
194 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e,
195 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
196 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64,
197 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f,
198 0x74, 0x6f, 0x22, 0x90, 0x03, 0x0a, 0x0d, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73,
199 0x73, 0x4c, 0x6f, 0x67, 0x12, 0x1b, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01,
200 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x70, 0x61, 0x74,
201 0x68, 0x12, 0x25, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
202 0x09, 0x42, 0x0b, 0x92, 0xc7, 0x86, 0xd8, 0x04, 0x03, 0x33, 0x2e, 0x30, 0x18, 0x01, 0x48, 0x00,
203 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x47, 0x0a, 0x0b, 0x6a, 0x73, 0x6f, 0x6e,
204 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
205 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
206 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x42, 0x0b, 0x92, 0xc7, 0x86, 0xd8, 0x04, 0x03, 0x33, 0x2e,
207 0x30, 0x18, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x6a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61,
208 0x74, 0x12, 0x52, 0x0a, 0x11, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f,
209 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67,
210 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53,
211 0x74, 0x72, 0x75, 0x63, 0x74, 0x42, 0x0b, 0x92, 0xc7, 0x86, 0xd8, 0x04, 0x03, 0x33, 0x2e, 0x30,
212 0x18, 0x01, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x4a, 0x73, 0x6f, 0x6e, 0x46,
213 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x59, 0x0a, 0x0a, 0x6c, 0x6f, 0x67, 0x5f, 0x66, 0x6f, 0x72,
214 0x6d, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
215 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33,
216 0x2e, 0x53, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72,
217 0x6d, 0x61, 0x74, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01,
218 0x02, 0x10, 0x01, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x6f, 0x67, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74,
219 0x3a, 0x2e, 0x9a, 0xc5, 0x88, 0x1e, 0x29, 0x0a, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63,
220 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e,
221 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
222 0x42, 0x13, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x66,
223 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0xa3, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02,
224 0x0a, 0x35, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
225 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
226 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x73, 0x2e,
227 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x09, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x72, 0x6f,
228 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x55, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
229 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63,
230 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76,
231 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x63,
232 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x73, 0x2f, 0x66, 0x69, 0x6c,
233 0x65, 0x2f, 0x76, 0x33, 0x3b, 0x66, 0x69, 0x6c, 0x65, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f,
234 0x74, 0x6f, 0x33,
235 }
236
237 var (
238 file_envoy_extensions_access_loggers_file_v3_file_proto_rawDescOnce sync.Once
239 file_envoy_extensions_access_loggers_file_v3_file_proto_rawDescData = file_envoy_extensions_access_loggers_file_v3_file_proto_rawDesc
240 )
241
242 func file_envoy_extensions_access_loggers_file_v3_file_proto_rawDescGZIP() []byte {
243 file_envoy_extensions_access_loggers_file_v3_file_proto_rawDescOnce.Do(func() {
244 file_envoy_extensions_access_loggers_file_v3_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_access_loggers_file_v3_file_proto_rawDescData)
245 })
246 return file_envoy_extensions_access_loggers_file_v3_file_proto_rawDescData
247 }
248
249 var file_envoy_extensions_access_loggers_file_v3_file_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
250 var file_envoy_extensions_access_loggers_file_v3_file_proto_goTypes = []interface{}{
251 (*FileAccessLog)(nil), // 0: envoy.extensions.access_loggers.file.v3.FileAccessLog
252 (*structpb.Struct)(nil), // 1: google.protobuf.Struct
253 (*v3.SubstitutionFormatString)(nil), // 2: envoy.config.core.v3.SubstitutionFormatString
254 }
255 var file_envoy_extensions_access_loggers_file_v3_file_proto_depIdxs = []int32{
256 1, // 0: envoy.extensions.access_loggers.file.v3.FileAccessLog.json_format:type_name -> google.protobuf.Struct
257 1, // 1: envoy.extensions.access_loggers.file.v3.FileAccessLog.typed_json_format:type_name -> google.protobuf.Struct
258 2, // 2: envoy.extensions.access_loggers.file.v3.FileAccessLog.log_format:type_name -> envoy.config.core.v3.SubstitutionFormatString
259 3, // [3:3] is the sub-list for method output_type
260 3, // [3:3] is the sub-list for method input_type
261 3, // [3:3] is the sub-list for extension type_name
262 3, // [3:3] is the sub-list for extension extendee
263 0, // [0:3] is the sub-list for field type_name
264 }
265
266 func init() { file_envoy_extensions_access_loggers_file_v3_file_proto_init() }
267 func file_envoy_extensions_access_loggers_file_v3_file_proto_init() {
268 if File_envoy_extensions_access_loggers_file_v3_file_proto != nil {
269 return
270 }
271 if !protoimpl.UnsafeEnabled {
272 file_envoy_extensions_access_loggers_file_v3_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
273 switch v := v.(*FileAccessLog); i {
274 case 0:
275 return &v.state
276 case 1:
277 return &v.sizeCache
278 case 2:
279 return &v.unknownFields
280 default:
281 return nil
282 }
283 }
284 }
285 file_envoy_extensions_access_loggers_file_v3_file_proto_msgTypes[0].OneofWrappers = []interface{}{
286 (*FileAccessLog_Format)(nil),
287 (*FileAccessLog_JsonFormat)(nil),
288 (*FileAccessLog_TypedJsonFormat)(nil),
289 (*FileAccessLog_LogFormat)(nil),
290 }
291 type x struct{}
292 out := protoimpl.TypeBuilder{
293 File: protoimpl.DescBuilder{
294 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
295 RawDescriptor: file_envoy_extensions_access_loggers_file_v3_file_proto_rawDesc,
296 NumEnums: 0,
297 NumMessages: 1,
298 NumExtensions: 0,
299 NumServices: 0,
300 },
301 GoTypes: file_envoy_extensions_access_loggers_file_v3_file_proto_goTypes,
302 DependencyIndexes: file_envoy_extensions_access_loggers_file_v3_file_proto_depIdxs,
303 MessageInfos: file_envoy_extensions_access_loggers_file_v3_file_proto_msgTypes,
304 }.Build()
305 File_envoy_extensions_access_loggers_file_v3_file_proto = out.File
306 file_envoy_extensions_access_loggers_file_v3_file_proto_rawDesc = nil
307 file_envoy_extensions_access_loggers_file_v3_file_proto_goTypes = nil
308 file_envoy_extensions_access_loggers_file_v3_file_proto_depIdxs = nil
309 }