github.com/google/cloudprober@v0.11.3/targets/lameduck/proto/config.pb.go (about)

     1  // Provides all configuration necesary to list targets for a cloudprober probe.
     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/targets/lameduck/proto/config.proto
     8  
     9  package proto
    10  
    11  import (
    12  	proto "github.com/google/cloudprober/rds/client/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  type Options struct {
    27  	state         protoimpl.MessageState
    28  	sizeCache     protoimpl.SizeCache
    29  	unknownFields protoimpl.UnknownFields
    30  
    31  	// How often to check for lame-ducked targets
    32  	ReEvalSec *int32 `protobuf:"varint,1,opt,name=re_eval_sec,json=reEvalSec,def=10" json:"re_eval_sec,omitempty"`
    33  	// Runtime config project. If running on GCE, this defaults to the project
    34  	// containing the VM.
    35  	RuntimeconfigProject *string `protobuf:"bytes,2,opt,name=runtimeconfig_project,json=runtimeconfigProject" json:"runtimeconfig_project,omitempty"`
    36  	// Lame duck targets runtime config name. An operator will create a variable
    37  	// here to mark a target as lame-ducked.
    38  	RuntimeconfigName *string `protobuf:"bytes,3,opt,name=runtimeconfig_name,json=runtimeconfigName,def=lame-duck-targets" json:"runtimeconfig_name,omitempty"`
    39  	// Lame duck targets pubsub topic name. An operator will create a message
    40  	// here to mark a target as lame-ducked.
    41  	PubsubTopic *string `protobuf:"bytes,7,opt,name=pubsub_topic,json=pubsubTopic" json:"pubsub_topic,omitempty"`
    42  	// Lame duck expiration time. We ignore variables (targets) that have been
    43  	// updated more than these many seconds ago. This is a safety mechanism for
    44  	// failing to cleanup. Also, the idea is that if a target has actually
    45  	// disappeared, automatic targets expansion will take care of that some time
    46  	// during this expiration period.
    47  	ExpirationSec *int32 `protobuf:"varint,4,opt,name=expiration_sec,json=expirationSec,def=300" json:"expiration_sec,omitempty"`
    48  	// Use an RDS client to get lame-duck-targets.
    49  	// This option is always true now and will be removed after v0.10.7.
    50  	//
    51  	// Deprecated: Do not use.
    52  	UseRds *bool `protobuf:"varint,5,opt,name=use_rds,json=useRds" json:"use_rds,omitempty"`
    53  	// RDS server options, for example:
    54  	// rds_server_options {
    55  	//   server_address: "rds-server.xyz:9314"
    56  	//   oauth_config: {
    57  	//     ...
    58  	//   }
    59  	RdsServerOptions *proto.ClientConf_ServerOptions `protobuf:"bytes,6,opt,name=rds_server_options,json=rdsServerOptions" json:"rds_server_options,omitempty"`
    60  }
    61  
    62  // Default values for Options fields.
    63  const (
    64  	Default_Options_ReEvalSec         = int32(10)
    65  	Default_Options_RuntimeconfigName = string("lame-duck-targets")
    66  	Default_Options_ExpirationSec     = int32(300)
    67  )
    68  
    69  func (x *Options) Reset() {
    70  	*x = Options{}
    71  	if protoimpl.UnsafeEnabled {
    72  		mi := &file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_msgTypes[0]
    73  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    74  		ms.StoreMessageInfo(mi)
    75  	}
    76  }
    77  
    78  func (x *Options) String() string {
    79  	return protoimpl.X.MessageStringOf(x)
    80  }
    81  
    82  func (*Options) ProtoMessage() {}
    83  
    84  func (x *Options) ProtoReflect() protoreflect.Message {
    85  	mi := &file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_msgTypes[0]
    86  	if protoimpl.UnsafeEnabled && x != nil {
    87  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    88  		if ms.LoadMessageInfo() == nil {
    89  			ms.StoreMessageInfo(mi)
    90  		}
    91  		return ms
    92  	}
    93  	return mi.MessageOf(x)
    94  }
    95  
    96  // Deprecated: Use Options.ProtoReflect.Descriptor instead.
    97  func (*Options) Descriptor() ([]byte, []int) {
    98  	return file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDescGZIP(), []int{0}
    99  }
   100  
   101  func (x *Options) GetReEvalSec() int32 {
   102  	if x != nil && x.ReEvalSec != nil {
   103  		return *x.ReEvalSec
   104  	}
   105  	return Default_Options_ReEvalSec
   106  }
   107  
   108  func (x *Options) GetRuntimeconfigProject() string {
   109  	if x != nil && x.RuntimeconfigProject != nil {
   110  		return *x.RuntimeconfigProject
   111  	}
   112  	return ""
   113  }
   114  
   115  func (x *Options) GetRuntimeconfigName() string {
   116  	if x != nil && x.RuntimeconfigName != nil {
   117  		return *x.RuntimeconfigName
   118  	}
   119  	return Default_Options_RuntimeconfigName
   120  }
   121  
   122  func (x *Options) GetPubsubTopic() string {
   123  	if x != nil && x.PubsubTopic != nil {
   124  		return *x.PubsubTopic
   125  	}
   126  	return ""
   127  }
   128  
   129  func (x *Options) GetExpirationSec() int32 {
   130  	if x != nil && x.ExpirationSec != nil {
   131  		return *x.ExpirationSec
   132  	}
   133  	return Default_Options_ExpirationSec
   134  }
   135  
   136  // Deprecated: Do not use.
   137  func (x *Options) GetUseRds() bool {
   138  	if x != nil && x.UseRds != nil {
   139  		return *x.UseRds
   140  	}
   141  	return false
   142  }
   143  
   144  func (x *Options) GetRdsServerOptions() *proto.ClientConf_ServerOptions {
   145  	if x != nil {
   146  		return x.RdsServerOptions
   147  	}
   148  	return nil
   149  }
   150  
   151  var File_github_com_google_cloudprober_targets_lameduck_proto_config_proto protoreflect.FileDescriptor
   152  
   153  var file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDesc = []byte{
   154  	0x0a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f,
   155  	0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f,
   156  	0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x2f, 0x6c, 0x61, 0x6d, 0x65, 0x64, 0x75, 0x63, 0x6b,
   157  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72,
   158  	0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72,
   159  	0x2e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x6c, 0x61, 0x6d, 0x65, 0x64, 0x75, 0x63,
   160  	0x6b, 0x1a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
   161  	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72,
   162  	0x2f, 0x72, 0x64, 0x73, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   163  	0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9,
   164  	0x02, 0x0a, 0x07, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x22, 0x0a, 0x0b, 0x72, 0x65,
   165  	0x5f, 0x65, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x3a,
   166  	0x02, 0x31, 0x30, 0x52, 0x09, 0x72, 0x65, 0x45, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x12, 0x33,
   167  	0x0a, 0x15, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f,
   168  	0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x72,
   169  	0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x6a,
   170  	0x65, 0x63, 0x74, 0x12, 0x40, 0x0a, 0x12, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x63, 0x6f,
   171  	0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x3a,
   172  	0x11, 0x6c, 0x61, 0x6d, 0x65, 0x2d, 0x64, 0x75, 0x63, 0x6b, 0x2d, 0x74, 0x61, 0x72, 0x67, 0x65,
   173  	0x74, 0x73, 0x52, 0x11, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   174  	0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x5f,
   175  	0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x75, 0x62,
   176  	0x73, 0x75, 0x62, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x2a, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x69,
   177  	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
   178  	0x3a, 0x03, 0x33, 0x30, 0x30, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f,
   179  	0x6e, 0x53, 0x65, 0x63, 0x12, 0x1b, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x5f, 0x72, 0x64, 0x73, 0x18,
   180  	0x05, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x75, 0x73, 0x65, 0x52, 0x64,
   181  	0x73, 0x12, 0x57, 0x0a, 0x12, 0x72, 0x64, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f,
   182  	0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e,
   183  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x64, 0x73, 0x2e,
   184  	0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65,
   185  	0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x10, 0x72, 0x64, 0x73, 0x53, 0x65, 0x72,
   186  	0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69,
   187  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   188  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x74, 0x61, 0x72, 0x67,
   189  	0x65, 0x74, 0x73, 0x2f, 0x6c, 0x61, 0x6d, 0x65, 0x64, 0x75, 0x63, 0x6b, 0x2f, 0x70, 0x72, 0x6f,
   190  	0x74, 0x6f,
   191  }
   192  
   193  var (
   194  	file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDescOnce sync.Once
   195  	file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDescData = file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDesc
   196  )
   197  
   198  func file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDescGZIP() []byte {
   199  	file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDescOnce.Do(func() {
   200  		file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDescData)
   201  	})
   202  	return file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDescData
   203  }
   204  
   205  var file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   206  var file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_goTypes = []interface{}{
   207  	(*Options)(nil),                        // 0: cloudprober.targets.lameduck.Options
   208  	(*proto.ClientConf_ServerOptions)(nil), // 1: cloudprober.rds.ClientConf.ServerOptions
   209  }
   210  var file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_depIdxs = []int32{
   211  	1, // 0: cloudprober.targets.lameduck.Options.rds_server_options:type_name -> cloudprober.rds.ClientConf.ServerOptions
   212  	1, // [1:1] is the sub-list for method output_type
   213  	1, // [1:1] is the sub-list for method input_type
   214  	1, // [1:1] is the sub-list for extension type_name
   215  	1, // [1:1] is the sub-list for extension extendee
   216  	0, // [0:1] is the sub-list for field type_name
   217  }
   218  
   219  func init() { file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_init() }
   220  func file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_init() {
   221  	if File_github_com_google_cloudprober_targets_lameduck_proto_config_proto != nil {
   222  		return
   223  	}
   224  	if !protoimpl.UnsafeEnabled {
   225  		file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   226  			switch v := v.(*Options); i {
   227  			case 0:
   228  				return &v.state
   229  			case 1:
   230  				return &v.sizeCache
   231  			case 2:
   232  				return &v.unknownFields
   233  			default:
   234  				return nil
   235  			}
   236  		}
   237  	}
   238  	type x struct{}
   239  	out := protoimpl.TypeBuilder{
   240  		File: protoimpl.DescBuilder{
   241  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   242  			RawDescriptor: file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDesc,
   243  			NumEnums:      0,
   244  			NumMessages:   1,
   245  			NumExtensions: 0,
   246  			NumServices:   0,
   247  		},
   248  		GoTypes:           file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_goTypes,
   249  		DependencyIndexes: file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_depIdxs,
   250  		MessageInfos:      file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_msgTypes,
   251  	}.Build()
   252  	File_github_com_google_cloudprober_targets_lameduck_proto_config_proto = out.File
   253  	file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_rawDesc = nil
   254  	file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_goTypes = nil
   255  	file_github_com_google_cloudprober_targets_lameduck_proto_config_proto_depIdxs = nil
   256  }