...

Source file src/github.com/emissary-ingress/emissary/v3/pkg/api/envoy/config/accesslog/v2/file.pb.go

Documentation: github.com/emissary-ingress/emissary/v3/pkg/api/envoy/config/accesslog/v2

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.21.12
     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  	_struct "github.com/golang/protobuf/ptypes/struct"
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    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  	//	*FileAccessLog_Format
    38  	//	*FileAccessLog_JsonFormat
    39  	//	*FileAccessLog_TypedJsonFormat
    40  	AccessLogFormat isFileAccessLog_AccessLogFormat `protobuf_oneof:"access_log_format"`
    41  }
    42  
    43  func (x *FileAccessLog) Reset() {
    44  	*x = FileAccessLog{}
    45  	if protoimpl.UnsafeEnabled {
    46  		mi := &file_envoy_config_accesslog_v2_file_proto_msgTypes[0]
    47  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    48  		ms.StoreMessageInfo(mi)
    49  	}
    50  }
    51  
    52  func (x *FileAccessLog) String() string {
    53  	return protoimpl.X.MessageStringOf(x)
    54  }
    55  
    56  func (*FileAccessLog) ProtoMessage() {}
    57  
    58  func (x *FileAccessLog) ProtoReflect() protoreflect.Message {
    59  	mi := &file_envoy_config_accesslog_v2_file_proto_msgTypes[0]
    60  	if protoimpl.UnsafeEnabled && x != nil {
    61  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    62  		if ms.LoadMessageInfo() == nil {
    63  			ms.StoreMessageInfo(mi)
    64  		}
    65  		return ms
    66  	}
    67  	return mi.MessageOf(x)
    68  }
    69  
    70  // Deprecated: Use FileAccessLog.ProtoReflect.Descriptor instead.
    71  func (*FileAccessLog) Descriptor() ([]byte, []int) {
    72  	return file_envoy_config_accesslog_v2_file_proto_rawDescGZIP(), []int{0}
    73  }
    74  
    75  func (x *FileAccessLog) GetPath() string {
    76  	if x != nil {
    77  		return x.Path
    78  	}
    79  	return ""
    80  }
    81  
    82  func (m *FileAccessLog) GetAccessLogFormat() isFileAccessLog_AccessLogFormat {
    83  	if m != nil {
    84  		return m.AccessLogFormat
    85  	}
    86  	return nil
    87  }
    88  
    89  func (x *FileAccessLog) GetFormat() string {
    90  	if x, ok := x.GetAccessLogFormat().(*FileAccessLog_Format); ok {
    91  		return x.Format
    92  	}
    93  	return ""
    94  }
    95  
    96  func (x *FileAccessLog) GetJsonFormat() *_struct.Struct {
    97  	if x, ok := x.GetAccessLogFormat().(*FileAccessLog_JsonFormat); ok {
    98  		return x.JsonFormat
    99  	}
   100  	return nil
   101  }
   102  
   103  func (x *FileAccessLog) GetTypedJsonFormat() *_struct.Struct {
   104  	if x, ok := x.GetAccessLogFormat().(*FileAccessLog_TypedJsonFormat); ok {
   105  		return x.TypedJsonFormat
   106  	}
   107  	return nil
   108  }
   109  
   110  type isFileAccessLog_AccessLogFormat interface {
   111  	isFileAccessLog_AccessLogFormat()
   112  }
   113  
   114  type FileAccessLog_Format struct {
   115  	// Access log :ref:`format string<config_access_log_format_strings>`.
   116  	// Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a
   117  	// :ref:`default format <config_access_log_default_format>`.
   118  	Format string `protobuf:"bytes,2,opt,name=format,proto3,oneof"`
   119  }
   120  
   121  type FileAccessLog_JsonFormat struct {
   122  	// Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values
   123  	// are rendered as strings.
   124  	JsonFormat *_struct.Struct `protobuf:"bytes,3,opt,name=json_format,json=jsonFormat,proto3,oneof"`
   125  }
   126  
   127  type FileAccessLog_TypedJsonFormat struct {
   128  	// Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. Values are
   129  	// rendered as strings, numbers, or boolean values as appropriate. Nested JSON objects may
   130  	// be produced by some command operators (e.g.FILTER_STATE or DYNAMIC_METADATA). See the
   131  	// documentation for a specific command operator for details.
   132  	TypedJsonFormat *_struct.Struct `protobuf:"bytes,4,opt,name=typed_json_format,json=typedJsonFormat,proto3,oneof"`
   133  }
   134  
   135  func (*FileAccessLog_Format) isFileAccessLog_AccessLogFormat() {}
   136  
   137  func (*FileAccessLog_JsonFormat) isFileAccessLog_AccessLogFormat() {}
   138  
   139  func (*FileAccessLog_TypedJsonFormat) isFileAccessLog_AccessLogFormat() {}
   140  
   141  var File_envoy_config_accesslog_v2_file_proto protoreflect.FileDescriptor
   142  
   143  var file_envoy_config_accesslog_v2_file_proto_rawDesc = []byte{
   144  	0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x61,
   145  	0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x32, 0x2f, 0x66, 0x69, 0x6c, 0x65,
   146  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f,
   147  	0x6e, 0x66, 0x69, 0x67, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 0x76,
   148  	0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   149  	0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   150  	0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   151  	0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   152  	0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   153  	0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
   154  	0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
   155  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xde, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x6c, 0x65,
   156  	0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x12, 0x1b, 0x0a, 0x04, 0x70, 0x61, 0x74,
   157  	0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01,
   158  	0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
   159  	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
   160  	0x12, 0x3a, 0x0a, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18,
   161  	0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
   162  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00,
   163  	0x52, 0x0a, 0x6a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x45, 0x0a, 0x11,
   164  	0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61,
   165  	0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   166  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74,
   167  	0x48, 0x00, 0x52, 0x0f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72,
   168  	0x6d, 0x61, 0x74, 0x42, 0x13, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f,
   169  	0x67, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0xbb, 0x01, 0x0a, 0x27, 0x69, 0x6f, 0x2e,
   170  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79,
   171  	0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f,
   172  	0x67, 0x2e, 0x76, 0x32, 0x42, 0x09, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
   173  	0x01, 0x5a, 0x4c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e,
   174  	0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74,
   175  	0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f,
   176  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67,
   177  	0x2f, 0x76, 0x32, 0x3b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x76, 0x32, 0xf2,
   178  	0x98, 0xfe, 0x8f, 0x05, 0x29, 0x12, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74,
   179  	0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c,
   180  	0x6f, 0x67, 0x67, 0x65, 0x72, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x76, 0x33, 0xba, 0x80,
   181  	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  }
   254  

View as plain text