Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb

Overview

Data type and value of a parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1Value

Returns a new instance of GoogleCloudChannelV1Value.



2385
2386
2387
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2385

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#double_valueFloat

Represents a double value. Corresponds to the JSON property doubleValue

Returns:

  • (Float)


2368
2369
2370
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2368

def double_value
  @double_value
end

#int64_valueFixnum

Represents an int64 value. Corresponds to the JSON property int64Value

Returns:

  • (Fixnum)


2373
2374
2375
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2373

def int64_value
  @int64_value
end

#proto_valueHash<String,Object>

Represents an 'Any' proto value. Corresponds to the JSON property protoValue

Returns:

  • (Hash<String,Object>)


2378
2379
2380
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2378

def proto_value
  @proto_value
end

#string_valueString

Represents a string value. Corresponds to the JSON property stringValue

Returns:

  • (String)


2383
2384
2385
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2383

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2390
2391
2392
2393
2394
2395
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2390

def update!(**args)
  @double_value = args[:double_value] if args.key?(:double_value)
  @int64_value = args[:int64_value] if args.key?(:int64_value)
  @proto_value = args[:proto_value] if args.key?(:proto_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end