pub enum ValueType {
NullValue(i32),
BooleanValue(bool),
IntegerValue(i64),
DoubleValue(f64),
TimestampValue(Timestamp),
KeyValue(Key),
StringValue(String),
BlobValue(Bytes),
GeoPointValue(LatLng),
EntityValue(Entity),
ArrayValue(ArrayValue),
}
Expand description
Must have a value set.
Variants§
NullValue(i32)
A null value.
BooleanValue(bool)
A boolean value.
IntegerValue(i64)
An integer value.
DoubleValue(f64)
A double value.
TimestampValue(Timestamp)
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
KeyValue(Key)
A key value.
StringValue(String)
A UTF-8 encoded string value.
When exclude_from_indexes
is false (it is indexed), may have at most
1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
BlobValue(Bytes)
A blob value.
May have at most 1,000,000 bytes.
When exclude_from_indexes
is false, may have at most 1500 bytes.
In JSON requests, must be base64-encoded.
GeoPointValue(LatLng)
A geo point value representing a point on the surface of Earth.
EntityValue(Entity)
An entity value.
- May have no key.
- May have a key with an incomplete key path.
- May have a reserved/read-only key.
ArrayValue(ArrayValue)
An array value.
Cannot contain another array value.
A Value
instance that sets field array_value
must not set fields
meaning
or exclude_from_indexes
.
Implementations§
source§impl ValueType
impl ValueType
sourcepub fn merge<B>(
field: &mut Option<ValueType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<ValueType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for ValueType
impl PartialEq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl !Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request