ni.measurements.metadata.v1.metadata_store_pb2
Attributes
Classes
The type of the aliased metadata instance. |
|
Represents the metadata of a UUT instance |
|
Represents the metadata of a UUT |
|
Represents the metadata of a hardware item used to take given measurements |
|
Represents a test adapter or mechanical setup. This is a board or device |
|
Represents the metadata of the software item that was used to take measurements. |
|
Represents the metadata of the operator that took the test step. |
|
Represents the metadata of a test description |
|
Represents the metadata of a test |
|
Represents the metadata of a test station |
|
Represents the value of an extension field. |
|
A message that represents an extension schema stored on this system. |
|
Abstract base class for protocol messages. |
Package Contents
- ni.measurements.metadata.v1.metadata_store_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class ni.measurements.metadata.v1.metadata_store_pb2.AliasTargetType
Bases:
_AliasTargetTypeThe type of the aliased metadata instance.
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_UNSPECIFIED: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_UUT_INSTANCE: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_UUT: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_HARDWARE_ITEM: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_SOFTWARE_ITEM: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_OPERATOR: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_TEST_DESCRIPTION: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_TEST: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_TEST_STATION: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.ALIAS_TARGET_TYPE_TEST_ADAPTER: AliasTargetType
- ni.measurements.metadata.v1.metadata_store_pb2.global___AliasTargetType
- class ni.measurements.metadata.v1.metadata_store_pb2.UutInstance(*, id=..., uut_id=..., serial_number=..., manufacture_date=..., firmware_version=..., hardware_version=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents the metadata of a UUT instance
- Parameters:
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, 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___ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ExtensionValue
- 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
- id: str
The unique identifier of the UUT instance This value is a string representation of a GUID. It is generated by the metadata store and cannot be set/specified by clients.
- uut_id: str
The id of the UUT associated with this UUT instance. This value is expected to be a parsable GUID or an alias. It will always be returned from the service as a GUID. See ni.measurements.metadata.MetadataStoreService for more information.
- link: str
A link to a resource that describes the UUT instance. This value is expected to be a valid URI.
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided.
- property extension: google.protobuf.internal.containers.MessageMap[str, global___ExtensionValue]
Optional. Any attributes used to extend the definition of your UutInstance can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- 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.measurements.metadata.v1.metadata_store_pb2.global___UutInstance
- class ni.measurements.metadata.v1.metadata_store_pb2.Uut(*, id=..., model_name=..., family=..., manufacturers=..., part_number=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents the metadata of a UUT
- Parameters:
id (str)
model_name (str)
family (str)
manufacturers (collections.abc.Iterable[str] | None)
part_number (str)
link (str)
extension (collections.abc.Mapping[str, global___ExtensionValue] | None)
schema_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, 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___ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ExtensionValue
- 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
- id: str
The unique identifier of the UUT This value is a string representation of a GUID. It is generated by the metadata store and cannot be set/specified by clients.
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided.
- property manufacturers: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
List of manufacturers of the UUT
- property extension: google.protobuf.internal.containers.MessageMap[str, global___ExtensionValue]
Optional. Any attributes used to extend the definition of your Uut can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- 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.measurements.metadata.v1.metadata_store_pb2.global___Uut
- class ni.measurements.metadata.v1.metadata_store_pb2.HardwareItem(*, id=..., manufacturer=..., model=..., serial_number=..., part_number=..., asset_identifier=..., calibration_due_date=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents the metadata of a hardware item used to take given measurements
- Parameters:
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, 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___ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ExtensionValue
- 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
- id: str
The unique identifier of the hardware item This value is a string representation of a GUID. It is generated by the metadata store and cannot be set/specified by clients.
- link: str
A link to a resource that describes the hardware item. This value is expected to be a valid URI.
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided.
- property extension: google.protobuf.internal.containers.MessageMap[str, global___ExtensionValue]
Optional. Any attributes used to extend the definition of your HardwareItem can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- 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.measurements.metadata.v1.metadata_store_pb2.global___HardwareItem
- class ni.measurements.metadata.v1.metadata_store_pb2.TestAdapter(*, id=..., name=..., manufacturer=..., model=..., serial_number=..., part_number=..., asset_identifier=..., calibration_due_date=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents a test adapter or mechanical setup. This is a board or device that is used to hold, connect, or interface the UUT with the test system. Test adapters may also be referred to as test fixtures, interface boards, breakout boxes, mechanical fixtures, or connection adapters.
- Parameters:
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, 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___ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ExtensionValue
- 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
- id: str
The unique identifier of the test adapter This value is a string representation of a GUID. It is generated by the metadata store and cannot be set/specified by clients.
- link: str
A link to a resource that describes the test adapter. This value is expected to be a valid URI.
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided.
- property extension: google.protobuf.internal.containers.MessageMap[str, global___ExtensionValue]
Optional. Any attributes used to extend the definition of your TestAdapter can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- 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.measurements.metadata.v1.metadata_store_pb2.global___TestAdapter
- class ni.measurements.metadata.v1.metadata_store_pb2.SoftwareItem(*, id=..., product=..., version=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents the metadata of the software item that was used to take measurements.
- Parameters:
id (str)
product (str)
version (str)
link (str)
extension (collections.abc.Mapping[str, global___ExtensionValue] | None)
schema_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, 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___ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ExtensionValue
- 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
- id: str
The unique identifier of the software item This value is a string representation of a GUID. It is generated by the metadata store and cannot be set/specified by clients.
- link: str
A link to a resource that describes the software item. This value is expected to be a valid URI.
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided.
- property extension: google.protobuf.internal.containers.MessageMap[str, global___ExtensionValue]
Optional. Any attributes used to extend the definition of your SoftwareItem can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- 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.measurements.metadata.v1.metadata_store_pb2.global___SoftwareItem
- class ni.measurements.metadata.v1.metadata_store_pb2.Operator(*, id=..., name=..., role=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents the metadata of the operator that took the test step.
- Parameters:
id (str)
name (str)
role (str)
link (str)
extension (collections.abc.Mapping[str, global___ExtensionValue] | None)
schema_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, 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___ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ExtensionValue
- 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
- id: str
The unique identifier of the operator This value is a string representation of a GUID. It is generated by the metadata store and cannot be set/specified by clients.
- link: str
A link to a resource that describes the operator. This value is expected to be a valid URI.
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided.
- property extension: google.protobuf.internal.containers.MessageMap[str, global___ExtensionValue]
Optional. Any attributes used to extend the definition of your Operator can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- 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.measurements.metadata.v1.metadata_store_pb2.global___Operator
- class ni.measurements.metadata.v1.metadata_store_pb2.TestDescription(*, id=..., uut_id=..., name=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents the metadata of a test description
- Parameters:
id (str)
uut_id (str)
name (str)
link (str)
extension (collections.abc.Mapping[str, global___ExtensionValue] | None)
schema_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, 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___ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ExtensionValue
- 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
- id: str
The unique identifier of the test description This value is a string representation of a GUID. It is generated by the metadata store and cannot be set/specified by clients.
- link: str
A link to a resource that describes the test description. This value is expected to be a valid URI.
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided.
- property extension: google.protobuf.internal.containers.MessageMap[str, global___ExtensionValue]
Optional. Any attributes used to extend the definition of your TestDescription can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- 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.measurements.metadata.v1.metadata_store_pb2.global___TestDescription
- class ni.measurements.metadata.v1.metadata_store_pb2.Test(*, id=..., name=..., description=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents the metadata of a test
- Parameters:
id (str)
name (str)
description (str)
link (str)
extension (collections.abc.Mapping[str, global___ExtensionValue] | None)
schema_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, 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___ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ExtensionValue
- 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
- id: str
The unique identifier of the test This value is a string representation of a GUID. It is generated by the metadata store and cannot be set/specified by clients.
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided
- property extension: google.protobuf.internal.containers.MessageMap[str, global___ExtensionValue]
Optional. Any attributes used to extend the definition of your Test can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- 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.measurements.metadata.v1.metadata_store_pb2.global___Test
- class ni.measurements.metadata.v1.metadata_store_pb2.TestStation(*, id=..., name=..., asset_identifier=..., link=..., extension=..., schema_id=...)
Bases:
google.protobuf.message.MessageRepresents the metadata of a test station
- Parameters:
id (str)
name (str)
asset_identifier (str)
link (str)
extension (collections.abc.Mapping[str, global___ExtensionValue] | None)
schema_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- class ExtensionEntry(*, 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___ExtensionValue | None)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- property value: global___ExtensionValue
- 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
- id: str
The unique identifier of the test station This value is a string representation of a GUID. It is generated by the metadata store and cannot be set/specified by clients.
- link: str
A link to a resource that describes the test station. This value is expected to be a valid URI.
- schema_id: str
The unique identifier of the schema that applies to this instance’s extension. If any extension is associated with this instance, a schema_id must be provided.
- property extension: google.protobuf.internal.containers.MessageMap[str, global___ExtensionValue]
Optional. Any attributes used to extend the definition of your TestStation can go here. To add extension attributes, you must first register a schema, and specify the schema’s id in the ‘schema_id’ field.
- 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.measurements.metadata.v1.metadata_store_pb2.global___TestStation
- class ni.measurements.metadata.v1.metadata_store_pb2.ExtensionValue(*, string_value=...)
Bases:
google.protobuf.message.MessageRepresents the value of an extension field. Currently, only string values are supported.
- Parameters:
string_value (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- 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.measurements.metadata.v1.metadata_store_pb2.global___ExtensionValue
- class ni.measurements.metadata.v1.metadata_store_pb2.ExtensionSchema(*, id=..., schema=...)
Bases:
google.protobuf.message.MessageA message that represents an extension schema stored on this system.
- 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.measurements.metadata.v1.metadata_store_pb2.global___ExtensionSchema
- class ni.measurements.metadata.v1.metadata_store_pb2.Alias(*, name=..., target_type=..., target_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:
name (str)
target_type (global___AliasTargetType)
target_id (str)
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
- target_type: global___AliasTargetType
The type of the aliased metadata instance.
- 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.measurements.metadata.v1.metadata_store_pb2.global___Alias