ni.measurementlink.measurement.v2.measurement_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. |
|
Message that contains standard information reported by a measurement. |
|
Message that defines the signature of a measurement. |
|
Contains measurement User Interface details. |
|
Message that defines a configuration parameter for the measurement. |
|
Message that defines an output of the measurement. |
Package Contents
- ni.measurementlink.measurement.v2.measurement_service_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class ni.measurementlink.measurement.v2.measurement_service_pb2.GetMetadataRequest
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.measurement.v2.measurement_service_pb2.global___GetMetadataRequest
- class ni.measurementlink.measurement.v2.measurement_service_pb2.GetMetadataResponse(*, measurement_details=..., measurement_signature=..., user_interface_details=...)
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:
measurement_details (global___MeasurementDetails | None)
measurement_signature (global___MeasurementSignature | None)
user_interface_details (collections.abc.Iterable[global___UserInterfaceDetails] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property measurement_details: global___MeasurementDetails
Required. Specifies basic information about the measurement.
- Return type:
- property measurement_signature: global___MeasurementSignature
Required. Specifies the signature of the measurement.
- Return type:
- property user_interface_details: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UserInterfaceDetails]
Optional. Specifies the user interfaces available for use with the measurement, if any.
- 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.measurement.v2.measurement_service_pb2.global___GetMetadataResponse
- class ni.measurementlink.measurement.v2.measurement_service_pb2.MeasureRequest(*, configuration_parameters=..., pin_map_context=...)
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:
configuration_parameters (google.protobuf.any_pb2.Any | None)
pin_map_context (ni.measurementlink.pin_map_context_pb2.PinMapContext | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property configuration_parameters: google.protobuf.any_pb2.Any
Required. Specifies the configuration to be used for the measurement. Each measurement will define its own set of required and optional parameters and generate errors as appropriate if the configuration does not conform to valid input ranges.
- Return type:
- property pin_map_context: ni.measurementlink.pin_map_context_pb2.PinMapContext
Optional. Specifies the pin map context for the measurement, if any. This field is optional in that callers may not always have a pin map context available to include in the request message. Each measurement will define if a valid pin map context is required in order to run or not and generate errors appropriately.
- 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.measurement.v2.measurement_service_pb2.global___MeasureRequest
- class ni.measurementlink.measurement.v2.measurement_service_pb2.MeasureResponse(*, outputs=...)
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:
outputs (google.protobuf.any_pb2.Any | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property outputs: google.protobuf.any_pb2.Any
Required. Includes the output results from running the measurement. This field is required in that all measurements should return a valid output message even if it is just an empty message with no fields. Each measurement will define which of its output fields are required and which are optional based on the configuration for the measurement.
- 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.measurement.v2.measurement_service_pb2.global___MeasureResponse
- class ni.measurementlink.measurement.v2.measurement_service_pb2.MeasurementDetails(*, display_name=..., version=...)
Bases:
google.protobuf.message.MessageMessage that contains standard information reported by a measurement.
- 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.measurementlink.measurement.v2.measurement_service_pb2.global___MeasurementDetails
- class ni.measurementlink.measurement.v2.measurement_service_pb2.MeasurementSignature(*, configuration_parameters_message_type=..., configuration_parameters=..., configuration_defaults=..., outputs_message_type=..., outputs=...)
Bases:
google.protobuf.message.MessageMessage that defines the signature of a measurement.
- Parameters:
configuration_parameters_message_type (str)
configuration_parameters (collections.abc.Iterable[global___ConfigurationParameter] | None)
configuration_defaults (google.protobuf.any_pb2.Any | None)
outputs_message_type (str)
outputs (collections.abc.Iterable[global___Output] | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- configuration_parameters_message_type: str
Required. The type name of the message used to define the measurement’s configuration. This is the gRPC full name for the message.
- outputs_message_type: str
Required. The type name of the message used to define the measurement’s outputs. This is the gRPC full name for the message.
- property configuration_parameters: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigurationParameter]
Required. Defines the configuration parameters for the measurement.
- property configuration_defaults: google.protobuf.any_pb2.Any
Optional. The default values to use for the configuration parameters. Caller can use these default values rather than specifying their own. These values should be supplied using the message type defined by configuration_parameters_message_type.
- Return type:
- property outputs: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Output]
Required. Defines the outputs for the measurement.
- 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.measurement.v2.measurement_service_pb2.global___MeasurementSignature
- class ni.measurementlink.measurement.v2.measurement_service_pb2.UserInterfaceDetails(*, file_url=...)
Bases:
google.protobuf.message.MessageContains measurement User Interface details.
- Parameters:
file_url (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- file_url: str
Optional. The URL to the file (such as .measui or .vi) providing a user interface for the measurement.
- 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.measurement.v2.measurement_service_pb2.global___UserInterfaceDetails
- class ni.measurementlink.measurement.v2.measurement_service_pb2.ConfigurationParameter(*, field_number=..., type=..., name=..., repeated=..., annotations=..., message_type=...)
Bases:
google.protobuf.message.MessageMessage that defines a configuration parameter for the measurement.
- 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
- field_number: int
Required. The field number for the configuration parameter as defined by the message indicated by MethodSignature.configuration_parameters_message_type.
- type: google.protobuf.type_pb2.Field.Kind.ValueType
Required. The data type for the configuration parameter. NOTE: If this is Kind.TypeMessage, you must also fill in the ‘message_type’ field below with the gRPC full name of the message.
- name: str
Required. The name of the configuration parameter. When defining a user interface for the measurement, a control that matches this name will be used to supply a value to this configuration parameter.
- repeated: bool
Required. True if this configuration parameter represents repeated data and False if it represents a scalar value.
- message_type: str
Required when ‘type’ is Kind.TypeMessage. Ignored for any other ‘type’. This is the gRPC full name of the message type.
- property annotations: google.protobuf.internal.containers.ScalarMap[str, str]
Optional. Represents a set of annotations on the type.
Well-known annotations:
Type specialization. The keys to other annotations will be read based on the value of ni/type_specialization annotation.
Key: “ni/type_specialization”
Common Values: “ioresource”, “path”, “enum”…
“ioresource” and “path” parameters require the type field to be TYPE_STRING.
“enum” parameters requires the type field to be TYPE_ENUM.
For string parameter with ni/type_specialization annotation equals “ioresource”, the “ni/ioresource.instrument_type” annotation will be used by UIs to limit selection of I/O to the specified instrument type.
Key: “ni/ioresource.instrument_type”
Common Values: “niDCPower”, “niScope”…
For enum parameter with ni/type_specialization annotation equals “enum”
Key: “ni/enum.values”
Expected format: JSON dictionary string”
Example: “{"RED":0, "GREEN":25, "BLUE":5}”
- 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.measurement.v2.measurement_service_pb2.global___ConfigurationParameter
- class ni.measurementlink.measurement.v2.measurement_service_pb2.Output(*, field_number=..., type=..., name=..., repeated=..., annotations=..., message_type=...)
Bases:
google.protobuf.message.MessageMessage that defines an output of the measurement.
- 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
- field_number: int
Required. The field number for the output as defined by the message indicated by MethodSignature.outputs_message_type.
- type: google.protobuf.type_pb2.Field.Kind.ValueType
Required. The data type for the output. NOTE: If this is Kind.TypeMessage, you must also fill in the ‘message_type’ field below with the gRPC full name of the message.
- name: str
Required. The name of the output. When defining a user interface for the measurement, an indicator that matches this name will be used to display the value for this output.
- repeated: bool
Required. True if this output represents repeated data and False if it represents a scalar value.
- message_type: str
Required when ‘type’ is Kind.TypeMessage. Ignored for any other ‘type’. This is the gRPC full name of the message type.
- property annotations: google.protobuf.internal.containers.ScalarMap[str, str]
Optional. Represents a set of annotations on the type. See documentation for ConfigurationParameter annotations for more details and examples.
- 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.measurement.v2.measurement_service_pb2.global___Output