Class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1KeyValuePair

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/representations.rb

Overview

Proto for a key value pair.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p5beta1KeyValuePair

Returns a new instance of GoogleCloudVisionV1p5beta1KeyValuePair



9968
9969
9970
# File 'generated/google/apis/vision_v1/classes.rb', line 9968

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

Instance Attribute Details

#keyString

The key string value. Corresponds to the JSON property key

Returns:

  • (String)


9936
9937
9938
# File 'generated/google/apis/vision_v1/classes.rb', line 9936

def key
  @key
end

#key_blockGoogle::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block

Logical element on the page. Corresponds to the JSON property keyBlock



9941
9942
9943
# File 'generated/google/apis/vision_v1/classes.rb', line 9941

def key_block
  @key_block
end

#normalized_keyString

Optional. The translation of key text if the text is not in English. Corresponds to the JSON property normalizedKey

Returns:

  • (String)


9946
9947
9948
# File 'generated/google/apis/vision_v1/classes.rb', line 9946

def normalized_key
  @normalized_key
end

#value_blockGoogle::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block

Logical element on the page. Corresponds to the JSON property valueBlock



9951
9952
9953
# File 'generated/google/apis/vision_v1/classes.rb', line 9951

def value_block
  @value_block
end

#value_typeString

Type of the value. Valid strings are the following: "generic" - For generic text that is mapped to a value. "number" - for numeric types "id" - for generic identifiers. "currency" - for currency values. "date" - for dates. "time" - for time and duration values. "date_range" - for date ranges. "address" - for address values (can be long). "person" - for names of people or other personal identifiers. "phone" - for phone numbers. Corresponds to the JSON property valueType

Returns:

  • (String)


9966
9967
9968
# File 'generated/google/apis/vision_v1/classes.rb', line 9966

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9973
9974
9975
9976
9977
9978
9979
# File 'generated/google/apis/vision_v1/classes.rb', line 9973

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @key_block = args[:key_block] if args.key?(:key_block)
  @normalized_key = args[:normalized_key] if args.key?(:normalized_key)
  @value_block = args[:value_block] if args.key?(:value_block)
  @value_type = args[:value_type] if args.key?(:value_type)
end