Class: Google::Protobuf::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/spanner/v1/doc/google/protobuf/struct.rb

Overview

Value represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of that variants, absence of any variant indicates an error.

The JSON representation for Value is JSON value.

Instance Attribute Summary collapse

Instance Attribute Details

#bool_valuetrue, false

Returns Represents a boolean value.

Returns:

  • (true, false)

    Represents a boolean value.



55
# File 'lib/google/cloud/spanner/v1/doc/google/protobuf/struct.rb', line 55

class Value; end

#list_valueGoogle::Protobuf::ListValue

Returns Represents a repeated Value.

Returns:



55
# File 'lib/google/cloud/spanner/v1/doc/google/protobuf/struct.rb', line 55

class Value; end

#null_valueGoogle::Protobuf::NullValue

Returns Represents a null value.

Returns:



55
# File 'lib/google/cloud/spanner/v1/doc/google/protobuf/struct.rb', line 55

class Value; end

#number_valueFloat

Returns Represents a double value.

Returns:

  • (Float)

    Represents a double value.



55
# File 'lib/google/cloud/spanner/v1/doc/google/protobuf/struct.rb', line 55

class Value; end

#string_valueString

Returns Represents a string value.

Returns:

  • (String)

    Represents a string value.



55
# File 'lib/google/cloud/spanner/v1/doc/google/protobuf/struct.rb', line 55

class Value; end

#struct_valueGoogle::Protobuf::Struct

Returns Represents a structured value.

Returns:



55
# File 'lib/google/cloud/spanner/v1/doc/google/protobuf/struct.rb', line 55

class Value; end