Home
last modified time | relevance | path

Searched refs:OptionalInt32 (Results 1 – 11 of 11) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DLegacyGeneratedCodeTest.cs53 Bb = new ParseContextEnabledMessageB { OptionalInt32 = 12345 } in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedInputStream()
55 OptionalInt32 = 6789 in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedInputStream()
67 Assert.AreEqual(12345, parsed.A.Bb.OptionalInt32); in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedInputStream()
68 Assert.AreEqual(6789, parsed.OptionalInt32); in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedInputStream()
78 Bb = new ParseContextEnabledMessageB { OptionalInt32 = 12345 } in LegacyGeneratedCodeThrowsWithReadOnlySequence()
80 OptionalInt32 = 6789 in LegacyGeneratedCodeThrowsWithReadOnlySequence()
110 Bb = new ParseContextEnabledMessageB { OptionalInt32 = 12345 } in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedOutputStream()
112 OptionalInt32 = 6789 in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedOutputStream()
122 Assert.AreEqual(12345, parsed.A.Bb.OptionalInt32); in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedOutputStream()
123 Assert.AreEqual(6789, parsed.OptionalInt32); in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedOutputStream()
[all …]
DProto3OptionalTest.cs48 Assert.AreEqual(0, message.OptionalInt32); in OptionalInt32FieldLifecycle()
50 message.OptionalInt32 = 5; in OptionalInt32FieldLifecycle()
52 Assert.AreEqual(5, message.OptionalInt32); in OptionalInt32FieldLifecycle()
54 message.OptionalInt32 = 0; in OptionalInt32FieldLifecycle()
56 Assert.AreEqual(0, message.OptionalInt32); in OptionalInt32FieldLifecycle()
60 Assert.AreEqual(0, message.OptionalInt32); in OptionalInt32FieldLifecycle()
92 Assert.AreEqual(0, clone.OptionalInt32); in Clone()
110 var message = new TestProto3Optional { OptionalInt32 = 0 }; in Serialization_SetToDefault()
124 Assert.AreEqual(0, deserialized.OptionalInt32); in Serialization_Roundtrip()
137 var message1 = new TestProto3Optional { OptionalInt32 = 0 }; in Equality_IgnoresPresence()
DSampleMessages.cs116 OptionalInt32 = 100, in CreateFullTestAllTypesProto2()
DJsonFormatterTest.cs172 message.OptionalInt32 = 0; in WithFormatDefaultValues_DoesNotAffectProto3OptionalFields()
DGeneratedMessageTest.Proto2.cs28 Assert.AreEqual(0, message.OptionalInt32); in DefaultProto2Values()
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestProto3Optional.cs137 public int OptionalInt32 { property in ProtobufUnittest.TestProto3Optional
564 if (OptionalInt32 != other.OptionalInt32) return false; in Equals()
591 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); in GetHashCode()
630 output.WriteInt32(OptionalInt32); in WriteTo()
723 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo()
815 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize()
889 OptionalInt32 = other.OptionalInt32; in MergeFrom()
972 OptionalInt32 = input.ReadInt32(); in MergeFrom()
1076 OptionalInt32 = input.ReadInt32(); in IBufferMessage.InternalMergeFrom()
DTestMessagesProto2.cs439 public int OptionalInt32 { property in ProtobufTestMessages.Proto2.TestAllTypesProto2
2301 if (OptionalInt32 != other.OptionalInt32) return false; in Equals()
2429 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); in GetHashCode()
2569 output.WriteInt32(OptionalInt32); in WriteTo()
2850 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo()
3130 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize()
3362 OptionalInt32 = other.OptionalInt32; in MergeFrom()
3615 OptionalInt32 = input.ReadInt32(); in MergeFrom()
4164 OptionalInt32 = input.ReadInt32(); in IBufferMessage.InternalMergeFrom()
6028 public int OptionalInt32 { property in ProtobufTestMessages.Proto2.UnknownToTestAllTypes
[all …]
DTestMessagesProto3.cs476 public int OptionalInt32 { property in ProtobufTestMessages.Proto3.TestAllTypesProto3
2103 if (OptionalInt32 != other.OptionalInt32) return false; in Equals()
2259 if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode(); in GetHashCode()
2425 if (OptionalInt32 != 0) { in WriteTo()
2427 output.WriteInt32(OptionalInt32); in WriteTo()
2769 if (OptionalInt32 != 0) { in IBufferMessage.InternalWriteTo()
2771 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo()
3113 if (OptionalInt32 != 0) { in CalculateSize()
3114 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize()
3403 if (other.OptionalInt32 != 0) { in MergeFrom()
[all …]
DUnittestProto3.cs3797 public int OptionalInt32 { property in Google.Protobuf.TestProtos.TestMutualRecursionB
3818 if (OptionalInt32 != other.OptionalInt32) return false; in Equals()
3826 if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode(); in GetHashCode()
3847 if (OptionalInt32 != 0) { in WriteTo()
3849 output.WriteInt32(OptionalInt32); in WriteTo()
3864 if (OptionalInt32 != 0) { in IBufferMessage.InternalWriteTo()
3866 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo()
3880 if (OptionalInt32 != 0) { in CalculateSize()
3881 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize()
3900 if (other.OptionalInt32 != 0) { in MergeFrom()
[all …]
DUnittest.cs1259 public int OptionalInt32 { property in Google.Protobuf.TestProtos.Proto2.TestAllTypes
2654 if (OptionalInt32 != other.OptionalInt32) return false; in Equals()
2736 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); in GetHashCode()
2830 output.WriteInt32(OptionalInt32); in WriteTo()
3065 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo()
3299 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize()
3485 OptionalInt32 = other.OptionalInt32; in MergeFrom()
3698 OptionalInt32 = input.ReadInt32(); in MergeFrom()
4051 OptionalInt32 = input.ReadInt32(); in IBufferMessage.InternalMergeFrom()
11737 public int OptionalInt32 { property in Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs317 OptionalInt32 = 0, in Clear_Proto3Optional()