viam.gen.app.mltraining.v1.ml_training_pb2

@generated by mypy-protobuf. Do not edit manually! isort:skip_file

Module Contents

Classes

ModelType

ModelFramework

TrainingStatus

SubmitTrainingJobRequest

Abstract base class for protocol messages.

SubmitTrainingJobResponse

Abstract base class for protocol messages.

SubmitCustomTrainingJobRequest

Abstract base class for protocol messages.

SubmitCustomTrainingJobResponse

Abstract base class for protocol messages.

GetTrainingJobRequest

Abstract base class for protocol messages.

GetTrainingJobResponse

Abstract base class for protocol messages.

ListTrainingJobsRequest

Abstract base class for protocol messages.

ListTrainingJobsResponse

Abstract base class for protocol messages.

TrainingJobMetadata

Abstract base class for protocol messages.

CancelTrainingJobRequest

Abstract base class for protocol messages.

CancelTrainingJobResponse

Abstract base class for protocol messages.

DeleteCompletedTrainingJobRequest

Abstract base class for protocol messages.

DeleteCompletedTrainingJobResponse

Abstract base class for protocol messages.

Attributes

DESCRIPTOR

MODEL_TYPE_UNSPECIFIED

MODEL_TYPE_SINGLE_LABEL_CLASSIFICATION

MODEL_TYPE_MULTI_LABEL_CLASSIFICATION

MODEL_TYPE_OBJECT_DETECTION

global___ModelType

MODEL_FRAMEWORK_UNSPECIFIED

MODEL_FRAMEWORK_TFLITE

MODEL_FRAMEWORK_TENSORFLOW

MODEL_FRAMEWORK_PYTORCH

MODEL_FRAMEWORK_ONNX

global___ModelFramework

TRAINING_STATUS_UNSPECIFIED

TRAINING_STATUS_PENDING

TRAINING_STATUS_IN_PROGRESS

TRAINING_STATUS_COMPLETED

TRAINING_STATUS_FAILED

TRAINING_STATUS_CANCELED

TRAINING_STATUS_CANCELING

global___TrainingStatus

global___SubmitTrainingJobRequest

global___SubmitTrainingJobResponse

global___SubmitCustomTrainingJobRequest

global___SubmitCustomTrainingJobResponse

global___GetTrainingJobRequest

global___GetTrainingJobResponse

global___ListTrainingJobsRequest

global___ListTrainingJobsResponse

global___TrainingJobMetadata

global___CancelTrainingJobRequest

global___CancelTrainingJobResponse

global___DeleteCompletedTrainingJobRequest

global___DeleteCompletedTrainingJobResponse

viam.gen.app.mltraining.v1.ml_training_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class viam.gen.app.mltraining.v1.ml_training_pb2.ModelType

Bases: _ModelType

viam.gen.app.mltraining.v1.ml_training_pb2.MODEL_TYPE_UNSPECIFIED: ModelType
viam.gen.app.mltraining.v1.ml_training_pb2.MODEL_TYPE_SINGLE_LABEL_CLASSIFICATION: ModelType
viam.gen.app.mltraining.v1.ml_training_pb2.MODEL_TYPE_MULTI_LABEL_CLASSIFICATION: ModelType
viam.gen.app.mltraining.v1.ml_training_pb2.MODEL_TYPE_OBJECT_DETECTION: ModelType
viam.gen.app.mltraining.v1.ml_training_pb2.global___ModelType
class viam.gen.app.mltraining.v1.ml_training_pb2.ModelFramework

Bases: _ModelFramework

viam.gen.app.mltraining.v1.ml_training_pb2.MODEL_FRAMEWORK_UNSPECIFIED: ModelFramework
viam.gen.app.mltraining.v1.ml_training_pb2.MODEL_FRAMEWORK_TFLITE: ModelFramework
viam.gen.app.mltraining.v1.ml_training_pb2.MODEL_FRAMEWORK_TENSORFLOW: ModelFramework
viam.gen.app.mltraining.v1.ml_training_pb2.MODEL_FRAMEWORK_PYTORCH: ModelFramework
viam.gen.app.mltraining.v1.ml_training_pb2.MODEL_FRAMEWORK_ONNX: ModelFramework
viam.gen.app.mltraining.v1.ml_training_pb2.global___ModelFramework
class viam.gen.app.mltraining.v1.ml_training_pb2.TrainingStatus

Bases: _TrainingStatus

viam.gen.app.mltraining.v1.ml_training_pb2.TRAINING_STATUS_UNSPECIFIED: TrainingStatus
viam.gen.app.mltraining.v1.ml_training_pb2.TRAINING_STATUS_PENDING: TrainingStatus
viam.gen.app.mltraining.v1.ml_training_pb2.TRAINING_STATUS_IN_PROGRESS: TrainingStatus
viam.gen.app.mltraining.v1.ml_training_pb2.TRAINING_STATUS_COMPLETED: TrainingStatus
viam.gen.app.mltraining.v1.ml_training_pb2.TRAINING_STATUS_FAILED: TrainingStatus
viam.gen.app.mltraining.v1.ml_training_pb2.TRAINING_STATUS_CANCELED: TrainingStatus
viam.gen.app.mltraining.v1.ml_training_pb2.TRAINING_STATUS_CANCELING: TrainingStatus
viam.gen.app.mltraining.v1.ml_training_pb2.global___TrainingStatus
class viam.gen.app.mltraining.v1.ml_training_pb2.SubmitTrainingJobRequest(*, dataset_id: str = ..., organization_id: str = ..., model_name: str = ..., model_version: str = ..., model_type: global___ModelType = ..., tags: collections.abc.Iterable[str] | None = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

property tags: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
dataset_id: str
organization_id: str
model_name: str
model_version: str
model_type: global___ModelType
viam.gen.app.mltraining.v1.ml_training_pb2.global___SubmitTrainingJobRequest
class viam.gen.app.mltraining.v1.ml_training_pb2.SubmitTrainingJobResponse(*, id: str = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

id: str
viam.gen.app.mltraining.v1.ml_training_pb2.global___SubmitTrainingJobResponse
class viam.gen.app.mltraining.v1.ml_training_pb2.SubmitCustomTrainingJobRequest(*, dataset_id: str = ..., registry_item_id: str = ..., organization_id: str = ..., model_name: str = ..., model_version: str = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

dataset_id: str
registry_item_id: str
organization_id: str
model_name: str
model_version: str
viam.gen.app.mltraining.v1.ml_training_pb2.global___SubmitCustomTrainingJobRequest
class viam.gen.app.mltraining.v1.ml_training_pb2.SubmitCustomTrainingJobResponse(*, id: str = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

id: str
viam.gen.app.mltraining.v1.ml_training_pb2.global___SubmitCustomTrainingJobResponse
class viam.gen.app.mltraining.v1.ml_training_pb2.GetTrainingJobRequest(*, id: str = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

id: str
viam.gen.app.mltraining.v1.ml_training_pb2.global___GetTrainingJobRequest
class viam.gen.app.mltraining.v1.ml_training_pb2.GetTrainingJobResponse(*, metadata: global___TrainingJobMetadata | None = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

property metadata: global___TrainingJobMetadata
HasField(field_name: Literal[metadata, b'metadata']) bool

Checks if a certain field is set for the message.

For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, ValueError will be raised.

Parameters:

field_name (str) – The name of the field to check for presence.

Returns:

Whether a value has been set for the named field.

Return type:

bool

Raises:

ValueError – if the field_name is not a member of this message.

viam.gen.app.mltraining.v1.ml_training_pb2.global___GetTrainingJobResponse
class viam.gen.app.mltraining.v1.ml_training_pb2.ListTrainingJobsRequest(*, organization_id: str = ..., status: global___TrainingStatus = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

organization_id: str
status: global___TrainingStatus
viam.gen.app.mltraining.v1.ml_training_pb2.global___ListTrainingJobsRequest
class viam.gen.app.mltraining.v1.ml_training_pb2.ListTrainingJobsResponse(*, jobs: collections.abc.Iterable[global___TrainingJobMetadata] | None = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

property jobs: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TrainingJobMetadata]
viam.gen.app.mltraining.v1.ml_training_pb2.global___ListTrainingJobsResponse
class viam.gen.app.mltraining.v1.ml_training_pb2.TrainingJobMetadata(*, request: global___SubmitTrainingJobRequest | None = ..., id: str = ..., dataset_id: str = ..., organization_id: str = ..., model_name: str = ..., model_version: str = ..., model_type: global___ModelType = ..., model_framework: global___ModelFramework = ..., is_custom_job: bool = ..., registry_item_id: str = ..., status: global___TrainingStatus = ..., error_status: google.rpc.status_pb2.Status | None = ..., created_on: google.protobuf.timestamp_pb2.Timestamp | None = ..., last_modified: google.protobuf.timestamp_pb2.Timestamp | None = ..., training_started: google.protobuf.timestamp_pb2.Timestamp | None = ..., training_ended: google.protobuf.timestamp_pb2.Timestamp | None = ..., synced_model_id: str = ..., tags: collections.abc.Iterable[str] | None = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

property request: global___SubmitTrainingJobRequest
property error_status: google.rpc.status_pb2.Status
property created_on: google.protobuf.timestamp_pb2.Timestamp
property last_modified: google.protobuf.timestamp_pb2.Timestamp
property training_started: google.protobuf.timestamp_pb2.Timestamp
property training_ended: google.protobuf.timestamp_pb2.Timestamp
property tags: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
id: str
dataset_id: str
organization_id: str
model_name: str
model_version: str
model_type: global___ModelType
model_framework: global___ModelFramework
is_custom_job: bool
registry_item_id: str
status: global___TrainingStatus
synced_model_id: str
HasField(field_name: Literal[created_on, b'created_on', error_status, b'error_status', last_modified, b'last_modified', request, b'request', training_ended, b'training_ended', training_started, b'training_started']) bool

Checks if a certain field is set for the message.

For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, ValueError will be raised.

Parameters:

field_name (str) – The name of the field to check for presence.

Returns:

Whether a value has been set for the named field.

Return type:

bool

Raises:

ValueError – if the field_name is not a member of this message.

viam.gen.app.mltraining.v1.ml_training_pb2.global___TrainingJobMetadata
class viam.gen.app.mltraining.v1.ml_training_pb2.CancelTrainingJobRequest(*, id: str = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

id: str
viam.gen.app.mltraining.v1.ml_training_pb2.global___CancelTrainingJobRequest
class viam.gen.app.mltraining.v1.ml_training_pb2.CancelTrainingJobResponse

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

viam.gen.app.mltraining.v1.ml_training_pb2.global___CancelTrainingJobResponse
class viam.gen.app.mltraining.v1.ml_training_pb2.DeleteCompletedTrainingJobRequest(*, id: str = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

id: str
viam.gen.app.mltraining.v1.ml_training_pb2.global___DeleteCompletedTrainingJobRequest
class viam.gen.app.mltraining.v1.ml_training_pb2.DeleteCompletedTrainingJobResponse

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

viam.gen.app.mltraining.v1.ml_training_pb2.global___DeleteCompletedTrainingJobResponse