@Override protected Blob getValue(com.google.datastore.v1.Value from) { return new Blob(from.getBlobValue()); }
case 18: hash = (37 * hash) + BLOB_VALUE_FIELD_NUMBER; hash = (53 * hash) + getBlobValue().hashCode(); break; case 8:
break; case 18: result = result && getBlobValue().equals(other.getBlobValue()); break; case 8:
setBlobValue(other.getBlobValue()); break;
/** * Return the value as a blob. * * @return the value. * @throws IllegalArgumentException if {@code Value} is not a blob. */ public ByteString getBlob() { if (!isBlob()) { throw new IllegalArgumentException("Value does not contain a blob."); } return value.getBlobValue(); }
@Override protected Blob getValue(com.google.datastore.v1.Value from) { return new Blob(from.getBlobValue()); }
/** * @return the blob contained in value * @throws IllegalArgumentException if the value does not contain a blob. */ public static ByteString getByteString(Value value) { if (value.getMeaning() == 18 && value.getValueTypeCase() == ValueTypeCase.STRING_VALUE) { return value.getStringValueBytes(); } else if (value.getValueTypeCase() == ValueTypeCase.BLOB_VALUE) { return value.getBlobValue(); } throw new IllegalArgumentException("Value does not contain a blob."); }
/** * @return the blob contained in value * @throws IllegalArgumentException if the value does not contain a blob. */ public static ByteString getByteString(Value value) { if (value.getMeaning() == 18 && value.getValueTypeCase() == ValueTypeCase.STRING_VALUE) { return value.getStringValueBytes(); } else if (value.getValueTypeCase() == ValueTypeCase.BLOB_VALUE) { return value.getBlobValue(); } throw new IllegalArgumentException("Value does not contain a blob."); }
case 18: hash = (37 * hash) + BLOB_VALUE_FIELD_NUMBER; hash = (53 * hash) + getBlobValue().hashCode(); break; case 8:
case 18: hash = (37 * hash) + BLOB_VALUE_FIELD_NUMBER; hash = (53 * hash) + getBlobValue().hashCode(); break; case 8:
break; case 18: result = result && getBlobValue().equals(other.getBlobValue()); break; case 8:
break; case 18: result = result && getBlobValue() .equals(other.getBlobValue()); break; case 8:
setBlobValue(other.getBlobValue()); break;
setBlobValue(other.getBlobValue()); break;