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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.26.0
     4  // 	protoc        v3.17.3
     5  // source: github.com/google/cloudprober/surfacers/datadog/proto/config.proto
     6  
     7  package proto
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // Surfacer config for datadog surfacer.
    24  type SurfacerConf struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	// Prefix to add to all metrics.
    30  	Prefix *string `protobuf:"bytes,1,opt,name=prefix,def=cloudprober" json:"prefix,omitempty"`
    31  	// Datadog API key. If not set, DD_API_KEY env variable is used.
    32  	ApiKey *string `protobuf:"bytes,2,opt,name=api_key,json=apiKey" json:"api_key,omitempty"`
    33  	// Datadog APP key. If not set, DD_APP_KEY env variable is used.
    34  	AppKey *string `protobuf:"bytes,3,opt,name=app_key,json=appKey" json:"app_key,omitempty"`
    35  	// Datadog server, default: "api.datadoghq.com"
    36  	Server *string `protobuf:"bytes,4,opt,name=server" json:"server,omitempty"`
    37  }
    38  
    39  // Default values for SurfacerConf fields.
    40  const (
    41  	Default_SurfacerConf_Prefix = string("cloudprober")
    42  )
    43  
    44  func (x *SurfacerConf) Reset() {
    45  	*x = SurfacerConf{}
    46  	if protoimpl.UnsafeEnabled {
    47  		mi := &file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_msgTypes[0]
    48  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    49  		ms.StoreMessageInfo(mi)
    50  	}
    51  }
    52  
    53  func (x *SurfacerConf) String() string {
    54  	return protoimpl.X.MessageStringOf(x)
    55  }
    56  
    57  func (*SurfacerConf) ProtoMessage() {}
    58  
    59  func (x *SurfacerConf) ProtoReflect() protoreflect.Message {
    60  	mi := &file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_msgTypes[0]
    61  	if protoimpl.UnsafeEnabled && x != nil {
    62  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    63  		if ms.LoadMessageInfo() == nil {
    64  			ms.StoreMessageInfo(mi)
    65  		}
    66  		return ms
    67  	}
    68  	return mi.MessageOf(x)
    69  }
    70  
    71  // Deprecated: Use SurfacerConf.ProtoReflect.Descriptor instead.
    72  func (*SurfacerConf) Descriptor() ([]byte, []int) {
    73  	return file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDescGZIP(), []int{0}
    74  }
    75  
    76  func (x *SurfacerConf) GetPrefix() string {
    77  	if x != nil && x.Prefix != nil {
    78  		return *x.Prefix
    79  	}
    80  	return Default_SurfacerConf_Prefix
    81  }
    82  
    83  func (x *SurfacerConf) GetApiKey() string {
    84  	if x != nil && x.ApiKey != nil {
    85  		return *x.ApiKey
    86  	}
    87  	return ""
    88  }
    89  
    90  func (x *SurfacerConf) GetAppKey() string {
    91  	if x != nil && x.AppKey != nil {
    92  		return *x.AppKey
    93  	}
    94  	return ""
    95  }
    96  
    97  func (x *SurfacerConf) GetServer() string {
    98  	if x != nil && x.Server != nil {
    99  		return *x.Server
   100  	}
   101  	return ""
   102  }
   103  
   104  var File_github_com_google_cloudprober_surfacers_datadog_proto_config_proto protoreflect.FileDescriptor
   105  
   106  var file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDesc = []byte{
   107  	0x0a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f,
   108  	0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f,
   109  	0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f,
   110  	0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
   111  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65,
   112  	0x72, 0x2e, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64,
   113  	0x6f, 0x67, 0x22, 0x7d, 0x0a, 0x0c, 0x53, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x43, 0x6f,
   114  	0x6e, 0x66, 0x12, 0x23, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01,
   115  	0x28, 0x09, 0x3a, 0x0b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x52,
   116  	0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x70, 0x69, 0x5f, 0x6b,
   117  	0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x70, 0x69, 0x4b, 0x65, 0x79,
   118  	0x12, 0x17, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
   119  	0x09, 0x52, 0x06, 0x61, 0x70, 0x70, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72,
   120  	0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65,
   121  	0x72, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
   122  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62,
   123  	0x65, 0x72, 0x2f, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x64, 0x61, 0x74,
   124  	0x61, 0x64, 0x6f, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   125  }
   126  
   127  var (
   128  	file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDescOnce sync.Once
   129  	file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDescData = file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDesc
   130  )
   131  
   132  func file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDescGZIP() []byte {
   133  	file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDescOnce.Do(func() {
   134  		file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDescData)
   135  	})
   136  	return file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDescData
   137  }
   138  
   139  var file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   140  var file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_goTypes = []interface{}{
   141  	(*SurfacerConf)(nil), // 0: cloudprober.surfacer.datadog.SurfacerConf
   142  }
   143  var file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_depIdxs = []int32{
   144  	0, // [0:0] is the sub-list for method output_type
   145  	0, // [0:0] is the sub-list for method input_type
   146  	0, // [0:0] is the sub-list for extension type_name
   147  	0, // [0:0] is the sub-list for extension extendee
   148  	0, // [0:0] is the sub-list for field type_name
   149  }
   150  
   151  func init() { file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_init() }
   152  func file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_init() {
   153  	if File_github_com_google_cloudprober_surfacers_datadog_proto_config_proto != nil {
   154  		return
   155  	}
   156  	if !protoimpl.UnsafeEnabled {
   157  		file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   158  			switch v := v.(*SurfacerConf); i {
   159  			case 0:
   160  				return &v.state
   161  			case 1:
   162  				return &v.sizeCache
   163  			case 2:
   164  				return &v.unknownFields
   165  			default:
   166  				return nil
   167  			}
   168  		}
   169  	}
   170  	type x struct{}
   171  	out := protoimpl.TypeBuilder{
   172  		File: protoimpl.DescBuilder{
   173  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   174  			RawDescriptor: file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDesc,
   175  			NumEnums:      0,
   176  			NumMessages:   1,
   177  			NumExtensions: 0,
   178  			NumServices:   0,
   179  		},
   180  		GoTypes:           file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_goTypes,
   181  		DependencyIndexes: file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_depIdxs,
   182  		MessageInfos:      file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_msgTypes,
   183  	}.Build()
   184  	File_github_com_google_cloudprober_surfacers_datadog_proto_config_proto = out.File
   185  	file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_rawDesc = nil
   186  	file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_goTypes = nil
   187  	file_github_com_google_cloudprober_surfacers_datadog_proto_config_proto_depIdxs = nil
   188  }