ni.measurementlink.sessionmanagement.v1.session_management_service_pb2
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. |
|
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. |
|
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. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
Package Contents
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.SessionInformation(*, session=..., resource_name=..., channel_list=..., instrument_type_id=..., session_exists=..., session_reserved=..., channel_mappings=..., annotations=...)
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.
- Parameters:
session (session_pb2.Session | None)
resource_name (str)
channel_list (str)
instrument_type_id (str)
session_exists (bool)
session_reserved (bool)
channel_mappings (collections.abc.Iterable[global___ChannelMapping] | None)
annotations (collections.abc.Mapping[str, str] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class AnnotationsEntry(*, key=..., value=...)
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- channel_list: str
Channel list used for driver initialization and measurement methods. This field is empty for any SessionInformation returned from ReserveAllRegisteredSessions. This field is readonly.
- instrument_type_id: str
Instrument type ID to identify which type of instrument the session represents.
The session management service has built in instrument definitions using the following NI driver based instrument type ids:
“niDCPower”
“niDigitalPattern”
“niScope”
“niDMM”
“niDAQmx”
“niFGen”
“niRelayDriver”
For custom instruments the user defined instrument type id is defined in the pin map file or custom session management plugin service.
This field is readonly.
- session_exists: bool
Indicates whether the session has been created and registered with the Session Manager. This field is readonly.
- session_reserved: bool
Indicates whether the session has been reserved with the Session Manager. This field is readonly.
- property session: session_pb2.Session
Session identifier used to identify the session in the session management service, as well as in driver services such as grpc-device. This field is readonly.
- Return type:
session_pb2.Session
- property channel_mappings: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ChannelMapping]
List of site and I/O resource mappings with optional multiplexer information for each channel in the channel_list. Each item represents a channel-to-I/O-resource connection for this instrument resource. In the case of shared pins, there is a separate item for each connection. This field is empty for any SessionInformation returned from ReserveAllRegisteredSessions. This field is readonly.
- property annotations: google.protobuf.internal.containers.ScalarMap[str, str]
Optional. A set of annotations attached to the session.
For example, the annotations can provide a description of the session or identify who reserved a session.
- Return type:
- HasField(field_name)
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:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___SessionInformation
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.ChannelMapping(*, pin_or_relay_name=..., site=..., channel=..., multiplexer_resource_name=..., multiplexer_route=...)
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.
- Parameters:
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- site: int
The site on which the I/O resource is mapped to a channel. For system pins/relays the site number is -1 since they do not belong to a specific site.
- multiplexer_resource_name: str
The multiplexer resource name is used to open the multiplexer session in the driver.
- multiplexer_route: str
The multiplexer route through which the pin is connected to an instrument’s channel.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___ChannelMapping
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.MultiplexerSessionInformation(*, session=..., resource_name=..., multiplexer_type_id=..., session_exists=..., annotations=...)
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.
- Parameters:
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class AnnotationsEntry(*, key=..., value=...)
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- resource_name: str
Resource name is used to open this session in the driver. This field is readonly.
- multiplexer_type_id: str
User-defined identifier for the multiplexer type in the pin map editor. This field is readonly.
- session_exists: bool
Indicates whether the session exists in the Session Manager. This indicates whether the session has been created. This field is readonly.
- property session: session_pb2.Session
Session identifier used to identify the session in the session management service, as well as in driver services such as grpc-device. This field is readonly.
- Return type:
session_pb2.Session
- property annotations: google.protobuf.internal.containers.ScalarMap[str, str]
Optional. A set of annotations attached to the session.
For example, the annotations can provide a description of the session or identify who reserved a session.
- Return type:
- HasField(field_name)
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:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___MultiplexerSessionInformation
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.ReserveSessionsRequest(*, pin_map_context=..., pin_or_relay_names=..., instrument_type_id=..., timeout_in_milliseconds=..., annotations=...)
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.
- Parameters:
pin_map_context (ni.measurementlink.pin_map_context_pb2.PinMapContext | None)
pin_or_relay_names (collections.abc.Iterable[str] | None)
instrument_type_id (str)
timeout_in_milliseconds (int)
annotations (collections.abc.Mapping[str, str] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class AnnotationsEntry(*, key=..., value=...)
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- instrument_type_id: str
Optional. Instrument type ID for the measurement. If unspecified, reserve sessions for all instrument types connected in the registered pin map resource.
The session management service has built in instrument definitions using the following NI driver based instrument type ids:
“niDCPower”
“niDigitalPattern”
“niScope”
“niDMM”
“niDAQmx”
“niFGen”
“niRelayDriver”
For custom instruments the user defined instrument type id is defined in the pin map file or custom session management plugin service.
- timeout_in_milliseconds: int
Optional. Timeout for the reservation request. Allowed values: 0 (non-blocking, fails immediately if resources cannot be reserved), -1 (infinite timeout), or any other positive numeric value (wait for that number of milliseconds)
- property pin_map_context: ni.measurementlink.pin_map_context_pb2.PinMapContext
Optional. Includes the pin map ID for the pin map in the Pin Map Service, as well as the list of sites for the measurement. If unspecified, specify non-pin I/O resources for pin_or_relay_names.
- Return type:
ni.measurementlink.pin_map_context_pb2.PinMapContext
- property pin_or_relay_names: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
Optional. List of I/O resources (pins, pin groups, relays, relay groups, or channels) to use for the measurement. If unspecified, reserve sessions for all pins and relays in the registered pin map resource.
- property annotations: google.protobuf.internal.containers.ScalarMap[str, str]
Optional. A set of annotations to add to the session for the duration of the reservation.
These annotations will automatically be cleared when the session is unreserved.
- Return type:
- HasField(field_name)
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:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___ReserveSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.ReserveSessionsResponse(*, sessions=..., multiplexer_sessions=..., group_mappings=...)
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.
- Parameters:
sessions (collections.abc.Iterable[global___SessionInformation] | None)
multiplexer_sessions (collections.abc.Iterable[global___MultiplexerSessionInformation] | None)
group_mappings (collections.abc.Mapping[str, global___ResolvedPinsOrRelays] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class GroupMappingsEntry(*, key=..., value=...)
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.
- Parameters:
key (str)
value (global___ResolvedPinsOrRelays | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ResolvedPinsOrRelays
- Return type:
- HasField(field_name)
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:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- property sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SessionInformation]
List of information needed to create or use each session for the given I/O resource, site, and instrument type ID.
- property multiplexer_sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MultiplexerSessionInformation]
List of information needed to create or use each multiplexer session for the given I/O resource, site, and instrument type ID.
- property group_mappings: google.protobuf.internal.containers.MessageMap[str, global___ResolvedPinsOrRelays]
Represents the mapping between pin or relay groups and their respective pin or relay names.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___ReserveSessionsResponse
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.UnreserveSessionsRequest(*, sessions=...)
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.
- Parameters:
sessions (collections.abc.Iterable[global___SessionInformation] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SessionInformation]
Required. List of information of sessions to be unreserved in the session management service.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___UnreserveSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.UnreserveSessionsResponse
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___UnreserveSessionsResponse
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.RegisterSessionsRequest(*, sessions=...)
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.
- Parameters:
sessions (collections.abc.Iterable[global___SessionInformation] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SessionInformation]
Required. List of sessions to register with the session management service to track as the sessions are open.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___RegisterSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.RegisterSessionsResponse
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___RegisterSessionsResponse
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.UnregisterSessionsRequest(*, sessions=...)
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.
- Parameters:
sessions (collections.abc.Iterable[global___SessionInformation] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SessionInformation]
Required. List of sessions to unregister with the session management service to mark them as sessions were closed.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___UnregisterSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.UnregisterSessionsResponse
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___UnregisterSessionsResponse
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.ReserveAllRegisteredSessionsRequest(*, timeout_in_milliseconds=..., instrument_type_id=..., annotations=...)
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.
- Parameters:
timeout_in_milliseconds (int)
instrument_type_id (str)
annotations (collections.abc.Mapping[str, str] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class AnnotationsEntry(*, key=..., value=...)
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- timeout_in_milliseconds: int
Optional. Timeout for the reservation request. Allowed values: 0 (non-blocking, fails immediately if resources cannot be reserved), -1 (infinite timeout), or any other positive numeric value (wait for that number of milliseconds)
- instrument_type_id: str
Optional. Instrument type ID of the registered sessions to reserve. If unspecified, reserve sessions for all instrument types connected in the registered pin map resource.
The session management service has built in instrument definitions using the following NI driver based instrument type ids:
“niDCPower”
“niDigitalPattern”
“niScope”
“niDMM”
“niDAQmx”
“niFGen”
“niRelayDriver”
For custom instruments the user defined instrument type id is defined in the pin map file or custom session management plugin service.
- property annotations: google.protobuf.internal.containers.ScalarMap[str, str]
Optional. A set of annotations to add to the session for the duration of the reservation.
These annotations will automatically be cleared when the session is unreserved.
- Return type:
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___ReserveAllRegisteredSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.ReserveAllRegisteredSessionsResponse(*, sessions=...)
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.
- Parameters:
sessions (collections.abc.Iterable[global___SessionInformation] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SessionInformation]
Sessions currently registered in the session management service.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___ReserveAllRegisteredSessionsResponse
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.RegisterMultiplexerSessionsRequest(*, multiplexer_sessions=...)
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.
- Parameters:
multiplexer_sessions (collections.abc.Iterable[global___MultiplexerSessionInformation] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property multiplexer_sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MultiplexerSessionInformation]
Required. List of multiplexer sessions to register with the session management service to track as the sessions are open.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___RegisterMultiplexerSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.RegisterMultiplexerSessionsResponse
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___RegisterMultiplexerSessionsResponse
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.UnregisterMultiplexerSessionsRequest(*, multiplexer_sessions=...)
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.
- Parameters:
multiplexer_sessions (collections.abc.Iterable[global___MultiplexerSessionInformation] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property multiplexer_sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MultiplexerSessionInformation]
Required. List of multiplexer sessions to unregister with the session management service to mark them as sessions were closed.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___UnregisterMultiplexerSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.UnregisterMultiplexerSessionsResponse
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___UnregisterMultiplexerSessionsResponse
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.GetMultiplexerSessionsRequest(*, pin_map_context=..., multiplexer_type_id=...)
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.
- Parameters:
pin_map_context (ni.measurementlink.pin_map_context_pb2.PinMapContext | None)
multiplexer_type_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- multiplexer_type_id: str
Optional. User-defined identifier for the multiplexer type in the pin map editor. If unspecified, information for all multiplexer types is returned.
- property pin_map_context: ni.measurementlink.pin_map_context_pb2.PinMapContext
Required. Includes the pin map ID for the pin map in the Pin Map Service, as well as the list of sites for the measurement.
- Return type:
ni.measurementlink.pin_map_context_pb2.PinMapContext
- HasField(field_name)
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:
- Raises:
ValueError – if the field_name is not a member of this message.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___GetMultiplexerSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.GetMultiplexerSessionsResponse(*, multiplexer_sessions=...)
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.
- Parameters:
multiplexer_sessions (collections.abc.Iterable[global___MultiplexerSessionInformation] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property multiplexer_sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MultiplexerSessionInformation]
List of information needed to create or use each multiplexer session for the given pin map context and multiplexer type ID.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___GetMultiplexerSessionsResponse
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.GetAllRegisteredMultiplexerSessionsRequest(*, multiplexer_type_id=...)
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.
- Parameters:
multiplexer_type_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- multiplexer_type_id: str
Optional. User-defined identifier for the multiplexer type in the pin map editor. If unspecified, information for all registered multiplexer types is returned.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___GetAllRegisteredMultiplexerSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.GetAllRegisteredMultiplexerSessionsResponse(*, multiplexer_sessions=...)
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.
- Parameters:
multiplexer_sessions (collections.abc.Iterable[global___MultiplexerSessionInformation] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property multiplexer_sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MultiplexerSessionInformation]
Multiplexer sessions currently registered in the session management service.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___GetAllRegisteredMultiplexerSessionsResponse
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.ResolvedPinsOrRelays(*, pin_or_relay_names=...)
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.
- Parameters:
pin_or_relay_names (collections.abc.Iterable[str] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property pin_or_relay_names: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
List of pin or relay names in the pin or relay group.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___ResolvedPinsOrRelays
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.GetSessionsRequest(*, instrument_type_id=..., multiplexer_type_id=...)
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.
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- instrument_type_id: str
Optional. Instrument type ID of the instruments. If unspecified, information for all instrument types is returned.
- multiplexer_type_id: str
Optional. User-defined identifier for the multiplexers. If unspecified, information for all registered multiplexer types is returned.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___GetSessionsRequest
- class ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.GetSessionsResponse(*, sessions=..., multiplexer_sessions=...)
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.
- Parameters:
sessions (collections.abc.Iterable[global___SessionInformation] | None)
multiplexer_sessions (collections.abc.Iterable[global___MultiplexerSessionInformation] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SessionInformation]
List of reserved or registered instrument sessions.
- property multiplexer_sessions: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MultiplexerSessionInformation]
List of registered multiplexer sessions.
- ClearField(field_name)
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- ni.measurementlink.sessionmanagement.v1.session_management_service_pb2.global___GetSessionsResponse