viam.gen.component.audioout.v1.audioout_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. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
Module Contents
- viam.gen.component.audioout.v1.audioout_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class viam.gen.component.audioout.v1.audioout_pb2.PlayRequest(*, name: str = ..., audio_data: bytes = ..., audio_info: common.v1.common_pb2.AudioInfo | None = ..., 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
- audio_data: bytes
- audio_info() common.v1.common_pb2.AudioInfo
Info describing the audio_data
- extra() 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.
- type viam.gen.component.audioout.v1.audioout_pb2.Global___PlayRequest = PlayRequest
- class viam.gen.component.audioout.v1.audioout_pb2.PlayStreamRequest(*, init: Global___PlayStreamInit | None = ..., audio_chunk: Global___PlayStreamChunk | 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.
- init() Global___PlayStreamInit
sent on first message
- audio_chunk() Global___PlayStreamChunk
- 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_payload) _WhichOneofReturnType_payload | 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.component.audioout.v1.audioout_pb2.Global___PlayStreamRequest = PlayStreamRequest
- class viam.gen.component.audioout.v1.audioout_pb2.PlayStreamChunk(*, audio_data: 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.
- audio_data: bytes
- type viam.gen.component.audioout.v1.audioout_pb2.Global___PlayStreamChunk = PlayStreamChunk
- class viam.gen.component.audioout.v1.audioout_pb2.PlayStreamInit(*, name: str = ..., audio_info: common.v1.common_pb2.AudioInfo | None = ..., 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
- audio_info() common.v1.common_pb2.AudioInfo
- extra() 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.
- type viam.gen.component.audioout.v1.audioout_pb2.Global___PlayStreamInit = PlayStreamInit
- class viam.gen.component.audioout.v1.audioout_pb2.PlayResponse
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.component.audioout.v1.audioout_pb2.Global___PlayResponse = PlayResponse
- class viam.gen.component.audioout.v1.audioout_pb2.PlayStreamResponse
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.component.audioout.v1.audioout_pb2.Global___PlayStreamResponse = PlayStreamResponse