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

     1  // Configuration proto for File targets.
     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/file/proto/config.proto
     8  
     9  package proto
    10  
    11  import (
    12  	proto1 "github.com/google/cloudprober/rds/file/proto"
    13  	proto "github.com/google/cloudprober/rds/proto"
    14  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    16  	reflect "reflect"
    17  	sync "sync"
    18  )
    19  
    20  const (
    21  	// Verify that this generated code is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    23  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    24  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    25  )
    26  
    27  type TargetsConf struct {
    28  	state         protoimpl.MessageState
    29  	sizeCache     protoimpl.SizeCache
    30  	unknownFields protoimpl.UnknownFields
    31  
    32  	// File that contains resources in either textproto or json format.
    33  	// Example in textproto format:
    34  	//
    35  	// resource {
    36  	//   name: "switch-xx-01"
    37  	//   ip: "10.11.112.3"
    38  	//   port: 8080
    39  	//   labels {
    40  	//     key: "device_type"
    41  	//     value: "switch"
    42  	//   }
    43  	// }
    44  	// resource {
    45  	//   name: "switch-yy-01"
    46  	//   ip: "10.16.110.12"
    47  	//   port: 8080
    48  	// }
    49  	FilePath *string                       `protobuf:"bytes,1,opt,name=file_path,json=filePath" json:"file_path,omitempty"`
    50  	Filter   []*proto.Filter               `protobuf:"bytes,2,rep,name=filter" json:"filter,omitempty"`
    51  	Format   *proto1.ProviderConfig_Format `protobuf:"varint,3,opt,name=format,enum=cloudprober.rds.file.ProviderConfig_Format" json:"format,omitempty"`
    52  	// If specified, file will be re-read at the given interval.
    53  	ReEvalSec *int32 `protobuf:"varint,4,opt,name=re_eval_sec,json=reEvalSec" json:"re_eval_sec,omitempty"`
    54  }
    55  
    56  func (x *TargetsConf) Reset() {
    57  	*x = TargetsConf{}
    58  	if protoimpl.UnsafeEnabled {
    59  		mi := &file_github_com_google_cloudprober_targets_file_proto_config_proto_msgTypes[0]
    60  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    61  		ms.StoreMessageInfo(mi)
    62  	}
    63  }
    64  
    65  func (x *TargetsConf) String() string {
    66  	return protoimpl.X.MessageStringOf(x)
    67  }
    68  
    69  func (*TargetsConf) ProtoMessage() {}
    70  
    71  func (x *TargetsConf) ProtoReflect() protoreflect.Message {
    72  	mi := &file_github_com_google_cloudprober_targets_file_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 TargetsConf.ProtoReflect.Descriptor instead.
    84  func (*TargetsConf) Descriptor() ([]byte, []int) {
    85  	return file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDescGZIP(), []int{0}
    86  }
    87  
    88  func (x *TargetsConf) GetFilePath() string {
    89  	if x != nil && x.FilePath != nil {
    90  		return *x.FilePath
    91  	}
    92  	return ""
    93  }
    94  
    95  func (x *TargetsConf) GetFilter() []*proto.Filter {
    96  	if x != nil {
    97  		return x.Filter
    98  	}
    99  	return nil
   100  }
   101  
   102  func (x *TargetsConf) GetFormat() proto1.ProviderConfig_Format {
   103  	if x != nil && x.Format != nil {
   104  		return *x.Format
   105  	}
   106  	return proto1.ProviderConfig_UNSPECIFIED
   107  }
   108  
   109  func (x *TargetsConf) GetReEvalSec() int32 {
   110  	if x != nil && x.ReEvalSec != nil {
   111  		return *x.ReEvalSec
   112  	}
   113  	return 0
   114  }
   115  
   116  var File_github_com_google_cloudprober_targets_file_proto_config_proto protoreflect.FileDescriptor
   117  
   118  var file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDesc = []byte{
   119  	0x0a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f,
   120  	0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f,
   121  	0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
   122  	0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   123  	0x18, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x74, 0x61, 0x72,
   124  	0x67, 0x65, 0x74, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75,
   125  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f,
   126  	0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x72, 0x64, 0x73, 0x2f, 0x66, 0x69, 0x6c,
   127  	0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
   128  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
   129  	0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f,
   130  	0x62, 0x65, 0x72, 0x2f, 0x72, 0x64, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x64,
   131  	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0, 0x01, 0x0a, 0x0b, 0x54, 0x61, 0x72, 0x67,
   132  	0x65, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f,
   133  	0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65,
   134  	0x50, 0x61, 0x74, 0x68, 0x12, 0x2f, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02,
   135  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62,
   136  	0x65, 0x72, 0x2e, 0x72, 0x64, 0x73, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66,
   137  	0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18,
   138  	0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f,
   139  	0x62, 0x65, 0x72, 0x2e, 0x72, 0x64, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f,
   140  	0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x46, 0x6f, 0x72, 0x6d,
   141  	0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x0b, 0x72, 0x65,
   142  	0x5f, 0x65, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,
   143  	0x09, 0x72, 0x65, 0x45, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69,
   144  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   145  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x74, 0x61, 0x72, 0x67,
   146  	0x65, 0x74, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   147  }
   148  
   149  var (
   150  	file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDescOnce sync.Once
   151  	file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDescData = file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDesc
   152  )
   153  
   154  func file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDescGZIP() []byte {
   155  	file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDescOnce.Do(func() {
   156  		file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDescData)
   157  	})
   158  	return file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDescData
   159  }
   160  
   161  var file_github_com_google_cloudprober_targets_file_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   162  var file_github_com_google_cloudprober_targets_file_proto_config_proto_goTypes = []interface{}{
   163  	(*TargetsConf)(nil),               // 0: cloudprober.targets.file.TargetsConf
   164  	(*proto.Filter)(nil),              // 1: cloudprober.rds.Filter
   165  	(proto1.ProviderConfig_Format)(0), // 2: cloudprober.rds.file.ProviderConfig.Format
   166  }
   167  var file_github_com_google_cloudprober_targets_file_proto_config_proto_depIdxs = []int32{
   168  	1, // 0: cloudprober.targets.file.TargetsConf.filter:type_name -> cloudprober.rds.Filter
   169  	2, // 1: cloudprober.targets.file.TargetsConf.format:type_name -> cloudprober.rds.file.ProviderConfig.Format
   170  	2, // [2:2] is the sub-list for method output_type
   171  	2, // [2:2] is the sub-list for method input_type
   172  	2, // [2:2] is the sub-list for extension type_name
   173  	2, // [2:2] is the sub-list for extension extendee
   174  	0, // [0:2] is the sub-list for field type_name
   175  }
   176  
   177  func init() { file_github_com_google_cloudprober_targets_file_proto_config_proto_init() }
   178  func file_github_com_google_cloudprober_targets_file_proto_config_proto_init() {
   179  	if File_github_com_google_cloudprober_targets_file_proto_config_proto != nil {
   180  		return
   181  	}
   182  	if !protoimpl.UnsafeEnabled {
   183  		file_github_com_google_cloudprober_targets_file_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   184  			switch v := v.(*TargetsConf); i {
   185  			case 0:
   186  				return &v.state
   187  			case 1:
   188  				return &v.sizeCache
   189  			case 2:
   190  				return &v.unknownFields
   191  			default:
   192  				return nil
   193  			}
   194  		}
   195  	}
   196  	type x struct{}
   197  	out := protoimpl.TypeBuilder{
   198  		File: protoimpl.DescBuilder{
   199  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   200  			RawDescriptor: file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDesc,
   201  			NumEnums:      0,
   202  			NumMessages:   1,
   203  			NumExtensions: 0,
   204  			NumServices:   0,
   205  		},
   206  		GoTypes:           file_github_com_google_cloudprober_targets_file_proto_config_proto_goTypes,
   207  		DependencyIndexes: file_github_com_google_cloudprober_targets_file_proto_config_proto_depIdxs,
   208  		MessageInfos:      file_github_com_google_cloudprober_targets_file_proto_config_proto_msgTypes,
   209  	}.Build()
   210  	File_github_com_google_cloudprober_targets_file_proto_config_proto = out.File
   211  	file_github_com_google_cloudprober_targets_file_proto_config_proto_rawDesc = nil
   212  	file_github_com_google_cloudprober_targets_file_proto_config_proto_goTypes = nil
   213  	file_github_com_google_cloudprober_targets_file_proto_config_proto_depIdxs = nil
   214  }