public static boolean isSanitizedContentField ( FieldDescriptor fieldDescriptor ) { return fieldDescriptor . getType ( ) == Type . MESSAGE && SAFE_PROTO_TYPES . contains ( fieldDescriptor . getMessageType ( ) . getFullName ( ) ) ; }
Returns true if fieldDescriptor holds a sanitized proto type .