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