Home
last modified time | relevance | path

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

123

/external/protobuf/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 …]
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()
448 else if (value is IMessage) in WriteValue()
450 IMessage message = (IMessage) value; in WriteValue()
457 WriteMessage(writer, (IMessage)value); in WriteValue()
488 if (value is IMessage) in WriteWellKnownTypeValue()
490 var message = (IMessage) value; in WriteWellKnownTypeValue()
[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()
DJsonParser.cs71 private static readonly Dictionary<string, Action<JsonParser, IMessage, JsonTokenizer>>
72 … WellKnownTypeHandlers = new Dictionary<string, Action<JsonParser, IMessage, JsonTokenizer>>
94 …private static void MergeWrapperField(JsonParser parser, IMessage message, JsonTokenizer tokenizer) in MergeWrapperField()
120 internal void Merge(IMessage message, string json) in Merge()
130 internal void Merge(IMessage message, TextReader jsonReader) in Merge()
148 private void Merge(IMessage message, JsonTokenizer tokenizer) in Merge()
156 Action<JsonParser, IMessage, JsonTokenizer> handler; in Merge()
213 private void MergeField(IMessage message, FieldDescriptor field, JsonTokenizer tokenizer) in MergeField()
245 … private void MergeRepeatedField(IMessage message, FieldDescriptor field, JsonTokenizer tokenizer) in MergeRepeatedField()
270 private void MergeMapField(IMessage message, FieldDescriptor field, JsonTokenizer tokenizer) in MergeMapField()
[all …]
DIMessage.cs42 public interface IMessage interface
78 public interface IMessage<T> : IMessage, IEquatable<T>, IDeepCloneable<T> where T : IMessage<T> interface
DCodedOutputStream.ComputeSize.cs139 public static int ComputeGroupSize(IMessage value) in ComputeGroupSize()
148 public static int ComputeMessageSize(IMessage value) in ComputeMessageSize()
/external/protobuf/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()
DMapFieldAccessor.cs48 public override void Clear(IMessage message) in Clear()
54 public override 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()
DDescriptor.cs175 internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
183 pbr::MessageDescriptor pb::IMessage.Descriptor {
273 internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
281 pbr::MessageDescriptor pb::IMessage.Descriptor {
663 internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
671 pbr::MessageDescriptor pb::IMessage.Descriptor {
957 internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
965 pbr::MessageDescriptor pb::IMessage.Descriptor {
1092 internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
1100 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DWrappers.cs60 public sealed partial class DoubleValue : pb::IMessage<DoubleValue> {
68 pbr::MessageDescriptor pb::IMessage.Descriptor {
171 public sealed partial class FloatValue : pb::IMessage<FloatValue> {
179 pbr::MessageDescriptor pb::IMessage.Descriptor {
282 public sealed partial class Int64Value : pb::IMessage<Int64Value> {
290 pbr::MessageDescriptor pb::IMessage.Descriptor {
393 public sealed partial class UInt64Value : pb::IMessage<UInt64Value> {
401 pbr::MessageDescriptor pb::IMessage.Descriptor {
504 public sealed partial class Int32Value : pb::IMessage<Int32Value> {
512 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
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()
DStruct.cs80 public sealed partial class Struct : pb::IMessage<Struct> {
88 pbr::MessageDescriptor pb::IMessage.Descriptor {
186 public sealed partial class Value : pb::IMessage<Value> {
194 pbr::MessageDescriptor pb::IMessage.Descriptor {
499 public sealed partial class ListValue : pb::IMessage<ListValue> {
507 pbr::MessageDescriptor pb::IMessage.Descriptor {
/external/testng/src/main/java/org/testng/remote/strprotocol/
DSerializedMessageSender.java21 public void sendMessage(IMessage message) throws IOException { in sendMessage()
33 public IMessage receiveMessage() throws IOException, ClassNotFoundException { in receiveMessage()
35 IMessage result = null; in receiveMessage()
39 result = (IMessage) ios.readObject(); in receiveMessage()
DStringMessageSender.java27 public void sendMessage(IMessage message) { in sendMessage()
75 public IMessage receiveMessage() { in receiveMessage()
76 IMessage result = null; in receiveMessage()
115 private IMessage receiveMessage(String message) { in receiveMessage()
117 IMessage result = null; in receiveMessage()
DMessageHub.java41 public void sendMessage(IMessage message) { in sendMessage()
49 public IMessage receiveMessage() { in receiveMessage()
50 IMessage result = null; in receiveMessage()
DIMessageSender.java28 void sendMessage(IMessage message) throws Exception; in sendMessage()
33 IMessage receiveMessage() throws Exception; in receiveMessage()
/external/protobuf/csharp/src/Google.Protobuf.JsonDump/
DProgram.cs58 if (!typeof(IMessage).IsAssignableFrom(type)) in Main()
63 IMessage message = (IMessage) Activator.CreateInstance(type); in Main()
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestIssues.cs87 public sealed partial class Issue307 : pb::IMessage<Issue307> {
95 pbr::MessageDescriptor pb::IMessage.Descriptor {
165 public sealed partial class NestedOnce : pb::IMessage<NestedOnce> {
173 pbr::MessageDescriptor pb::IMessage.Descriptor {
243 public sealed partial class NestedTwice : pb::IMessage<NestedTwice> {
251 pbr::MessageDescriptor pb::IMessage.Descriptor {
329 public sealed partial class NegativeEnumMessage : pb::IMessage<NegativeEnumMessage> {
337 pbr::MessageDescriptor pb::IMessage.Descriptor {
472 public sealed partial class DeprecatedChild : pb::IMessage<DeprecatedChild> {
480 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
DUnittestProto3.cs239 public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
247 pbr::MessageDescriptor pb::IMessage.Descriptor {
1540 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
1548 pbr::MessageDescriptor pb::IMessage.Descriptor {
1656 public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes> {
1664 pbr::MessageDescriptor pb::IMessage.Descriptor {
1817 public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields> {
1825 pbr::MessageDescriptor pb::IMessage.Descriptor {
1925 public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
1933 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
/external/protobuf/csharp/src/AddressBook/
DAddressbook.cs50 public sealed partial class Person : pb::IMessage<Person> {
58 pbr::MessageDescriptor pb::IMessage.Descriptor {
237 public sealed partial class PhoneNumber : pb::IMessage<PhoneNumber> {
245 pbr::MessageDescriptor pb::IMessage.Descriptor {
375 public sealed partial class AddressBook : pb::IMessage<AddressBook> {
383 pbr::MessageDescriptor pb::IMessage.Descriptor {

123