Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImagePayload

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

Overview

Container of information about an image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1ImagePayload

Returns a new instance of GoogleCloudDatalabelingV1beta1ImagePayload.



2641
2642
2643
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2641

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

Instance Attribute Details

#image_thumbnailString

A byte string of a thumbnail image. Corresponds to the JSON property imageThumbnail NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2624
2625
2626
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2624

def image_thumbnail
  @image_thumbnail
end

#image_uriString

Image uri from the user bucket. Corresponds to the JSON property imageUri

Returns:

  • (String)


2629
2630
2631
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2629

def image_uri
  @image_uri
end

#mime_typeString

Image format. Corresponds to the JSON property mimeType

Returns:

  • (String)


2634
2635
2636
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2634

def mime_type
  @mime_type
end

#signed_uriString

Signed uri of the image file in the service bucket. Corresponds to the JSON property signedUri

Returns:

  • (String)


2639
2640
2641
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2639

def signed_uri
  @signed_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2646
2647
2648
2649
2650
2651
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2646

def update!(**args)
  @image_thumbnail = args[:image_thumbnail] if args.key?(:image_thumbnail)
  @image_uri = args[:image_uri] if args.key?(:image_uri)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @signed_uri = args[:signed_uri] if args.key?(:signed_uri)
end