github.com/google/cloudprober@v0.11.3/surfacers/cloudwatch/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/cloudwatch/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 type SurfacerConf struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 // The cloudwatch metric namespace 29 Namespace *string `protobuf:"bytes,1,opt,name=namespace,def=cloudprober" json:"namespace,omitempty"` 30 // The cloudwatch resolution value, lowering this below 60 will incur 31 // additional charges as the metrics will be charged at a high resolution 32 // rate. 33 Resolution *int64 `protobuf:"varint,2,opt,name=resolution,def=60" json:"resolution,omitempty"` 34 } 35 36 // Default values for SurfacerConf fields. 37 const ( 38 Default_SurfacerConf_Namespace = string("cloudprober") 39 Default_SurfacerConf_Resolution = int64(60) 40 ) 41 42 func (x *SurfacerConf) Reset() { 43 *x = SurfacerConf{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *SurfacerConf) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*SurfacerConf) ProtoMessage() {} 56 57 func (x *SurfacerConf) ProtoReflect() protoreflect.Message { 58 mi := &file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67 } 68 69 // Deprecated: Use SurfacerConf.ProtoReflect.Descriptor instead. 70 func (*SurfacerConf) Descriptor() ([]byte, []int) { 71 return file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *SurfacerConf) GetNamespace() string { 75 if x != nil && x.Namespace != nil { 76 return *x.Namespace 77 } 78 return Default_SurfacerConf_Namespace 79 } 80 81 func (x *SurfacerConf) GetResolution() int64 { 82 if x != nil && x.Resolution != nil { 83 return *x.Resolution 84 } 85 return Default_SurfacerConf_Resolution 86 } 87 88 var File_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto protoreflect.FileDescriptor 89 90 var file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDesc = []byte{ 91 0x0a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 92 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 93 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 94 0x61, 0x74, 0x63, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 95 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 96 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x2e, 0x63, 0x6c, 97 0x6f, 0x75, 0x64, 0x77, 0x61, 0x74, 0x63, 0x68, 0x22, 0x5d, 0x0a, 0x0c, 0x53, 0x75, 0x72, 0x66, 98 0x61, 0x63, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x29, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 99 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x0b, 0x63, 0x6c, 0x6f, 100 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 101 0x61, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 102 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x36, 0x30, 0x52, 0x0a, 0x72, 0x65, 0x73, 103 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 104 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 105 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 106 0x72, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x70, 0x72, 107 0x6f, 0x74, 0x6f, 108 } 109 110 var ( 111 file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDescOnce sync.Once 112 file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDescData = file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDesc 113 ) 114 115 func file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDescGZIP() []byte { 116 file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDescOnce.Do(func() { 117 file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDescData) 118 }) 119 return file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDescData 120 } 121 122 var file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 123 var file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_goTypes = []interface{}{ 124 (*SurfacerConf)(nil), // 0: cloudprober.surfacer.cloudwatch.SurfacerConf 125 } 126 var file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_depIdxs = []int32{ 127 0, // [0:0] is the sub-list for method output_type 128 0, // [0:0] is the sub-list for method input_type 129 0, // [0:0] is the sub-list for extension type_name 130 0, // [0:0] is the sub-list for extension extendee 131 0, // [0:0] is the sub-list for field type_name 132 } 133 134 func init() { file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_init() } 135 func file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_init() { 136 if File_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto != nil { 137 return 138 } 139 if !protoimpl.UnsafeEnabled { 140 file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 141 switch v := v.(*SurfacerConf); i { 142 case 0: 143 return &v.state 144 case 1: 145 return &v.sizeCache 146 case 2: 147 return &v.unknownFields 148 default: 149 return nil 150 } 151 } 152 } 153 type x struct{} 154 out := protoimpl.TypeBuilder{ 155 File: protoimpl.DescBuilder{ 156 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 157 RawDescriptor: file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDesc, 158 NumEnums: 0, 159 NumMessages: 1, 160 NumExtensions: 0, 161 NumServices: 0, 162 }, 163 GoTypes: file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_goTypes, 164 DependencyIndexes: file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_depIdxs, 165 MessageInfos: file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_msgTypes, 166 }.Build() 167 File_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto = out.File 168 file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_rawDesc = nil 169 file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_goTypes = nil 170 file_github_com_google_cloudprober_surfacers_cloudwatch_proto_config_proto_depIdxs = nil 171 }