Home
last modified time | relevance | path

Searched refs:Proto2 (Results 1 – 25 of 51) sorted by relevance

123

/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs35 using Proto2 = Google.Protobuf.TestProtos.Proto2; typedef
37 using static Google.Protobuf.TestProtos.Proto2.UnittestExtensions;
102 public static Proto2.TestAllTypes CreateFullTestAllTypesProto2() in CreateFullTestAllTypesProto2()
104 return new Proto2.TestAllTypes in CreateFullTestAllTypesProto2()
112 OptionalForeignEnum = Proto2.ForeignEnum.ForeignBar, in CreateFullTestAllTypesProto2()
113 OptionalForeignMessage = new Proto2.ForeignMessage { C = 10 }, in CreateFullTestAllTypesProto2()
114 OptionalImportEnum = Proto2.ImportEnum.ImportBaz, in CreateFullTestAllTypesProto2()
115 OptionalImportMessage = new Proto2.ImportMessage { D = 20 }, in CreateFullTestAllTypesProto2()
118 OptionalNestedEnum = Proto2.TestAllTypes.Types.NestedEnum.Foo, in CreateFullTestAllTypesProto2()
119 OptionalNestedMessage = new Proto2.TestAllTypes.Types.NestedMessage { Bb = 35 }, in CreateFullTestAllTypesProto2()
[all …]
DGeneratedMessageTest.Proto2.cs1 using Google.Protobuf.TestProtos.Proto2;
2 using Proto2 = Google.Protobuf.TestProtos.Proto2; typedef
5 using static Google.Protobuf.TestProtos.Proto2.UnittestExtensions;
30 Assert.AreEqual(Proto2.TestAllTypes.Types.NestedEnum.Foo, message.OptionalNestedEnum); in DefaultProto2Values()
63 Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in DefaultProto2Values()
80 Assert.AreEqual(Proto2.TestAllTypes.Types.NestedEnum.Bar, message.DefaultNestedEnum); in DefaultProto2Values()
128 …Assert.AreEqual(Proto2.TestAllTypes.Types.NestedEnum.Foo, message.GetExtension(OptionalNestedEnumE… in DefaultExtensionValues()
177 …Assert.AreEqual(Proto2.TestAllTypes.Types.NestedEnum.Bar, message.GetExtension(DefaultNestedEnumEx… in DefaultExtensionValues()
349 MessageParsingHelpers.AssertRoundtrip(Proto2.TestAllTypes.Parser, message); in RoundTrip_Groups()
DExtensionSetTest.cs1 using Google.Protobuf.TestProtos.Proto2;
4 using static Google.Protobuf.TestProtos.Proto2.UnittestExtensions;
DUnknownFieldSetTest.cs36 using Proto2 = Google.Protobuf.TestProtos.Proto2; typedef
DCodedInputStreamTest.cs37 using Proto2 = Google.Protobuf.TestProtos.Proto2; typedef
535 int groupFieldNumber = Proto2.TestAllTypes.OptionalGroupFieldNumber; in ReadGroup_WrongEndGroupTag()
541 output.WriteGroup(new Proto2.TestAllTypes.Types.OptionalGroup { A = 12345 }); in ReadGroup_WrongEndGroupTag()
547 …Assert.Throws<InvalidProtocolBufferException>(() => Proto2.TestAllTypes.Parser.ParseFrom(payload)); in ReadGroup_WrongEndGroupTag()
/third_party/protobuf/conformance/
Dfailure_list_js.txt2 Recommended.Proto2.ProtobufInput.ValidDataRepeated.BOOL.PackedInput.DefaultOutput.ProtobufOutput
3 Recommended.Proto2.ProtobufInput.ValidDataRepeated.BOOL.PackedInput.UnpackedOutput.ProtobufOutput
4 Recommended.Proto2.ProtobufInput.ValidDataRepeated.BOOL.UnpackedInput.PackedOutput.ProtobufOutput
5 Recommended.Proto2.ProtobufInput.ValidDataRepeated.DOUBLE.PackedInput.DefaultOutput.ProtobufOutput
6 Recommended.Proto2.ProtobufInput.ValidDataRepeated.DOUBLE.PackedInput.UnpackedOutput.ProtobufOutput
7 Recommended.Proto2.ProtobufInput.ValidDataRepeated.DOUBLE.UnpackedInput.PackedOutput.ProtobufOutput
8 Recommended.Proto2.ProtobufInput.ValidDataRepeated.ENUM.PackedInput.DefaultOutput.ProtobufOutput
9 Recommended.Proto2.ProtobufInput.ValidDataRepeated.ENUM.PackedInput.UnpackedOutput.ProtobufOutput
10 Recommended.Proto2.ProtobufInput.ValidDataRepeated.ENUM.UnpackedInput.PackedOutput.ProtobufOutput
11 Recommended.Proto2.ProtobufInput.ValidDataRepeated.FIXED32.PackedInput.DefaultOutput.ProtobufOutput
[all …]
Dfailure_list_php_c.txt1 Recommended.Proto2.JsonInput.FieldNameExtension.Validator
2 Required.Proto2.JsonInput.StoresDefaultPrimitive.Validator
Dfailure_list_php_c_32.txt1 Recommended.Proto2.JsonInput.FieldNameExtension.Validator
2 Required.Proto2.JsonInput.StoresDefaultPrimitive.Validator
Dfailure_list_java.txt37 Recommended.Proto2.JsonInput.FieldNameExtension.Validator
47 Required.Proto2.ProtobufInput.PrematureEofInDelimitedDataForKnownNonRepeatedValue.MESSAGE
48 Required.Proto2.ProtobufInput.PrematureEofInDelimitedDataForKnownRepeatedValue.MESSAGE
Dfailure_list_php.txt4 Recommended.Proto2.JsonInput.FieldNameExtension.Validator
9 Required.Proto2.JsonInput.StoresDefaultPrimitive.Validator
Dfailure_list_csharp.txt3 Recommended.Proto2.JsonInput.FieldNameExtension.Validator
Dfailure_list_cpp.txt37 Recommended.Proto2.JsonInput.FieldNameExtension.Validator
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittest.cs12 namespace Google.Protobuf.TestProtos.Proto2 {
670 …new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.Proto2.UnittestImportReflection.Des… in UnittestReflection()
671Proto2.ForeignEnum), typeof(global::Google.Protobuf.TestProtos.Proto2.TestEnumWithDupValue), typeo… in UnittestReflection()
672Proto2.TestAllTypes), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser, new[]{ "Optio… in UnittestReflection()
673 …global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup), global::Google.Protob… in UnittestReflection()
674 …global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup), global::Google.Protob… in UnittestReflection()
675 …typeof(global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes), global::Google.Protobuf.Test… in UnittestReflection()
676 …ypeof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedFields), global::Google.Protobuf.Tes… in UnittestReflection()
677 …peof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage), global::Google.Protobuf.Tes… in UnittestReflection()
678 …o(typeof(global::Google.Protobuf.TestProtos.Proto2.ForeignMessage), global::Google.Protobuf.TestPr… in UnittestReflection()
[all …]
DTestMessagesProto2.cs12 namespace ProtobufTestMessages.Proto2 {
209 …new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ProtobufTestMessages.Proto2.ForeignEnumProto2)… in TestMessagesProto2Reflection()
210Proto2.TestAllTypesProto2), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Parser, new[]{ … in TestMessagesProto2Reflection()
211 …fo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data), global::ProtobufTest… in TestMessagesProto2Reflection()
212 …eof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect), global::Proto… in TestMessagesProto2Reflection()
213Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1), global::ProtobufTestMessages.Proto2.… in TestMessagesProto2Reflection()
214Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2), global::ProtobufTestMessages.Proto2.… in TestMessagesProto2Reflection()
215 …ypeInfo(typeof(global::ProtobufTestMessages.Proto2.ForeignMessageProto2), global::ProtobufTestMess… in TestMessagesProto2Reflection()
216Proto2.UnknownToTestAllTypes), global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Parser, n… in TestMessagesProto2Reflection()
224 …public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2, int> …
[all …]
DUnittestImport.cs12 namespace Google.Protobuf.TestProtos.Proto2 {
35 …new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.Proto2.UnittestImportPublicReflecti… in UnittestImportReflection()
36 …typeof(global::Google.Protobuf.TestProtos.Proto2.ImportEnum), typeof(global::Google.Protobuf.TestP… in UnittestImportReflection()
37 …o(typeof(global::Google.Protobuf.TestProtos.Proto2.ImportMessage), global::Google.Protobuf.TestPro… in UnittestImportReflection()
75 …get { return global::Google.Protobuf.TestProtos.Proto2.UnittestImportReflection.Descriptor.Message…
DUnittestImportPublic.cs12 namespace Google.Protobuf.TestProtos.Proto2 {
33 …ypeof(global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage), global::Google.Protobuf.Test… in UnittestImportPublicReflection()
53 …get { return global::Google.Protobuf.TestProtos.Proto2.UnittestImportPublicReflection.Descriptor.M…
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs34 using Proto2 = Google.Protobuf.TestProtos.Proto2; typedef
40 using static Google.Protobuf.TestProtos.Proto2.UnittestExtensions;
160 var message = new Proto2.TestAllTypes(); in HasValue_Proto2_Primitive()
161 …var accessor = ((IMessage) message).Descriptor.Fields[Proto2.TestAllTypes.OptionalInt64FieldNumber… in HasValue_Proto2_Primitive()
175 var message = new Proto2.TestAllTypes(); in HasValue_Proto2_Message()
176 …var field = ((IMessage) message).Descriptor.Fields[Proto2.TestAllTypes.OptionalForeignMessageField… in HasValue_Proto2_Message()
178 message.OptionalForeignMessage = new Proto2.ForeignMessage(); in HasValue_Proto2_Message()
187 var message = new Proto2.TestAllTypes(); in HasValue_Proto2_Oneof()
188 …var accessor = ((IMessage) message).Descriptor.Fields[Proto2.TestAllTypes.OneofStringFieldNumber].… in HasValue_Proto2_Oneof()
202 var message = new Proto2.TestAllTypes(); in HasValue_Proto2_Repeated()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Conformance/
DProgram.cs53 ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor); in Main()
88 ProtobufTestMessages.Proto2.TestMessagesProto2Extensions.ExtensionInt32, in PerformRequest()
89 …ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Extensions.Messag… in PerformRequest()
90 …ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Extensions.Messag… in PerformRequest()
109 … message = parser.Parse<ProtobufTestMessages.Proto2.TestAllTypesProto2>(request.JsonPayload); in PerformRequest()
122 message = ProtobufTestMessages.Proto2.TestAllTypesProto2.Parser in PerformRequest()
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DApi.cs214 …ogle.Protobuf.WellKnownTypes.Syntax syntax_ = global::Google.Protobuf.WellKnownTypes.Syntax.Proto2;
258 … if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) hash ^= Syntax.GetHashCode(); in GetHashCode()
290 if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in WriteTo()
318 if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in IBufferMessage.InternalWriteTo()
343 if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in CalculateSize()
372 if (other.Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in MergeFrom()
604 …ogle.Protobuf.WellKnownTypes.Syntax syntax_ = global::Google.Protobuf.WellKnownTypes.Syntax.Proto2;
648 … if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) hash ^= Syntax.GetHashCode(); in GetHashCode()
686 if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in WriteTo()
720 if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in IBufferMessage.InternalWriteTo()
[all …]
DType.cs84 [pbr::OriginalName("SYNTAX_PROTO2")] Proto2 = 0, enumerator
209 …ogle.Protobuf.WellKnownTypes.Syntax syntax_ = global::Google.Protobuf.WellKnownTypes.Syntax.Proto2;
251 … if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) hash ^= Syntax.GetHashCode(); in GetHashCode()
279 if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in WriteTo()
303 if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in IBufferMessage.InternalWriteTo()
325 if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in CalculateSize()
351 if (other.Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in MergeFrom()
1175 …ogle.Protobuf.WellKnownTypes.Syntax syntax_ = global::Google.Protobuf.WellKnownTypes.Syntax.Proto2;
1215 … if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) hash ^= Syntax.GetHashCode(); in GetHashCode()
1242 if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) { in WriteTo()
[all …]
/third_party/grpc/third_party/upb/tests/
Dconformance_upb_failures.txt1 Recommended.Proto2.JsonInput.FieldNameExtension.Validator
/third_party/protobuf/ruby/tests/
Dtest_ruby_package_proto2.proto5 option ruby_package = "A::B::Proto2";
/third_party/protobuf/src/google/protobuf/
Dtype.proto86 // Field type group. Proto2 syntax only, and deprecated.
112 // For required fields. Proto2 syntax only.
138 // The string value of the default value of this field. Proto2 syntax only.
/third_party/protobuf/
DCONTRIBUTORS.txt13 Proto2 C++ and Java primary author:
16 Proto2 Python primary authors:
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DSingleFieldAccessor.cs88 else if (descriptor.File.Syntax == Syntax.Proto2 || descriptor.Proto.Proto3Optional) in SingleFieldAccessor()

123