public void MergeFrom(CVSSv3 other) { if (other == null) { return; } if (other.BaseScore != 0F) { BaseScore = other.BaseScore; } if (other.ExploitabilityScore != 0F) { ExploitabilityScore = other.ExploitabilityScore; } if (other.ImpactScore != 0F) { ImpactScore = other.ImpactScore; } if (other.AttackVector != global::Grafeas.V1.CVSSv3.Types.AttackVector.Unspecified) { AttackVector = other.AttackVector; } if (other.AttackComplexity != global::Grafeas.V1.CVSSv3.Types.AttackComplexity.Unspecified) { AttackComplexity = other.AttackComplexity; } if (other.PrivilegesRequired != global::Grafeas.V1.CVSSv3.Types.PrivilegesRequired.Unspecified) { PrivilegesRequired = other.PrivilegesRequired; } if (other.UserInteraction != global::Grafeas.V1.CVSSv3.Types.UserInteraction.Unspecified) { UserInteraction = other.UserInteraction; } if (other.Scope != global::Grafeas.V1.CVSSv3.Types.Scope.Unspecified) { Scope = other.Scope; } if (other.ConfidentialityImpact != global::Grafeas.V1.CVSSv3.Types.Impact.Unspecified) { ConfidentialityImpact = other.ConfidentialityImpact; } if (other.IntegrityImpact != global::Grafeas.V1.CVSSv3.Types.Impact.Unspecified) { IntegrityImpact = other.IntegrityImpact; } if (other.AvailabilityImpact != global::Grafeas.V1.CVSSv3.Types.Impact.Unspecified) { AvailabilityImpact = other.AvailabilityImpact; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 13: { BaseScore = input.ReadFloat(); break; } case 21: { ExploitabilityScore = input.ReadFloat(); break; } case 29: { ImpactScore = input.ReadFloat(); break; } case 40: { AttackVector = (global::Grafeas.V1.CVSSv3.Types.AttackVector)input.ReadEnum(); break; } case 48: { AttackComplexity = (global::Grafeas.V1.CVSSv3.Types.AttackComplexity)input.ReadEnum(); break; } case 56: { PrivilegesRequired = (global::Grafeas.V1.CVSSv3.Types.PrivilegesRequired)input.ReadEnum(); break; } case 64: { UserInteraction = (global::Grafeas.V1.CVSSv3.Types.UserInteraction)input.ReadEnum(); break; } case 72: { Scope = (global::Grafeas.V1.CVSSv3.Types.Scope)input.ReadEnum(); break; } case 80: { ConfidentialityImpact = (global::Grafeas.V1.CVSSv3.Types.Impact)input.ReadEnum(); break; } case 88: { IntegrityImpact = (global::Grafeas.V1.CVSSv3.Types.Impact)input.ReadEnum(); break; } case 96: { AvailabilityImpact = (global::Grafeas.V1.CVSSv3.Types.Impact)input.ReadEnum(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { BaseScore = input.ReadFloat(); break; } case 21: { ExploitabilityScore = input.ReadFloat(); break; } case 29: { ImpactScore = input.ReadFloat(); break; } case 40: { AttackVector = (global::Grafeas.V1.CVSSv3.Types.AttackVector)input.ReadEnum(); break; } case 48: { AttackComplexity = (global::Grafeas.V1.CVSSv3.Types.AttackComplexity)input.ReadEnum(); break; } case 56: { PrivilegesRequired = (global::Grafeas.V1.CVSSv3.Types.PrivilegesRequired)input.ReadEnum(); break; } case 64: { UserInteraction = (global::Grafeas.V1.CVSSv3.Types.UserInteraction)input.ReadEnum(); break; } case 72: { Scope = (global::Grafeas.V1.CVSSv3.Types.Scope)input.ReadEnum(); break; } case 80: { ConfidentialityImpact = (global::Grafeas.V1.CVSSv3.Types.Impact)input.ReadEnum(); break; } case 88: { IntegrityImpact = (global::Grafeas.V1.CVSSv3.Types.Impact)input.ReadEnum(); break; } case 96: { AvailabilityImpact = (global::Grafeas.V1.CVSSv3.Types.Impact)input.ReadEnum(); break; } } } #endif }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { BaseScore = input.ReadFloat(); break; } case 21: { ExploitabilityScore = input.ReadFloat(); break; } case 29: { ImpactScore = input.ReadFloat(); break; } case 40: { attackVector_ = (global::Grafeas.V1.CVSSv3.Types.AttackVector)input.ReadEnum(); break; } case 48: { attackComplexity_ = (global::Grafeas.V1.CVSSv3.Types.AttackComplexity)input.ReadEnum(); break; } case 56: { privilegesRequired_ = (global::Grafeas.V1.CVSSv3.Types.PrivilegesRequired)input.ReadEnum(); break; } case 64: { userInteraction_ = (global::Grafeas.V1.CVSSv3.Types.UserInteraction)input.ReadEnum(); break; } case 72: { scope_ = (global::Grafeas.V1.CVSSv3.Types.Scope)input.ReadEnum(); break; } case 80: { confidentialityImpact_ = (global::Grafeas.V1.CVSSv3.Types.Impact)input.ReadEnum(); break; } case 88: { integrityImpact_ = (global::Grafeas.V1.CVSSv3.Types.Impact)input.ReadEnum(); break; } case 96: { availabilityImpact_ = (global::Grafeas.V1.CVSSv3.Types.Impact)input.ReadEnum(); break; } } } }