viam.proto.service.video ======================== .. py:module:: viam.proto.service.video .. autoapi-nested-parse:: @generated by Viam. Do not edit manually! Classes ------- .. autoapisummary:: viam.proto.service.video.UnimplementedVideoServiceBase viam.proto.service.video.VideoServiceBase viam.proto.service.video.VideoServiceStub viam.proto.service.video.GetVideoRequest viam.proto.service.video.GetVideoResponse Package Contents ---------------- .. py:class:: UnimplementedVideoServiceBase Bases: :py:obj:`VideoServiceBase` Helper class that provides a standard way to create an ABC using inheritance. .. py:method:: GetVideo(stream: grpclib.server.Stream[service.video.v1.video_pb2.GetVideoRequest, service.video.v1.video_pb2.GetVideoResponse]) -> None :async: .. py:method:: DoCommand(stream: grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]) -> None :async: .. py:class:: VideoServiceBase Bases: :py:obj:`abc.ABC` Helper class that provides a standard way to create an ABC using inheritance. .. py:method:: GetVideo(stream: grpclib.server.Stream[service.video.v1.video_pb2.GetVideoRequest, service.video.v1.video_pb2.GetVideoResponse]) -> None :abstractmethod: :async: .. py:method:: DoCommand(stream: grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]) -> None :abstractmethod: :async: .. py:method:: __mapping__() -> Dict[str, grpclib.const.Handler] .. py:class:: VideoServiceStub(channel: grpclib.client.Channel) .. py:attribute:: GetVideo .. py:attribute:: DoCommand .. py:class:: GetVideoRequest(*, name: str = ..., start_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., end_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., video_codec: str = ..., video_container: str = ..., request_id: str = ..., extra: google.protobuf.struct_pb2.Struct | None = ...) Bases: :py:obj:`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. .. py:attribute:: name :type: str Name of the video source .. py:attribute:: video_codec :type: str Codec for the video retrieval (e.g., "h264", "h265") .. py:attribute:: video_container :type: str Container format for the video retrieval (e.g., "mp4", "fmp4") .. py:attribute:: request_id :type: str To match a request to its responses .. py:property:: start_timestamp :type: google.protobuf.timestamp_pb2.Timestamp Start time for the video retrieval .. py:property:: end_timestamp :type: google.protobuf.timestamp_pb2.Timestamp End time for the video retrieval .. py:property:: extra :type: google.protobuf.struct_pb2.Struct Additional arguments to the method .. py:method:: HasField(field_name: Literal['end_timestamp', b'end_timestamp', 'extra', b'extra', 'start_timestamp', b'start_timestamp']) -> 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, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:class:: GetVideoResponse(*, video_data: bytes = ..., video_container: str = ..., request_id: str = ...) Bases: :py:obj:`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. .. py:attribute:: video_data :type: bytes Video data chunk .. py:attribute:: video_container :type: str Container format (e.g., "mp4", "fmp4") .. py:attribute:: request_id :type: str Request ID to match this response to its request