viam.gen.service.shell.v1.shell_pb2
@generated by mypy-protobuf. Do not edit manually! isort:skip_file
Attributes
Classes
CopyFilesSourceType indicates what will be copied. It's important |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
FileData contains partial (sometimes complete) information about a File. |
|
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.service.shell.v1.shell_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class viam.gen.service.shell.v1.shell_pb2.CopyFilesSourceType
Bases:
_CopyFilesSourceTypeCopyFilesSourceType indicates what will be copied. It’s important to disambiguate the single directory case from the multiple files case in order to indicate that the user’s intent is to copy a directory into a single location which may result in a new top-level directory versus the cause of multiples files that always go into the existing target destination.
- viam.gen.service.shell.v1.shell_pb2.COPY_FILES_SOURCE_TYPE_UNSPECIFIED: CopyFilesSourceType
- viam.gen.service.shell.v1.shell_pb2.COPY_FILES_SOURCE_TYPE_SINGLE_FILE: CopyFilesSourceType
- viam.gen.service.shell.v1.shell_pb2.COPY_FILES_SOURCE_TYPE_SINGLE_DIRECTORY: CopyFilesSourceType
- viam.gen.service.shell.v1.shell_pb2.COPY_FILES_SOURCE_TYPE_MULTIPLE_FILES: CopyFilesSourceType
- type viam.gen.service.shell.v1.shell_pb2.Global___CopyFilesSourceType = CopyFilesSourceType
- class viam.gen.service.shell.v1.shell_pb2.ShellRequest(*, name: str = ..., data_in: str = ..., extra: 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.
- name: str
- data_in: str
- extra() google.protobuf.struct_pb2.Struct
Additional arguments to the method
- 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.service.shell.v1.shell_pb2.Global___ShellRequest = ShellRequest
- class viam.gen.service.shell.v1.shell_pb2.ShellResponse(*, data_out: str = ..., data_err: str = ..., eof: bool = ...)
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.
- data_out: str
- data_err: str
- eof: bool
- type viam.gen.service.shell.v1.shell_pb2.Global___ShellResponse = ShellResponse
- class viam.gen.service.shell.v1.shell_pb2.FileData(*, name: str = ..., size: int = ..., is_dir: bool = ..., data: bytes = ..., eof: bool = ..., mod_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., mode: int | None = ...)
Bases:
google.protobuf.message.MessageFileData contains partial (sometimes complete) information about a File. When transmitting FileData with CopyFilesToMachine and CopyFilesFromMachine, it MUST initially contain its name, size, and is_dir. Depending on whether preservation is in use, the mod_time and mode fields may be initially set as well. On all transmissions, data and eof must be set. Because files are sent one-by-one, it is currently permitted to exclude the initially set fields. If this ever changes, a new scheme should be used for identifying files (like a number) in order to reduce data transmission while allowing out-of-order transfers. eof must be true and its own message once no more data is to be sent for this file.
- name: str
- size: int
- is_dir: bool
- data: bytes
- eof: bool
- mode: int
- mod_time() google.protobuf.timestamp_pb2.Timestamp
Note(erd): maybe support access time in the future if needed
- 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__mod_time) _WhichOneofReturnType__mod_time | None
- WhichOneof(oneof_group: _WhichOneofArgType__mode) _WhichOneofReturnType__mode | 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.service.shell.v1.shell_pb2.CopyFilesToMachineRequestMetadata(*, name: str = ..., source_type: Global___CopyFilesSourceType = ..., destination: str = ..., preserve: bool = ..., extra: 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.
- name: str
name is the service name.
- source_type: Global___CopyFilesSourceType
source_type is the type of files that will be transmitted in this request stream.
- destination: str
destination is where the files should be placed. The receiver can choose to reasonably modify this destination based on its implementation semantics.
- preserve: bool
preserve indicates the the receiver should use the metadata in the file to reflect the same state in its filesystem as applicable.
- extra() google.protobuf.struct_pb2.Struct
Additional arguments to the method
- 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.service.shell.v1.shell_pb2.Global___CopyFilesToMachineRequestMetadata = CopyFilesToMachineRequestMetadata
- class viam.gen.service.shell.v1.shell_pb2.CopyFilesToMachineRequest(*, metadata: Global___CopyFilesToMachineRequestMetadata | None = ..., file_data: Global___FileData | 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.
- metadata() Global___CopyFilesToMachineRequestMetadata
metadata is sent first and only once.
- file_data() Global___FileData
file_data is sent only after metadata. All data MUST be sent in order per-file.
- 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_request) _WhichOneofReturnType_request | 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.service.shell.v1.shell_pb2.Global___CopyFilesToMachineRequest = CopyFilesToMachineRequest
- class viam.gen.service.shell.v1.shell_pb2.CopyFilesToMachineResponse(*, ack_last_file: bool = ...)
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.
- ack_last_file: bool
value does not matter here but responses must be sent after every file has been received.
- type viam.gen.service.shell.v1.shell_pb2.Global___CopyFilesToMachineResponse = CopyFilesToMachineResponse
- class viam.gen.service.shell.v1.shell_pb2.CopyFilesFromMachineRequestMetadata(*, name: str = ..., paths: collections.abc.Iterable[str] | None = ..., allow_recursion: bool = ..., preserve: bool = ..., extra: 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.
- name: str
name is the service name.
- allow_recursion: bool
allow_recursion indicates if directories should be recursed into. If a directory is encountered and this is false, an error MUST occur.
- preserve: bool
preserve indicates the the receiver should provide the metadata in the file to reflect the same state in the sender’s filesystem as applicable.
- paths() google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
paths are the paths to copy from and send back over the wire.
- extra() google.protobuf.struct_pb2.Struct
Additional arguments to the method
- 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.service.shell.v1.shell_pb2.Global___CopyFilesFromMachineRequestMetadata = CopyFilesFromMachineRequestMetadata
- class viam.gen.service.shell.v1.shell_pb2.CopyFilesFromMachineRequest(*, metadata: Global___CopyFilesFromMachineRequestMetadata | None = ..., ack_last_file: bool = ...)
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.
- ack_last_file: bool
ack_last_file is sent only after metadata and after each file has been received. The value does not matter.
- metadata() Global___CopyFilesFromMachineRequestMetadata
metadata is sent first and only once.
- 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_request) _WhichOneofReturnType_request | 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.service.shell.v1.shell_pb2.Global___CopyFilesFromMachineRequest = CopyFilesFromMachineRequest
- class viam.gen.service.shell.v1.shell_pb2.CopyFilesFromMachineResponseMetadata(*, source_type: Global___CopyFilesSourceType = ...)
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.
- source_type: Global___CopyFilesSourceType
source_type is the type of files that will be transmitted in this response stream.
- type viam.gen.service.shell.v1.shell_pb2.Global___CopyFilesFromMachineResponseMetadata = CopyFilesFromMachineResponseMetadata
- class viam.gen.service.shell.v1.shell_pb2.CopyFilesFromMachineResponse(*, metadata: Global___CopyFilesFromMachineResponseMetadata | None = ..., file_data: Global___FileData | 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.
- metadata() Global___CopyFilesFromMachineResponseMetadata
metadata is sent first and only once.
- file_data() Global___FileData
file_data is sent only after metadata. All data MUST be sent in order per-file.
- 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_response) _WhichOneofReturnType_response | 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.service.shell.v1.shell_pb2.Global___CopyFilesFromMachineResponse = CopyFilesFromMachineResponse