gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/extensions/health_checkers/redis/v3/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/extensions/health_checkers/redis/v3/redis.proto 6 7 package envoy_extensions_health_checkers_redis_v3 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_extensions_health_checkers_redis_v3_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_extensions_health_checkers_redis_v3_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_extensions_health_checkers_redis_v3_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_extensions_health_checkers_redis_v3_redis_proto protoreflect.FileDescriptor 81 82 var file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDesc = []byte{ 83 0x0a, 0x35, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 84 0x6e, 0x73, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 85 0x72, 0x73, 0x2f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, 0x64, 0x69, 86 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x29, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 87 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 88 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x73, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x2e, 89 0x76, 0x33, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 90 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 91 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 92 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 93 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4c, 0x0a, 0x05, 0x52, 0x65, 0x64, 0x69, 0x73, 0x12, 0x10, 0x0a, 94 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x3a, 95 0x31, 0x9a, 0xc5, 0x88, 0x1e, 0x2c, 0x0a, 0x2a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 96 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 97 0x6b, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x64, 98 0x69, 0x73, 0x42, 0x4f, 0x0a, 0x37, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 99 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 100 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 101 0x6b, 0x65, 0x72, 0x73, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x2e, 0x76, 0x33, 0x42, 0x0a, 0x52, 102 0x65, 0x64, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 103 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 104 } 105 106 var ( 107 file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDescOnce sync.Once 108 file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDescData = file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDesc 109 ) 110 111 func file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDescGZIP() []byte { 112 file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDescOnce.Do(func() { 113 file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDescData) 114 }) 115 return file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDescData 116 } 117 118 var file_envoy_extensions_health_checkers_redis_v3_redis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 119 var file_envoy_extensions_health_checkers_redis_v3_redis_proto_goTypes = []interface{}{ 120 (*Redis)(nil), // 0: envoy.extensions.health_checkers.redis.v3.Redis 121 } 122 var file_envoy_extensions_health_checkers_redis_v3_redis_proto_depIdxs = []int32{ 123 0, // [0:0] is the sub-list for method output_type 124 0, // [0:0] is the sub-list for method input_type 125 0, // [0:0] is the sub-list for extension type_name 126 0, // [0:0] is the sub-list for extension extendee 127 0, // [0:0] is the sub-list for field type_name 128 } 129 130 func init() { file_envoy_extensions_health_checkers_redis_v3_redis_proto_init() } 131 func file_envoy_extensions_health_checkers_redis_v3_redis_proto_init() { 132 if File_envoy_extensions_health_checkers_redis_v3_redis_proto != nil { 133 return 134 } 135 if !protoimpl.UnsafeEnabled { 136 file_envoy_extensions_health_checkers_redis_v3_redis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 137 switch v := v.(*Redis); i { 138 case 0: 139 return &v.state 140 case 1: 141 return &v.sizeCache 142 case 2: 143 return &v.unknownFields 144 default: 145 return nil 146 } 147 } 148 } 149 type x struct{} 150 out := protoimpl.TypeBuilder{ 151 File: protoimpl.DescBuilder{ 152 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 153 RawDescriptor: file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDesc, 154 NumEnums: 0, 155 NumMessages: 1, 156 NumExtensions: 0, 157 NumServices: 0, 158 }, 159 GoTypes: file_envoy_extensions_health_checkers_redis_v3_redis_proto_goTypes, 160 DependencyIndexes: file_envoy_extensions_health_checkers_redis_v3_redis_proto_depIdxs, 161 MessageInfos: file_envoy_extensions_health_checkers_redis_v3_redis_proto_msgTypes, 162 }.Build() 163 File_envoy_extensions_health_checkers_redis_v3_redis_proto = out.File 164 file_envoy_extensions_health_checkers_redis_v3_redis_proto_rawDesc = nil 165 file_envoy_extensions_health_checkers_redis_v3_redis_proto_goTypes = nil 166 file_envoy_extensions_health_checkers_redis_v3_redis_proto_depIdxs = nil 167 }