public ByteBuffer getBytes(String name) {
        Object result = get(name);
        if (result instanceof byte[])
            return ByteBuffer.wrap((byte[]) result);
        return (ByteBuffer) result;
    }
Check if the struct contains a field.
@param name
@return Whether a field exists.
clients/src/main/java/org/apache/kafka/common/protocol/types/Struct.java