Home
last modified time | relevance | path

Searched refs:extensionValue (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DCustomOptions.cs214 IExtensionValue extensionValue; field in Google.Protobuf.Reflection.CustomOptions
215 if (values.TryGetValue(field, out extensionValue))
217 if (extensionValue is ExtensionValue<T>)
219 ExtensionValue<T> single = extensionValue as ExtensionValue<T>;
225 else if (extensionValue is RepeatedExtensionValue<T>)
227 … RepeatedExtensionValue<T> repeated = extensionValue as RepeatedExtensionValue<T>;
251 IExtensionValue extensionValue; in TryGetPrimitiveValue()
252 if (values.TryGetValue(field, out extensionValue)) in TryGetPrimitiveValue()
254 if (extensionValue is ExtensionValue<T>) in TryGetPrimitiveValue()
256 ExtensionValue<T> single = extensionValue as ExtensionValue<T>; in TryGetPrimitiveValue()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DExtensionSet.cs118 IExtensionValue extensionValue;
121 extensionValue = extension.CreateValue();
123 set.ValuesByNumber.Add(extension.FieldNumber, extensionValue);
127 if (!set.ValuesByNumber.TryGetValue(extension.FieldNumber, out extensionValue))
129 extensionValue = extension.CreateValue();
130 set.ValuesByNumber.Add(extension.FieldNumber, extensionValue);
134 ((ExtensionValue<TValue>)extensionValue).SetValue(value);
187 IExtensionValue extensionValue;
188 if (set != null && set.ValuesByNumber.TryGetValue(lastFieldNumber, out extensionValue))
190 extensionValue.MergeFrom(stream);
DExtensionValue.cs110 var extensionValue = value as ExtensionValue<T>; in MergeFrom()
111 if (extensionValue.hasValue) in MergeFrom()
113 hasValue |= codec.FieldMerger(ref field, extensionValue.field); in MergeFrom()
/external/protobuf/objectivec/Tests/
DGPBMessageTests.m1592 TestAllTypes_OptionalGroup *extensionValue =
1594 extensionValue.a = 1;