Class: Google::Apis::ScriptV1::Value
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::Value
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/script_v1/classes.rb,
generated/google/apis/script_v1/representations.rb,
generated/google/apis/script_v1/representations.rb
Overview
Value
represents a dynamically typed value which is the outcome of an
executed script
Based on Value at:
google3/apps/maestro/api/struct.proto?q=message%5c%20Value
Instance Attribute Summary collapse
-
#bool_value ⇒ Boolean
(also: #bool_value?)
Represents a boolean value.
-
#bytes_value ⇒ String
Represents raw byte values.
-
#date_value ⇒ Fixnum
Represents a date in ms since the epoch.
-
#list_value ⇒ Google::Apis::ScriptV1::ListValue
ListValue
is a wrapper around a repeated field of values. -
#null_value ⇒ String
Represents a null value.
-
#number_value ⇒ Float
Represents a double value.
-
#proto_value ⇒ Hash<String,Object>
Represents a structured proto value.
-
#string_value ⇒ String
Represents a string value.
-
#struct_value ⇒ Google::Apis::ScriptV1::Struct
Struct
represents a structured data value, consisting of fields which map to dynamically typed values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Value
constructor
A new instance of Value.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Value
Returns a new instance of Value.
1185 1186 1187 |
# File 'generated/google/apis/script_v1/classes.rb', line 1185 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
Represents a boolean value.
Corresponds to the JSON property boolValue
1136 1137 1138 |
# File 'generated/google/apis/script_v1/classes.rb', line 1136 def bool_value @bool_value end |
#bytes_value ⇒ String
Represents raw byte values.
Corresponds to the JSON property bytesValue
NOTE: Values are automatically base64 encoded/decoded in the client library.
1143 1144 1145 |
# File 'generated/google/apis/script_v1/classes.rb', line 1143 def bytes_value @bytes_value end |
#date_value ⇒ Fixnum
Represents a date in ms since the epoch.
Corresponds to the JSON property dateValue
1148 1149 1150 |
# File 'generated/google/apis/script_v1/classes.rb', line 1148 def date_value @date_value end |
#list_value ⇒ Google::Apis::ScriptV1::ListValue
ListValue
is a wrapper around a repeated field of values.
Based on LustValue at:
google3/apps/maestro/api/struct.proto?q=message%5c%20ListValue
Corresponds to the JSON property listValue
1155 1156 1157 |
# File 'generated/google/apis/script_v1/classes.rb', line 1155 def list_value @list_value end |
#null_value ⇒ String
Represents a null value.
Corresponds to the JSON property nullValue
1160 1161 1162 |
# File 'generated/google/apis/script_v1/classes.rb', line 1160 def null_value @null_value end |
#number_value ⇒ Float
Represents a double value.
Corresponds to the JSON property numberValue
1165 1166 1167 |
# File 'generated/google/apis/script_v1/classes.rb', line 1165 def number_value @number_value end |
#proto_value ⇒ Hash<String,Object>
Represents a structured proto value.
Corresponds to the JSON property protoValue
1170 1171 1172 |
# File 'generated/google/apis/script_v1/classes.rb', line 1170 def proto_value @proto_value end |
#string_value ⇒ String
Represents a string value.
Corresponds to the JSON property stringValue
1175 1176 1177 |
# File 'generated/google/apis/script_v1/classes.rb', line 1175 def string_value @string_value end |
#struct_value ⇒ Google::Apis::ScriptV1::Struct
Struct
represents a structured data value, consisting of fields which map
to dynamically typed values.
Based on Struct at:
google3/apps/maestro/api/struct.proto?q=message%5c%20Struct
Corresponds to the JSON property structValue
1183 1184 1185 |
# File 'generated/google/apis/script_v1/classes.rb', line 1183 def struct_value @struct_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 |
# File 'generated/google/apis/script_v1/classes.rb', line 1190 def update!(**args) @bool_value = args[:bool_value] if args.key?(:bool_value) @bytes_value = args[:bytes_value] if args.key?(:bytes_value) @date_value = args[:date_value] if args.key?(:date_value) @list_value = args[:list_value] if args.key?(:list_value) @null_value = args[:null_value] if args.key?(:null_value) @number_value = args[:number_value] if args.key?(:number_value) @proto_value = args[:proto_value] if args.key?(:proto_value) @string_value = args[:string_value] if args.key?(:string_value) @struct_value = args[:struct_value] if args.key?(:struct_value) end |