code: 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;
          }
      }
docs: Method return true if the given message contains a timestamp field.
  @param messageOrBuilder the message to analyze
  @return true if the timestamp field is provided, otherwise false.