github.com/google/cloudprober@v0.11.3/probes/ping/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/probes/ping/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 // Next tag: 1 24 type ProbeConf struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // Packets per probe 30 PacketsPerProbe *int32 `protobuf:"varint,6,opt,name=packets_per_probe,json=packetsPerProbe,def=2" json:"packets_per_probe,omitempty"` 31 // How long to wait between two packets to the same target 32 PacketsIntervalMsec *int32 `protobuf:"varint,7,opt,name=packets_interval_msec,json=packetsIntervalMsec,def=25" json:"packets_interval_msec,omitempty"` 33 // Resolve targets after these many probes 34 ResolveTargetsInterval *int32 `protobuf:"varint,9,opt,name=resolve_targets_interval,json=resolveTargetsInterval,def=5" json:"resolve_targets_interval,omitempty"` // =10s 35 // Ping payload size in bytes. It cannot be smaller than 8, number of bytes 36 // required for the nanoseconds timestamp. 37 PayloadSize *int32 `protobuf:"varint,10,opt,name=payload_size,json=payloadSize,def=56" json:"payload_size,omitempty"` 38 // Use datagram socket for ICMP. 39 // This option enables unprivileged pings (that is, you don't require root 40 // privilege to send ICMP packets). Note that most of the Linux distributions 41 // don't allow unprivileged pings by default. To enable unprivileged pings on 42 // some Linux distributions, you may need to run the following command: 43 // sudo sysctl -w net.ipv4.ping_group_range="0 <large valid group id>" 44 // net.ipv4.ping_group_range system setting takes two integers that specify 45 // the group id range that is allowed to execute the unprivileged pings. Note 46 // that the same setting (with ipv4 in the path) applies to IPv6 as well. 47 UseDatagramSocket *bool `protobuf:"varint,12,opt,name=use_datagram_socket,json=useDatagramSocket,def=1" json:"use_datagram_socket,omitempty"` 48 // Disable integrity checks. To detect data courruption in the network, we 49 // craft the outgoing ICMP packet payload in a certain format and verify that 50 // the reply payload matches the same format. 51 DisableIntegrityCheck *bool `protobuf:"varint,13,opt,name=disable_integrity_check,json=disableIntegrityCheck,def=0" json:"disable_integrity_check,omitempty"` 52 } 53 54 // Default values for ProbeConf fields. 55 const ( 56 Default_ProbeConf_PacketsPerProbe = int32(2) 57 Default_ProbeConf_PacketsIntervalMsec = int32(25) 58 Default_ProbeConf_ResolveTargetsInterval = int32(5) 59 Default_ProbeConf_PayloadSize = int32(56) 60 Default_ProbeConf_UseDatagramSocket = bool(true) 61 Default_ProbeConf_DisableIntegrityCheck = bool(false) 62 ) 63 64 func (x *ProbeConf) Reset() { 65 *x = ProbeConf{} 66 if protoimpl.UnsafeEnabled { 67 mi := &file_github_com_google_cloudprober_probes_ping_proto_config_proto_msgTypes[0] 68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 69 ms.StoreMessageInfo(mi) 70 } 71 } 72 73 func (x *ProbeConf) String() string { 74 return protoimpl.X.MessageStringOf(x) 75 } 76 77 func (*ProbeConf) ProtoMessage() {} 78 79 func (x *ProbeConf) ProtoReflect() protoreflect.Message { 80 mi := &file_github_com_google_cloudprober_probes_ping_proto_config_proto_msgTypes[0] 81 if protoimpl.UnsafeEnabled && x != nil { 82 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 83 if ms.LoadMessageInfo() == nil { 84 ms.StoreMessageInfo(mi) 85 } 86 return ms 87 } 88 return mi.MessageOf(x) 89 } 90 91 // Deprecated: Use ProbeConf.ProtoReflect.Descriptor instead. 92 func (*ProbeConf) Descriptor() ([]byte, []int) { 93 return file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDescGZIP(), []int{0} 94 } 95 96 func (x *ProbeConf) GetPacketsPerProbe() int32 { 97 if x != nil && x.PacketsPerProbe != nil { 98 return *x.PacketsPerProbe 99 } 100 return Default_ProbeConf_PacketsPerProbe 101 } 102 103 func (x *ProbeConf) GetPacketsIntervalMsec() int32 { 104 if x != nil && x.PacketsIntervalMsec != nil { 105 return *x.PacketsIntervalMsec 106 } 107 return Default_ProbeConf_PacketsIntervalMsec 108 } 109 110 func (x *ProbeConf) GetResolveTargetsInterval() int32 { 111 if x != nil && x.ResolveTargetsInterval != nil { 112 return *x.ResolveTargetsInterval 113 } 114 return Default_ProbeConf_ResolveTargetsInterval 115 } 116 117 func (x *ProbeConf) GetPayloadSize() int32 { 118 if x != nil && x.PayloadSize != nil { 119 return *x.PayloadSize 120 } 121 return Default_ProbeConf_PayloadSize 122 } 123 124 func (x *ProbeConf) GetUseDatagramSocket() bool { 125 if x != nil && x.UseDatagramSocket != nil { 126 return *x.UseDatagramSocket 127 } 128 return Default_ProbeConf_UseDatagramSocket 129 } 130 131 func (x *ProbeConf) GetDisableIntegrityCheck() bool { 132 if x != nil && x.DisableIntegrityCheck != nil { 133 return *x.DisableIntegrityCheck 134 } 135 return Default_ProbeConf_DisableIntegrityCheck 136 } 137 138 var File_github_com_google_cloudprober_probes_ping_proto_config_proto protoreflect.FileDescriptor 139 140 var file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDesc = []byte{ 141 0x0a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 142 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 143 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x2f, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 144 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 145 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x62, 146 0x65, 0x73, 0x2e, 0x70, 0x69, 0x6e, 0x67, 0x22, 0xcb, 0x02, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x62, 147 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x2d, 0x0a, 0x11, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 148 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 149 0x3a, 0x01, 0x32, 0x52, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x50, 0x65, 0x72, 0x50, 150 0x72, 0x6f, 0x62, 0x65, 0x12, 0x36, 0x0a, 0x15, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x5f, 151 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x73, 0x65, 0x63, 0x18, 0x07, 0x20, 152 0x01, 0x28, 0x05, 0x3a, 0x02, 0x32, 0x35, 0x52, 0x13, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 153 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x73, 0x65, 0x63, 0x12, 0x3b, 0x0a, 0x18, 154 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x5f, 155 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x01, 156 0x35, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 157 0x73, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x25, 0x0a, 0x0c, 0x70, 0x61, 0x79, 158 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x3a, 159 0x02, 0x35, 0x36, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, 160 0x12, 0x34, 0x0a, 0x13, 0x75, 0x73, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, 161 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, 162 0x72, 0x75, 0x65, 0x52, 0x11, 0x75, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, 163 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x3d, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 164 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x68, 0x65, 0x63, 165 0x6b, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x15, 166 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 167 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 168 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 169 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x2f, 0x70, 0x69, 170 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 171 } 172 173 var ( 174 file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDescOnce sync.Once 175 file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDescData = file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDesc 176 ) 177 178 func file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDescGZIP() []byte { 179 file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDescOnce.Do(func() { 180 file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDescData) 181 }) 182 return file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDescData 183 } 184 185 var file_github_com_google_cloudprober_probes_ping_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 186 var file_github_com_google_cloudprober_probes_ping_proto_config_proto_goTypes = []interface{}{ 187 (*ProbeConf)(nil), // 0: cloudprober.probes.ping.ProbeConf 188 } 189 var file_github_com_google_cloudprober_probes_ping_proto_config_proto_depIdxs = []int32{ 190 0, // [0:0] is the sub-list for method output_type 191 0, // [0:0] is the sub-list for method input_type 192 0, // [0:0] is the sub-list for extension type_name 193 0, // [0:0] is the sub-list for extension extendee 194 0, // [0:0] is the sub-list for field type_name 195 } 196 197 func init() { file_github_com_google_cloudprober_probes_ping_proto_config_proto_init() } 198 func file_github_com_google_cloudprober_probes_ping_proto_config_proto_init() { 199 if File_github_com_google_cloudprober_probes_ping_proto_config_proto != nil { 200 return 201 } 202 if !protoimpl.UnsafeEnabled { 203 file_github_com_google_cloudprober_probes_ping_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 204 switch v := v.(*ProbeConf); i { 205 case 0: 206 return &v.state 207 case 1: 208 return &v.sizeCache 209 case 2: 210 return &v.unknownFields 211 default: 212 return nil 213 } 214 } 215 } 216 type x struct{} 217 out := protoimpl.TypeBuilder{ 218 File: protoimpl.DescBuilder{ 219 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 220 RawDescriptor: file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDesc, 221 NumEnums: 0, 222 NumMessages: 1, 223 NumExtensions: 0, 224 NumServices: 0, 225 }, 226 GoTypes: file_github_com_google_cloudprober_probes_ping_proto_config_proto_goTypes, 227 DependencyIndexes: file_github_com_google_cloudprober_probes_ping_proto_config_proto_depIdxs, 228 MessageInfos: file_github_com_google_cloudprober_probes_ping_proto_config_proto_msgTypes, 229 }.Build() 230 File_github_com_google_cloudprober_probes_ping_proto_config_proto = out.File 231 file_github_com_google_cloudprober_probes_ping_proto_config_proto_rawDesc = nil 232 file_github_com_google_cloudprober_probes_ping_proto_config_proto_goTypes = nil 233 file_github_com_google_cloudprober_probes_ping_proto_config_proto_depIdxs = nil 234 }