trim(keeping:)

Removes from ‘message’ any field that is not represented in the given FieldMask. If the FieldMask is empty, does nothing.

Message+FieldMask.swift:99
@discardableResult mutating func trim(keeping fieldMask: Google_Protobuf_FieldMask) -> Bool

Parameters

fieldMask

FieldMask specifies which fields should be kept.

Returns

Boolean determines if the message is modified