From 37309bd3b25310a2e6196c187caa9d1f29d9fd3a Mon Sep 17 00:00:00 2001 From: ReshmaJS Date: Wed, 13 May 2026 11:09:40 +0530 Subject: [PATCH 1/3] pb fix with nc --- pfcpiface/bess_pb/bess_msg.pb.go | 79 ++++++++++++++ pfcpiface/bess_pb/error.pb.go | 1 + pfcpiface/bess_pb/module_msg.pb.go | 143 +++++++++++++++++++++++++ pfcpiface/bess_pb/ports/port_msg.pb.go | 12 +++ pfcpiface/bess_pb/util_msg.pb.go | 6 ++ 5 files changed, 241 insertions(+) diff --git a/pfcpiface/bess_pb/bess_msg.pb.go b/pfcpiface/bess_pb/bess_msg.pb.go index cf5ad2e81..92ff871b1 100644 --- a/pfcpiface/bess_pb/bess_msg.pb.go +++ b/pfcpiface/bess_pb/bess_msg.pb.go @@ -79,6 +79,7 @@ func (x *EmptyRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*EmptyRequest) ProtoMessage() {} func (x *EmptyRequest) ProtoReflect() protoreflect.Message { @@ -121,6 +122,7 @@ func (x *EmptyResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*EmptyResponse) ProtoMessage() {} func (x *EmptyResponse) ProtoReflect() protoreflect.Message { @@ -169,6 +171,7 @@ func (x *VersionResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*VersionResponse) ProtoMessage() {} func (x *VersionResponse) ProtoReflect() protoreflect.Message { @@ -223,6 +226,7 @@ func (x *ImportPluginRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ImportPluginRequest) ProtoMessage() {} func (x *ImportPluginRequest) ProtoReflect() protoreflect.Message { @@ -270,6 +274,7 @@ func (x *UnloadPluginRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UnloadPluginRequest) ProtoMessage() {} func (x *UnloadPluginRequest) ProtoReflect() protoreflect.Message { @@ -318,6 +323,7 @@ func (x *ListPluginsResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListPluginsResponse) ProtoMessage() {} func (x *ListPluginsResponse) ProtoReflect() protoreflect.Message { @@ -373,6 +379,7 @@ func (x *ListWorkersResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListWorkersResponse) ProtoMessage() {} func (x *ListWorkersResponse) ProtoReflect() protoreflect.Message { @@ -429,6 +436,7 @@ func (x *AddWorkerRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*AddWorkerRequest) ProtoMessage() {} func (x *AddWorkerRequest) ProtoReflect() protoreflect.Message { @@ -490,6 +498,7 @@ func (x *DestroyWorkerRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DestroyWorkerRequest) ProtoMessage() {} func (x *DestroyWorkerRequest) ProtoReflect() protoreflect.Message { @@ -560,6 +569,7 @@ func (x *TrafficClass) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*TrafficClass) ProtoMessage() {} func (x *TrafficClass) ProtoReflect() protoreflect.Message { @@ -688,8 +698,10 @@ type TrafficClass_Share struct { Share int64 `protobuf:"varint,7,opt,name=share,proto3,oneof"` } +// SONARQB: Empty protobuf generated method is safe to ignore func (*TrafficClass_Priority) isTrafficClass_Arg() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*TrafficClass_Share) isTrafficClass_Arg() {} type ListTcsRequest struct { @@ -715,6 +727,7 @@ func (x *ListTcsRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListTcsRequest) ProtoMessage() {} func (x *ListTcsRequest) ProtoReflect() protoreflect.Message { @@ -763,6 +776,7 @@ func (x *ListTcsResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListTcsResponse) ProtoMessage() {} func (x *ListTcsResponse) ProtoReflect() protoreflect.Message { @@ -820,6 +834,7 @@ func (x *CheckSchedulingConstraintsResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CheckSchedulingConstraintsResponse) ProtoMessage() {} func (x *CheckSchedulingConstraintsResponse) ProtoReflect() protoreflect.Message { @@ -888,6 +903,7 @@ func (x *AddTcRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*AddTcRequest) ProtoMessage() {} func (x *AddTcRequest) ProtoReflect() protoreflect.Message { @@ -935,6 +951,7 @@ func (x *UpdateTcParamsRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UpdateTcParamsRequest) ProtoMessage() {} func (x *UpdateTcParamsRequest) ProtoReflect() protoreflect.Message { @@ -982,6 +999,7 @@ func (x *UpdateTcParentRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UpdateTcParentRequest) ProtoMessage() {} func (x *UpdateTcParentRequest) ProtoReflect() protoreflect.Message { @@ -1029,6 +1047,7 @@ func (x *GetTcStatsRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetTcStatsRequest) ProtoMessage() {} func (x *GetTcStatsRequest) ProtoReflect() protoreflect.Message { @@ -1083,6 +1102,7 @@ func (x *GetTcStatsResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetTcStatsResponse) ProtoMessage() {} func (x *GetTcStatsResponse) ProtoReflect() protoreflect.Message { @@ -1166,6 +1186,7 @@ func (x *ListDriversResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListDriversResponse) ProtoMessage() {} func (x *ListDriversResponse) ProtoReflect() protoreflect.Message { @@ -1220,6 +1241,7 @@ func (x *GetDriverInfoRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetDriverInfoRequest) ProtoMessage() {} func (x *GetDriverInfoRequest) ProtoReflect() protoreflect.Message { @@ -1270,6 +1292,7 @@ func (x *GetDriverInfoResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetDriverInfoResponse) ProtoMessage() {} func (x *GetDriverInfoResponse) ProtoReflect() protoreflect.Message { @@ -1339,6 +1362,7 @@ func (x *ListPortsResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListPortsResponse) ProtoMessage() {} func (x *ListPortsResponse) ProtoReflect() protoreflect.Message { @@ -1410,6 +1434,7 @@ func (x *CreatePortRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CreatePortRequest) ProtoMessage() {} func (x *CreatePortRequest) ProtoReflect() protoreflect.Message { @@ -1507,6 +1532,7 @@ func (x *PortConf) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PortConf) ProtoMessage() {} func (x *PortConf) ProtoReflect() protoreflect.Message { @@ -1569,6 +1595,7 @@ func (x *SetPortConfRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SetPortConfRequest) ProtoMessage() {} func (x *SetPortConfRequest) ProtoReflect() protoreflect.Message { @@ -1623,6 +1650,7 @@ func (x *GetPortConfRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetPortConfRequest) ProtoMessage() {} func (x *GetPortConfRequest) ProtoReflect() protoreflect.Message { @@ -1671,6 +1699,7 @@ func (x *GetPortConfResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetPortConfResponse) ProtoMessage() {} func (x *GetPortConfResponse) ProtoReflect() protoreflect.Message { @@ -1727,6 +1756,7 @@ func (x *CreatePortResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CreatePortResponse) ProtoMessage() {} func (x *CreatePortResponse) ProtoReflect() protoreflect.Message { @@ -1788,6 +1818,7 @@ func (x *DestroyPortRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DestroyPortRequest) ProtoMessage() {} func (x *DestroyPortRequest) ProtoReflect() protoreflect.Message { @@ -1835,6 +1866,7 @@ func (x *GetPortStatsRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetPortStatsRequest) ProtoMessage() {} func (x *GetPortStatsRequest) ProtoReflect() protoreflect.Message { @@ -1885,6 +1917,7 @@ func (x *GetPortStatsResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetPortStatsResponse) ProtoMessage() {} func (x *GetPortStatsResponse) ProtoReflect() protoreflect.Message { @@ -1953,6 +1986,7 @@ func (x *GetLinkStatusRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetLinkStatusRequest) ProtoMessage() {} func (x *GetLinkStatusRequest) ProtoReflect() protoreflect.Message { @@ -2004,6 +2038,7 @@ func (x *GetLinkStatusResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetLinkStatusResponse) ProtoMessage() {} func (x *GetLinkStatusResponse) ProtoReflect() protoreflect.Message { @@ -2080,6 +2115,7 @@ func (x *ListMclassResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListMclassResponse) ProtoMessage() {} func (x *ListMclassResponse) ProtoReflect() protoreflect.Message { @@ -2134,6 +2170,7 @@ func (x *GetMclassInfoRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetMclassInfoRequest) ProtoMessage() {} func (x *GetMclassInfoRequest) ProtoReflect() protoreflect.Message { @@ -2185,6 +2222,7 @@ func (x *GetMclassInfoResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetMclassInfoResponse) ProtoMessage() {} func (x *GetMclassInfoResponse) ProtoReflect() protoreflect.Message { @@ -2261,6 +2299,7 @@ func (x *ListModulesResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListModulesResponse) ProtoMessage() {} func (x *ListModulesResponse) ProtoReflect() protoreflect.Message { @@ -2323,6 +2362,7 @@ func (x *CreateModuleRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CreateModuleRequest) ProtoMessage() {} func (x *CreateModuleRequest) ProtoReflect() protoreflect.Message { @@ -2385,6 +2425,7 @@ func (x *CreateModuleResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CreateModuleResponse) ProtoMessage() {} func (x *CreateModuleResponse) ProtoReflect() protoreflect.Message { @@ -2439,6 +2480,7 @@ func (x *DestroyModuleRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DestroyModuleRequest) ProtoMessage() {} func (x *DestroyModuleRequest) ProtoReflect() protoreflect.Message { @@ -2486,6 +2528,7 @@ func (x *GetModuleInfoRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetModuleInfoRequest) ProtoMessage() {} func (x *GetModuleInfoRequest) ProtoReflect() protoreflect.Message { @@ -2540,6 +2583,7 @@ func (x *GetModuleInfoResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetModuleInfoResponse) ProtoMessage() {} func (x *GetModuleInfoResponse) ProtoReflect() protoreflect.Message { @@ -2642,6 +2686,7 @@ func (x *ConnectModulesRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ConnectModulesRequest) ProtoMessage() {} func (x *ConnectModulesRequest) ProtoReflect() protoreflect.Message { @@ -2718,6 +2763,7 @@ func (x *DisconnectModulesRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DisconnectModulesRequest) ProtoMessage() {} func (x *DisconnectModulesRequest) ProtoReflect() protoreflect.Message { @@ -2782,6 +2828,7 @@ func (x *MempoolDump) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MempoolDump) ProtoMessage() {} func (x *MempoolDump) ProtoReflect() protoreflect.Message { @@ -2899,6 +2946,7 @@ func (x *DumpMempoolRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DumpMempoolRequest) ProtoMessage() {} func (x *DumpMempoolRequest) ProtoReflect() protoreflect.Message { @@ -2947,6 +2995,7 @@ func (x *DumpMempoolResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DumpMempoolResponse) ProtoMessage() {} func (x *DumpMempoolResponse) ProtoReflect() protoreflect.Message { @@ -3003,6 +3052,7 @@ func (x *CommandRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CommandRequest) ProtoMessage() {} func (x *CommandRequest) ProtoReflect() protoreflect.Message { @@ -3065,6 +3115,7 @@ func (x *CommandResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CommandResponse) ProtoMessage() {} func (x *CommandResponse) ProtoReflect() protoreflect.Message { @@ -3120,6 +3171,7 @@ func (x *ListGateHookClassResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListGateHookClassResponse) ProtoMessage() {} func (x *ListGateHookClassResponse) ProtoReflect() protoreflect.Message { @@ -3174,6 +3226,7 @@ func (x *GetGateHookClassInfoRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetGateHookClassInfoRequest) ProtoMessage() {} func (x *GetGateHookClassInfoRequest) ProtoReflect() protoreflect.Message { @@ -3225,6 +3278,7 @@ func (x *GetGateHookClassInfoResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetGateHookClassInfoResponse) ProtoMessage() {} func (x *GetGateHookClassInfoResponse) ProtoReflect() protoreflect.Message { @@ -3307,6 +3361,7 @@ func (x *TrackArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*TrackArg) ProtoMessage() {} func (x *TrackArg) ProtoReflect() protoreflect.Message { @@ -3364,6 +3419,7 @@ func (x *TcpdumpArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*TcpdumpArg) ProtoMessage() {} func (x *TcpdumpArg) ProtoReflect() protoreflect.Message { @@ -3437,6 +3493,7 @@ func (x *PcapngArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PcapngArg) ProtoMessage() {} func (x *PcapngArg) ProtoReflect() protoreflect.Message { @@ -3505,6 +3562,7 @@ func (x *GateHookInfo) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GateHookInfo) ProtoMessage() {} func (x *GateHookInfo) ProtoReflect() protoreflect.Message { @@ -3585,8 +3643,10 @@ type GateHookInfo_Ogate struct { Ogate int64 `protobuf:"varint,5,opt,name=ogate,proto3,oneof"` /// Output gate index. All output gates if -1 } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GateHookInfo_Igate) isGateHookInfo_Gate() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*GateHookInfo_Ogate) isGateHookInfo_Gate() {} type ConfigureGateHookRequest struct { @@ -3611,6 +3671,7 @@ func (x *ConfigureGateHookRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ConfigureGateHookRequest) ProtoMessage() {} func (x *ConfigureGateHookRequest) ProtoReflect() protoreflect.Message { @@ -3666,6 +3727,7 @@ func (x *ConfigureGateHookResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ConfigureGateHookResponse) ProtoMessage() {} func (x *ConfigureGateHookResponse) ProtoReflect() protoreflect.Message { @@ -3721,6 +3783,7 @@ func (x *ListGateHooksResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListGateHooksResponse) ProtoMessage() {} func (x *ListGateHooksResponse) ProtoReflect() protoreflect.Message { @@ -3776,6 +3839,7 @@ func (x *GateHookCommandRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GateHookCommandRequest) ProtoMessage() {} func (x *GateHookCommandRequest) ProtoReflect() protoreflect.Message { @@ -3833,6 +3897,7 @@ func (x *ConfigureResumeHookRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ConfigureResumeHookRequest) ProtoMessage() {} func (x *ConfigureResumeHookRequest) ProtoReflect() protoreflect.Message { @@ -3894,6 +3959,7 @@ func (x *PauseWorkerRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PauseWorkerRequest) ProtoMessage() {} func (x *PauseWorkerRequest) ProtoReflect() protoreflect.Message { @@ -3941,6 +4007,7 @@ func (x *ResumeWorkerRequest) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ResumeWorkerRequest) ProtoMessage() {} func (x *ResumeWorkerRequest) ProtoReflect() protoreflect.Message { @@ -3996,6 +4063,7 @@ func (x *ListWorkersResponse_WorkerStatus) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListWorkersResponse_WorkerStatus) ProtoMessage() {} func (x *ListWorkersResponse_WorkerStatus) ProtoReflect() protoreflect.Message { @@ -4072,6 +4140,7 @@ func (x *ListTcsResponse_TrafficClassStatus) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListTcsResponse_TrafficClassStatus) ProtoMessage() {} func (x *ListTcsResponse_TrafficClassStatus) ProtoReflect() protoreflect.Message { @@ -4129,6 +4198,7 @@ func (x *CheckSchedulingConstraintsResponse_ViolatingClass) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CheckSchedulingConstraintsResponse_ViolatingClass) ProtoMessage() {} func (x *CheckSchedulingConstraintsResponse_ViolatingClass) ProtoReflect() protoreflect.Message { @@ -4197,6 +4267,7 @@ func (x *CheckSchedulingConstraintsResponse_ViolatingModule) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CheckSchedulingConstraintsResponse_ViolatingModule) ProtoMessage() {} func (x *CheckSchedulingConstraintsResponse_ViolatingModule) ProtoReflect() protoreflect.Message { @@ -4256,6 +4327,7 @@ func (x *ListPortsResponse_Port) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListPortsResponse_Port) ProtoMessage() {} func (x *ListPortsResponse_Port) ProtoReflect() protoreflect.Message { @@ -4371,6 +4443,7 @@ func (x *GetPortStatsResponse_Stat) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetPortStatsResponse_Stat) ProtoMessage() {} func (x *GetPortStatsResponse_Stat) ProtoReflect() protoreflect.Message { @@ -4455,6 +4528,7 @@ func (x *ListModulesResponse_Module) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ListModulesResponse_Module) ProtoMessage() {} func (x *ListModulesResponse_Module) ProtoReflect() protoreflect.Message { @@ -4517,6 +4591,7 @@ func (x *GetModuleInfoResponse_GateHook) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetModuleInfoResponse_GateHook) ProtoMessage() {} func (x *GetModuleInfoResponse_GateHook) ProtoReflect() protoreflect.Message { @@ -4577,6 +4652,7 @@ func (x *GetModuleInfoResponse_IGate) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetModuleInfoResponse_IGate) ProtoMessage() {} func (x *GetModuleInfoResponse_IGate) ProtoReflect() protoreflect.Message { @@ -4673,6 +4749,7 @@ func (x *GetModuleInfoResponse_OGate) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetModuleInfoResponse_OGate) ProtoMessage() {} func (x *GetModuleInfoResponse_OGate) ProtoReflect() protoreflect.Message { @@ -4772,6 +4849,7 @@ func (x *GetModuleInfoResponse_Attribute) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetModuleInfoResponse_Attribute) ProtoMessage() {} func (x *GetModuleInfoResponse_Attribute) ProtoReflect() protoreflect.Message { @@ -4841,6 +4919,7 @@ func (x *GetModuleInfoResponse_IGate_OGate) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GetModuleInfoResponse_IGate_OGate) ProtoMessage() {} func (x *GetModuleInfoResponse_IGate_OGate) ProtoReflect() protoreflect.Message { diff --git a/pfcpiface/bess_pb/error.pb.go b/pfcpiface/bess_pb/error.pb.go index ee86e08d9..5aedc51fa 100644 --- a/pfcpiface/bess_pb/error.pb.go +++ b/pfcpiface/bess_pb/error.pb.go @@ -73,6 +73,7 @@ func (x *Error) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*Error) ProtoMessage() {} func (x *Error) ProtoReflect() protoreflect.Message { diff --git a/pfcpiface/bess_pb/module_msg.pb.go b/pfcpiface/bess_pb/module_msg.pb.go index 824bba106..1470f5570 100644 --- a/pfcpiface/bess_pb/module_msg.pb.go +++ b/pfcpiface/bess_pb/module_msg.pb.go @@ -71,6 +71,7 @@ func (x *EmptyArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*EmptyArg) ProtoMessage() {} func (x *EmptyArg) ProtoReflect() protoreflect.Message { @@ -112,6 +113,7 @@ func (x *BPFCommandClearArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*BPFCommandClearArg) ProtoMessage() {} func (x *BPFCommandClearArg) ProtoReflect() protoreflect.Message { @@ -161,6 +163,7 @@ func (x *ExactMatchCommandAddArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ExactMatchCommandAddArg) ProtoMessage() {} func (x *ExactMatchCommandAddArg) ProtoReflect() protoreflect.Message { @@ -225,6 +228,7 @@ func (x *ExactMatchCommandDeleteArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ExactMatchCommandDeleteArg) ProtoMessage() {} func (x *ExactMatchCommandDeleteArg) ProtoReflect() protoreflect.Message { @@ -273,6 +277,7 @@ func (x *ExactMatchCommandClearArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ExactMatchCommandClearArg) ProtoMessage() {} func (x *ExactMatchCommandClearArg) ProtoReflect() protoreflect.Message { @@ -317,6 +322,7 @@ func (x *ExactMatchCommandSetDefaultGateArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ExactMatchCommandSetDefaultGateArg) ProtoMessage() {} func (x *ExactMatchCommandSetDefaultGateArg) ProtoReflect() protoreflect.Message { @@ -368,6 +374,7 @@ func (x *FlowGenCommandSetBurstArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FlowGenCommandSetBurstArg) ProtoMessage() {} func (x *FlowGenCommandSetBurstArg) ProtoReflect() protoreflect.Message { @@ -423,6 +430,7 @@ func (x *HashLBCommandSetModeArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*HashLBCommandSetModeArg) ProtoMessage() {} func (x *HashLBCommandSetModeArg) ProtoReflect() protoreflect.Message { @@ -481,6 +489,7 @@ func (x *HashLBCommandSetGatesArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*HashLBCommandSetGatesArg) ProtoMessage() {} func (x *HashLBCommandSetGatesArg) ProtoReflect() protoreflect.Message { @@ -535,6 +544,7 @@ func (x *IPLookupCommandAddArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*IPLookupCommandAddArg) ProtoMessage() {} func (x *IPLookupCommandAddArg) ProtoReflect() protoreflect.Message { @@ -601,6 +611,7 @@ func (x *IPLookupCommandDeleteArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*IPLookupCommandDeleteArg) ProtoMessage() {} func (x *IPLookupCommandDeleteArg) ProtoReflect() protoreflect.Message { @@ -657,6 +668,7 @@ func (x *IPLookupCommandClearArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*IPLookupCommandClearArg) ProtoMessage() {} func (x *IPLookupCommandClearArg) ProtoReflect() protoreflect.Message { @@ -701,6 +713,7 @@ func (x *L2ForwardCommandAddArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*L2ForwardCommandAddArg) ProtoMessage() {} func (x *L2ForwardCommandAddArg) ProtoReflect() protoreflect.Message { @@ -751,6 +764,7 @@ func (x *L2ForwardCommandDeleteArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*L2ForwardCommandDeleteArg) ProtoMessage() {} func (x *L2ForwardCommandDeleteArg) ProtoReflect() protoreflect.Message { @@ -802,6 +816,7 @@ func (x *L2ForwardCommandSetDefaultGateArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*L2ForwardCommandSetDefaultGateArg) ProtoMessage() {} func (x *L2ForwardCommandSetDefaultGateArg) ProtoReflect() protoreflect.Message { @@ -852,6 +867,7 @@ func (x *L2ForwardCommandLookupArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*L2ForwardCommandLookupArg) ProtoMessage() {} func (x *L2ForwardCommandLookupArg) ProtoReflect() protoreflect.Message { @@ -903,6 +919,7 @@ func (x *L2ForwardCommandLookupResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*L2ForwardCommandLookupResponse) ProtoMessage() {} func (x *L2ForwardCommandLookupResponse) ProtoReflect() protoreflect.Message { @@ -961,6 +978,7 @@ func (x *L2ForwardCommandPopulateArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*L2ForwardCommandPopulateArg) ProtoMessage() {} func (x *L2ForwardCommandPopulateArg) ProtoReflect() protoreflect.Message { @@ -1032,6 +1050,7 @@ func (x *MeasureCommandGetSummaryArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MeasureCommandGetSummaryArg) ProtoMessage() {} func (x *MeasureCommandGetSummaryArg) ProtoReflect() protoreflect.Message { @@ -1104,6 +1123,7 @@ func (x *MeasureCommandGetSummaryResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MeasureCommandGetSummaryResponse) ProtoMessage() {} func (x *MeasureCommandGetSummaryResponse) ProtoReflect() protoreflect.Message { @@ -1188,6 +1208,7 @@ func (x *DRRArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DRRArg) ProtoMessage() {} func (x *DRRArg) ProtoReflect() protoreflect.Message { @@ -1251,6 +1272,7 @@ func (x *DRRQuantumArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DRRQuantumArg) ProtoMessage() {} func (x *DRRQuantumArg) ProtoReflect() protoreflect.Message { @@ -1302,6 +1324,7 @@ func (x *DRRMaxFlowQueueSizeArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DRRMaxFlowQueueSizeArg) ProtoMessage() {} func (x *DRRMaxFlowQueueSizeArg) ProtoReflect() protoreflect.Message { @@ -1353,6 +1376,7 @@ func (x *PortIncCommandSetBurstArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PortIncCommandSetBurstArg) ProtoMessage() {} func (x *PortIncCommandSetBurstArg) ProtoReflect() protoreflect.Message { @@ -1404,6 +1428,7 @@ func (x *QueueIncCommandSetBurstArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QueueIncCommandSetBurstArg) ProtoMessage() {} func (x *QueueIncCommandSetBurstArg) ProtoReflect() protoreflect.Message { @@ -1455,6 +1480,7 @@ func (x *QueueCommandSetBurstArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QueueCommandSetBurstArg) ProtoMessage() {} func (x *QueueCommandSetBurstArg) ProtoReflect() protoreflect.Message { @@ -1505,6 +1531,7 @@ func (x *QueueCommandSetSizeArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QueueCommandSetSizeArg) ProtoMessage() {} func (x *QueueCommandSetSizeArg) ProtoReflect() protoreflect.Message { @@ -1553,6 +1580,7 @@ func (x *QueueCommandGetStatusArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QueueCommandGetStatusArg) ProtoMessage() {} func (x *QueueCommandGetStatusArg) ProtoReflect() protoreflect.Message { @@ -1601,6 +1629,7 @@ func (x *QueueCommandGetStatusResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QueueCommandGetStatusResponse) ProtoMessage() {} func (x *QueueCommandGetStatusResponse) ProtoReflect() protoreflect.Message { @@ -1677,6 +1706,7 @@ func (x *RandomUpdateCommandClearArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RandomUpdateCommandClearArg) ProtoMessage() {} func (x *RandomUpdateCommandClearArg) ProtoReflect() protoreflect.Message { @@ -1718,6 +1748,7 @@ func (x *RewriteCommandClearArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RewriteCommandClearArg) ProtoMessage() {} func (x *RewriteCommandClearArg) ProtoReflect() protoreflect.Message { @@ -1759,6 +1790,7 @@ func (x *UpdateCommandClearArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UpdateCommandClearArg) ProtoMessage() {} func (x *UpdateCommandClearArg) ProtoReflect() protoreflect.Message { @@ -1807,6 +1839,7 @@ func (x *WildcardMatchCommandAddArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*WildcardMatchCommandAddArg) ProtoMessage() {} func (x *WildcardMatchCommandAddArg) ProtoReflect() protoreflect.Message { @@ -1887,6 +1920,7 @@ func (x *WildcardMatchCommandDeleteArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*WildcardMatchCommandDeleteArg) ProtoMessage() {} func (x *WildcardMatchCommandDeleteArg) ProtoReflect() protoreflect.Message { @@ -1943,6 +1977,7 @@ func (x *WildcardMatchCommandClearArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*WildcardMatchCommandClearArg) ProtoMessage() {} func (x *WildcardMatchCommandClearArg) ProtoReflect() protoreflect.Message { @@ -1987,6 +2022,7 @@ func (x *WildcardMatchCommandSetDefaultGateArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*WildcardMatchCommandSetDefaultGateArg) ProtoMessage() {} func (x *WildcardMatchCommandSetDefaultGateArg) ProtoReflect() protoreflect.Message { @@ -2042,6 +2078,7 @@ func (x *ACLArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ACLArg) ProtoMessage() {} func (x *ACLArg) ProtoReflect() protoreflect.Message { @@ -2095,6 +2132,7 @@ func (x *BPFArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*BPFArg) ProtoMessage() {} func (x *BPFArg) ProtoReflect() protoreflect.Message { @@ -2148,6 +2186,7 @@ func (x *BufferArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*BufferArg) ProtoMessage() {} func (x *BufferArg) ProtoReflect() protoreflect.Message { @@ -2197,6 +2236,7 @@ func (x *BypassArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*BypassArg) ProtoMessage() {} func (x *BypassArg) ProtoReflect() protoreflect.Message { @@ -2265,6 +2305,7 @@ func (x *DumpArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*DumpArg) ProtoMessage() {} func (x *DumpArg) ProtoReflect() protoreflect.Message { @@ -2319,6 +2360,7 @@ func (x *EtherEncapArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*EtherEncapArg) ProtoMessage() {} func (x *EtherEncapArg) ProtoReflect() protoreflect.Message { @@ -2374,6 +2416,7 @@ func (x *ExactMatchArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ExactMatchArg) ProtoMessage() {} func (x *ExactMatchArg) ProtoReflect() protoreflect.Message { @@ -2454,6 +2497,7 @@ func (x *ExactMatchConfig) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ExactMatchConfig) ProtoMessage() {} func (x *ExactMatchConfig) ProtoReflect() protoreflect.Message { @@ -2528,6 +2572,7 @@ func (x *FlowGenArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FlowGenArg) ProtoMessage() {} func (x *FlowGenArg) ProtoReflect() protoreflect.Message { @@ -2650,6 +2695,7 @@ func (x *GenericDecapArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GenericDecapArg) ProtoMessage() {} func (x *GenericDecapArg) ProtoReflect() protoreflect.Message { @@ -2716,6 +2762,7 @@ func (x *GenericEncapArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GenericEncapArg) ProtoMessage() {} func (x *GenericEncapArg) ProtoReflect() protoreflect.Message { @@ -2772,6 +2819,7 @@ func (x *HashLBArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*HashLBArg) ProtoMessage() {} func (x *HashLBArg) ProtoReflect() protoreflect.Message { @@ -2838,6 +2886,7 @@ func (x *IPEncapArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*IPEncapArg) ProtoMessage() {} func (x *IPEncapArg) ProtoReflect() protoreflect.Message { @@ -2886,6 +2935,7 @@ func (x *IPLookupArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*IPLookupArg) ProtoMessage() {} func (x *IPLookupArg) ProtoReflect() protoreflect.Message { @@ -2948,6 +2998,7 @@ func (x *L2ForwardArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*L2ForwardArg) ProtoMessage() {} func (x *L2ForwardArg) ProtoReflect() protoreflect.Message { @@ -3006,6 +3057,7 @@ func (x *MACSwapArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MACSwapArg) ProtoMessage() {} func (x *MACSwapArg) ProtoReflect() protoreflect.Message { @@ -3065,6 +3117,7 @@ func (x *MeasureArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MeasureArg) ProtoMessage() {} func (x *MeasureArg) ProtoReflect() protoreflect.Message { @@ -3138,8 +3191,10 @@ type MeasureArg_AttrName struct { AttrName string `protobuf:"bytes,6,opt,name=attr_name,json=attrName,proto3,oneof"` /// Where to store the current time as attribute } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MeasureArg_Offset) isMeasureArg_Type() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*MeasureArg_AttrName) isMeasureArg_Type() {} //* @@ -3167,6 +3222,7 @@ func (x *MergeArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MergeArg) ProtoMessage() {} func (x *MergeArg) ProtoReflect() protoreflect.Message { @@ -3211,6 +3267,7 @@ func (x *MetadataTestArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MetadataTestArg) ProtoMessage() {} func (x *MetadataTestArg) ProtoReflect() protoreflect.Message { @@ -3286,6 +3343,7 @@ func (x *NATArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*NATArg) ProtoMessage() {} func (x *NATArg) ProtoReflect() protoreflect.Message { @@ -3354,6 +3412,7 @@ func (x *StaticNATArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*StaticNATArg) ProtoMessage() {} func (x *StaticNATArg) ProtoReflect() protoreflect.Message { @@ -3401,6 +3460,7 @@ func (x *NoOpArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*NoOpArg) ProtoMessage() {} func (x *NoOpArg) ProtoReflect() protoreflect.Message { @@ -3450,6 +3510,7 @@ func (x *PortIncArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PortIncArg) ProtoMessage() {} func (x *PortIncArg) ProtoReflect() protoreflect.Message { @@ -3511,6 +3572,7 @@ func (x *PortOutArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PortOutArg) ProtoMessage() {} func (x *PortOutArg) ProtoReflect() protoreflect.Message { @@ -3568,6 +3630,7 @@ func (x *QueueIncArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QueueIncArg) ProtoMessage() {} func (x *QueueIncArg) ProtoReflect() protoreflect.Message { @@ -3638,6 +3701,7 @@ func (x *QueueOutArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QueueOutArg) ProtoMessage() {} func (x *QueueOutArg) ProtoReflect() protoreflect.Message { @@ -3699,6 +3763,7 @@ func (x *QueueArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QueueArg) ProtoMessage() {} func (x *QueueArg) ProtoReflect() protoreflect.Message { @@ -3766,6 +3831,7 @@ func (x *RandomSplitArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RandomSplitArg) ProtoMessage() {} func (x *RandomSplitArg) ProtoReflect() protoreflect.Message { @@ -3823,6 +3889,7 @@ func (x *RandomSplitCommandSetDroprateArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RandomSplitCommandSetDroprateArg) ProtoMessage() {} func (x *RandomSplitCommandSetDroprateArg) ProtoReflect() protoreflect.Message { @@ -3873,6 +3940,7 @@ func (x *RandomSplitCommandSetGatesArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RandomSplitCommandSetGatesArg) ProtoMessage() {} func (x *RandomSplitCommandSetGatesArg) ProtoReflect() protoreflect.Message { @@ -3926,6 +3994,7 @@ func (x *RandomUpdateArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RandomUpdateArg) ProtoMessage() {} func (x *RandomUpdateArg) ProtoReflect() protoreflect.Message { @@ -3980,6 +4049,7 @@ func (x *RewriteArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RewriteArg) ProtoMessage() {} func (x *RewriteArg) ProtoReflect() protoreflect.Message { @@ -4030,6 +4100,7 @@ func (x *RoundRobinCommandSetGatesArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RoundRobinCommandSetGatesArg) ProtoMessage() {} func (x *RoundRobinCommandSetGatesArg) ProtoReflect() protoreflect.Message { @@ -4080,6 +4151,7 @@ func (x *RoundRobinCommandSetModeArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RoundRobinCommandSetModeArg) ProtoMessage() {} func (x *RoundRobinCommandSetModeArg) ProtoReflect() protoreflect.Message { @@ -4134,6 +4206,7 @@ func (x *RoundRobinArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RoundRobinArg) ProtoMessage() {} func (x *RoundRobinArg) ProtoReflect() protoreflect.Message { @@ -4194,6 +4267,7 @@ func (x *ReplicateArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ReplicateArg) ProtoMessage() {} func (x *ReplicateArg) ProtoReflect() protoreflect.Message { @@ -4244,6 +4318,7 @@ func (x *ReplicateCommandSetGatesArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ReplicateCommandSetGatesArg) ProtoMessage() {} func (x *ReplicateCommandSetGatesArg) ProtoReflect() protoreflect.Message { @@ -4298,6 +4373,7 @@ func (x *SetMetadataArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SetMetadataArg) ProtoMessage() {} func (x *SetMetadataArg) ProtoReflect() protoreflect.Message { @@ -4348,6 +4424,7 @@ func (x *SinkArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SinkArg) ProtoMessage() {} func (x *SinkArg) ProtoReflect() protoreflect.Message { @@ -4392,6 +4469,7 @@ func (x *SourceCommandSetBurstArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SourceCommandSetBurstArg) ProtoMessage() {} func (x *SourceCommandSetBurstArg) ProtoReflect() protoreflect.Message { @@ -4442,6 +4520,7 @@ func (x *SourceCommandSetPktSizeArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SourceCommandSetPktSizeArg) ProtoMessage() {} func (x *SourceCommandSetPktSizeArg) ProtoReflect() protoreflect.Message { @@ -4494,6 +4573,7 @@ func (x *SourceArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SourceArg) ProtoMessage() {} func (x *SourceArg) ProtoReflect() protoreflect.Message { @@ -4550,6 +4630,7 @@ func (x *IPChecksumArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*IPChecksumArg) ProtoMessage() {} func (x *IPChecksumArg) ProtoReflect() protoreflect.Message { @@ -4613,6 +4694,7 @@ func (x *L4ChecksumArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*L4ChecksumArg) ProtoMessage() {} func (x *L4ChecksumArg) ProtoReflect() protoreflect.Message { @@ -4674,6 +4756,7 @@ func (x *GtpuEchoArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GtpuEchoArg) ProtoMessage() {} func (x *GtpuEchoArg) ProtoReflect() protoreflect.Message { @@ -4729,6 +4812,7 @@ func (x *IPDefragArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*IPDefragArg) ProtoMessage() {} func (x *IPDefragArg) ProtoReflect() protoreflect.Message { @@ -4789,6 +4873,7 @@ func (x *IPFragArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*IPFragArg) ProtoMessage() {} func (x *IPFragArg) ProtoReflect() protoreflect.Message { @@ -4841,6 +4926,7 @@ func (x *CounterAddArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CounterAddArg) ProtoMessage() {} func (x *CounterAddArg) ProtoReflect() protoreflect.Message { @@ -4893,6 +4979,7 @@ func (x *CounterRemoveArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CounterRemoveArg) ProtoMessage() {} func (x *CounterRemoveArg) ProtoReflect() protoreflect.Message { @@ -4947,6 +5034,7 @@ func (x *CounterArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CounterArg) ProtoMessage() {} func (x *CounterArg) ProtoReflect() protoreflect.Message { @@ -5013,6 +5101,7 @@ func (x *GtpuEncapArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GtpuEncapArg) ProtoMessage() {} func (x *GtpuEncapArg) ProtoReflect() protoreflect.Message { @@ -5071,6 +5160,7 @@ func (x *SplitArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SplitArg) ProtoMessage() {} func (x *SplitArg) ProtoReflect() protoreflect.Message { @@ -5130,8 +5220,10 @@ type SplitArg_Offset struct { Offset int64 `protobuf:"varint,3,opt,name=offset,proto3,oneof"` /// The offset (in bytes) of the data field to read. } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SplitArg_Attribute) isSplitArg_Type() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*SplitArg_Offset) isSplitArg_Type() {} //* @@ -5166,6 +5258,7 @@ func (x *TimestampArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*TimestampArg) ProtoMessage() {} func (x *TimestampArg) ProtoReflect() protoreflect.Message { @@ -5218,8 +5311,10 @@ type TimestampArg_AttrName struct { AttrName string `protobuf:"bytes,2,opt,name=attr_name,json=attrName,proto3,oneof"` } +// SONARQB: Empty protobuf generated method is safe to ignore func (*TimestampArg_Offset) isTimestampArg_Type() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*TimestampArg_AttrName) isTimestampArg_Type() {} //* @@ -5248,6 +5343,7 @@ func (x *UpdateArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UpdateArg) ProtoMessage() {} func (x *UpdateArg) ProtoReflect() protoreflect.Message { @@ -5304,6 +5400,7 @@ func (x *UrlFilterArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UrlFilterArg) ProtoMessage() {} func (x *UrlFilterArg) ProtoReflect() protoreflect.Message { @@ -5356,6 +5453,7 @@ func (x *UrlFilterConfig) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UrlFilterConfig) ProtoMessage() {} func (x *UrlFilterConfig) ProtoReflect() protoreflect.Message { @@ -5406,6 +5504,7 @@ func (x *VLANPopArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*VLANPopArg) ProtoMessage() {} func (x *VLANPopArg) ProtoReflect() protoreflect.Message { @@ -5451,6 +5550,7 @@ func (x *VLANPushArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*VLANPushArg) ProtoMessage() {} func (x *VLANPushArg) ProtoReflect() protoreflect.Message { @@ -5502,6 +5602,7 @@ func (x *VLANSplitArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*VLANSplitArg) ProtoMessage() {} func (x *VLANSplitArg) ProtoReflect() protoreflect.Message { @@ -5545,6 +5646,7 @@ func (x *VXLANDecapArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*VXLANDecapArg) ProtoMessage() {} func (x *VXLANDecapArg) ProtoReflect() protoreflect.Message { @@ -5591,6 +5693,7 @@ func (x *VXLANEncapArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*VXLANEncapArg) ProtoMessage() {} func (x *VXLANEncapArg) ProtoReflect() protoreflect.Message { @@ -5650,6 +5753,7 @@ func (x *WildcardMatchArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*WildcardMatchArg) ProtoMessage() {} func (x *WildcardMatchArg) ProtoReflect() protoreflect.Message { @@ -5716,6 +5820,7 @@ func (x *WildcardMatchConfig) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*WildcardMatchConfig) ProtoMessage() {} func (x *WildcardMatchConfig) ProtoReflect() protoreflect.Message { @@ -5779,6 +5884,7 @@ func (x *ArpResponderArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ArpResponderArg) ProtoMessage() {} func (x *ArpResponderArg) ProtoReflect() protoreflect.Message { @@ -5839,6 +5945,7 @@ func (x *MplsPopArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MplsPopArg) ProtoMessage() {} func (x *MplsPopArg) ProtoReflect() protoreflect.Message { @@ -5907,6 +6014,7 @@ func (x *WorkerSplitArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*WorkerSplitArg) ProtoMessage() {} func (x *WorkerSplitArg) ProtoReflect() protoreflect.Message { @@ -5956,6 +6064,7 @@ func (x *QosArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QosArg) ProtoMessage() {} func (x *QosArg) ProtoReflect() protoreflect.Message { @@ -6027,6 +6136,7 @@ func (x *QosCommandAddArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QosCommandAddArg) ProtoMessage() {} func (x *QosCommandAddArg) ProtoReflect() protoreflect.Message { @@ -6124,6 +6234,7 @@ type QosCommandAddArg_DeductLen struct { DeductLen int64 `protobuf:"varint,9,opt,name=deduct_len,json=deductLen,proto3,oneof"` } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QosCommandAddArg_DeductLen) isQosCommandAddArg_OptionalDeductLen() {} type QosCommandDeleteArg struct { @@ -6147,6 +6258,7 @@ func (x *QosCommandDeleteArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QosCommandDeleteArg) ProtoMessage() {} func (x *QosCommandDeleteArg) ProtoReflect() protoreflect.Message { @@ -6196,6 +6308,7 @@ func (x *QosCommandClearArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QosCommandClearArg) ProtoMessage() {} func (x *QosCommandClearArg) ProtoReflect() protoreflect.Message { @@ -6240,6 +6353,7 @@ func (x *QosCommandSetDefaultGateArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*QosCommandSetDefaultGateArg) ProtoMessage() {} func (x *QosCommandSetDefaultGateArg) ProtoReflect() protoreflect.Message { @@ -6289,6 +6403,7 @@ func (x *FlowMeasureArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FlowMeasureArg) ProtoMessage() {} func (x *FlowMeasureArg) ProtoReflect() protoreflect.Message { @@ -6353,6 +6468,7 @@ func (x *FlowMeasureCommandReadArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FlowMeasureCommandReadArg) ProtoMessage() {} func (x *FlowMeasureCommandReadArg) ProtoReflect() protoreflect.Message { @@ -6421,6 +6537,7 @@ func (x *FlowMeasureReadResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FlowMeasureReadResponse) ProtoMessage() {} func (x *FlowMeasureReadResponse) ProtoReflect() protoreflect.Message { @@ -6466,6 +6583,7 @@ func (x *FlowMeasureCommandFlipArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FlowMeasureCommandFlipArg) ProtoMessage() {} func (x *FlowMeasureCommandFlipArg) ProtoReflect() protoreflect.Message { @@ -6506,6 +6624,7 @@ func (x *FlowMeasureFlipResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FlowMeasureFlipResponse) ProtoMessage() {} func (x *FlowMeasureFlipResponse) ProtoReflect() protoreflect.Message { @@ -6556,6 +6675,7 @@ func (x *GtpuPathMonitoringCommandAddDeleteArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GtpuPathMonitoringCommandAddDeleteArg) ProtoMessage() {} func (x *GtpuPathMonitoringCommandAddDeleteArg) ProtoReflect() protoreflect.Message { @@ -6604,6 +6724,7 @@ func (x *GtpuPathMonitoringCommandClearArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GtpuPathMonitoringCommandClearArg) ProtoMessage() {} func (x *GtpuPathMonitoringCommandClearArg) ProtoReflect() protoreflect.Message { @@ -6648,6 +6769,7 @@ func (x *GtpuPathMonitoringCommandReadArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GtpuPathMonitoringCommandReadArg) ProtoMessage() {} func (x *GtpuPathMonitoringCommandReadArg) ProtoReflect() protoreflect.Message { @@ -6698,6 +6820,7 @@ func (x *GtpuPathMonitoringCommandReadResponse) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GtpuPathMonitoringCommandReadResponse) ProtoMessage() {} func (x *GtpuPathMonitoringCommandReadResponse) ProtoReflect() protoreflect.Message { @@ -6746,6 +6869,7 @@ func (x *L2ForwardCommandAddArg_Entry) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*L2ForwardCommandAddArg_Entry) ProtoMessage() {} func (x *L2ForwardCommandAddArg_Entry) ProtoReflect() protoreflect.Message { @@ -6807,6 +6931,7 @@ func (x *MeasureCommandGetSummaryResponse_Histogram) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*MeasureCommandGetSummaryResponse_Histogram) ProtoMessage() {} func (x *MeasureCommandGetSummaryResponse_Histogram) ProtoReflect() protoreflect.Message { @@ -6910,6 +7035,7 @@ func (x *ACLArg_Rule) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*ACLArg_Rule) ProtoMessage() {} func (x *ACLArg_Rule) ProtoReflect() protoreflect.Message { @@ -6996,6 +7122,7 @@ func (x *BPFArg_Filter) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*BPFArg_Filter) ProtoMessage() {} func (x *BPFArg_Filter) ProtoReflect() protoreflect.Message { @@ -7063,6 +7190,7 @@ func (x *GenericEncapArg_EncapField) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GenericEncapArg_EncapField) ProtoMessage() {} func (x *GenericEncapArg_EncapField) ProtoReflect() protoreflect.Message { @@ -7122,8 +7250,10 @@ type GenericEncapArg_EncapField_Value struct { Value *FieldData `protobuf:"bytes,3,opt,name=value,proto3,oneof"` /// Or, the fixed value to insert into the packet. } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GenericEncapArg_EncapField_Attribute) isGenericEncapArg_EncapField_Insertion() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*GenericEncapArg_EncapField_Value) isGenericEncapArg_EncapField_Insertion() {} type NATArg_PortRange struct { @@ -7149,6 +7279,7 @@ func (x *NATArg_PortRange) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*NATArg_PortRange) ProtoMessage() {} func (x *NATArg_PortRange) ProtoReflect() protoreflect.Message { @@ -7211,6 +7342,7 @@ func (x *NATArg_ExternalAddress) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*NATArg_ExternalAddress) ProtoMessage() {} func (x *NATArg_ExternalAddress) ProtoReflect() protoreflect.Message { @@ -7266,6 +7398,7 @@ func (x *StaticNATArg_AddressRange) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*StaticNATArg_AddressRange) ProtoMessage() {} func (x *StaticNATArg_AddressRange) ProtoReflect() protoreflect.Message { @@ -7321,6 +7454,7 @@ func (x *StaticNATArg_AddressRangePair) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*StaticNATArg_AddressRangePair) ProtoMessage() {} func (x *StaticNATArg_AddressRangePair) ProtoReflect() protoreflect.Message { @@ -7381,6 +7515,7 @@ func (x *RandomUpdateArg_Field) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*RandomUpdateArg_Field) ProtoMessage() {} func (x *RandomUpdateArg_Field) ProtoReflect() protoreflect.Message { @@ -7462,6 +7597,7 @@ func (x *SetMetadataArg_Attribute) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SetMetadataArg_Attribute) ProtoMessage() {} func (x *SetMetadataArg_Attribute) ProtoReflect() protoreflect.Message { @@ -7549,8 +7685,10 @@ type SetMetadataArg_Attribute_ValueBin struct { ValueBin []byte `protobuf:"bytes,4,opt,name=value_bin,json=valueBin,proto3,oneof"` /// A binary value to store in the packet (host-order). } +// SONARQB: Empty protobuf generated method is safe to ignore func (*SetMetadataArg_Attribute_ValueInt) isSetMetadataArg_Attribute_Value() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*SetMetadataArg_Attribute_ValueBin) isSetMetadataArg_Attribute_Value() {} //* @@ -7579,6 +7717,7 @@ func (x *UpdateArg_Field) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UpdateArg_Field) ProtoMessage() {} func (x *UpdateArg_Field) ProtoReflect() protoreflect.Message { @@ -7643,6 +7782,7 @@ func (x *UrlFilterArg_Url) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UrlFilterArg_Url) ProtoMessage() {} func (x *UrlFilterArg_Url) ProtoReflect() protoreflect.Message { @@ -7702,6 +7842,7 @@ func (x *FlowMeasureReadResponse_Statistic) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FlowMeasureReadResponse_Statistic) ProtoMessage() {} func (x *FlowMeasureReadResponse_Statistic) ProtoReflect() protoreflect.Message { @@ -7791,6 +7932,7 @@ func (x *FlowMeasureReadResponse_Statistic_Histogram) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FlowMeasureReadResponse_Statistic_Histogram) ProtoMessage() {} func (x *FlowMeasureReadResponse_Statistic_Histogram) ProtoReflect() protoreflect.Message { @@ -7891,6 +8033,7 @@ func (x *GtpuPathMonitoringCommandReadResponse_Statistic) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*GtpuPathMonitoringCommandReadResponse_Statistic) ProtoMessage() {} func (x *GtpuPathMonitoringCommandReadResponse_Statistic) ProtoReflect() protoreflect.Message { diff --git a/pfcpiface/bess_pb/ports/port_msg.pb.go b/pfcpiface/bess_pb/ports/port_msg.pb.go index fb7de6e5d..4433f60f8 100644 --- a/pfcpiface/bess_pb/ports/port_msg.pb.go +++ b/pfcpiface/bess_pb/ports/port_msg.pb.go @@ -72,6 +72,7 @@ func (x *PCAPPortArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PCAPPortArg) ProtoMessage() {} func (x *PCAPPortArg) ProtoReflect() protoreflect.Message { @@ -136,6 +137,7 @@ func (x *PMDPortArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PMDPortArg) ProtoMessage() {} func (x *PMDPortArg) ProtoReflect() protoreflect.Message { @@ -262,10 +264,13 @@ type PMDPortArg_Vdev struct { Vdev string `protobuf:"bytes,4,opt,name=vdev,proto3,oneof"` } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PMDPortArg_PortId) isPMDPortArg_Port() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*PMDPortArg_Pci) isPMDPortArg_Port() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*PMDPortArg_Vdev) isPMDPortArg_Port() {} type isPMDPortArg_Socket interface { @@ -276,6 +281,7 @@ type PMDPortArg_SocketId struct { SocketId int32 `protobuf:"varint,8,opt,name=socket_id,json=socketId,proto3,oneof"` } +// SONARQB: Empty protobuf generated method is safe to ignore func (*PMDPortArg_SocketId) isPMDPortArg_Socket() {} type UnixSocketPortArg struct { @@ -309,6 +315,7 @@ func (x *UnixSocketPortArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*UnixSocketPortArg) ProtoMessage() {} func (x *UnixSocketPortArg) ProtoReflect() protoreflect.Message { @@ -380,6 +387,7 @@ func (x *VPortArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*VPortArg) ProtoMessage() {} func (x *VPortArg) ProtoReflect() protoreflect.Message { @@ -485,10 +493,13 @@ type VPortArg_Netns struct { Netns string `protobuf:"bytes,4,opt,name=netns,proto3,oneof"` } +// SONARQB: Empty protobuf generated method is safe to ignore func (*VPortArg_Docker) isVPortArg_Cpid() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*VPortArg_ContainerPid) isVPortArg_Cpid() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*VPortArg_Netns) isVPortArg_Cpid() {} type CndpPortArg struct { @@ -515,6 +526,7 @@ func (x *CndpPortArg) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*CndpPortArg) ProtoMessage() {} func (x *CndpPortArg) ProtoReflect() protoreflect.Message { diff --git a/pfcpiface/bess_pb/util_msg.pb.go b/pfcpiface/bess_pb/util_msg.pb.go index 023250463..e6391d93e 100644 --- a/pfcpiface/bess_pb/util_msg.pb.go +++ b/pfcpiface/bess_pb/util_msg.pb.go @@ -78,6 +78,7 @@ func (x *Field) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*Field) ProtoMessage() {} func (x *Field) ProtoReflect() protoreflect.Message { @@ -137,8 +138,10 @@ type Field_Offset struct { Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3,oneof"` /// The offset in bytes to store the data into } +// SONARQB: Empty protobuf generated method is safe to ignore func (*Field_AttrName) isField_Position() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*Field_Offset) isField_Position() {} /// The FieldData message encodes a value to insert into a packet; the value can @@ -167,6 +170,7 @@ func (x *FieldData) String() string { return protoimpl.X.MessageStringOf(x) } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FieldData) ProtoMessage() {} func (x *FieldData) ProtoReflect() protoreflect.Message { @@ -219,8 +223,10 @@ type FieldData_ValueInt struct { ValueInt uint64 `protobuf:"varint,2,opt,name=value_int,json=valueInt,proto3,oneof"` /// The value in integer format } +// SONARQB: Empty protobuf generated method is safe to ignore func (*FieldData_ValueBin) isFieldData_Encoding() {} +// SONARQB: Empty protobuf generated method is safe to ignore func (*FieldData_ValueInt) isFieldData_Encoding() {} var File_util_msg_proto protoreflect.FileDescriptor From 1e95d16f6b857bba998520d80d8333e6e67c937b Mon Sep 17 00:00:00 2001 From: ReshmaJS Date: Wed, 13 May 2026 12:21:45 +0530 Subject: [PATCH 2/3] Add protobuf SonarQube fix utility --- pfcpiface/tools/fix_sonar_pb.go | 93 +++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 pfcpiface/tools/fix_sonar_pb.go diff --git a/pfcpiface/tools/fix_sonar_pb.go b/pfcpiface/tools/fix_sonar_pb.go new file mode 100644 index 000000000..9c553c66a --- /dev/null +++ b/pfcpiface/tools/fix_sonar_pb.go @@ -0,0 +1,93 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2020-present Open Networking Foundation +package main + +import ( + "fmt" + "os" + "path/filepath" + "strings" +) + +// List of methods to target +var targetMethods = map[string]bool{ + "ProtoMessage": true, + "isTrafficClass_Arg": true, + "isGateHookInfo_Gate": true, + "isMeasureArg_Type": true, + "isSplitArg_Type": true, + "isTimestampArg_Type": true, + "isQosCommandAddArg_OptionalDeductLen": true, + "isGenericEncapArg_EncapField_Insertion": true, + "isSetMetadataArg_Attribute_Value": true, + "isPMDPortArg_Port": true, + "isPMDPortArg_Socket": true, + "isVPortArg_Cpid": true, + "isField_Position": true, + "isFieldData_Encoding": true, +} + +func main() { + root := "pfcpiface/bess_pb" + err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error { + if err != nil { + return err + } + + if strings.HasSuffix(path, ".pb.go") { + fmt.Println("Processing:", path) + return processFile(path) + } + + return nil + }) + if err != nil { + fmt.Println("Error:", err) + os.Exit(1) + } +} + +func processFile(path string) error { + data, err := os.ReadFile(path) + if err != nil { + return err + } + + lines := strings.Split(string(data), "\n") + var output []string + + for i := 0; i < len(lines); i++ { + line := lines[i] + trim := strings.TrimSpace(line) + // Match any empty function: func (...) methodName() {} + if strings.HasPrefix(trim, "func (") && strings.HasSuffix(trim, "{}") { + methodName := extractMethodName(trim) + if targetMethods[methodName] { + // Skip if already has SONARQB + if i > 0 && strings.Contains(lines[i-1], "SONARQB") { + output = append(output, line) + continue + } + fmt.Println("Adding comment above:", methodName) + output = append(output, "// SONARQB: Empty protobuf generated method is safe to ignore") + } + } + output = append(output, line) + } + return os.WriteFile(path, []byte(strings.Join(output, "\n")), 0o644) +} + +// Extract method name from line +func extractMethodName(line string) string { + // Example: + // func (*Type) ProtoMessage() {} + // func (*Type) isSomething() {} + + parts := strings.Split(line, ")") + if len(parts) < 2 { + return "" + } + right := strings.TrimSpace(parts[1]) // ProtoMessage() {} + name := strings.Split(right, "(")[0] + return strings.TrimSpace(name) +} From d41f7b8916e7e7123d9b52e0e5636d4fae92759b Mon Sep 17 00:00:00 2001 From: ReshmaJS Date: Thu, 21 May 2026 14:55:32 +0530 Subject: [PATCH 3/3] makefile autorun command for pb added --- Makefile_CDAC | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile_CDAC b/Makefile_CDAC index 20adac5c9..95144c588 100644 --- a/Makefile_CDAC +++ b/Makefile_CDAC @@ -104,6 +104,9 @@ pb: .; cp -a output/bess_pb ${BESS_PB_DIR} +# Fix SonarQube issues in autogenerated protobuf Go files: +# Adds NOSONAR comments to empty stub methods (e.g., ProtoMessage, oneof helpers) + go run pfcpiface/tools/fix_sonar_pb.go # Python grpc/protobuf generation py-pb: DOCKER_BUILDKIT=$(DOCKER_BUILDKIT) docker build -f Dockerfile_CDAC $(DOCKER_PULL) $(DOCKER_BUILD_ARGS) \