class Google::Apis::DatastoreV1beta2::Value
A message that can hold any of the supported value types and associated metadata.
Attributes
A blob key value. Corresponds to the JSON property `blobKeyValue` @return [String]
A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may have at most 500 bytes. Corresponds to the JSON property `blobValue` @return [String]
A boolean value. Corresponds to the JSON property `booleanValue` @return [Boolean]
A boolean value. Corresponds to the JSON property `booleanValue` @return [Boolean]
A timestamp value. Corresponds to the JSON property `dateTimeValue` @return [DateTime]
A double value. Corresponds to the JSON property `doubleValue` @return [Float]
An entity. Corresponds to the JSON property `entityValue` @return [Google::Apis::DatastoreV1beta2::Entity]
If the value should be indexed. The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true. Corresponds to the JSON property `indexed` @return [Boolean]
If the value should be indexed. The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true. Corresponds to the JSON property `indexed` @return [Boolean]
An integer value. Corresponds to the JSON property `integerValue` @return [String]
A unique identifier for an entity. Corresponds to the JSON property `keyValue` @return [Google::Apis::DatastoreV1beta2::Key]
A list value. Cannot contain another list value. A Value instance that sets field #list_value must not set field meaning or field indexed. Corresponds to the JSON property `listValue` @return [Array<Google::Apis::DatastoreV1beta2::Value>]
The meaning field is reserved and should not be used. Corresponds to the JSON property `meaning` @return [Fixnum]
A UTF-8 encoded string value. When indexed is true, may have at most 500 characters. Corresponds to the JSON property `stringValue` @return [String]
Public Class Methods
# File generated/google/apis/datastore_v1beta2/classes.rb, line 1164 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/datastore_v1beta2/classes.rb, line 1169 def update!(**args) @blob_key_value = args[:blob_key_value] if args.key?(:blob_key_value) @blob_value = args[:blob_value] if args.key?(:blob_value) @boolean_value = args[:boolean_value] if args.key?(:boolean_value) @date_time_value = args[:date_time_value] if args.key?(:date_time_value) @double_value = args[:double_value] if args.key?(:double_value) @entity_value = args[:entity_value] if args.key?(:entity_value) @indexed = args[:indexed] if args.key?(:indexed) @integer_value = args[:integer_value] if args.key?(:integer_value) @key_value = args[:key_value] if args.key?(:key_value) @list_value = args[:list_value] if args.key?(:list_value) @meaning = args[:meaning] if args.key?(:meaning) @string_value = args[:string_value] if args.key?(:string_value) end