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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firebaseml_v1beta2/classes.rb,
generated/google/apis/firebaseml_v1beta2/representations.rb,
generated/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.



194
195
196
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 194

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)


181
182
183
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 181

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



192
193
194
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 192

def validation_error
  @validation_error
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



199
200
201
202
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 199

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