public static boolean hasTimestamp ( final MessageOrBuilder messageOrBuilder ) { try { final FieldDescriptor fieldDescriptor = ProtoBufFieldProcessor . getFieldDescriptor ( messageOrBuilder , TIMESTAMP_FIELD_NAME ) ; return messageOrBuilder . hasField ( fieldDescriptor ) ; } catch ( NotAvailableException ex ) { return false ; } }
Method return true if the given message contains a timestamp field .