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