ToGRPCVisitor#
- class ToGRPCVisitor(local_file_context_stack: contextlib.ExitStack | None = None, engine_is_local: bool = True)#
Bases: ansys.tools.variableinterop.IVariableValueVisitor
[ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue
]
Produces a gRPC
VariableValue
message for a givenatvi.IVariableValue
object.
Overview#
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the :meth:`IVariableValue.accept() method is called |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
Import detail#
from ansys.modelcenter.workflow.grpc_modelcenter.var_value_convert import ToGRPCVisitor
Method detail#
- ToGRPCVisitor.visit_integer(value: ansys.tools.variableinterop.IntegerValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the
IVariableValue.accept()
method is called on anIntegerValue
type.- Parameters:
- value
IntegerValue
IntegerValue
type to visit.
- value
- Returns:
T
Result.
- ToGRPCVisitor.visit_real(value: ansys.tools.variableinterop.RealValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the
IVariableValue.accept()
method is called on aRealValue
type.- Parameters:
- value
RealValue
RealValue
type to visit.
- value
- Returns:
T
Result.
- ToGRPCVisitor.visit_boolean(value: ansys.tools.variableinterop.BooleanValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the
IVariableValue.accept()
method is called on aBooleanValue
type.- Parameters:
- value
BooleanValue
BooleanValue
type to visit.
- value
- Returns:
T
Result.
- ToGRPCVisitor.visit_string(value: ansys.tools.variableinterop.StringValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the
IVariableValue.accept()
method is called on aStringValue
type.- Parameters:
- value
StringValue
StringValue
type to visit.
- value
- Returns:
T
Result.
- ToGRPCVisitor.visit_integer_array(value: ansys.tools.variableinterop.IntegerArrayValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the
IVariableValue.accept()
method is called on anIntegerArrayValue
type.- Parameters:
- value
IntegerArrayValue
IntegerArrayValue
type to visit.
- value
- Returns:
T
Result.
- ToGRPCVisitor.visit_file(value: ansys.tools.variableinterop.FileValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the
IVariableValue.accept()
method is called on aFileValue
type.- Parameters:
- value
FileValue
FileValue
type to visit.
- value
- Returns:
T
Result
- ToGRPCVisitor.visit_real_array(value: ansys.tools.variableinterop.RealArrayValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the :meth:`IVariableValue.accept() method is called on a
RealArrayValue
type.- Parameters:
- value
RealArrayValue
RealArrayValue
type to visit.
- value
- Returns:
T
Result.
- ToGRPCVisitor.visit_boolean_array(value: ansys.tools.variableinterop.BooleanArrayValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the
IVariableValue.accept()
method is called on aBooleanArrayValue
type.- Parameters:
- value
BooleanArrayValue
BooleanArrayValue
type to visit.
- value
- Returns:
T
Result.
- ToGRPCVisitor.visit_string_array(value: ansys.tools.variableinterop.StringArrayValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the
IVariableValue.accept()
method is called on aStringArrayValue
type.- Parameters:
- value
StringArrayValue
StringArrayValue
type to visit.
- value
- Returns:
T
Result.
- ToGRPCVisitor.visit_file_array(value: ansys.tools.variableinterop.FileArrayValue) ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableValue #
Method that is called if the
IVariableValue.accept()
method is called on aFileArrayValue
type.- Parameters:
- value
FileArrayValue
FileArrayValue
type to visit.
- value
- Returns:
T
Result.