github.com/google/cloudprober@v0.11.3/rds/client/proto/config.pb.go (about) 1 // Configuration proto for RDS targets. 2 // Example: 3 // { 4 // request { 5 // resource_uri: "gcp://gce_instances/google.com:bbmc-stackdriver/*" 6 // } 7 // } 8 9 // Code generated by protoc-gen-go. DO NOT EDIT. 10 // versions: 11 // protoc-gen-go v1.26.0 12 // protoc v3.17.3 13 // source: github.com/google/cloudprober/rds/client/proto/config.proto 14 15 package proto 16 17 import ( 18 proto1 "github.com/google/cloudprober/common/oauth/proto" 19 proto2 "github.com/google/cloudprober/common/tlsconfig/proto" 20 proto "github.com/google/cloudprober/rds/proto" 21 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 22 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 23 reflect "reflect" 24 sync "sync" 25 ) 26 27 const ( 28 // Verify that this generated code is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 30 // Verify that runtime/protoimpl is sufficiently up-to-date. 31 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 32 ) 33 34 // ClientConf represents resource discovery service (RDS) based targets. 35 // Next tag: 6 36 type ClientConf struct { 37 state protoimpl.MessageState 38 sizeCache protoimpl.SizeCache 39 unknownFields protoimpl.UnknownFields 40 41 ServerOptions *ClientConf_ServerOptions `protobuf:"bytes,1,opt,name=server_options,json=serverOptions" json:"server_options,omitempty"` 42 Request *proto.ListResourcesRequest `protobuf:"bytes,2,req,name=request" json:"request,omitempty"` 43 // How often targets should be evaluated. Any number less than or equal to 0 44 // will result in no target caching (targets will be reevaluated on demand). 45 // Note that individual target types may have their own caches implemented 46 // (specifically GCE instances/forwarding rules). This does not impact those 47 // caches. 48 ReEvalSec *int32 `protobuf:"varint,3,opt,name=re_eval_sec,json=reEvalSec,def=30" json:"re_eval_sec,omitempty"` 49 } 50 51 // Default values for ClientConf fields. 52 const ( 53 Default_ClientConf_ReEvalSec = int32(30) 54 ) 55 56 func (x *ClientConf) Reset() { 57 *x = ClientConf{} 58 if protoimpl.UnsafeEnabled { 59 mi := &file_github_com_google_cloudprober_rds_client_proto_config_proto_msgTypes[0] 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 ms.StoreMessageInfo(mi) 62 } 63 } 64 65 func (x *ClientConf) String() string { 66 return protoimpl.X.MessageStringOf(x) 67 } 68 69 func (*ClientConf) ProtoMessage() {} 70 71 func (x *ClientConf) ProtoReflect() protoreflect.Message { 72 mi := &file_github_com_google_cloudprober_rds_client_proto_config_proto_msgTypes[0] 73 if protoimpl.UnsafeEnabled && x != nil { 74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 75 if ms.LoadMessageInfo() == nil { 76 ms.StoreMessageInfo(mi) 77 } 78 return ms 79 } 80 return mi.MessageOf(x) 81 } 82 83 // Deprecated: Use ClientConf.ProtoReflect.Descriptor instead. 84 func (*ClientConf) Descriptor() ([]byte, []int) { 85 return file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDescGZIP(), []int{0} 86 } 87 88 func (x *ClientConf) GetServerOptions() *ClientConf_ServerOptions { 89 if x != nil { 90 return x.ServerOptions 91 } 92 return nil 93 } 94 95 func (x *ClientConf) GetRequest() *proto.ListResourcesRequest { 96 if x != nil { 97 return x.Request 98 } 99 return nil 100 } 101 102 func (x *ClientConf) GetReEvalSec() int32 { 103 if x != nil && x.ReEvalSec != nil { 104 return *x.ReEvalSec 105 } 106 return Default_ClientConf_ReEvalSec 107 } 108 109 type ClientConf_ServerOptions struct { 110 state protoimpl.MessageState 111 sizeCache protoimpl.SizeCache 112 unknownFields protoimpl.UnknownFields 113 114 ServerAddress *string `protobuf:"bytes,1,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"` 115 // Optional oauth config for authentication. 116 OauthConfig *proto1.Config `protobuf:"bytes,2,opt,name=oauth_config,json=oauthConfig" json:"oauth_config,omitempty"` 117 // TLS config, it can be used to: 118 // - Specify a CA cert for server cert verification: 119 // tls_config { 120 // ca_cert_file: "...." 121 // } 122 // 123 // - Specify client's TLS cert and key: 124 // tls_config { 125 // tls_cert_file: "..." 126 // tls_key_file: "..." 127 // } 128 TlsConfig *proto2.TLSConfig `protobuf:"bytes,3,opt,name=tls_config,json=tlsConfig" json:"tls_config,omitempty"` 129 } 130 131 func (x *ClientConf_ServerOptions) Reset() { 132 *x = ClientConf_ServerOptions{} 133 if protoimpl.UnsafeEnabled { 134 mi := &file_github_com_google_cloudprober_rds_client_proto_config_proto_msgTypes[1] 135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 136 ms.StoreMessageInfo(mi) 137 } 138 } 139 140 func (x *ClientConf_ServerOptions) String() string { 141 return protoimpl.X.MessageStringOf(x) 142 } 143 144 func (*ClientConf_ServerOptions) ProtoMessage() {} 145 146 func (x *ClientConf_ServerOptions) ProtoReflect() protoreflect.Message { 147 mi := &file_github_com_google_cloudprober_rds_client_proto_config_proto_msgTypes[1] 148 if protoimpl.UnsafeEnabled && x != nil { 149 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 150 if ms.LoadMessageInfo() == nil { 151 ms.StoreMessageInfo(mi) 152 } 153 return ms 154 } 155 return mi.MessageOf(x) 156 } 157 158 // Deprecated: Use ClientConf_ServerOptions.ProtoReflect.Descriptor instead. 159 func (*ClientConf_ServerOptions) Descriptor() ([]byte, []int) { 160 return file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDescGZIP(), []int{0, 0} 161 } 162 163 func (x *ClientConf_ServerOptions) GetServerAddress() string { 164 if x != nil && x.ServerAddress != nil { 165 return *x.ServerAddress 166 } 167 return "" 168 } 169 170 func (x *ClientConf_ServerOptions) GetOauthConfig() *proto1.Config { 171 if x != nil { 172 return x.OauthConfig 173 } 174 return nil 175 } 176 177 func (x *ClientConf_ServerOptions) GetTlsConfig() *proto2.TLSConfig { 178 if x != nil { 179 return x.TlsConfig 180 } 181 return nil 182 } 183 184 var File_github_com_google_cloudprober_rds_client_proto_config_proto protoreflect.FileDescriptor 185 186 var file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDesc = []byte{ 187 0x0a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 188 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 189 0x72, 0x64, 0x73, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 190 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 191 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x64, 0x73, 0x1a, 0x3d, 192 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 193 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 194 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 195 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x41, 0x67, 196 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 197 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 198 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x6c, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x70, 0x72, 199 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 200 0x1a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 201 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 202 0x72, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x64, 0x73, 0x2e, 0x70, 0x72, 203 0x6f, 0x74, 0x6f, 0x22, 0xfb, 0x02, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 204 0x6e, 0x66, 0x12, 0x50, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x74, 205 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6c, 0x6f, 206 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x64, 0x73, 0x2e, 0x43, 0x6c, 0x69, 207 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4f, 0x70, 208 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 209 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 210 0x02, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 211 0x62, 0x65, 0x72, 0x2e, 0x72, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 212 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 213 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0b, 0x72, 0x65, 0x5f, 0x65, 0x76, 0x61, 0x6c, 214 0x5f, 0x73, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x02, 0x33, 0x30, 0x52, 0x09, 215 0x72, 0x65, 0x45, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x1a, 0xb5, 0x01, 0x0a, 0x0d, 0x53, 0x65, 216 0x72, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 217 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 218 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 219 0x73, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 220 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 221 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x43, 0x6f, 0x6e, 222 0x66, 0x69, 0x67, 0x52, 0x0b, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 223 0x12, 0x3f, 0x0a, 0x0a, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 224 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 225 0x65, 0x72, 0x2e, 0x74, 0x6c, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x4c, 0x53, 226 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x74, 0x6c, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 227 0x67, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 228 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 229 0x65, 0x72, 0x2f, 0x72, 0x64, 0x73, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x72, 230 0x6f, 0x74, 0x6f, 231 } 232 233 var ( 234 file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDescOnce sync.Once 235 file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDescData = file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDesc 236 ) 237 238 func file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDescGZIP() []byte { 239 file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDescOnce.Do(func() { 240 file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDescData) 241 }) 242 return file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDescData 243 } 244 245 var file_github_com_google_cloudprober_rds_client_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 246 var file_github_com_google_cloudprober_rds_client_proto_config_proto_goTypes = []interface{}{ 247 (*ClientConf)(nil), // 0: cloudprober.rds.ClientConf 248 (*ClientConf_ServerOptions)(nil), // 1: cloudprober.rds.ClientConf.ServerOptions 249 (*proto.ListResourcesRequest)(nil), // 2: cloudprober.rds.ListResourcesRequest 250 (*proto1.Config)(nil), // 3: cloudprober.oauth.Config 251 (*proto2.TLSConfig)(nil), // 4: cloudprober.tlsconfig.TLSConfig 252 } 253 var file_github_com_google_cloudprober_rds_client_proto_config_proto_depIdxs = []int32{ 254 1, // 0: cloudprober.rds.ClientConf.server_options:type_name -> cloudprober.rds.ClientConf.ServerOptions 255 2, // 1: cloudprober.rds.ClientConf.request:type_name -> cloudprober.rds.ListResourcesRequest 256 3, // 2: cloudprober.rds.ClientConf.ServerOptions.oauth_config:type_name -> cloudprober.oauth.Config 257 4, // 3: cloudprober.rds.ClientConf.ServerOptions.tls_config:type_name -> cloudprober.tlsconfig.TLSConfig 258 4, // [4:4] is the sub-list for method output_type 259 4, // [4:4] is the sub-list for method input_type 260 4, // [4:4] is the sub-list for extension type_name 261 4, // [4:4] is the sub-list for extension extendee 262 0, // [0:4] is the sub-list for field type_name 263 } 264 265 func init() { file_github_com_google_cloudprober_rds_client_proto_config_proto_init() } 266 func file_github_com_google_cloudprober_rds_client_proto_config_proto_init() { 267 if File_github_com_google_cloudprober_rds_client_proto_config_proto != nil { 268 return 269 } 270 if !protoimpl.UnsafeEnabled { 271 file_github_com_google_cloudprober_rds_client_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 272 switch v := v.(*ClientConf); i { 273 case 0: 274 return &v.state 275 case 1: 276 return &v.sizeCache 277 case 2: 278 return &v.unknownFields 279 default: 280 return nil 281 } 282 } 283 file_github_com_google_cloudprober_rds_client_proto_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 284 switch v := v.(*ClientConf_ServerOptions); i { 285 case 0: 286 return &v.state 287 case 1: 288 return &v.sizeCache 289 case 2: 290 return &v.unknownFields 291 default: 292 return nil 293 } 294 } 295 } 296 type x struct{} 297 out := protoimpl.TypeBuilder{ 298 File: protoimpl.DescBuilder{ 299 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 300 RawDescriptor: file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDesc, 301 NumEnums: 0, 302 NumMessages: 2, 303 NumExtensions: 0, 304 NumServices: 0, 305 }, 306 GoTypes: file_github_com_google_cloudprober_rds_client_proto_config_proto_goTypes, 307 DependencyIndexes: file_github_com_google_cloudprober_rds_client_proto_config_proto_depIdxs, 308 MessageInfos: file_github_com_google_cloudprober_rds_client_proto_config_proto_msgTypes, 309 }.Build() 310 File_github_com_google_cloudprober_rds_client_proto_config_proto = out.File 311 file_github_com_google_cloudprober_rds_client_proto_config_proto_rawDesc = nil 312 file_github_com_google_cloudprober_rds_client_proto_config_proto_goTypes = nil 313 file_github_com_google_cloudprober_rds_client_proto_config_proto_depIdxs = nil 314 }