viam.gen.app.mltraining.v1.ml_training_pb2

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

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

global___TrainingJobLogEntry

global___GetTrainingJobLogsRequest

global___GetTrainingJobLogsResponse

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.

TrainingJobLogEntry

Abstract base class for protocol messages.

GetTrainingJobLogsRequest

Abstract base class for protocol messages.

GetTrainingJobLogsResponse

Abstract base class for protocol messages.

Module Contents

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.

dataset_id: str
organization_id: str
model_name: str
model_version: str
model_type: global___ModelType
property tags: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
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 = ..., registry_item_version: str = ..., organization_id: str = ..., model_name: str = ..., model_version: str = ..., arguments: collections.abc.Mapping[str, 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.

class ArgumentsEntry(*, key: str = ..., value: 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.

key: str
value: str
dataset_id: str
registry_item_id: str
registry_item_version: str
organization_id: str
model_name: str
model_version: str
property arguments: google.protobuf.internal.containers.ScalarMap[str, 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(*, 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 = ..., registry_item_version: 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.

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
registry_item_version: str
status: global___TrainingStatus
synced_model_id: str
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]
HasField(field_name: Literal['created_on', b'created_on', 'error_status', b'error_status', 'last_modified', b'last_modified', '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
class viam.gen.app.mltraining.v1.ml_training_pb2.TrainingJobLogEntry(*, level: str = ..., time: google.protobuf.timestamp_pb2.Timestamp | None = ..., message: 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.

level: str
message: str
property time: google.protobuf.timestamp_pb2.Timestamp
HasField(field_name: Literal['time', b'time']) 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___TrainingJobLogEntry
class viam.gen.app.mltraining.v1.ml_training_pb2.GetTrainingJobLogsRequest(*, id: str = ..., page_token: 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.

id: str
page_token: str
HasField(field_name: Literal['_page_token', b'_page_token', 'page_token', b'page_token']) 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.

WhichOneof(oneof_group: Literal['_page_token', b'_page_token']) Literal['page_token'] | None

Returns the name of the field that is set inside a oneof group.

If no field is set, returns None.

Parameters:

oneof_group (str) – the name of the oneof group to check.

Returns:

The name of the group that is set, or None.

Return type:

str or None

Raises:

ValueError – no group with the given name exists

viam.gen.app.mltraining.v1.ml_training_pb2.global___GetTrainingJobLogsRequest
class viam.gen.app.mltraining.v1.ml_training_pb2.GetTrainingJobLogsResponse(*, logs: collections.abc.Iterable[global___TrainingJobLogEntry] | None = ..., next_page_token: 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.

next_page_token: str
property logs: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TrainingJobLogEntry]
viam.gen.app.mltraining.v1.ml_training_pb2.global___GetTrainingJobLogsResponse