TestProto3Optional constructor
TestProto3Optional({
- int? optionalInt32,
- Int64? optionalInt64,
- int? optionalUint32,
- Int64? optionalUint64,
- int? optionalSint32,
- Int64? optionalSint64,
- int? optionalFixed32,
- Int64? optionalFixed64,
- int? optionalSfixed32,
- Int64? optionalSfixed64,
- double? optionalFloat,
- double? optionalDouble,
- bool? optionalBool,
- String? optionalString,
- List<
int> ? optionalBytes, - String? optionalCord,
- TestProto3Optional_NestedMessage? optionalNestedMessage,
- TestProto3Optional_NestedMessage? lazyNestedMessage,
- TestProto3Optional_NestedEnum? optionalNestedEnum,
- int? singularInt32,
- Int64? singularInt64,
Implementation
factory TestProto3Optional({
$core.int? optionalInt32,
$fixnum.Int64? optionalInt64,
$core.int? optionalUint32,
$fixnum.Int64? optionalUint64,
$core.int? optionalSint32,
$fixnum.Int64? optionalSint64,
$core.int? optionalFixed32,
$fixnum.Int64? optionalFixed64,
$core.int? optionalSfixed32,
$fixnum.Int64? optionalSfixed64,
$core.double? optionalFloat,
$core.double? optionalDouble,
$core.bool? optionalBool,
$core.String? optionalString,
$core.List<$core.int>? optionalBytes,
$core.String? optionalCord,
TestProto3Optional_NestedMessage? optionalNestedMessage,
TestProto3Optional_NestedMessage? lazyNestedMessage,
TestProto3Optional_NestedEnum? optionalNestedEnum,
$core.int? singularInt32,
$fixnum.Int64? singularInt64,
}) {
final _result = create();
if (optionalInt32 != null) {
_result.optionalInt32 = optionalInt32;
}
if (optionalInt64 != null) {
_result.optionalInt64 = optionalInt64;
}
if (optionalUint32 != null) {
_result.optionalUint32 = optionalUint32;
}
if (optionalUint64 != null) {
_result.optionalUint64 = optionalUint64;
}
if (optionalSint32 != null) {
_result.optionalSint32 = optionalSint32;
}
if (optionalSint64 != null) {
_result.optionalSint64 = optionalSint64;
}
if (optionalFixed32 != null) {
_result.optionalFixed32 = optionalFixed32;
}
if (optionalFixed64 != null) {
_result.optionalFixed64 = optionalFixed64;
}
if (optionalSfixed32 != null) {
_result.optionalSfixed32 = optionalSfixed32;
}
if (optionalSfixed64 != null) {
_result.optionalSfixed64 = optionalSfixed64;
}
if (optionalFloat != null) {
_result.optionalFloat = optionalFloat;
}
if (optionalDouble != null) {
_result.optionalDouble = optionalDouble;
}
if (optionalBool != null) {
_result.optionalBool = optionalBool;
}
if (optionalString != null) {
_result.optionalString = optionalString;
}
if (optionalBytes != null) {
_result.optionalBytes = optionalBytes;
}
if (optionalCord != null) {
_result.optionalCord = optionalCord;
}
if (optionalNestedMessage != null) {
_result.optionalNestedMessage = optionalNestedMessage;
}
if (lazyNestedMessage != null) {
_result.lazyNestedMessage = lazyNestedMessage;
}
if (optionalNestedEnum != null) {
_result.optionalNestedEnum = optionalNestedEnum;
}
if (singularInt32 != null) {
_result.singularInt32 = singularInt32;
}
if (singularInt64 != null) {
_result.singularInt64 = singularInt64;
}
return _result;
}