github.com/kaydxh/golang@v0.0.131/pkg/database/redis/redis.pb.go (about)

     1  /*
     2   *Copyright (c) 2022, kaydxh
     3   *
     4   *Permission is hereby granted, free of charge, to any person obtaining a copy
     5   *of this software and associated documentation files (the "Software"), to deal
     6   *in the Software without restriction, including without limitation the rights
     7   *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8   *copies of the Software, and to permit persons to whom the Software is
     9   *furnished to do so, subject to the following conditions:
    10   *
    11   *The above copyright notice and this permission notice shall be included in all
    12   *copies or substantial portions of the Software.
    13   *
    14   *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    15   *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16   *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    17   *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    18   *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    19   *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    20   *SOFTWARE.
    21   */
    22  // Code generated by protoc-gen-go. DO NOT EDIT.
    23  // versions:
    24  // 	protoc-gen-go v1.27.0
    25  // 	protoc        v3.13.0
    26  // source: pkg/database/redis/redis.proto
    27  
    28  package redis
    29  
    30  import (
    31  	duration "github.com/golang/protobuf/ptypes/duration"
    32  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    33  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    34  	reflect "reflect"
    35  	sync "sync"
    36  )
    37  
    38  const (
    39  	// Verify that this generated code is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    41  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    42  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    43  )
    44  
    45  // https://github.com/go-redis/redis/blob/ce40cd942a72c4a93f9025047e6fd3f510700ab3/options.go
    46  type Redis struct {
    47  	state         protoimpl.MessageState
    48  	sizeCache     protoimpl.SizeCache
    49  	unknownFields protoimpl.UnknownFields
    50  
    51  	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
    52  	// Either a single address or a seed list of host:port addresses
    53  	// of cluster/sentinel nodes.
    54  	Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
    55  	// Database to be selected after connecting to the server.
    56  	// Only single-node and failover clients.
    57  	Db int64 `protobuf:"varint,3,opt,name=db,proto3" json:"db,omitempty"`
    58  	// Use the specified Username to authenticate the current connection
    59  	// with one of the connections defined in the ACL list when connecting
    60  	// to a Redis 6.0 instance, or greater, that is using the Redis ACL system.
    61  	Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
    62  	// Optional password. Must match the password specified in the
    63  	// requirepass server configuration option (if connecting to a Redis 5.0
    64  	// instance, or lower), or the User Password when connecting to a Redis 6.0
    65  	// instance, or greater, that is using the Redis ACL system.
    66  	Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
    67  	// Maximumumber of retries before giving up.
    68  	// Default is 3 retries.
    69  	MaxRetries int64 `protobuf:"varint,7,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"`
    70  	// Minimum backoff between each retry.
    71  	// Default is 8 milliseconds; -1 disables backoff.
    72  	MinRetryBackoff *duration.Duration `protobuf:"bytes,8,opt,name=min_retry_backoff,json=minRetryBackoff,proto3" json:"min_retry_backoff,omitempty"`
    73  	// Maximum backoff between each retry.
    74  	// Default is 512 milliseconds; -1 disables backoff.
    75  	MaxRetryBackoff *duration.Duration `protobuf:"bytes,9,opt,name=max_retry_backoff,json=maxRetryBackoff,proto3" json:"max_retry_backoff,omitempty"`
    76  	// Dial timeout for establishing new connections.
    77  	// Default is 5 seconds.
    78  	DialTimeout *duration.Duration `protobuf:"bytes,10,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`
    79  	// Timeout for socket reads. If reached, commands will fail
    80  	// with a timeout instead of blocking. Use value -1 for no timeout and 0 for
    81  	// default. Default is 3 seconds.
    82  	ReadTimeout *duration.Duration `protobuf:"bytes,11,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
    83  	// Timeout for socket writes. If reached, commands will fail
    84  	// with a timeout instead of blocking.
    85  	// Default is ReadTimeout.
    86  	WriteTimeout *duration.Duration `protobuf:"bytes,12,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"`
    87  	// Maximum number of socket connections.
    88  	// Default is 10 connections per every available CPU as reported by
    89  	// runtime.GOMAXPROCS.
    90  	PoolSize int64 `protobuf:"varint,13,opt,name=pool_size,json=poolSize,proto3" json:"pool_size,omitempty"`
    91  	// Minimum number of idle connections which is useful when establishing
    92  	// new connection is slow.
    93  	MinIdleConns int64 `protobuf:"varint,14,opt,name=min_idle_conns,json=minIdleConns,proto3" json:"min_idle_conns,omitempty"`
    94  	// Connection age at which client retires (closes) the connection.
    95  	// Default is to not close aged connections.
    96  	MaxConnAge *duration.Duration `protobuf:"bytes,15,opt,name=max_conn_age,json=maxConnAge,proto3" json:"max_conn_age,omitempty"`
    97  	// Amount of time client waits for connection if all connections
    98  	// are busy before returning an error.
    99  	// Default is ReadTimeout + 1 second.
   100  	PoolTimeout *duration.Duration `protobuf:"bytes,16,opt,name=pool_timeout,json=poolTimeout,proto3" json:"pool_timeout,omitempty"`
   101  	// Amount of time after which client closes idle connections.
   102  	// Should be less than server's timeout.
   103  	// Default is 5 minutes. -1 disables idle timeout check.
   104  	IdleTimeout *duration.Duration `protobuf:"bytes,17,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
   105  	// Frequency of idle checks made by idle connections reaper.
   106  	// Default is 1 minute. -1 disables idle connections reaper,
   107  	// but idle connections are still discarded by the client
   108  	// if IdleTimeout is set.
   109  	IdleCheckFrequency *duration.Duration `protobuf:"bytes,18,opt,name=idle_check_frequency,json=idleCheckFrequency,proto3" json:"idle_check_frequency,omitempty"`
   110  	// Only cluster clients.
   111  	MaxRedirects int64 `protobuf:"varint,19,opt,name=max_redirects,json=maxRedirects,proto3" json:"max_redirects,omitempty"`
   112  	ReadOnly     bool  `protobuf:"varint,20,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
   113  	// Allows routing read-only commands to the closest master or slave node.
   114  	// This option only works with NewFailoverClusterClient.
   115  	RouteByLatency bool `protobuf:"varint,21,opt,name=route_by_latency,json=routeByLatency,proto3" json:"route_by_latency,omitempty"`
   116  	// Allows routing read-only commands to the random master or slave node.
   117  	// This option only works with NewFailoverClusterClient.
   118  	RouteRandomly bool `protobuf:"varint,22,opt,name=route_randomly,json=routeRandomly,proto3" json:"route_randomly,omitempty"` // Route all commands to slave read-only nodes.
   119  	// The sentinel master name.
   120  	// Only failover clients.
   121  	// The master name.
   122  	MasterName        string             `protobuf:"bytes,23,opt,name=master_name,json=masterName,proto3" json:"master_name,omitempty"`
   123  	MaxWaitDuration   *duration.Duration `protobuf:"bytes,24,opt,name=max_wait_duration,json=maxWaitDuration,proto3" json:"max_wait_duration,omitempty"`
   124  	FailAfterDuration *duration.Duration `protobuf:"bytes,25,opt,name=fail_after_duration,json=failAfterDuration,proto3" json:"fail_after_duration,omitempty"`
   125  }
   126  
   127  func (x *Redis) Reset() {
   128  	*x = Redis{}
   129  	if protoimpl.UnsafeEnabled {
   130  		mi := &file_pkg_database_redis_redis_proto_msgTypes[0]
   131  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   132  		ms.StoreMessageInfo(mi)
   133  	}
   134  }
   135  
   136  func (x *Redis) String() string {
   137  	return protoimpl.X.MessageStringOf(x)
   138  }
   139  
   140  func (*Redis) ProtoMessage() {}
   141  
   142  func (x *Redis) ProtoReflect() protoreflect.Message {
   143  	mi := &file_pkg_database_redis_redis_proto_msgTypes[0]
   144  	if protoimpl.UnsafeEnabled && x != nil {
   145  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   146  		if ms.LoadMessageInfo() == nil {
   147  			ms.StoreMessageInfo(mi)
   148  		}
   149  		return ms
   150  	}
   151  	return mi.MessageOf(x)
   152  }
   153  
   154  // Deprecated: Use Redis.ProtoReflect.Descriptor instead.
   155  func (*Redis) Descriptor() ([]byte, []int) {
   156  	return file_pkg_database_redis_redis_proto_rawDescGZIP(), []int{0}
   157  }
   158  
   159  func (x *Redis) GetEnabled() bool {
   160  	if x != nil {
   161  		return x.Enabled
   162  	}
   163  	return false
   164  }
   165  
   166  func (x *Redis) GetAddresses() []string {
   167  	if x != nil {
   168  		return x.Addresses
   169  	}
   170  	return nil
   171  }
   172  
   173  func (x *Redis) GetDb() int64 {
   174  	if x != nil {
   175  		return x.Db
   176  	}
   177  	return 0
   178  }
   179  
   180  func (x *Redis) GetUsername() string {
   181  	if x != nil {
   182  		return x.Username
   183  	}
   184  	return ""
   185  }
   186  
   187  func (x *Redis) GetPassword() string {
   188  	if x != nil {
   189  		return x.Password
   190  	}
   191  	return ""
   192  }
   193  
   194  func (x *Redis) GetMaxRetries() int64 {
   195  	if x != nil {
   196  		return x.MaxRetries
   197  	}
   198  	return 0
   199  }
   200  
   201  func (x *Redis) GetMinRetryBackoff() *duration.Duration {
   202  	if x != nil {
   203  		return x.MinRetryBackoff
   204  	}
   205  	return nil
   206  }
   207  
   208  func (x *Redis) GetMaxRetryBackoff() *duration.Duration {
   209  	if x != nil {
   210  		return x.MaxRetryBackoff
   211  	}
   212  	return nil
   213  }
   214  
   215  func (x *Redis) GetDialTimeout() *duration.Duration {
   216  	if x != nil {
   217  		return x.DialTimeout
   218  	}
   219  	return nil
   220  }
   221  
   222  func (x *Redis) GetReadTimeout() *duration.Duration {
   223  	if x != nil {
   224  		return x.ReadTimeout
   225  	}
   226  	return nil
   227  }
   228  
   229  func (x *Redis) GetWriteTimeout() *duration.Duration {
   230  	if x != nil {
   231  		return x.WriteTimeout
   232  	}
   233  	return nil
   234  }
   235  
   236  func (x *Redis) GetPoolSize() int64 {
   237  	if x != nil {
   238  		return x.PoolSize
   239  	}
   240  	return 0
   241  }
   242  
   243  func (x *Redis) GetMinIdleConns() int64 {
   244  	if x != nil {
   245  		return x.MinIdleConns
   246  	}
   247  	return 0
   248  }
   249  
   250  func (x *Redis) GetMaxConnAge() *duration.Duration {
   251  	if x != nil {
   252  		return x.MaxConnAge
   253  	}
   254  	return nil
   255  }
   256  
   257  func (x *Redis) GetPoolTimeout() *duration.Duration {
   258  	if x != nil {
   259  		return x.PoolTimeout
   260  	}
   261  	return nil
   262  }
   263  
   264  func (x *Redis) GetIdleTimeout() *duration.Duration {
   265  	if x != nil {
   266  		return x.IdleTimeout
   267  	}
   268  	return nil
   269  }
   270  
   271  func (x *Redis) GetIdleCheckFrequency() *duration.Duration {
   272  	if x != nil {
   273  		return x.IdleCheckFrequency
   274  	}
   275  	return nil
   276  }
   277  
   278  func (x *Redis) GetMaxRedirects() int64 {
   279  	if x != nil {
   280  		return x.MaxRedirects
   281  	}
   282  	return 0
   283  }
   284  
   285  func (x *Redis) GetReadOnly() bool {
   286  	if x != nil {
   287  		return x.ReadOnly
   288  	}
   289  	return false
   290  }
   291  
   292  func (x *Redis) GetRouteByLatency() bool {
   293  	if x != nil {
   294  		return x.RouteByLatency
   295  	}
   296  	return false
   297  }
   298  
   299  func (x *Redis) GetRouteRandomly() bool {
   300  	if x != nil {
   301  		return x.RouteRandomly
   302  	}
   303  	return false
   304  }
   305  
   306  func (x *Redis) GetMasterName() string {
   307  	if x != nil {
   308  		return x.MasterName
   309  	}
   310  	return ""
   311  }
   312  
   313  func (x *Redis) GetMaxWaitDuration() *duration.Duration {
   314  	if x != nil {
   315  		return x.MaxWaitDuration
   316  	}
   317  	return nil
   318  }
   319  
   320  func (x *Redis) GetFailAfterDuration() *duration.Duration {
   321  	if x != nil {
   322  		return x.FailAfterDuration
   323  	}
   324  	return nil
   325  }
   326  
   327  var File_pkg_database_redis_redis_proto protoreflect.FileDescriptor
   328  
   329  var file_pkg_database_redis_redis_proto_rawDesc = []byte{
   330  	0x0a, 0x1e, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x72,
   331  	0x65, 0x64, 0x69, 0x73, 0x2f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   332  	0x12, 0x15, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
   333  	0x65, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   334  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
   335  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x64, 0x69,
   336  	0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01,
   337  	0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61,
   338  	0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09,
   339  	0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x64, 0x62, 0x18,
   340  	0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x64, 0x62, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65,
   341  	0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65,
   342  	0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
   343  	0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
   344  	0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73,
   345  	0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x74, 0x72, 0x69,
   346  	0x65, 0x73, 0x12, 0x45, 0x0a, 0x11, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f,
   347  	0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
   348  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   349  	0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x74,
   350  	0x72, 0x79, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x12, 0x45, 0x0a, 0x11, 0x6d, 0x61, 0x78,
   351  	0x5f, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x09,
   352  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   353  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
   354  	0x0f, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x74, 0x72, 0x79, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66,
   355  	0x12, 0x3c, 0x0a, 0x0c, 0x64, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
   356  	0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   357  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
   358  	0x6e, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3c,
   359  	0x0a, 0x0c, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0b,
   360  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   361  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
   362  	0x0b, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3e, 0x0a, 0x0d,
   363  	0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0c, 0x20,
   364  	0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
   365  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c,
   366  	0x77, 0x72, 0x69, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x1b, 0x0a, 0x09,
   367  	0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52,
   368  	0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x69, 0x6e,
   369  	0x5f, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28,
   370  	0x03, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x12,
   371  	0x3b, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x5f, 0x61, 0x67, 0x65, 0x18,
   372  	0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
   373  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   374  	0x52, 0x0a, 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x6e, 0x6e, 0x41, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x0c,
   375  	0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x10, 0x20, 0x01,
   376  	0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   377  	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x70,
   378  	0x6f, 0x6f, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x69, 0x64,
   379  	0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b,
   380  	0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   381  	0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x69, 0x64, 0x6c,
   382  	0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x4b, 0x0a, 0x14, 0x69, 0x64, 0x6c, 0x65,
   383  	0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79,
   384  	0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   385  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
   386  	0x6e, 0x52, 0x12, 0x69, 0x64, 0x6c, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x46, 0x72, 0x65, 0x71,
   387  	0x75, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x64,
   388  	0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x61,
   389  	0x78, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65,
   390  	0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72,
   391  	0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x6f, 0x75, 0x74, 0x65,
   392  	0x5f, 0x62, 0x79, 0x5f, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x15, 0x20, 0x01, 0x28,
   393  	0x08, 0x52, 0x0e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63,
   394  	0x79, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f,
   395  	0x6d, 0x6c, 0x79, 0x18, 0x16, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x6f, 0x75, 0x74, 0x65,
   396  	0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6c, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x73, 0x74,
   397  	0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d,
   398  	0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x11, 0x6d, 0x61, 0x78,
   399  	0x5f, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x18,
   400  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   401  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
   402  	0x0f, 0x6d, 0x61, 0x78, 0x57, 0x61, 0x69, 0x74, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   403  	0x12, 0x49, 0x0a, 0x13, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x64,
   404  	0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
   405  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   406  	0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x66, 0x61, 0x69, 0x6c, 0x41, 0x66,
   407  	0x74, 0x65, 0x72, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x33, 0x5a, 0x31, 0x67,
   408  	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68,
   409  	0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x61, 0x74, 0x61,
   410  	0x62, 0x61, 0x73, 0x65, 0x2f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x3b, 0x72, 0x65, 0x64, 0x69, 0x73,
   411  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   412  }
   413  
   414  var (
   415  	file_pkg_database_redis_redis_proto_rawDescOnce sync.Once
   416  	file_pkg_database_redis_redis_proto_rawDescData = file_pkg_database_redis_redis_proto_rawDesc
   417  )
   418  
   419  func file_pkg_database_redis_redis_proto_rawDescGZIP() []byte {
   420  	file_pkg_database_redis_redis_proto_rawDescOnce.Do(func() {
   421  		file_pkg_database_redis_redis_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_database_redis_redis_proto_rawDescData)
   422  	})
   423  	return file_pkg_database_redis_redis_proto_rawDescData
   424  }
   425  
   426  var file_pkg_database_redis_redis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   427  var file_pkg_database_redis_redis_proto_goTypes = []interface{}{
   428  	(*Redis)(nil),             // 0: go.pkg.database.redis.Redis
   429  	(*duration.Duration)(nil), // 1: google.protobuf.Duration
   430  }
   431  var file_pkg_database_redis_redis_proto_depIdxs = []int32{
   432  	1,  // 0: go.pkg.database.redis.Redis.min_retry_backoff:type_name -> google.protobuf.Duration
   433  	1,  // 1: go.pkg.database.redis.Redis.max_retry_backoff:type_name -> google.protobuf.Duration
   434  	1,  // 2: go.pkg.database.redis.Redis.dial_timeout:type_name -> google.protobuf.Duration
   435  	1,  // 3: go.pkg.database.redis.Redis.read_timeout:type_name -> google.protobuf.Duration
   436  	1,  // 4: go.pkg.database.redis.Redis.write_timeout:type_name -> google.protobuf.Duration
   437  	1,  // 5: go.pkg.database.redis.Redis.max_conn_age:type_name -> google.protobuf.Duration
   438  	1,  // 6: go.pkg.database.redis.Redis.pool_timeout:type_name -> google.protobuf.Duration
   439  	1,  // 7: go.pkg.database.redis.Redis.idle_timeout:type_name -> google.protobuf.Duration
   440  	1,  // 8: go.pkg.database.redis.Redis.idle_check_frequency:type_name -> google.protobuf.Duration
   441  	1,  // 9: go.pkg.database.redis.Redis.max_wait_duration:type_name -> google.protobuf.Duration
   442  	1,  // 10: go.pkg.database.redis.Redis.fail_after_duration:type_name -> google.protobuf.Duration
   443  	11, // [11:11] is the sub-list for method output_type
   444  	11, // [11:11] is the sub-list for method input_type
   445  	11, // [11:11] is the sub-list for extension type_name
   446  	11, // [11:11] is the sub-list for extension extendee
   447  	0,  // [0:11] is the sub-list for field type_name
   448  }
   449  
   450  func init() { file_pkg_database_redis_redis_proto_init() }
   451  func file_pkg_database_redis_redis_proto_init() {
   452  	if File_pkg_database_redis_redis_proto != nil {
   453  		return
   454  	}
   455  	if !protoimpl.UnsafeEnabled {
   456  		file_pkg_database_redis_redis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   457  			switch v := v.(*Redis); i {
   458  			case 0:
   459  				return &v.state
   460  			case 1:
   461  				return &v.sizeCache
   462  			case 2:
   463  				return &v.unknownFields
   464  			default:
   465  				return nil
   466  			}
   467  		}
   468  	}
   469  	type x struct{}
   470  	out := protoimpl.TypeBuilder{
   471  		File: protoimpl.DescBuilder{
   472  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   473  			RawDescriptor: file_pkg_database_redis_redis_proto_rawDesc,
   474  			NumEnums:      0,
   475  			NumMessages:   1,
   476  			NumExtensions: 0,
   477  			NumServices:   0,
   478  		},
   479  		GoTypes:           file_pkg_database_redis_redis_proto_goTypes,
   480  		DependencyIndexes: file_pkg_database_redis_redis_proto_depIdxs,
   481  		MessageInfos:      file_pkg_database_redis_redis_proto_msgTypes,
   482  	}.Build()
   483  	File_pkg_database_redis_redis_proto = out.File
   484  	file_pkg_database_redis_redis_proto_rawDesc = nil
   485  	file_pkg_database_redis_redis_proto_goTypes = nil
   486  	file_pkg_database_redis_redis_proto_depIdxs = nil
   487  }