viam.gen.service.discovery.v1.discovery_pb2 =========================================== .. py:module:: viam.gen.service.discovery.v1.discovery_pb2 .. autoapi-nested-parse:: @generated by mypy-protobuf. Do not edit manually! isort:skip_file Attributes ---------- .. autoapisummary:: viam.gen.service.discovery.v1.discovery_pb2.DESCRIPTOR viam.gen.service.discovery.v1.discovery_pb2.global___DiscoverResourcesRequest viam.gen.service.discovery.v1.discovery_pb2.global___DiscoverResourcesResponse Classes ------- .. autoapisummary:: viam.gen.service.discovery.v1.discovery_pb2.DiscoverResourcesRequest viam.gen.service.discovery.v1.discovery_pb2.DiscoverResourcesResponse Module Contents --------------- .. py:data:: DESCRIPTOR :type: google.protobuf.descriptor.FileDescriptor .. py:class:: DiscoverResourcesRequest(*, name: 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 discover service .. py:property:: extra :type: google.protobuf.struct_pb2.Struct Additional arguments to the method .. py:method:: HasField(field_name: Literal['extra', b'extra']) -> 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:data:: global___DiscoverResourcesRequest .. py:class:: DiscoverResourcesResponse(*, discoveries: collections.abc.Iterable[viam.gen.app.v1.robot_pb2.ComponentConfig] | 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:property:: discoveries :type: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[viam.gen.app.v1.robot_pb2.ComponentConfig] list of ComponentConfigs that describe the components found by a discover service. .. py:data:: global___DiscoverResourcesResponse