Instance Methodswift-protobuf 1.29.0SwiftProtobuf
trim(keeping:)
Removes from ‘message’ any field that is not represented in the given FieldMask. If the FieldMask is empty, does nothing.
@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