Home
last modified time | relevance | path

Searched refs:IMessage (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DMessageParser.cs44 private Func<IMessage> factory;
46 internal MessageParser(Func<IMessage> factory) in MessageParser()
55 internal IMessage CreateTemplate() in CreateTemplate()
65 public IMessage ParseFrom(byte[] data) in ParseFrom()
68 IMessage message = factory(); in ParseFrom()
78 public IMessage ParseFrom(ByteString data) in ParseFrom()
81 IMessage message = factory(); in ParseFrom()
91 public IMessage ParseFrom(Stream input) in ParseFrom()
93 IMessage message = factory(); in ParseFrom()
107 public IMessage ParseDelimitedFrom(Stream input) in ParseDelimitedFrom()
[all …]
DMessageExtensions.cs47 public static void MergeFrom(this IMessage message, byte[] data) in MergeFrom()
61 public static void MergeFrom(this IMessage message, ByteString data) in MergeFrom()
75 public static void MergeFrom(this IMessage message, Stream input) in MergeFrom()
93 public static void MergeDelimitedFrom(this IMessage message, Stream input) in MergeDelimitedFrom()
107 public static byte[] ToByteArray(this IMessage message) in ToByteArray()
122 public static void WriteTo(this IMessage message, Stream output) in WriteTo()
136 public static void WriteDelimitedTo(this IMessage message, Stream output) in WriteDelimitedTo()
151 public static ByteString ToByteString(this IMessage message) in ToByteString()
DJsonFormatter.cs144 public string Format(IMessage message) in Format()
157 public void Format(IMessage message, TextWriter writer) in Format()
189 public static string ToDiagnosticString(IMessage message) in ToDiagnosticString()
195 private void WriteMessage(TextWriter writer, IMessage message) in WriteMessage()
216 … private bool WriteMessageFields(TextWriter writer, IMessage message, bool assumeFirstFieldWritten) in WriteMessageFields()
456 else if (value is IMessage) in WriteValue()
458 Format((IMessage)value, writer); in WriteValue()
488 if (value is IMessage) in WriteWellKnownTypeValue()
490 var message = (IMessage) value; in WriteWellKnownTypeValue()
498 WriteTimestamp(writer, (IMessage)value); in WriteWellKnownTypeValue()
[all …]
DIMessage.cs42 public interface IMessage interface
78 public interface IMessage<T> : IMessage, IEquatable<T>, IDeepCloneable<T> where T : IMessage<T> interface
DJsonParser.cs71 private static readonly Dictionary<string, Action<JsonParser, IMessage, JsonTokenizer>>
72 … WellKnownTypeHandlers = new Dictionary<string, Action<JsonParser, IMessage, JsonTokenizer>>
95 …private static void MergeWrapperField(JsonParser parser, IMessage message, JsonTokenizer tokenizer) in MergeWrapperField()
121 internal void Merge(IMessage message, string json) in Merge()
131 internal void Merge(IMessage message, TextReader jsonReader) in Merge()
149 private void Merge(IMessage message, JsonTokenizer tokenizer) in Merge()
157 Action<JsonParser, IMessage, JsonTokenizer> handler; in Merge()
214 private void MergeField(IMessage message, FieldDescriptor field, JsonTokenizer tokenizer) in MergeField()
246 … private void MergeRepeatedField(IMessage message, FieldDescriptor field, JsonTokenizer tokenizer) in MergeRepeatedField()
271 private void MergeMapField(IMessage message, FieldDescriptor field, JsonTokenizer tokenizer) in MergeMapField()
[all …]
DCodedOutputStream.ComputeSize.cs139 public static int ComputeGroupSize(IMessage value) in ComputeGroupSize()
148 public static int ComputeMessageSize(IMessage value) in ComputeMessageSize()
DICustomDiagnosticMessage.cs55 public interface ICustomDiagnosticMessage : IMessage
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Reflection/
DReflectionUtil.cs59 internal static Func<IMessage, object> CreateFuncIMessageObject(MethodInfo method) in CreateFuncIMessageObject()
61 ParameterExpression parameter = Expression.Parameter(typeof(IMessage), "p"); in CreateFuncIMessageObject()
65 return Expression.Lambda<Func<IMessage, object>>(upcast, parameter).Compile(); in CreateFuncIMessageObject()
72 internal static Func<IMessage, T> CreateFuncIMessageT<T>(MethodInfo method) in CreateFuncIMessageT()
74 ParameterExpression parameter = Expression.Parameter(typeof(IMessage), "p"); in CreateFuncIMessageT()
78 return Expression.Lambda<Func<IMessage, T>>(upcast, parameter).Compile(); in CreateFuncIMessageT()
85 internal static Action<IMessage, object> CreateActionIMessageObject(MethodInfo method) in CreateActionIMessageObject()
87 ParameterExpression targetParameter = Expression.Parameter(typeof(IMessage), "target"); in CreateActionIMessageObject()
92 … return Expression.Lambda<Action<IMessage, object>>(call, targetParameter, argParameter).Compile(); in CreateActionIMessageObject()
99 internal static Action<IMessage> CreateActionIMessage(MethodInfo method) in CreateActionIMessage()
[all …]
DFieldAccessorBase.cs44 private readonly Func<IMessage, object> getValueDelegate;
55 public object GetValue(IMessage message) in GetValue()
60 public abstract void Clear(IMessage message); in Clear()
61 public abstract void SetValue(IMessage message, object value); in SetValue()
DOneofAccessor.cs44 private readonly Func<IMessage, int> caseDelegate;
45 private readonly Action<IMessage> clearDelegate;
72 public void Clear(IMessage message) in Clear()
80 public FieldDescriptor GetCaseFieldDescriptor(IMessage message) in GetCaseFieldDescriptor()
DSingleFieldAccessor.cs49 private readonly Action<IMessage, object> setValueDelegate;
50 private readonly Action<IMessage> clearDelegate;
71 public override void Clear(IMessage message) in Clear()
76 public override void SetValue(IMessage message, object value) in SetValue()
DIFieldAccessor.cs52 void Clear(IMessage message); in Clear()
59 object GetValue(IMessage message); in GetValue()
69 void SetValue(IMessage message, object value); in SetValue()
DRepeatedFieldAccessor.cs48 public override void Clear(IMessage message) in Clear()
54 public override void SetValue(IMessage message, object value) in SetValue()
DMapFieldAccessor.cs48 public override void Clear(IMessage message) in Clear()
54 public override void SetValue(IMessage message, object value) in SetValue()
DDescriptor.cs177 internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
188 pbr::MessageDescriptor pb::IMessage.Descriptor {
289 internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
300 pbr::MessageDescriptor pb::IMessage.Descriptor {
704 internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
715 pbr::MessageDescriptor pb::IMessage.Descriptor {
1021 internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
1032 pbr::MessageDescriptor pb::IMessage.Descriptor {
1171 internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
1182 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.JsonDump/
DProgram.cs59 if (!typeof(IMessage).GetTypeInfo().IsAssignableFrom(type)) in Main()
64 IMessage message = (IMessage) Activator.CreateInstance(type); in Main()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/WellKnownTypes/
DAnyPartial.cs69 public T Unpack<T>() where T : IMessage, new() field in Google.Protobuf.WellKnownTypes.Any
88 public static Any Pack(IMessage message) => Pack(message, DefaultPrefix);
96 public static Any Pack(IMessage message, string typeUrlPrefix) in Pack()
DWrappers.cs58 public sealed partial class DoubleValue : pb::IMessage<DoubleValue> {
69 pbr::MessageDescriptor pb::IMessage.Descriptor {
183 public sealed partial class FloatValue : pb::IMessage<FloatValue> {
194 pbr::MessageDescriptor pb::IMessage.Descriptor {
308 public sealed partial class Int64Value : pb::IMessage<Int64Value> {
319 pbr::MessageDescriptor pb::IMessage.Descriptor {
433 public sealed partial class UInt64Value : pb::IMessage<UInt64Value> {
444 pbr::MessageDescriptor pb::IMessage.Descriptor {
558 public sealed partial class Int32Value : pb::IMessage<Int32Value> {
569 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
DStruct.cs78 public sealed partial class Struct : pb::IMessage<Struct> {
89 pbr::MessageDescriptor pb::IMessage.Descriptor {
198 public sealed partial class Value : pb::IMessage<Value> {
209 pbr::MessageDescriptor pb::IMessage.Descriptor {
532 public sealed partial class ListValue : pb::IMessage<ListValue> {
543 pbr::MessageDescriptor pb::IMessage.Descriptor {
DSourceContext.cs44 public sealed partial class SourceContext : pb::IMessage<SourceContext> {
55 pbr::MessageDescriptor pb::IMessage.Descriptor {
DFieldMask.cs241 public sealed partial class FieldMask : pb::IMessage<FieldMask> {
252 pbr::MessageDescriptor pb::IMessage.Descriptor {
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestIssues.cs85 public sealed partial class Issue307 : pb::IMessage<Issue307> {
96 pbr::MessageDescriptor pb::IMessage.Descriptor {
176 public sealed partial class NestedOnce : pb::IMessage<NestedOnce> {
187 pbr::MessageDescriptor pb::IMessage.Descriptor {
267 public sealed partial class NestedTwice : pb::IMessage<NestedTwice> {
278 pbr::MessageDescriptor pb::IMessage.Descriptor {
366 public sealed partial class NegativeEnumMessage : pb::IMessage<NegativeEnumMessage> {
377 pbr::MessageDescriptor pb::IMessage.Descriptor {
525 public sealed partial class DeprecatedChild : pb::IMessage<DeprecatedChild> {
536 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
DUnittestProto3.cs237 public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
248 pbr::MessageDescriptor pb::IMessage.Descriptor {
1601 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
1612 pbr::MessageDescriptor pb::IMessage.Descriptor {
1731 public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes> {
1742 pbr::MessageDescriptor pb::IMessage.Descriptor {
1908 public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields> {
1919 pbr::MessageDescriptor pb::IMessage.Descriptor {
2030 public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
2041 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/AddressBook/
DAddressbook.cs48 public sealed partial class Person : pb::IMessage<Person> {
59 pbr::MessageDescriptor pb::IMessage.Descriptor {
252 public sealed partial class PhoneNumber : pb::IMessage<PhoneNumber> {
263 pbr::MessageDescriptor pb::IMessage.Descriptor {
405 public sealed partial class AddressBook : pb::IMessage<AddressBook> {
416 pbr::MessageDescriptor pb::IMessage.Descriptor {
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs152 IMessage message = SampleMessages.CreateFullTestAllTypes(); in SetValue_SingleFields_WrongType()
160 IMessage message = new TestMap(); in SetValue_MapFields()
168 IMessage message = SampleMessages.CreateFullTestAllTypes(); in SetValue_RepeatedFields()
176 IMessage message = SampleMessages.CreateFullTestAllTypes(); in GetValue_IncorrectType()

12