Searched refs:var_spec_msg (Results 1 – 1 of 1) sorted by relevance
266 def GetPythonDataOfVariableSpecMsg(self, var_spec_msg): argument280 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_t290 elif var_spec_msg.type == CompSpecMsg_pb2.TYPE_STRING:291 if hasattr(var_spec_msg, "string_value"):[all …]