Home
last modified time | relevance | path

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

/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DAnyPartial.cs56 internal static string GetTypeName(string typeUrl) in GetTypeName() argument
58 int lastSlash = typeUrl.LastIndexOf('/'); in GetTypeName()
59 return lastSlash == -1 ? "" : typeUrl.Substring(lastSlash + 1); in GetTypeName()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java570 String typeUrl = (String) message.getField(typeUrlField); in printAny() local
571 String typeName = getTypeName(typeUrl); in printAny()
575 "Cannot find type for url: " + typeUrl); in printAny()
586 generator.print("\"@type\": " + gson.toJson(typeUrl) + ",\n"); in printAny()
594 print(contentMessage, typeUrl); in printAny()
678 private void print(MessageOrBuilder message, String typeUrl) in print() argument
684 if (typeUrl != null) { in print()
685 generator.print("\"@type\": " + gson.toJson(typeUrl)); in print()
956 private static String getTypeName(String typeUrl) in getTypeName() argument
958 String[] parts = typeUrl.split("/"); in getTypeName()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs568 …string typeUrl = (string) value.Descriptor.Fields[Any.TypeUrlFieldNumber].Accessor.GetValue(value); in WriteAny()
570 string typeName = Any.GetTypeName(typeUrl); in WriteAny()
580 WriteString(writer, typeUrl); in WriteAny()
598 …string typeUrl = (string) value.Descriptor.Fields[Any.TypeUrlFieldNumber].Accessor.GetValue(value); in WriteDiagnosticOnlyAny()
603 WriteString(writer, typeUrl); in WriteDiagnosticOnlyAny()
DJsonParser.cs515 string typeUrl = token.StringValue; in MergeAny()
516 string typeName = Any.GetTypeName(typeUrl); in MergeAny()
539 message.Descriptor.Fields[Any.TypeUrlFieldNumber].Accessor.SetValue(message, typeUrl); in MergeAny()