Debian Codegraph @

envoy/config/accesslog/v2/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/config/accesslog/v2/file.proto
6
7 package accesslogv2
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 _ "github.com/envoyproxy/protoc-gen-validate/validate"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 structpb "google.golang.org/protobuf/types/known/structpb"
15 reflect "reflect"
16 sync "sync"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 // Custom configuration for an :ref:`AccessLog <envoy_api_msg_config.filter.accesslog.v2.AccessLog>`
27 // that writes log entries directly to a file. Configures the built-in *envoy.access_loggers.file*
28 // AccessLog.
29 type FileAccessLog struct {
30 state protoimpl.MessageState
31 sizeCache protoimpl.SizeCache
32 unknownFields protoimpl.UnknownFields
33
34 // A path to a local file to which to write the access log entries.
35 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
36 // Types that are assignable to AccessLogFormat:
37 //
38 // *FileAccessLog_Format
39 // *FileAccessLog_JsonFormat
40 // *FileAccessLog_TypedJsonFormat
41 AccessLogFormat isFileAccessLog_AccessLogFormat `protobuf_oneof:"access_log_format"`
42 }
43
44 func (x *FileAccessLog) Reset() {
45 *x = FileAccessLog{}
46 if protoimpl.UnsafeEnabled {
47 mi := &file_envoy_config_accesslog_v2_file_proto_msgTypes[0]
48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
49 ms.StoreMessageInfo(mi)
50 }
51 }
52
53 func (x *FileAccessLog) String() string {
54 return protoimpl.X.MessageStringOf(x)
55 }
56
57 func (*FileAccessLog) ProtoMessage() {}
58
59 func (x *FileAccessLog) ProtoReflect() protoreflect.Message {
60 mi := &file_envoy_config_accesslog_v2_file_proto_msgTypes[0]
61 if protoimpl.UnsafeEnabled && x != nil {
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 if ms.LoadMessageInfo() == nil {
64 ms.StoreMessageInfo(mi)
65 }
66 return ms
67 }
68 return mi.MessageOf(x)
69 }
70
71 // Deprecated: Use FileAccessLog.ProtoReflect.Descriptor instead.
72 func (*FileAccessLog) Descriptor() ([]byte, []int) {
73 return file_envoy_config_accesslog_v2_file_proto_rawDescGZIP(), []int{0}
74 }
75
76 func (x *FileAccessLog) GetPath() string {
77 if x != nil {
78 return x.Path
79 }
80 return ""
81 }
82
83 func (m *FileAccessLog) GetAccessLogFormat() isFileAccessLog_AccessLogFormat {
84 if m != nil {
85 return m.AccessLogFormat
86 }
87 return nil
88 }
89
90 func (x *FileAccessLog) GetFormat() string {
91 if x, ok := x.GetAccessLogFormat().(*FileAccessLog_Format); ok {
92 return x.Format
93 }
94 return ""
95 }
96
97 func (x *FileAccessLog) GetJsonFormat() *structpb.Struct {
98 if x, ok := x.GetAccessLogFormat().(*FileAccessLog_JsonFormat); ok {
99 return x.JsonFormat
100 }
101 return nil
102 }
103
104 func (x *FileAccessLog) GetTypedJsonFormat() *structpb.Struct {
105 if x, ok := x.GetAccessLogFormat().(*FileAccessLog_TypedJsonFormat); ok {
106 return x.TypedJsonFormat
107 }
108 return nil
109 }
110
111 type isFileAccessLog_AccessLogFormat interface {
112 isFileAccessLog_AccessLogFormat()
113 }
114
115 type FileAccessLog_Format struct {
116 // Access log :ref:`format string<config_access_log_format_strings>`.
117 // Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a
118 // :ref:`default format <config_access_log_default_format>`.
119 Format string `protobuf:"bytes,2,opt,name=format,proto3,oneof"`
120 }
121
122 type FileAccessLog_JsonFormat struct {
123 // Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values
124 // are rendered as strings.
125 JsonFormat *structpb.Struct `protobuf:"bytes,3,opt,name=json_format,json=jsonFormat,proto3,oneof"`
126 }
127
128 type FileAccessLog_TypedJsonFormat struct {
129 // Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. Values are
130 // rendered as strings, numbers, or boolean values as appropriate. Nested JSON objects may
131 // be produced by some command operators (e.g.FILTER_STATE or DYNAMIC_METADATA). See the
132 // documentation for a specific command operator for details.
133 TypedJsonFormat *structpb.Struct `protobuf:"bytes,4,opt,name=typed_json_format,json=typedJsonFormat,proto3,oneof"`
134 }
135
136 func (*FileAccessLog_Format) isFileAccessLog_AccessLogFormat() {}
137
138 func (*FileAccessLog_JsonFormat) isFileAccessLog_AccessLogFormat() {}
139
140 func (*FileAccessLog_TypedJsonFormat) isFileAccessLog_AccessLogFormat() {}
141
142 var File_envoy_config_accesslog_v2_file_proto protoreflect.FileDescriptor
143
144 var file_envoy_config_accesslog_v2_file_proto_rawDesc = []byte{
145 0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x61,
146 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x32, 0x2f, 0x66, 0x69, 0x6c, 0x65,
147 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f,
148 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 0x76,
149 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
150 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
151 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
152 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
153 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
154 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
155 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
156 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xde, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x6c, 0x65,
157 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x12, 0x1b, 0x0a, 0x04, 0x70, 0x61, 0x74,
158 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01,
159 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
160 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
161 0x12, 0x3a, 0x0a, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18,
162 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
163 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00,
164 0x52, 0x0a, 0x6a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x45, 0x0a, 0x11,
165 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61,
166 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
167 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74,
168 0x48, 0x00, 0x52, 0x0f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72,
169 0x6d, 0x61, 0x74, 0x42, 0x13, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f,
170 0x67, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0xbb, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05,
171 0x29, 0x12, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
172 0x6f, 0x6e, 0x73, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x65,
173 0x72, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02,
174 0x10, 0x01, 0x0a, 0x27, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78,
175 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x61,
176 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x32, 0x42, 0x09, 0x46, 0x69, 0x6c,
177 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
178 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f,
179 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65,
180 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x61, 0x63,
181 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x32, 0x3b, 0x61, 0x63, 0x63, 0x65, 0x73,
182 0x73, 0x6c, 0x6f, 0x67, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
183 }
184
185 var (
186 file_envoy_config_accesslog_v2_file_proto_rawDescOnce sync.Once
187 file_envoy_config_accesslog_v2_file_proto_rawDescData = file_envoy_config_accesslog_v2_file_proto_rawDesc
188 )
189
190 func file_envoy_config_accesslog_v2_file_proto_rawDescGZIP() []byte {
191 file_envoy_config_accesslog_v2_file_proto_rawDescOnce.Do(func() {
192 file_envoy_config_accesslog_v2_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_accesslog_v2_file_proto_rawDescData)
193 })
194 return file_envoy_config_accesslog_v2_file_proto_rawDescData
195 }
196
197 var file_envoy_config_accesslog_v2_file_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
198 var file_envoy_config_accesslog_v2_file_proto_goTypes = []interface{}{
199 (*FileAccessLog)(nil), // 0: envoy.config.accesslog.v2.FileAccessLog
200 (*structpb.Struct)(nil), // 1: google.protobuf.Struct
201 }
202 var file_envoy_config_accesslog_v2_file_proto_depIdxs = []int32{
203 1, // 0: envoy.config.accesslog.v2.FileAccessLog.json_format:type_name -> google.protobuf.Struct
204 1, // 1: envoy.config.accesslog.v2.FileAccessLog.typed_json_format:type_name -> google.protobuf.Struct
205 2, // [2:2] is the sub-list for method output_type
206 2, // [2:2] is the sub-list for method input_type
207 2, // [2:2] is the sub-list for extension type_name
208 2, // [2:2] is the sub-list for extension extendee
209 0, // [0:2] is the sub-list for field type_name
210 }
211
212 func init() { file_envoy_config_accesslog_v2_file_proto_init() }
213 func file_envoy_config_accesslog_v2_file_proto_init() {
214 if File_envoy_config_accesslog_v2_file_proto != nil {
215 return
216 }
217 if !protoimpl.UnsafeEnabled {
218 file_envoy_config_accesslog_v2_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
219 switch v := v.(*FileAccessLog); i {
220 case 0:
221 return &v.state
222 case 1:
223 return &v.sizeCache
224 case 2:
225 return &v.unknownFields
226 default:
227 return nil
228 }
229 }
230 }
231 file_envoy_config_accesslog_v2_file_proto_msgTypes[0].OneofWrappers = []interface{}{
232 (*FileAccessLog_Format)(nil),
233 (*FileAccessLog_JsonFormat)(nil),
234 (*FileAccessLog_TypedJsonFormat)(nil),
235 }
236 type x struct{}
237 out := protoimpl.TypeBuilder{
238 File: protoimpl.DescBuilder{
239 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
240 RawDescriptor: file_envoy_config_accesslog_v2_file_proto_rawDesc,
241 NumEnums: 0,
242 NumMessages: 1,
243 NumExtensions: 0,
244 NumServices: 0,
245 },
246 GoTypes: file_envoy_config_accesslog_v2_file_proto_goTypes,
247 DependencyIndexes: file_envoy_config_accesslog_v2_file_proto_depIdxs,
248 MessageInfos: file_envoy_config_accesslog_v2_file_proto_msgTypes,
249 }.Build()
250 File_envoy_config_accesslog_v2_file_proto = out.File
251 file_envoy_config_accesslog_v2_file_proto_rawDesc = nil
252 file_envoy_config_accesslog_v2_file_proto_goTypes = nil
253 file_envoy_config_accesslog_v2_file_proto_depIdxs = nil
254 }