ni.datamonikers.v1.data_moniker_pb2
Attributes
No strategy selected. |
|
Standard gRPC transport. |
|
Shared memory transport. Client and server must be on the same machine. |
|
Same as SHARED_MEMORY except double buffered. This uses more memory but |
|
TCP Socket-based transport. |
|
TCP Socket-based transport optimized for lower latency at the expense |
|
Hypervisor-assisted socket transport. Not currently implemented. |
|
RDMA-based transport. Requires that the network card on both the client |
|
RDMA transport optimized for lower latency at the expense of higher |
|
Classes
Identifier used to represent a data source from which data values can |
|
Message which contains a batch of data values. |
|
Message which identifies the set of read and write monikers for a |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Request message used to perform streaming writes. |
|
Response message used to perform streaming reads. |
|
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.datamonikers.v1.data_moniker_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class ni.datamonikers.v1.data_moniker_pb2.SidebandStrategy
Bases:
_SidebandStrategy
- ni.datamonikers.v1.data_moniker_pb2.UNKNOWN: SidebandStrategy
No strategy selected.
- ni.datamonikers.v1.data_moniker_pb2.GRPC: SidebandStrategy
Standard gRPC transport.
- ni.datamonikers.v1.data_moniker_pb2.SHARED_MEMORY: SidebandStrategy
Shared memory transport. Client and server must be on the same machine.
- ni.datamonikers.v1.data_moniker_pb2.DOUBLE_BUFFERED_SHARED_MEMORY: SidebandStrategy
Same as SHARED_MEMORY except double buffered. This uses more memory but allows the client and server to read and write at the same time without blocking each other.
- ni.datamonikers.v1.data_moniker_pb2.SOCKETS: SidebandStrategy
TCP Socket-based transport.
- ni.datamonikers.v1.data_moniker_pb2.SOCKETS_LOW_LATENCY: SidebandStrategy
TCP Socket-based transport optimized for lower latency at the expense of higher CPU usage.
- ni.datamonikers.v1.data_moniker_pb2.HYPERVISOR_SOCKETS: SidebandStrategy
Hypervisor-assisted socket transport. Not currently implemented.
- ni.datamonikers.v1.data_moniker_pb2.RDMA: SidebandStrategy
RDMA-based transport. Requires that the network card on both the client and the server support RDMA.
- ni.datamonikers.v1.data_moniker_pb2.RDMA_LOW_LATENCY: SidebandStrategy
RDMA transport optimized for lower latency at the expense of higher CPU usage.
- ni.datamonikers.v1.data_moniker_pb2.global___SidebandStrategy
- class ni.datamonikers.v1.data_moniker_pb2.Moniker(*, service_location=..., data_source=..., data_instance=...)
Bases:
google.protobuf.message.MessageIdentifier used to represent a data source from which data values can be read or written.
- 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
- ni.datamonikers.v1.data_moniker_pb2.global___Moniker
- class ni.datamonikers.v1.data_moniker_pb2.MonikerValues(*, values=...)
Bases:
google.protobuf.message.MessageMessage which contains a batch of data values.
For reads, values contains the returned data values for one or more data monikers. For writes, values contains the data values to be applied to one or more data monikers.
- Parameters:
values (collections.abc.Iterable[google.protobuf.any_pb2.Any] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property values: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]
Data values carried as protobuf Any messages.
- 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.datamonikers.v1.data_moniker_pb2.global___MonikerValues
- class ni.datamonikers.v1.data_moniker_pb2.MonikerList(*, is_initial_write=..., read_monikers=..., write_monikers=...)
Bases:
google.protobuf.message.MessageMessage which identifies the set of read and write monikers for a particular operation.
- Parameters:
is_initial_write (bool)
read_monikers (collections.abc.Iterable[global___Moniker] | None)
write_monikers (collections.abc.Iterable[global___Moniker] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property read_monikers: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Moniker]
Monikers from which to read.
- property write_monikers: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Moniker]
Monikers to update with new data values.
- 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.datamonikers.v1.data_moniker_pb2.global___MonikerList
- class ni.datamonikers.v1.data_moniker_pb2.BeginMonikerSidebandStreamRequest(*, strategy=..., monikers=...)
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:
strategy (global___SidebandStrategy)
monikers (global___MonikerList | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- strategy: global___SidebandStrategy
The transport to use for the sideband communication channel.
- property monikers: global___MonikerList
Monikers participating in the sideband communication channel.
- 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.datamonikers.v1.data_moniker_pb2.global___BeginMonikerSidebandStreamRequest
- class ni.datamonikers.v1.data_moniker_pb2.BeginMonikerSidebandStreamResponse(*, strategy=..., connection_url=..., sideband_identifier=..., buffer_size=...)
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:
strategy (global___SidebandStrategy)
connection_url (str)
sideband_identifier (str)
buffer_size (int)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- strategy: global___SidebandStrategy
Selected transport used for the the sideband communication 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.datamonikers.v1.data_moniker_pb2.global___BeginMonikerSidebandStreamResponse
- class ni.datamonikers.v1.data_moniker_pb2.MonikerWriteRequest(*, monikers=..., data=...)
Bases:
google.protobuf.message.MessageRequest message used to perform streaming writes.
- Parameters:
monikers (global___MonikerList | None)
data (global___MonikerValues | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property monikers: global___MonikerList
Initial handshake message that declares the target monikers.
- Return type:
- property data: global___MonikerValues
Value payload for the established write session.
This field should be set on all subsequent messages after the initial handshake message.
- 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
- WhichOneof(oneof_group)
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
- ni.datamonikers.v1.data_moniker_pb2.global___MonikerWriteRequest
- class ni.datamonikers.v1.data_moniker_pb2.MonikerReadResult(*, data=...)
Bases:
google.protobuf.message.MessageResponse message used to perform streaming reads.
- Parameters:
data (global___MonikerValues | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property data: global___MonikerValues
Data values returned from the read monikers.
- 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.datamonikers.v1.data_moniker_pb2.global___MonikerReadResult
- class ni.datamonikers.v1.data_moniker_pb2.StreamWriteResponse
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.datamonikers.v1.data_moniker_pb2.global___StreamWriteResponse
- class ni.datamonikers.v1.data_moniker_pb2.ReadFromMonikerResult(*, 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:
value (google.protobuf.any_pb2.Any | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: google.protobuf.any_pb2.Any
Data value read from the moniker or empty if no value was available.
- 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.datamonikers.v1.data_moniker_pb2.global___ReadFromMonikerResult
- class ni.datamonikers.v1.data_moniker_pb2.WriteToMonikerRequest(*, moniker=..., 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:
moniker (global___Moniker | None)
value (google.protobuf.any_pb2.Any | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property moniker: global___Moniker
The data moniker to update.
- Return type:
- property value: google.protobuf.any_pb2.Any
The data value to write to the moniker.
- 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.datamonikers.v1.data_moniker_pb2.global___WriteToMonikerRequest
- class ni.datamonikers.v1.data_moniker_pb2.WriteToMonikerResponse
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.datamonikers.v1.data_moniker_pb2.global___WriteToMonikerResponse