gitee.com/zhaochuninhefei/gmgo@v0.0.31-0.20240209061119-069254a02979/go-control-plane/envoy/extensions/key_value/file_based/v3/config.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/key_value/file_based/v3/config.proto
     6  
     7  package envoy_extensions_key_value_file_based_v3
     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  	duration "github.com/golang/protobuf/ptypes/duration"
    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  // [#alpha:]
    32  // [#extension: envoy.key_value.file_based]
    33  // This is configuration to flush a key value store out to disk.
    34  type FileBasedKeyValueStoreConfig struct {
    35  	state         protoimpl.MessageState
    36  	sizeCache     protoimpl.SizeCache
    37  	unknownFields protoimpl.UnknownFields
    38  
    39  	// The filename to read the keys and values from, and write the keys and
    40  	// values to.
    41  	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
    42  	// The interval at which the key value store should be flushed to the file.
    43  	FlushInterval *duration.Duration `protobuf:"bytes,2,opt,name=flush_interval,json=flushInterval,proto3" json:"flush_interval,omitempty"`
    44  }
    45  
    46  func (x *FileBasedKeyValueStoreConfig) Reset() {
    47  	*x = FileBasedKeyValueStoreConfig{}
    48  	if protoimpl.UnsafeEnabled {
    49  		mi := &file_envoy_extensions_key_value_file_based_v3_config_proto_msgTypes[0]
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		ms.StoreMessageInfo(mi)
    52  	}
    53  }
    54  
    55  func (x *FileBasedKeyValueStoreConfig) String() string {
    56  	return protoimpl.X.MessageStringOf(x)
    57  }
    58  
    59  func (*FileBasedKeyValueStoreConfig) ProtoMessage() {}
    60  
    61  func (x *FileBasedKeyValueStoreConfig) ProtoReflect() protoreflect.Message {
    62  	mi := &file_envoy_extensions_key_value_file_based_v3_config_proto_msgTypes[0]
    63  	if protoimpl.UnsafeEnabled && x != nil {
    64  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    65  		if ms.LoadMessageInfo() == nil {
    66  			ms.StoreMessageInfo(mi)
    67  		}
    68  		return ms
    69  	}
    70  	return mi.MessageOf(x)
    71  }
    72  
    73  // Deprecated: Use FileBasedKeyValueStoreConfig.ProtoReflect.Descriptor instead.
    74  func (*FileBasedKeyValueStoreConfig) Descriptor() ([]byte, []int) {
    75  	return file_envoy_extensions_key_value_file_based_v3_config_proto_rawDescGZIP(), []int{0}
    76  }
    77  
    78  func (x *FileBasedKeyValueStoreConfig) GetFilename() string {
    79  	if x != nil {
    80  		return x.Filename
    81  	}
    82  	return ""
    83  }
    84  
    85  func (x *FileBasedKeyValueStoreConfig) GetFlushInterval() *duration.Duration {
    86  	if x != nil {
    87  		return x.FlushInterval
    88  	}
    89  	return nil
    90  }
    91  
    92  var File_envoy_extensions_key_value_file_based_v3_config_proto protoreflect.FileDescriptor
    93  
    94  var file_envoy_extensions_key_value_file_based_v3_config_proto_rawDesc = []byte{
    95  	0x0a, 0x35, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
    96  	0x6e, 0x73, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2f, 0x66, 0x69, 0x6c,
    97  	0x65, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x64, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
    98  	0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x28, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65,
    99  	0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61,
   100  	0x6c, 0x75, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x64, 0x2e, 0x76,
   101  	0x33, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   102  	0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   103  	0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
   104  	0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   105  	0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64,
   106  	0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x01, 0x0a, 0x1c, 0x46, 0x69,
   107  	0x6c, 0x65, 0x42, 0x61, 0x73, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53,
   108  	0x74, 0x6f, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x08, 0x66, 0x69,
   109  	0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42,
   110  	0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12,
   111  	0x40, 0x0a, 0x0e, 0x66, 0x6c, 0x75, 0x73, 0x68, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
   112  	0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   113  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
   114  	0x6f, 0x6e, 0x52, 0x0d, 0x66, 0x6c, 0x75, 0x73, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
   115  	0x6c, 0x42, 0x4f, 0x0a, 0x36, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
   116  	0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
   117  	0x6f, 0x6e, 0x73, 0x2e, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x66, 0x69,
   118  	0x6c, 0x65, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x64, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x43, 0x6f, 0x6e,
   119  	0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02,
   120  	0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   121  }
   122  
   123  var (
   124  	file_envoy_extensions_key_value_file_based_v3_config_proto_rawDescOnce sync.Once
   125  	file_envoy_extensions_key_value_file_based_v3_config_proto_rawDescData = file_envoy_extensions_key_value_file_based_v3_config_proto_rawDesc
   126  )
   127  
   128  func file_envoy_extensions_key_value_file_based_v3_config_proto_rawDescGZIP() []byte {
   129  	file_envoy_extensions_key_value_file_based_v3_config_proto_rawDescOnce.Do(func() {
   130  		file_envoy_extensions_key_value_file_based_v3_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_key_value_file_based_v3_config_proto_rawDescData)
   131  	})
   132  	return file_envoy_extensions_key_value_file_based_v3_config_proto_rawDescData
   133  }
   134  
   135  var file_envoy_extensions_key_value_file_based_v3_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   136  var file_envoy_extensions_key_value_file_based_v3_config_proto_goTypes = []interface{}{
   137  	(*FileBasedKeyValueStoreConfig)(nil), // 0: envoy.extensions.key_value.file_based.v3.FileBasedKeyValueStoreConfig
   138  	(*duration.Duration)(nil),            // 1: google.protobuf.Duration
   139  }
   140  var file_envoy_extensions_key_value_file_based_v3_config_proto_depIdxs = []int32{
   141  	1, // 0: envoy.extensions.key_value.file_based.v3.FileBasedKeyValueStoreConfig.flush_interval:type_name -> google.protobuf.Duration
   142  	1, // [1:1] is the sub-list for method output_type
   143  	1, // [1:1] is the sub-list for method input_type
   144  	1, // [1:1] is the sub-list for extension type_name
   145  	1, // [1:1] is the sub-list for extension extendee
   146  	0, // [0:1] is the sub-list for field type_name
   147  }
   148  
   149  func init() { file_envoy_extensions_key_value_file_based_v3_config_proto_init() }
   150  func file_envoy_extensions_key_value_file_based_v3_config_proto_init() {
   151  	if File_envoy_extensions_key_value_file_based_v3_config_proto != nil {
   152  		return
   153  	}
   154  	if !protoimpl.UnsafeEnabled {
   155  		file_envoy_extensions_key_value_file_based_v3_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   156  			switch v := v.(*FileBasedKeyValueStoreConfig); i {
   157  			case 0:
   158  				return &v.state
   159  			case 1:
   160  				return &v.sizeCache
   161  			case 2:
   162  				return &v.unknownFields
   163  			default:
   164  				return nil
   165  			}
   166  		}
   167  	}
   168  	type x struct{}
   169  	out := protoimpl.TypeBuilder{
   170  		File: protoimpl.DescBuilder{
   171  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   172  			RawDescriptor: file_envoy_extensions_key_value_file_based_v3_config_proto_rawDesc,
   173  			NumEnums:      0,
   174  			NumMessages:   1,
   175  			NumExtensions: 0,
   176  			NumServices:   0,
   177  		},
   178  		GoTypes:           file_envoy_extensions_key_value_file_based_v3_config_proto_goTypes,
   179  		DependencyIndexes: file_envoy_extensions_key_value_file_based_v3_config_proto_depIdxs,
   180  		MessageInfos:      file_envoy_extensions_key_value_file_based_v3_config_proto_msgTypes,
   181  	}.Build()
   182  	File_envoy_extensions_key_value_file_based_v3_config_proto = out.File
   183  	file_envoy_extensions_key_value_file_based_v3_config_proto_rawDesc = nil
   184  	file_envoy_extensions_key_value_file_based_v3_config_proto_goTypes = nil
   185  	file_envoy_extensions_key_value_file_based_v3_config_proto_depIdxs = nil
   186  }