TestAllTypesProto2 class

Inheritance
  • Object
  • GeneratedMessage
  • TestAllTypesProto2

Constructors

TestAllTypesProto2({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, TestAllTypesProto2_NestedMessage? optionalNestedMessage, ForeignMessageProto2? optionalForeignMessage, TestAllTypesProto2_NestedEnum? optionalNestedEnum, ForeignEnumProto2? optionalForeignEnum, String? optionalStringPiece, String? optionalCord, TestAllTypesProto2? recursiveMessage, Iterable<int>? repeatedInt32, Iterable<Int64>? repeatedInt64, Iterable<int>? repeatedUint32, Iterable<Int64>? repeatedUint64, Iterable<int>? repeatedSint32, Iterable<Int64>? repeatedSint64, Iterable<int>? repeatedFixed32, Iterable<Int64>? repeatedFixed64, Iterable<int>? repeatedSfixed32, Iterable<Int64>? repeatedSfixed64, Iterable<double>? repeatedFloat, Iterable<double>? repeatedDouble, Iterable<bool>? repeatedBool, Iterable<String>? repeatedString, Iterable<List<int>>? repeatedBytes, Iterable<TestAllTypesProto2_NestedMessage>? repeatedNestedMessage, Iterable<ForeignMessageProto2>? repeatedForeignMessage, Iterable<TestAllTypesProto2_NestedEnum>? repeatedNestedEnum, Iterable<ForeignEnumProto2>? repeatedForeignEnum, Iterable<String>? repeatedStringPiece, Iterable<String>? repeatedCord, Map<int, int>? mapInt32Int32, Map<Int64, Int64>? mapInt64Int64, Map<int, int>? mapUint32Uint32, Map<Int64, Int64>? mapUint64Uint64, Map<int, int>? mapSint32Sint32, Map<Int64, Int64>? mapSint64Sint64, Map<int, int>? mapFixed32Fixed32, Map<Int64, Int64>? mapFixed64Fixed64, Map<int, int>? mapSfixed32Sfixed32, Map<Int64, Int64>? mapSfixed64Sfixed64, Map<int, double>? mapInt32Float, Map<int, double>? mapInt32Double, Map<bool, bool>? mapBoolBool, Map<String, String>? mapStringString, Map<String, List<int>>? mapStringBytes, Map<String, TestAllTypesProto2_NestedMessage>? mapStringNestedMessage, Map<String, ForeignMessageProto2>? mapStringForeignMessage, Map<String, TestAllTypesProto2_NestedEnum>? mapStringNestedEnum, Map<String, ForeignEnumProto2>? mapStringForeignEnum, Iterable<int>? packedInt32, Iterable<Int64>? packedInt64, Iterable<int>? packedUint32, Iterable<Int64>? packedUint64, Iterable<int>? packedSint32, Iterable<Int64>? packedSint64, Iterable<int>? packedFixed32, Iterable<Int64>? packedFixed64, Iterable<int>? packedSfixed32, Iterable<Int64>? packedSfixed64, Iterable<double>? packedFloat, Iterable<double>? packedDouble, Iterable<bool>? packedBool, Iterable<TestAllTypesProto2_NestedEnum>? packedNestedEnum, Iterable<int>? unpackedInt32, Iterable<Int64>? unpackedInt64, Iterable<int>? unpackedUint32, Iterable<Int64>? unpackedUint64, Iterable<int>? unpackedSint32, Iterable<Int64>? unpackedSint64, Iterable<int>? unpackedFixed32, Iterable<Int64>? unpackedFixed64, Iterable<int>? unpackedSfixed32, Iterable<Int64>? unpackedSfixed64, Iterable<double>? unpackedFloat, Iterable<double>? unpackedDouble, Iterable<bool>? unpackedBool, Iterable<TestAllTypesProto2_NestedEnum>? unpackedNestedEnum, int? oneofUint32, TestAllTypesProto2_NestedMessage? oneofNestedMessage, String? oneofString, List<int>? oneofBytes, bool? oneofBool, Int64? oneofUint64, double? oneofFloat, double? oneofDouble, TestAllTypesProto2_NestedEnum? oneofEnum, TestAllTypesProto2_Data? data, int? fieldname1, int? fieldName2, int? fieldName3, int? fieldName4, int? field0name5, int? field0Name6, int? fieldName7, int? fieldName8, int? fieldName9, int? fieldName10, int? fIELDNAME11, int? fIELDName12, int? fieldName13, int? fieldName14, int? fieldName15, int? fieldName16, int? fieldName17, int? fieldName18})
factory
TestAllTypesProto2.fromBuffer(List<int> i, [ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
factory
TestAllTypesProto2.fromJson(String i, [ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
factory

Properties

data TestAllTypesProto2_Data
getter/setter pair
eventPlugin → EventPlugin?
Subclasses can override this getter to be notified of changes to protobuf fields.
no setterinherited
field0name5 int
getter/setter pair
field0Name6 int
getter/setter pair
fieldname1 int
getter/setter pair
fieldName2 int
getter/setter pair
fieldName3 int
getter/setter pair
fieldName4 int
getter/setter pair
fieldName7 int
getter/setter pair
fieldName8 int
getter/setter pair
fieldName9 int
getter/setter pair
fieldName10 int
getter/setter pair
fIELDNAME11 int
getter/setter pair
fIELDName12 int
getter/setter pair
fieldName13 int
getter/setter pair
fieldName14 int
getter/setter pair
fieldName15 int
getter/setter pair
fieldName16 int
getter/setter pair
fieldName17 int
getter/setter pair
fieldName18 int
getter/setter pair
hashCode int
Calculates a hash code based on the contents of the protobuf.
no setterinherited
info_ → BuilderInfo
no setteroverride
isFrozen bool
Returns true if this message is marked read-only. Otherwise false.
no setterinherited
mapBoolBool Map<bool, bool>
no setter
mapFixed32Fixed32 Map<int, int>
no setter
mapFixed64Fixed64 Map<Int64, Int64>
no setter
mapInt32Double Map<int, double>
no setter
mapInt32Float Map<int, double>
no setter
mapInt32Int32 Map<int, int>
no setter
mapInt64Int64 Map<Int64, Int64>
no setter
mapSfixed32Sfixed32 Map<int, int>
no setter
mapSfixed64Sfixed64 Map<Int64, Int64>
no setter
mapSint32Sint32 Map<int, int>
no setter
mapSint64Sint64 Map<Int64, Int64>
no setter
mapStringBytes Map<String, List<int>>
no setter
mapStringForeignEnum Map<String, ForeignEnumProto2>
no setter
mapStringForeignMessage Map<String, ForeignMessageProto2>
no setter
mapStringNestedEnum Map<String, TestAllTypesProto2_NestedEnum>
no setter
mapStringNestedMessage Map<String, TestAllTypesProto2_NestedMessage>
no setter
mapStringString Map<String, String>
no setter
mapUint32Uint32 Map<int, int>
no setter
mapUint64Uint64 Map<Int64, Int64>
no setter
oneofBool bool
getter/setter pair
oneofBytes List<int>
getter/setter pair
oneofDouble double
getter/setter pair
oneofEnum TestAllTypesProto2_NestedEnum
getter/setter pair
oneofFloat double
getter/setter pair
oneofNestedMessage TestAllTypesProto2_NestedMessage
getter/setter pair
oneofString String
getter/setter pair
oneofUint32 int
getter/setter pair
oneofUint64 ↔ Int64
getter/setter pair
optionalBool bool
getter/setter pair
optionalBytes List<int>
getter/setter pair
optionalCord String
getter/setter pair
optionalDouble double
getter/setter pair
optionalFixed32 int
getter/setter pair
optionalFixed64 ↔ Int64
getter/setter pair
optionalFloat double
getter/setter pair
optionalForeignEnum ForeignEnumProto2
getter/setter pair
optionalForeignMessage ForeignMessageProto2
getter/setter pair
optionalInt32 int
getter/setter pair
optionalInt64 ↔ Int64
getter/setter pair
optionalNestedEnum TestAllTypesProto2_NestedEnum
getter/setter pair
optionalNestedMessage TestAllTypesProto2_NestedMessage
getter/setter pair
optionalSfixed32 int
getter/setter pair
optionalSfixed64 ↔ Int64
getter/setter pair
optionalSint32 int
getter/setter pair
optionalSint64 ↔ Int64
getter/setter pair
optionalString String
getter/setter pair
optionalStringPiece String
getter/setter pair
optionalUint32 int
getter/setter pair
optionalUint64 ↔ Int64
getter/setter pair
packedBool List<bool>
no setter
packedDouble List<double>
no setter
packedFixed32 List<int>
no setter
packedFixed64 List<Int64>
no setter
packedFloat List<double>
no setter
packedInt32 List<int>
no setter
packedInt64 List<Int64>
no setter
packedNestedEnum List<TestAllTypesProto2_NestedEnum>
no setter
packedSfixed32 List<int>
no setter
packedSfixed64 List<Int64>
no setter
packedSint32 List<int>
no setter
packedSint64 List<Int64>
no setter
packedUint32 List<int>
no setter
packedUint64 List<Int64>
no setter
recursiveMessage TestAllTypesProto2
getter/setter pair
repeatedBool List<bool>
no setter
repeatedBytes List<List<int>>
no setter
repeatedCord List<String>
no setter
repeatedDouble List<double>
no setter
repeatedFixed32 List<int>
no setter
repeatedFixed64 List<Int64>
no setter
repeatedFloat List<double>
no setter
repeatedForeignEnum List<ForeignEnumProto2>
no setter
repeatedForeignMessage List<ForeignMessageProto2>
no setter
repeatedInt32 List<int>
no setter
repeatedInt64 List<Int64>
no setter
repeatedNestedEnum List<TestAllTypesProto2_NestedEnum>
no setter
repeatedNestedMessage List<TestAllTypesProto2_NestedMessage>
no setter
repeatedSfixed32 List<int>
no setter
repeatedSfixed64 List<Int64>
no setter
repeatedSint32 List<int>
no setter
repeatedSint64 List<Int64>
no setter
repeatedString List<String>
no setter
repeatedStringPiece List<String>
no setter
repeatedUint32 List<int>
no setter
repeatedUint64 List<Int64>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unknownFields → UnknownFieldSet
no setterinherited
unpackedBool List<bool>
no setter
unpackedDouble List<double>
no setter
unpackedFixed32 List<int>
no setter
unpackedFixed64 List<Int64>
no setter
unpackedFloat List<double>
no setter
unpackedInt32 List<int>
no setter
unpackedInt64 List<Int64>
no setter
unpackedNestedEnum List<TestAllTypesProto2_NestedEnum>
no setter
unpackedSfixed32 List<int>
no setter
unpackedSfixed64 List<Int64>
no setter
unpackedSint32 List<int>
no setter
unpackedSint64 List<Int64>
no setter
unpackedUint32 List<int>
no setter
unpackedUint64 List<Int64>
no setter

Methods

$_ensure<T>(int index) → T
For generated code only.
inherited
$_get<T>(int index, T defaultValue) → T
For generated code only.
inherited
$_getB(int index, bool defaultValue) bool
For generated code only.
inherited
$_getBF(int index) bool
For generated code only.
inherited
$_getI(int index, int defaultValue) int
For generated code only.
inherited
$_getI64(int index) → Int64
For generated code only.
inherited
$_getIZ(int index) int
For generated code only.
inherited
$_getList<T>(int index) List<T>
For generated code only.
inherited
$_getMap<K, V>(int index) Map<K, V>
For generated code only.
inherited
$_getN<T>(int index) → T
For generated code only.
inherited
$_getS(int index, String defaultValue) String
For generated code only.
inherited
$_getSZ(int index) String
For generated code only.
inherited
$_has(int index) bool
For generated code only.
inherited
$_setBool(int index, bool value) → void
For generated code only.
inherited
$_setBytes(int index, List<int> value) → void
For generated code only.
inherited
$_setDouble(int index, double value) → void
For generated code only.
inherited
$_setFloat(int index, double value) → void
For generated code only.
inherited
$_setInt64(int index, Int64 value) → void
For generated code only.
inherited
$_setSignedInt32(int index, int value) → void
For generated code only.
inherited
$_setString(int index, String value) → void
For generated code only.
inherited
$_setUnsignedInt32(int index, int value) → void
For generated code only.
inherited
$_whichOneof(int oneofIndex) int
inherited
addExtension(Extension extension, dynamic value) → void
Adds an extension field value to a repeated field.
inherited
check() → void
inherited
clear() → void
Clears all data that was set in this message.
inherited
clearData() → void
clearExtension(Extension extension) → void
Clears an extension field and also removes the extension.
inherited
clearField(int tagNumber) → void
Clears the contents of a given field.
inherited
clearField0name5() → void
clearField0Name6() → void
clearFieldname1() → void
clearFieldName10() → void
clearFIELDNAME11() → void
clearFIELDName12() → void
clearFieldName13() → void
clearFieldName14() → void
clearFieldName15() → void
clearFieldName16() → void
clearFieldName17() → void
clearFieldName18() → void
clearFieldName2() → void
clearFieldName3() → void
clearFieldName4() → void
clearFieldName7() → void
clearFieldName8() → void
clearFieldName9() → void
clearOneofBool() → void
clearOneofBytes() → void
clearOneofDouble() → void
clearOneofEnum() → void
clearOneofField() → void
clearOneofFloat() → void
clearOneofNestedMessage() → void
clearOneofString() → void
clearOneofUint32() → void
clearOneofUint64() → void
clearOptionalBool() → void
clearOptionalBytes() → void
clearOptionalCord() → void
clearOptionalDouble() → void
clearOptionalFixed32() → void
clearOptionalFixed64() → void
clearOptionalFloat() → void
clearOptionalForeignEnum() → void
clearOptionalForeignMessage() → void
clearOptionalInt32() → void
clearOptionalInt64() → void
clearOptionalNestedEnum() → void
clearOptionalNestedMessage() → void
clearOptionalSfixed32() → void
clearOptionalSfixed64() → void
clearOptionalSint32() → void
clearOptionalSint64() → void
clearOptionalString() → void
clearOptionalStringPiece() → void
clearOptionalUint32() → void
clearOptionalUint64() → void
clearRecursiveMessage() → void
clone() TestAllTypesProto2
Creates a deep copy of the fields in this message. (The generated code uses mergeFromMessage.)
override
copyWith(void updates(TestAllTypesProto2)) TestAllTypesProto2
Apply updates to a copy of this message.
override
createEmptyInstance() TestAllTypesProto2
Creates an empty instance of the same message type as this.
override
createMapField<K, V>(int tagNumber, MapFieldInfo<K, V> fi) Map<K, V>
Creates a Map representing a map field.
inherited
createRepeatedField<T>(int tagNumber, FieldInfo<T> fi) List<T>
Creates List implementing a mutable repeated field.
inherited
ensureOneofNestedMessage() TestAllTypesProto2_NestedMessage
ensureOptionalForeignMessage() ForeignMessageProto2
ensureOptionalNestedMessage() TestAllTypesProto2_NestedMessage
ensureRecursiveMessage() TestAllTypesProto2
extensionsAreInitialized() bool
inherited
freeze() → GeneratedMessage
Make this message read-only.
inherited
getDefaultForField(int tagNumber) → dynamic
Returns the default value for the given field.
inherited
getExtension(Extension extension) → dynamic
Returns the value of extension.
inherited
getField(int tagNumber) → dynamic
Returns the value of the field associated with tagNumber, or the default value if it is not set.
inherited
getFieldOrNull(int tagNumber) → dynamic
Returns the value of a field, ignoring any defaults.
inherited
getTagNumber(String fieldName) int?
inherited
hasData() bool
hasExtension(Extension extension) bool
Returns true if a value of extension is present.
inherited
hasField(int tagNumber) bool
Whether this message has a field associated with tagNumber.
inherited
hasField0name5() bool
hasField0Name6() bool
hasFieldname1() bool
hasFieldName10() bool
hasFIELDNAME11() bool
hasFIELDName12() bool
hasFieldName13() bool
hasFieldName14() bool
hasFieldName15() bool
hasFieldName16() bool
hasFieldName17() bool
hasFieldName18() bool
hasFieldName2() bool
hasFieldName3() bool
hasFieldName4() bool
hasFieldName7() bool
hasFieldName8() bool
hasFieldName9() bool
hasOneofBool() bool
hasOneofBytes() bool
hasOneofDouble() bool
hasOneofEnum() bool
hasOneofFloat() bool
hasOneofNestedMessage() bool
hasOneofString() bool
hasOneofUint32() bool
hasOneofUint64() bool
hasOptionalBool() bool
hasOptionalBytes() bool
hasOptionalCord() bool
hasOptionalDouble() bool
hasOptionalFixed32() bool
hasOptionalFixed64() bool
hasOptionalFloat() bool
hasOptionalForeignEnum() bool
hasOptionalForeignMessage() bool
hasOptionalInt32() bool
hasOptionalInt64() bool
hasOptionalNestedEnum() bool
hasOptionalNestedMessage() bool
hasOptionalSfixed32() bool
hasOptionalSfixed64() bool
hasOptionalSint32() bool
hasOptionalSint64() bool
hasOptionalString() bool
hasOptionalStringPiece() bool
hasOptionalUint32() bool
hasOptionalUint64() bool
hasRecursiveMessage() bool
hasRequiredFields() bool
Whether the message has required fields.
inherited
isInitialized() bool
Whether all required fields in the message and embedded messages are set.
inherited
mergeFromBuffer(List<int> input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges serialized protocol buffer data into this message.
inherited
mergeFromCodedBufferReader(CodedBufferReader input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
inherited
mergeFromJson(String data, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from data, a JSON object, encoded as described by GeneratedMessage.writeToJson.
inherited
mergeFromJsonMap(Map<String, dynamic> json, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from a JSON object represented as a Dart map.
inherited
mergeFromMessage(GeneratedMessage other) → void
Merges the contents of the other into this message.
inherited
mergeFromProto3Json(Object? json, {TypeRegistry typeRegistry = const TypeRegistry.empty(), bool ignoreUnknownFields = false, bool supportNamesWithUnderscores = true, bool permissiveEnums = false}) → void
Merges field values from json, a JSON object using proto3 encoding.
inherited
mergeUnknownFields(UnknownFieldSet unknownFieldSet) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setExtension(Extension extension, Object value) → void
Sets the value of a non-repeated extension field to value.
inherited
setField(int tagNumber, Object value) → void
Sets the value of a field by its tagNumber.
inherited
toBuilder() → GeneratedMessage
Creates a writable, shallow copy of this message.
inherited
toDebugString() String
Returns a String representation of this message.
inherited
toProto3Json({TypeRegistry typeRegistry = const TypeRegistry.empty()}) Object?
Returns an Object representing Proto3 JSON serialization of this.
inherited
toString() String
Returns a String representation of this message.
inherited
whichOneofField() TestAllTypesProto2_OneofField
writeToBuffer() Uint8List
inherited
writeToCodedBufferWriter(CodedBufferWriter output) → void
inherited
writeToJson() String
Returns a JSON string that encodes this message.
inherited
writeToJsonMap() Map<String, dynamic>
Returns the JSON encoding of this message as a Dart Map.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited