1# @generated by generate_proto_mypy_stubs.py. Do not edit! 2import sys 3from google.protobuf.descriptor import ( 4 EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, 5) 6 7from google.protobuf.internal.containers import ( 8 RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, 9 RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, 10) 11 12from google.protobuf.message import ( 13 Message as google___protobuf___message___Message, 14) 15 16from typing import ( 17 Iterable as typing___Iterable, 18 List as typing___List, 19 Optional as typing___Optional, 20 Text as typing___Text, 21 Tuple as typing___Tuple, 22 cast as typing___cast, 23) 24 25from typing_extensions import ( 26 Literal as typing_extensions___Literal, 27) 28 29 30class RunContext(google___protobuf___message___Message): 31 32 @property 33 def parameter_sweeps(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ParameterSweep]: ... 34 35 def __init__(self, 36 parameter_sweeps : typing___Optional[typing___Iterable[ParameterSweep]] = None, 37 ) -> None: ... 38 @classmethod 39 def FromString(cls, s: bytes) -> RunContext: ... 40 def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 41 def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 42 if sys.version_info >= (3,): 43 def ClearField(self, field_name: typing_extensions___Literal[u"parameter_sweeps"]) -> None: ... 44 else: 45 def ClearField(self, field_name: typing_extensions___Literal[b"parameter_sweeps"]) -> None: ... 46 47class ParameterSweep(google___protobuf___message___Message): 48 repetitions = ... # type: int 49 50 @property 51 def sweep(self) -> Sweep: ... 52 53 def __init__(self, 54 repetitions : typing___Optional[int] = None, 55 sweep : typing___Optional[Sweep] = None, 56 ) -> None: ... 57 @classmethod 58 def FromString(cls, s: bytes) -> ParameterSweep: ... 59 def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 60 def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 61 if sys.version_info >= (3,): 62 def HasField(self, field_name: typing_extensions___Literal[u"sweep"]) -> bool: ... 63 def ClearField(self, field_name: typing_extensions___Literal[u"repetitions",u"sweep"]) -> None: ... 64 else: 65 def HasField(self, field_name: typing_extensions___Literal[u"sweep",b"sweep"]) -> bool: ... 66 def ClearField(self, field_name: typing_extensions___Literal[b"repetitions",b"sweep"]) -> None: ... 67 68class Sweep(google___protobuf___message___Message): 69 70 @property 71 def sweep_function(self) -> SweepFunction: ... 72 73 @property 74 def single_sweep(self) -> SingleSweep: ... 75 76 def __init__(self, 77 sweep_function : typing___Optional[SweepFunction] = None, 78 single_sweep : typing___Optional[SingleSweep] = None, 79 ) -> None: ... 80 @classmethod 81 def FromString(cls, s: bytes) -> Sweep: ... 82 def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 83 def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 84 if sys.version_info >= (3,): 85 def HasField(self, field_name: typing_extensions___Literal[u"single_sweep",u"sweep",u"sweep_function"]) -> bool: ... 86 def ClearField(self, field_name: typing_extensions___Literal[u"single_sweep",u"sweep",u"sweep_function"]) -> None: ... 87 else: 88 def HasField(self, field_name: typing_extensions___Literal[u"single_sweep",b"single_sweep",u"sweep",b"sweep",u"sweep_function",b"sweep_function"]) -> bool: ... 89 def ClearField(self, field_name: typing_extensions___Literal[b"single_sweep",b"sweep",b"sweep_function"]) -> None: ... 90 def WhichOneof(self, oneof_group: typing_extensions___Literal[u"sweep",b"sweep"]) -> typing_extensions___Literal["sweep_function","single_sweep"]: ... 91 92class SweepFunction(google___protobuf___message___Message): 93 class FunctionType(int): 94 DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... 95 @classmethod 96 def Name(cls, number: int) -> str: ... 97 @classmethod 98 def Value(cls, name: str) -> SweepFunction.FunctionType: ... 99 @classmethod 100 def keys(cls) -> typing___List[str]: ... 101 @classmethod 102 def values(cls) -> typing___List[SweepFunction.FunctionType]: ... 103 @classmethod 104 def items(cls) -> typing___List[typing___Tuple[str, SweepFunction.FunctionType]]: ... 105 FUNCTION_TYPE_UNSPECIFIED = typing___cast(FunctionType, 0) 106 PRODUCT = typing___cast(FunctionType, 1) 107 ZIP = typing___cast(FunctionType, 2) 108 109 function_type = ... # type: SweepFunction.FunctionType 110 111 @property 112 def sweeps(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Sweep]: ... 113 114 def __init__(self, 115 function_type : typing___Optional[SweepFunction.FunctionType] = None, 116 sweeps : typing___Optional[typing___Iterable[Sweep]] = None, 117 ) -> None: ... 118 @classmethod 119 def FromString(cls, s: bytes) -> SweepFunction: ... 120 def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 121 def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 122 if sys.version_info >= (3,): 123 def ClearField(self, field_name: typing_extensions___Literal[u"function_type",u"sweeps"]) -> None: ... 124 else: 125 def ClearField(self, field_name: typing_extensions___Literal[b"function_type",b"sweeps"]) -> None: ... 126 127class SingleSweep(google___protobuf___message___Message): 128 parameter_key = ... # type: typing___Text 129 130 @property 131 def points(self) -> Points: ... 132 133 @property 134 def linspace(self) -> Linspace: ... 135 136 def __init__(self, 137 parameter_key : typing___Optional[typing___Text] = None, 138 points : typing___Optional[Points] = None, 139 linspace : typing___Optional[Linspace] = None, 140 ) -> None: ... 141 @classmethod 142 def FromString(cls, s: bytes) -> SingleSweep: ... 143 def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 144 def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 145 if sys.version_info >= (3,): 146 def HasField(self, field_name: typing_extensions___Literal[u"linspace",u"points",u"sweep"]) -> bool: ... 147 def ClearField(self, field_name: typing_extensions___Literal[u"linspace",u"parameter_key",u"points",u"sweep"]) -> None: ... 148 else: 149 def HasField(self, field_name: typing_extensions___Literal[u"linspace",b"linspace",u"points",b"points",u"sweep",b"sweep"]) -> bool: ... 150 def ClearField(self, field_name: typing_extensions___Literal[b"linspace",b"parameter_key",b"points",b"sweep"]) -> None: ... 151 def WhichOneof(self, oneof_group: typing_extensions___Literal[u"sweep",b"sweep"]) -> typing_extensions___Literal["points","linspace"]: ... 152 153class Points(google___protobuf___message___Message): 154 points = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] 155 156 def __init__(self, 157 points : typing___Optional[typing___Iterable[float]] = None, 158 ) -> None: ... 159 @classmethod 160 def FromString(cls, s: bytes) -> Points: ... 161 def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 162 def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 163 if sys.version_info >= (3,): 164 def ClearField(self, field_name: typing_extensions___Literal[u"points"]) -> None: ... 165 else: 166 def ClearField(self, field_name: typing_extensions___Literal[b"points"]) -> None: ... 167 168class Linspace(google___protobuf___message___Message): 169 first_point = ... # type: float 170 last_point = ... # type: float 171 num_points = ... # type: int 172 173 def __init__(self, 174 first_point : typing___Optional[float] = None, 175 last_point : typing___Optional[float] = None, 176 num_points : typing___Optional[int] = None, 177 ) -> None: ... 178 @classmethod 179 def FromString(cls, s: bytes) -> Linspace: ... 180 def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 181 def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... 182 if sys.version_info >= (3,): 183 def ClearField(self, field_name: typing_extensions___Literal[u"first_point",u"last_point",u"num_points"]) -> None: ... 184 else: 185 def ClearField(self, field_name: typing_extensions___Literal[b"first_point",b"last_point",b"num_points"]) -> None: ... 186