Class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BatchOperationMetadata

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

Overview

Metadata for the batch operations such as the current state. This is included in the metadata field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p3beta1BatchOperationMetadata

Returns a new instance of GoogleCloudVisionV1p3beta1BatchOperationMetadata.



4951
4952
4953
# File 'lib/google/apis/vision_v1/classes.rb', line 4951

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

Instance Attribute Details

#end_timeString

The time when the batch request is finished and google.longrunning.Operation. done is set to true. Corresponds to the JSON property endTime

Returns:

  • (String)


4939
4940
4941
# File 'lib/google/apis/vision_v1/classes.rb', line 4939

def end_time
  @end_time
end

#stateString

The current state of the batch operation. Corresponds to the JSON property state

Returns:

  • (String)


4944
4945
4946
# File 'lib/google/apis/vision_v1/classes.rb', line 4944

def state
  @state
end

#submit_timeString

The time when the batch request was submitted to the server. Corresponds to the JSON property submitTime

Returns:

  • (String)


4949
4950
4951
# File 'lib/google/apis/vision_v1/classes.rb', line 4949

def submit_time
  @submit_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4956
4957
4958
4959
4960
# File 'lib/google/apis/vision_v1/classes.rb', line 4956

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @state = args[:state] if args.key?(:state)
  @submit_time = args[:submit_time] if args.key?(:submit_time)
end