Home
last modified time | relevance | path

Searched refs:var_spec_msg (Results 1 – 1 of 1) sorted by relevance

/test/vts/runners/host/tcp_client/
Dvts_tcp_client.py266 def GetPythonDataOfVariableSpecMsg(self, var_spec_msg): argument
280 if var_spec_msg.type == CompSpecMsg_pb2.TYPE_SCALAR:
281 scalar_type = getattr(var_spec_msg, "scalar_type", "")
283 return getattr(var_spec_msg.scalar_value, scalar_type)
284 elif var_spec_msg.type == CompSpecMsg_pb2.TYPE_ENUM:
285 scalar_type = getattr(var_spec_msg, "scalar_type", "")
287 return getattr(var_spec_msg.scalar_value, scalar_type)
289 return var_spec_msg.scalar_value.int32_t
290 elif var_spec_msg.type == CompSpecMsg_pb2.TYPE_STRING:
291 if hasattr(var_spec_msg, "string_value"):
[all …]