Searched refs:typeUrl (Results 1 – 4 of 4) sorted by relevance
56 internal static string GetTypeName(string typeUrl) in GetTypeName() argument58 int lastSlash = typeUrl.LastIndexOf('/'); in GetTypeName()59 return lastSlash == -1 ? "" : typeUrl.Substring(lastSlash + 1); in GetTypeName()
570 String typeUrl = (String) message.getField(typeUrlField); in printAny() local571 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() argument684 if (typeUrl != null) { in print()685 generator.print("\"@type\": " + gson.toJson(typeUrl)); in print()956 private static String getTypeName(String typeUrl) in getTypeName() argument958 String[] parts = typeUrl.split("/"); in getTypeName()[all …]
568 …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()
515 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()