viam.gen.app.packages.v1.packages_pb2

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

Attributes

DESCRIPTOR

PACKAGE_TYPE_UNSPECIFIED

PACKAGE_TYPE_ARCHIVE

PACKAGE_TYPE_ML_MODEL

PACKAGE_TYPE_MODULE

PACKAGE_TYPE_SLAM_MAP

PACKAGE_TYPE_ML_TRAINING

global___PackageType

global___FileInfo

global___PackageInfo

global___CreatePackageRequest

global___CreatePackageResponse

global___DeletePackageRequest

global___DeletePackageResponse

global___Package

global___GetPackageRequest

global___GetPackageResponse

global___ListPackagesRequest

global___ListPackagesResponse

Classes

PackageType

FileInfo

Abstract base class for protocol messages.

PackageInfo

Abstract base class for protocol messages.

CreatePackageRequest

Abstract base class for protocol messages.

CreatePackageResponse

Returns the package ID and version which are populated in GetPackageRequest and DeletePackageRequest to

DeletePackageRequest

Abstract base class for protocol messages.

DeletePackageResponse

Abstract base class for protocol messages.

Package

Abstract base class for protocol messages.

GetPackageRequest

Abstract base class for protocol messages.

GetPackageResponse

Abstract base class for protocol messages.

ListPackagesRequest

Abstract base class for protocol messages.

ListPackagesResponse

Abstract base class for protocol messages.

Module Contents

viam.gen.app.packages.v1.packages_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class viam.gen.app.packages.v1.packages_pb2.PackageType

Bases: _PackageType

viam.gen.app.packages.v1.packages_pb2.PACKAGE_TYPE_UNSPECIFIED: PackageType
viam.gen.app.packages.v1.packages_pb2.PACKAGE_TYPE_ARCHIVE: PackageType
viam.gen.app.packages.v1.packages_pb2.PACKAGE_TYPE_ML_MODEL: PackageType
viam.gen.app.packages.v1.packages_pb2.PACKAGE_TYPE_MODULE: PackageType
viam.gen.app.packages.v1.packages_pb2.PACKAGE_TYPE_SLAM_MAP: PackageType
viam.gen.app.packages.v1.packages_pb2.PACKAGE_TYPE_ML_TRAINING: PackageType
viam.gen.app.packages.v1.packages_pb2.global___PackageType
class viam.gen.app.packages.v1.packages_pb2.FileInfo(*, name: str = ..., size: int = ..., is_directory: bool | 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.

name: str
size: int
is_directory: bool
HasField(field_name: Literal['_is_directory', b'_is_directory', 'is_directory', b'is_directory']) 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['_is_directory', b'_is_directory']) Literal['is_directory'] | 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.packages.v1.packages_pb2.global___FileInfo
class viam.gen.app.packages.v1.packages_pb2.PackageInfo(*, organization_id: str = ..., name: str = ..., version: str = ..., type: global___PackageType = ..., platform: str | None = ..., files: collections.abc.Iterable[global___FileInfo] | None = ..., metadata: google.protobuf.struct_pb2.Struct | 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.

organization_id: str
name: str
version: str
type: global___PackageType
platform: str
property files: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FileInfo]
property metadata: google.protobuf.struct_pb2.Struct
HasField(field_name: Literal['_platform', b'_platform', 'metadata', b'metadata', 'platform', b'platform']) 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['_platform', b'_platform']) Literal['platform'] | 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.packages.v1.packages_pb2.global___PackageInfo
class viam.gen.app.packages.v1.packages_pb2.CreatePackageRequest(*, info: global___PackageInfo | None = ..., contents: bytes = ...)

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.

contents: bytes

.tar.gz file

property info: global___PackageInfo
HasField(field_name: Literal['contents', b'contents', 'info', b'info', 'package', b'package']) 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['package', b'package']) Literal['info', 'contents'] | 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.packages.v1.packages_pb2.global___CreatePackageRequest
class viam.gen.app.packages.v1.packages_pb2.CreatePackageResponse(*, id: str = ..., version: str = ...)

Bases: google.protobuf.message.Message

Returns the package ID and version which are populated in GetPackageRequest and DeletePackageRequest to retrieve or delete this package.

id: str
version: str
viam.gen.app.packages.v1.packages_pb2.global___CreatePackageResponse
class viam.gen.app.packages.v1.packages_pb2.DeletePackageRequest(*, id: str = ..., version: str = ..., type: global___PackageType = ...)

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
version: str
type: global___PackageType
viam.gen.app.packages.v1.packages_pb2.global___DeletePackageRequest
class viam.gen.app.packages.v1.packages_pb2.DeletePackageResponse

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.packages.v1.packages_pb2.global___DeletePackageResponse
class viam.gen.app.packages.v1.packages_pb2.Package(*, info: global___PackageInfo | None = ..., url: str = ..., created_on: google.protobuf.timestamp_pb2.Timestamp | None = ..., checksum: str = ..., 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.

url: str
checksum: str
id: str
property info: global___PackageInfo
property created_on: google.protobuf.timestamp_pb2.Timestamp
HasField(field_name: Literal['created_on', b'created_on', 'info', b'info']) 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.packages.v1.packages_pb2.global___Package
class viam.gen.app.packages.v1.packages_pb2.GetPackageRequest(*, id: str = ..., version: str = ..., include_url: bool | None = ..., type: global___PackageType | None = ..., platform: 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
version: str
include_url: bool
type: global___PackageType
platform: str
HasField(field_name: Literal['_include_url', b'_include_url', '_platform', b'_platform', '_type', b'_type', 'include_url', b'include_url', 'platform', b'platform', 'type', b'type']) 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['_include_url', b'_include_url']) Literal['include_url'] | None
WhichOneof(oneof_group: Literal['_platform', b'_platform']) Literal['platform'] | None
WhichOneof(oneof_group: Literal['_type', b'_type']) Literal['type'] | 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.packages.v1.packages_pb2.global___GetPackageRequest
class viam.gen.app.packages.v1.packages_pb2.GetPackageResponse(*, package: global___Package | 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 package: global___Package
HasField(field_name: Literal['package', b'package']) 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.packages.v1.packages_pb2.global___GetPackageResponse
class viam.gen.app.packages.v1.packages_pb2.ListPackagesRequest(*, organization_id: str = ..., name: str | None = ..., version: str | None = ..., type: global___PackageType | None = ..., include_url: bool | 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.

organization_id: str
name: str
version: str
type: global___PackageType
include_url: bool
HasField(field_name: Literal['_include_url', b'_include_url', '_name', b'_name', '_type', b'_type', '_version', b'_version', 'include_url', b'include_url', 'name', b'name', 'type', b'type', 'version', b'version']) 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['_include_url', b'_include_url']) Literal['include_url'] | None
WhichOneof(oneof_group: Literal['_name', b'_name']) Literal['name'] | None
WhichOneof(oneof_group: Literal['_type', b'_type']) Literal['type'] | None
WhichOneof(oneof_group: Literal['_version', b'_version']) Literal['version'] | 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.packages.v1.packages_pb2.global___ListPackagesRequest
class viam.gen.app.packages.v1.packages_pb2.ListPackagesResponse(*, packages: collections.abc.Iterable[global___Package] | 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 packages: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Package]
viam.gen.app.packages.v1.packages_pb2.global___ListPackagesResponse