gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/config/health_checker/redis/v2/redis.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/health_checker/redis/v2/redis.proto 6 7 package envoy_config_health_checker_redis_v2 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 proto "github.com/golang/protobuf/proto" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type Redis struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 // If set, optionally perform ``EXISTS <key>`` instead of ``PING``. A return value 35 // from Redis of 0 (does not exist) is considered a passing healthcheck. A return value other 36 // than 0 is considered a failure. This allows the user to mark a Redis instance for maintenance 37 // by setting the specified key to any value and waiting for traffic to drain. 38 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 39 } 40 41 func (x *Redis) Reset() { 42 *x = Redis{} 43 if protoimpl.UnsafeEnabled { 44 mi := &file_envoy_config_health_checker_redis_v2_redis_proto_msgTypes[0] 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 ms.StoreMessageInfo(mi) 47 } 48 } 49 50 func (x *Redis) String() string { 51 return protoimpl.X.MessageStringOf(x) 52 } 53 54 func (*Redis) ProtoMessage() {} 55 56 func (x *Redis) ProtoReflect() protoreflect.Message { 57 mi := &file_envoy_config_health_checker_redis_v2_redis_proto_msgTypes[0] 58 if protoimpl.UnsafeEnabled && x != nil { 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 if ms.LoadMessageInfo() == nil { 61 ms.StoreMessageInfo(mi) 62 } 63 return ms 64 } 65 return mi.MessageOf(x) 66 } 67 68 // Deprecated: Use Redis.ProtoReflect.Descriptor instead. 69 func (*Redis) Descriptor() ([]byte, []int) { 70 return file_envoy_config_health_checker_redis_v2_redis_proto_rawDescGZIP(), []int{0} 71 } 72 73 func (x *Redis) GetKey() string { 74 if x != nil { 75 return x.Key 76 } 77 return "" 78 } 79 80 var File_envoy_config_health_checker_redis_v2_redis_proto protoreflect.FileDescriptor 81 82 var file_envoy_config_health_checker_redis_v2_redis_proto_rawDesc = []byte{ 83 0x0a, 0x30, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x68, 84 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x72, 0x65, 85 0x64, 0x69, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 86 0x74, 0x6f, 0x12, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 87 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x2e, 88 0x72, 0x65, 0x64, 0x69, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 89 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 90 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x19, 0x0a, 0x05, 0x52, 0x65, 0x64, 0x69, 0x73, 91 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 92 0x65, 0x79, 0x42, 0x4a, 0x0a, 0x32, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 93 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 94 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x2e, 95 0x72, 0x65, 0x64, 0x69, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 96 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 97 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 98 } 99 100 var ( 101 file_envoy_config_health_checker_redis_v2_redis_proto_rawDescOnce sync.Once 102 file_envoy_config_health_checker_redis_v2_redis_proto_rawDescData = file_envoy_config_health_checker_redis_v2_redis_proto_rawDesc 103 ) 104 105 func file_envoy_config_health_checker_redis_v2_redis_proto_rawDescGZIP() []byte { 106 file_envoy_config_health_checker_redis_v2_redis_proto_rawDescOnce.Do(func() { 107 file_envoy_config_health_checker_redis_v2_redis_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_health_checker_redis_v2_redis_proto_rawDescData) 108 }) 109 return file_envoy_config_health_checker_redis_v2_redis_proto_rawDescData 110 } 111 112 var file_envoy_config_health_checker_redis_v2_redis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 113 var file_envoy_config_health_checker_redis_v2_redis_proto_goTypes = []interface{}{ 114 (*Redis)(nil), // 0: envoy.config.health_checker.redis.v2.Redis 115 } 116 var file_envoy_config_health_checker_redis_v2_redis_proto_depIdxs = []int32{ 117 0, // [0:0] is the sub-list for method output_type 118 0, // [0:0] is the sub-list for method input_type 119 0, // [0:0] is the sub-list for extension type_name 120 0, // [0:0] is the sub-list for extension extendee 121 0, // [0:0] is the sub-list for field type_name 122 } 123 124 func init() { file_envoy_config_health_checker_redis_v2_redis_proto_init() } 125 func file_envoy_config_health_checker_redis_v2_redis_proto_init() { 126 if File_envoy_config_health_checker_redis_v2_redis_proto != nil { 127 return 128 } 129 if !protoimpl.UnsafeEnabled { 130 file_envoy_config_health_checker_redis_v2_redis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 131 switch v := v.(*Redis); i { 132 case 0: 133 return &v.state 134 case 1: 135 return &v.sizeCache 136 case 2: 137 return &v.unknownFields 138 default: 139 return nil 140 } 141 } 142 } 143 type x struct{} 144 out := protoimpl.TypeBuilder{ 145 File: protoimpl.DescBuilder{ 146 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 147 RawDescriptor: file_envoy_config_health_checker_redis_v2_redis_proto_rawDesc, 148 NumEnums: 0, 149 NumMessages: 1, 150 NumExtensions: 0, 151 NumServices: 0, 152 }, 153 GoTypes: file_envoy_config_health_checker_redis_v2_redis_proto_goTypes, 154 DependencyIndexes: file_envoy_config_health_checker_redis_v2_redis_proto_depIdxs, 155 MessageInfos: file_envoy_config_health_checker_redis_v2_redis_proto_msgTypes, 156 }.Build() 157 File_envoy_config_health_checker_redis_v2_redis_proto = out.File 158 file_envoy_config_health_checker_redis_v2_redis_proto_rawDesc = nil 159 file_envoy_config_health_checker_redis_v2_redis_proto_goTypes = nil 160 file_envoy_config_health_checker_redis_v2_redis_proto_depIdxs = nil 161 }