class Google::Apis::DatastoreV1beta2::Value

A message that can hold any of the supported value types and associated metadata.

Attributes

blob_key_value[RW]

A blob key value. Corresponds to the JSON property `blobKeyValue` @return [String]

blob_value[RW]

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]

boolean_value[RW]

A boolean value. Corresponds to the JSON property `booleanValue` @return [Boolean]

boolean_value?[RW]

A boolean value. Corresponds to the JSON property `booleanValue` @return [Boolean]

date_time_value[RW]

A timestamp value. Corresponds to the JSON property `dateTimeValue` @return [DateTime]

double_value[RW]

A double value. Corresponds to the JSON property `doubleValue` @return [Float]

entity_value[RW]

An entity. Corresponds to the JSON property `entityValue` @return [Google::Apis::DatastoreV1beta2::Entity]

indexed[RW]

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]

indexed?[RW]

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]

integer_value[RW]

An integer value. Corresponds to the JSON property `integerValue` @return [String]

key_value[RW]

A unique identifier for an entity. Corresponds to the JSON property `keyValue` @return [Google::Apis::DatastoreV1beta2::Key]

list_value[RW]

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>]

meaning[RW]

The meaning field is reserved and should not be used. Corresponds to the JSON property `meaning` @return [Fixnum]

string_value[RW]

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

new(**args) click to toggle source
# File generated/google/apis/datastore_v1beta2/classes.rb, line 1164
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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