Class: Google::Apis::VisionV1::ProductSet
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::ProductSet
- 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
A ProductSet contains Products. A ProductSet can contain a maximum of 1 million reference images. If the limit is exceeded, periodic indexing will fail.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The user-provided name for this ProductSet.
-
#index_error ⇒ Google::Apis::VisionV1::Status
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. -
#index_time ⇒ String
Output only.
-
#name ⇒ String
The resource name of the ProductSet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductSet
constructor
A new instance of ProductSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProductSet
Returns a new instance of ProductSet
12336 12337 12338 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The user-provided name for this ProductSet. Must not be empty. Must be at
most 4096 characters long.
Corresponds to the JSON property displayName
12307 12308 12309 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12307 def display_name @display_name end |
#index_error ⇒ Google::Apis::VisionV1::Status
The Status
type defines a logical error model that is suitable for
different programming environments, including REST APIs and RPC APIs. It is
used by gRPC. Each Status
message contains
three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the
API Design Guide.
Corresponds to the JSON property indexError
12317 12318 12319 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12317 def index_error @index_error end |
#index_time ⇒ String
Output only. The time at which this ProductSet was last indexed. Query
results will reflect all updates before this time. If this ProductSet has
never been indexed, this timestamp is the default value
"1970-01-01T00:00:00Z".
This field is ignored when creating a ProductSet.
Corresponds to the JSON property indexTime
12326 12327 12328 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12326 def index_time @index_time end |
#name ⇒ String
The resource name of the ProductSet.
Format is:
projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID
.
This field is ignored when creating a ProductSet.
Corresponds to the JSON property name
12334 12335 12336 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12334 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12341 12342 12343 12344 12345 12346 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12341 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @index_error = args[:index_error] if args.key?(:index_error) @index_time = args[:index_time] if args.key?(:index_time) @name = args[:name] if args.key?(:name) end |