github.com/google/cloudprober@v0.11.3/examples/extensions/myprober/myprobe/myprobe.pb.go (about) 1 // This protobuf defines a new cloudprober probe type. 2 3 // Code generated by protoc-gen-go. DO NOT EDIT. 4 // versions: 5 // protoc-gen-go v1.26.0 6 // protoc v3.17.3 7 // source: github.com/google/cloudprober/examples/extensions/myprober/myprobe/myprobe.proto 8 9 package myprobe 10 11 import ( 12 proto "github.com/google/cloudprober/probes/proto" 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 // Redis operation 27 type ProbeConf_Op int32 28 29 const ( 30 ProbeConf_GET ProbeConf_Op = 0 31 ProbeConf_SET ProbeConf_Op = 1 32 ProbeConf_DELETE ProbeConf_Op = 2 33 ) 34 35 // Enum value maps for ProbeConf_Op. 36 var ( 37 ProbeConf_Op_name = map[int32]string{ 38 0: "GET", 39 1: "SET", 40 2: "DELETE", 41 } 42 ProbeConf_Op_value = map[string]int32{ 43 "GET": 0, 44 "SET": 1, 45 "DELETE": 2, 46 } 47 ) 48 49 func (x ProbeConf_Op) Enum() *ProbeConf_Op { 50 p := new(ProbeConf_Op) 51 *p = x 52 return p 53 } 54 55 func (x ProbeConf_Op) String() string { 56 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 57 } 58 59 func (ProbeConf_Op) Descriptor() protoreflect.EnumDescriptor { 60 return file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_enumTypes[0].Descriptor() 61 } 62 63 func (ProbeConf_Op) Type() protoreflect.EnumType { 64 return &file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_enumTypes[0] 65 } 66 67 func (x ProbeConf_Op) Number() protoreflect.EnumNumber { 68 return protoreflect.EnumNumber(x) 69 } 70 71 // Deprecated: Do not use. 72 func (x *ProbeConf_Op) UnmarshalJSON(b []byte) error { 73 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 74 if err != nil { 75 return err 76 } 77 *x = ProbeConf_Op(num) 78 return nil 79 } 80 81 // Deprecated: Use ProbeConf_Op.Descriptor instead. 82 func (ProbeConf_Op) EnumDescriptor() ([]byte, []int) { 83 return file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDescGZIP(), []int{0, 0} 84 } 85 86 type ProbeConf struct { 87 state protoimpl.MessageState 88 sizeCache protoimpl.SizeCache 89 unknownFields protoimpl.UnknownFields 90 91 Op *ProbeConf_Op `protobuf:"varint,1,req,name=op,enum=myprober.ProbeConf_Op" json:"op,omitempty"` 92 // Key and value for the redis operation 93 Key *string `protobuf:"bytes,2,req,name=key" json:"key,omitempty"` 94 Value *string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` 95 } 96 97 func (x *ProbeConf) Reset() { 98 *x = ProbeConf{} 99 if protoimpl.UnsafeEnabled { 100 mi := &file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_msgTypes[0] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 ms.StoreMessageInfo(mi) 103 } 104 } 105 106 func (x *ProbeConf) String() string { 107 return protoimpl.X.MessageStringOf(x) 108 } 109 110 func (*ProbeConf) ProtoMessage() {} 111 112 func (x *ProbeConf) ProtoReflect() protoreflect.Message { 113 mi := &file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_msgTypes[0] 114 if protoimpl.UnsafeEnabled && x != nil { 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 if ms.LoadMessageInfo() == nil { 117 ms.StoreMessageInfo(mi) 118 } 119 return ms 120 } 121 return mi.MessageOf(x) 122 } 123 124 // Deprecated: Use ProbeConf.ProtoReflect.Descriptor instead. 125 func (*ProbeConf) Descriptor() ([]byte, []int) { 126 return file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDescGZIP(), []int{0} 127 } 128 129 func (x *ProbeConf) GetOp() ProbeConf_Op { 130 if x != nil && x.Op != nil { 131 return *x.Op 132 } 133 return ProbeConf_GET 134 } 135 136 func (x *ProbeConf) GetKey() string { 137 if x != nil && x.Key != nil { 138 return *x.Key 139 } 140 return "" 141 } 142 143 func (x *ProbeConf) GetValue() string { 144 if x != nil && x.Value != nil { 145 return *x.Value 146 } 147 return "" 148 } 149 150 var file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_extTypes = []protoimpl.ExtensionInfo{ 151 { 152 ExtendedType: (*proto.ProbeDef)(nil), 153 ExtensionType: (*ProbeConf)(nil), 154 Field: 200, 155 Name: "myprober.redis_probe", 156 Tag: "bytes,200,opt,name=redis_probe", 157 Filename: "github.com/google/cloudprober/examples/extensions/myprober/myprobe/myprobe.proto", 158 }, 159 } 160 161 // Extension fields to proto.ProbeDef. 162 var ( 163 // optional myprober.ProbeConf redis_probe = 200; 164 E_RedisProbe = &file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_extTypes[0] 165 ) 166 167 var File_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto protoreflect.FileDescriptor 168 169 var file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDesc = []byte{ 170 0x0a, 0x50, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 171 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 172 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 173 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x79, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x6d, 0x79, 0x70, 174 0x72, 0x6f, 0x62, 0x65, 0x2f, 0x6d, 0x79, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x2e, 0x70, 0x72, 0x6f, 175 0x74, 0x6f, 0x12, 0x08, 0x6d, 0x79, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x1a, 0x37, 0x67, 0x69, 176 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 177 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x62, 178 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 179 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x43, 0x6f, 180 0x6e, 0x66, 0x12, 0x26, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0e, 0x32, 0x16, 181 0x2e, 0x6d, 0x79, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x43, 182 0x6f, 0x6e, 0x66, 0x2e, 0x4f, 0x70, 0x52, 0x02, 0x6f, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 183 0x79, 0x18, 0x02, 0x20, 0x02, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 184 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 185 0x75, 0x65, 0x22, 0x22, 0x0a, 0x02, 0x4f, 0x70, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x45, 0x54, 0x10, 186 0x00, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 187 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x3a, 0x53, 0x0a, 0x0b, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 188 0x70, 0x72, 0x6f, 0x62, 0x65, 0x12, 0x1c, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 189 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, 190 0x44, 0x65, 0x66, 0x18, 0xc8, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x79, 0x70, 191 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x52, 192 0x0a, 0x72, 0x65, 0x64, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x42, 0x44, 0x5a, 0x42, 0x67, 193 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 194 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x65, 0x78, 0x61, 195 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 196 0x2f, 0x6d, 0x79, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x6d, 0x79, 0x70, 0x72, 0x6f, 0x62, 197 0x65, 198 } 199 200 var ( 201 file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDescOnce sync.Once 202 file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDescData = file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDesc 203 ) 204 205 func file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDescGZIP() []byte { 206 file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDescOnce.Do(func() { 207 file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDescData) 208 }) 209 return file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDescData 210 } 211 212 var file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 213 var file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 214 var file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_goTypes = []interface{}{ 215 (ProbeConf_Op)(0), // 0: myprober.ProbeConf.Op 216 (*ProbeConf)(nil), // 1: myprober.ProbeConf 217 (*proto.ProbeDef)(nil), // 2: cloudprober.probes.ProbeDef 218 } 219 var file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_depIdxs = []int32{ 220 0, // 0: myprober.ProbeConf.op:type_name -> myprober.ProbeConf.Op 221 2, // 1: myprober.redis_probe:extendee -> cloudprober.probes.ProbeDef 222 1, // 2: myprober.redis_probe:type_name -> myprober.ProbeConf 223 3, // [3:3] is the sub-list for method output_type 224 3, // [3:3] is the sub-list for method input_type 225 2, // [2:3] is the sub-list for extension type_name 226 1, // [1:2] is the sub-list for extension extendee 227 0, // [0:1] is the sub-list for field type_name 228 } 229 230 func init() { 231 file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_init() 232 } 233 func file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_init() { 234 if File_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto != nil { 235 return 236 } 237 if !protoimpl.UnsafeEnabled { 238 file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 239 switch v := v.(*ProbeConf); i { 240 case 0: 241 return &v.state 242 case 1: 243 return &v.sizeCache 244 case 2: 245 return &v.unknownFields 246 default: 247 return nil 248 } 249 } 250 } 251 type x struct{} 252 out := protoimpl.TypeBuilder{ 253 File: protoimpl.DescBuilder{ 254 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 255 RawDescriptor: file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDesc, 256 NumEnums: 1, 257 NumMessages: 1, 258 NumExtensions: 1, 259 NumServices: 0, 260 }, 261 GoTypes: file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_goTypes, 262 DependencyIndexes: file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_depIdxs, 263 EnumInfos: file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_enumTypes, 264 MessageInfos: file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_msgTypes, 265 ExtensionInfos: file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_extTypes, 266 }.Build() 267 File_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto = out.File 268 file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_rawDesc = nil 269 file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_goTypes = nil 270 file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_depIdxs = nil 271 }