Class: Google::Apis::FirebasemlV1beta2::ModelState

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

Overview

State common to all model types. Includes publishing and validation information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ModelState

Returns a new instance of ModelState.



231
232
233
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 231

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

Instance Attribute Details

#publishedBoolean Also known as: published?

Indicates if this model has been published. Corresponds to the JSON property published

Returns:

  • (Boolean)


218
219
220
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 218

def published
  @published
end

#validation_errorGoogle::Apis::FirebasemlV1beta2::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 validationError



229
230
231
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 229

def validation_error
  @validation_error
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



236
237
238
239
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 236

def update!(**args)
  @published = args[:published] if args.key?(:published)
  @validation_error = args[:validation_error] if args.key?(:validation_error)
end