Home
last modified time | relevance | path

Searched refs:SetExtension (Results 1 – 23 of 23) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs158 message.SetExtension(OptionalBoolExtension, true); in CreateFullTestAllExtensions()
159 message.SetExtension(OptionalBytesExtension, ByteString.CopyFrom(1, 2, 3, 4)); in CreateFullTestAllExtensions()
160 message.SetExtension(OptionalDoubleExtension, 23.5); in CreateFullTestAllExtensions()
161 message.SetExtension(OptionalFixed32Extension, 23u); in CreateFullTestAllExtensions()
162 message.SetExtension(OptionalFixed64Extension, 1234567890123u); in CreateFullTestAllExtensions()
163 message.SetExtension(OptionalFloatExtension, 12.25f); in CreateFullTestAllExtensions()
164 message.SetExtension(OptionalForeignEnumExtension, Proto2.ForeignEnum.ForeignBar); in CreateFullTestAllExtensions()
165 … message.SetExtension(OptionalForeignMessageExtension, new Proto2.ForeignMessage { C = 10 }); in CreateFullTestAllExtensions()
166 message.SetExtension(OptionalImportEnumExtension, Proto2.ImportEnum.ImportBaz); in CreateFullTestAllExtensions()
167 … message.SetExtension(OptionalImportMessageExtension, new Proto2.ImportMessage { D = 20 }); in CreateFullTestAllExtensions()
[all …]
DExtensionSetTest.cs34 message.SetExtension(OptionalBoolExtension, true); in TestMergeCodedInput()
53 message.SetExtension(OptionalBoolExtension, true); in TestMergeMessage()
70 message.SetExtension(OptionalStringExtension, "abcd"); in TryMergeFieldFrom_CodedInputStream()
86 message.SetExtension(OptionalBoolExtension, true); in TestEquals()
93 other.SetExtension(OptionalBoolExtension, true); in TestEquals()
105 message.SetExtension(OptionalBoolExtension, true); in TestHashCode()
114 message.SetExtension(OptionalBoolExtension, true); in TestClone()
DGeneratedMessageTest.Proto2.cs282 message.SetExtension(TestRequired.Extensions.Single, new TestRequired()); in RequiredFieldsInExtensions()
308 message.SetExtension(UnittestExtensions.OptionalBoolExtension, true); in RequiredFieldsInExtensions()
356 …message.SetExtension(UnittestExtensions.OptionalGroupExtension, new OptionalGroup_extension { A = … in RoundTrip_ExtensionGroups()
375 …message.SetExtension(TestNestedExtension.Extensions.OptionalGroupExtension, new TestNestedExtensio… in RoundTrip_NestedExtensionGroup()
/third_party/protobuf/src/google/protobuf/
Dtest_util_lite.cc810 message->SetExtension(unittest::optional_int32_extension_lite, 101); in SetAllExtensions()
811 message->SetExtension(unittest::optional_int64_extension_lite, 102); in SetAllExtensions()
812 message->SetExtension(unittest::optional_uint32_extension_lite, 103); in SetAllExtensions()
813 message->SetExtension(unittest::optional_uint64_extension_lite, 104); in SetAllExtensions()
814 message->SetExtension(unittest::optional_sint32_extension_lite, 105); in SetAllExtensions()
815 message->SetExtension(unittest::optional_sint64_extension_lite, 106); in SetAllExtensions()
816 message->SetExtension(unittest::optional_fixed32_extension_lite, 107); in SetAllExtensions()
817 message->SetExtension(unittest::optional_fixed64_extension_lite, 108); in SetAllExtensions()
818 message->SetExtension(unittest::optional_sfixed32_extension_lite, 109); in SetAllExtensions()
819 message->SetExtension(unittest::optional_sfixed64_extension_lite, 110); in SetAllExtensions()
[all …]
Dtest_util.inc952 message->SetExtension(UNITTEST::optional_int32_extension, 101);
953 message->SetExtension(UNITTEST::optional_int64_extension, 102);
954 message->SetExtension(UNITTEST::optional_uint32_extension, 103);
955 message->SetExtension(UNITTEST::optional_uint64_extension, 104);
956 message->SetExtension(UNITTEST::optional_sint32_extension, 105);
957 message->SetExtension(UNITTEST::optional_sint64_extension, 106);
958 message->SetExtension(UNITTEST::optional_fixed32_extension, 107);
959 message->SetExtension(UNITTEST::optional_fixed64_extension, 108);
960 message->SetExtension(UNITTEST::optional_sfixed32_extension, 109);
961 message->SetExtension(UNITTEST::optional_sfixed64_extension, 110);
[all …]
Dextension_set_unittest.cc147 message.SetExtension(unittest::optional_int64_extension, original_value); in TEST()
447 message1->SetExtension(unittest::optional_int32_extension, 1); in TEST()
448 message2->SetExtension(unittest::optional_int32_extension, 2); in TEST()
453 message1->SetExtension(unittest::optional_int32_extension, 101); in TEST()
454 message2->SetExtension(unittest::optional_int32_extension, 101); in TEST()
743 message.SetExtension(unittest::optional_##type##_extension, value); \ in TEST()
767 message.SetExtension(unittest::optional_nested_enum_extension, in TEST()
782 message.SetExtension(unittest::optional_string_extension, s); in TEST()
1158 message.SetExtension(unittest::optional_foreign_enum_extension, in TEST()
Dreflection_ops_unittest.cc131 message2.SetExtension( in TEST()
137 message2.SetExtension( in TEST()
140 message.SetExtension(unittest::optional_string_extension, "something else"); in TEST()
Dextension_set.h1432 inline void SetExtension( \
1503 inline void SetExtension( \
Darena_unittest.cc980 message_ext->SetExtension(protobuf_unittest::optional_int32_extension, 42); in TEST()
981 message_ext->SetExtension(protobuf_unittest::optional_string_extension, in TEST()
Dtest_util.h1240 message.SetExtension(unittest::my_extension_int, 23); // Field 5. in ExpectAllFieldsAndExtensionsInOrder()
1246 message.SetExtension(unittest::my_extension_string, "bar"); // Field 50. in ExpectAllFieldsAndExtensionsInOrder()
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DReflectionUtil.cs151 void SetExtension(IMessage message, object value); in SetExtension() method
264 public void SetExtension(IMessage message, object value) in SetExtension() method in Google.Protobuf.Reflection.ReflectionUtil.ExtensionReflectionHelper
275 extensionMessage.SetExtension(extension as Extension<T1, T3>, (T3)value); in SetExtension()
DExtensionAccessor.cs66 helper.SetExtension(message, value); in SetValue()
DDescriptor.cs2110 …public void SetExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension, TValue va… in SetExtension() method in Google.Protobuf.Reflection.ExtensionRangeOptions
5964 public void SetExtension<TValue>(pb::Extension<FileOptions, TValue> extension, TValue value) { in SetExtension() method in Google.Protobuf.Reflection.FileOptions
6450 … public void SetExtension<TValue>(pb::Extension<MessageOptions, TValue> extension, TValue value) { in SetExtension() method in Google.Protobuf.Reflection.MessageOptions
7019 public void SetExtension<TValue>(pb::Extension<FieldOptions, TValue> extension, TValue value) { in SetExtension() method in Google.Protobuf.Reflection.FieldOptions
7259 public void SetExtension<TValue>(pb::Extension<OneofOptions, TValue> extension, TValue value) { in SetExtension() method in Google.Protobuf.Reflection.OneofOptions
7578 public void SetExtension<TValue>(pb::Extension<EnumOptions, TValue> extension, TValue value) { in SetExtension() method in Google.Protobuf.Reflection.EnumOptions
7844 …public void SetExtension<TValue>(pb::Extension<EnumValueOptions, TValue> extension, TValue value) { in SetExtension() method in Google.Protobuf.Reflection.EnumValueOptions
8110 … public void SetExtension<TValue>(pb::Extension<ServiceOptions, TValue> extension, TValue value) { in SetExtension() method in Google.Protobuf.Reflection.ServiceOptions
8425 public void SetExtension<TValue>(pb::Extension<MethodOptions, TValue> extension, TValue value) { in SetExtension() method in Google.Protobuf.Reflection.MethodOptions
/third_party/protobuf/csharp/src/Google.Protobuf/
DIExtendableMessage.cs62 void SetExtension<TValue>(Extension<T, TValue> extension, TValue value); in SetExtension() method
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc126 message.SetExtension(protobuf_unittest::void_, 123); in TEST()
Dcpp_unittest.inc2185 message.SetExtension(
/third_party/node/deps/v8/tools/v8windbg/src/
Dv8windbg-extension.h31 static void SetExtension(std::unique_ptr<Extension> new_extension) { in SetExtension() function
Dv8windbg-extension.cc28 Extension::SetExtension(std::move(new_extension)); in CreateExtension()
33 void DestroyExtension() { Extension::SetExtension(nullptr); } in DestroyExtension()
/third_party/protobuf/docs/csharp/
Dproto2.md48 void SetExtension<TValue>(Extension<T, TValue> extension, TValue value);
92 foo.SetExtension(FooExt, new Baz());
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestSelfreferentialOptions.cs338 public void SetExtension<TValue>(pb::Extension<FooOptions, TValue> extension, TValue value) { in SetExtension() method in UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions
DUnittest.cs6189 …public void SetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension, TValue value)… in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestAllExtensions
7194 …public void SetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension, TValue value… in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestGroupExtension
10346 …public void SetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension, … in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions
10527 …public void SetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension, TVa… in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges
14879 …public void SetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension, TValue value… in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestFieldOrderings
23835 …public void SetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension, TValue val… in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestPackedExtensions
24016 …public void SetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension, TValue v… in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions
25342 …public void SetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension, TValue value) { in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestParsingMerge
28700 …public void SetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension, TValue val… in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers
29522 …public void SetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension, TValue… in SetExtension() method in Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable
DTestMessagesProto2.cs4710 …public void SetExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension, TValue value… in SetExtension() method in ProtobufTestMessages.Proto2.TestAllTypesProto2
5381 …public void SetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension, TValue value)… in SetExtension() method in ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect
/third_party/protobuf/src/google/protobuf/util/
Dmessage_differencer_unittest.cc743 msg1.SetExtension(unittest::optional_int32_extension, 101); in TEST()
744 msg2.SetExtension(unittest::optional_int32_extension, 102); in TEST()
3107 proto1ex_.SetExtension(unittest::optional_int32_extension, 401); in TEST_F()
3108 proto2ex_.SetExtension(unittest::optional_int32_extension, 402); in TEST_F()
3111 proto2ex_.SetExtension(unittest::optional_int64_extension, 403); in TEST_F()