viam.gen.app.packages.v1.packages_pb2
@generated by mypy-protobuf. Do not edit manually! isort:skip_file
Attributes
Classes
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Returns the package ID and version which are populated in GetPackageRequest and DeletePackageRequest to |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
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
- type viam.gen.app.packages.v1.packages_pb2.Global___PackageType = PackageType
- class viam.gen.app.packages.v1.packages_pb2.FileInfo(*, name: str = ..., size: int = ..., is_directory: bool | None = ...)
Bases:
google.protobuf.message.MessageAbstract 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: _HasFieldArgType) 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,
ValueErrorwill 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: _WhichOneofArgType__is_directory) _WhichOneofReturnType__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
- 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.MessageAbstract 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
- files() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FileInfo]
- metadata() google.protobuf.struct_pb2.Struct
- HasField(field_name: _HasFieldArgType) 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,
ValueErrorwill 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: _WhichOneofArgType__platform) _WhichOneofReturnType__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
- type viam.gen.app.packages.v1.packages_pb2.Global___PackageInfo = PackageInfo
- class viam.gen.app.packages.v1.packages_pb2.CreatePackageRequest(*, info: Global___PackageInfo | None = ..., contents: bytes = ...)
Bases:
google.protobuf.message.MessageAbstract 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
- info() Global___PackageInfo
- HasField(field_name: _HasFieldArgType) 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,
ValueErrorwill 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: _WhichOneofArgType_package) _WhichOneofReturnType_package | 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
- type viam.gen.app.packages.v1.packages_pb2.Global___CreatePackageRequest = CreatePackageRequest
- class viam.gen.app.packages.v1.packages_pb2.CreatePackageResponse(*, id: str = ..., version: str = ...)
Bases:
google.protobuf.message.MessageReturns the package ID and version which are populated in GetPackageRequest and DeletePackageRequest to retrieve or delete this package.
- id: str
- version: str
- type viam.gen.app.packages.v1.packages_pb2.Global___CreatePackageResponse = CreatePackageResponse
- class viam.gen.app.packages.v1.packages_pb2.DeletePackageRequest(*, id: str = ..., version: str = ..., type: Global___PackageType = ...)
Bases:
google.protobuf.message.MessageAbstract 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
- type viam.gen.app.packages.v1.packages_pb2.Global___DeletePackageRequest = DeletePackageRequest
- class viam.gen.app.packages.v1.packages_pb2.DeletePackageResponse
Bases:
google.protobuf.message.MessageAbstract 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.
- type viam.gen.app.packages.v1.packages_pb2.Global___DeletePackageResponse = 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.MessageAbstract 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
- info() Global___PackageInfo
- created_on() google.protobuf.timestamp_pb2.Timestamp
- HasField(field_name: _HasFieldArgType) 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,
ValueErrorwill 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.
- 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.MessageAbstract 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: _HasFieldArgType) 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,
ValueErrorwill 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: _WhichOneofArgType__include_url) _WhichOneofReturnType__include_url | None
- WhichOneof(oneof_group: _WhichOneofArgType__platform) _WhichOneofReturnType__platform | None
- WhichOneof(oneof_group: _WhichOneofArgType__type) _WhichOneofReturnType__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
- type viam.gen.app.packages.v1.packages_pb2.Global___GetPackageRequest = GetPackageRequest
- class viam.gen.app.packages.v1.packages_pb2.GetPackageResponse(*, package: Global___Package | None = ...)
Bases:
google.protobuf.message.MessageAbstract 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.
- package() Global___Package
- HasField(field_name: _HasFieldArgType) 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,
ValueErrorwill 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.
- type viam.gen.app.packages.v1.packages_pb2.Global___GetPackageResponse = 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.MessageAbstract 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: _HasFieldArgType) 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,
ValueErrorwill 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: _WhichOneofArgType__include_url) _WhichOneofReturnType__include_url | None
- WhichOneof(oneof_group: _WhichOneofArgType__name) _WhichOneofReturnType__name | None
- WhichOneof(oneof_group: _WhichOneofArgType__type) _WhichOneofReturnType__type | None
- WhichOneof(oneof_group: _WhichOneofArgType__version) _WhichOneofReturnType__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
- type viam.gen.app.packages.v1.packages_pb2.Global___ListPackagesRequest = ListPackagesRequest
- class viam.gen.app.packages.v1.packages_pb2.ListPackagesResponse(*, packages: collections.abc.Iterable[Global___Package] | None = ...)
Bases:
google.protobuf.message.MessageAbstract 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.
- packages() google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Package]
- type viam.gen.app.packages.v1.packages_pb2.Global___ListPackagesResponse = ListPackagesResponse