Searched refs:typeUrl (Results 1 – 8 of 8) sorted by relevance
63 public static string GetTypeName(string typeUrl) in GetTypeName() argument65 ProtoPreconditions.CheckNotNull(typeUrl, nameof(typeUrl)); in GetTypeName()66 int lastSlash = typeUrl.LastIndexOf('/'); in GetTypeName()67 return lastSlash == -1 ? "" : typeUrl.Substring(lastSlash + 1); in GetTypeName()
74 public final Descriptor getDescriptorForTypeUrl(String typeUrl) in getDescriptorForTypeUrl() argument76 return find(getTypeName(typeUrl)); in getDescriptorForTypeUrl()85 private static String getTypeName(String typeUrl) throws InvalidProtocolBufferException { in getTypeName() argument86 String[] parts = typeUrl.split("/"); in getTypeName()88 throw new InvalidProtocolBufferException("Invalid type url found: " + typeUrl); in getTypeName()
371 String typeUrl = (String) message.getField(typeUrlField); in printAny() local374 if (typeUrl.isEmpty()) { in printAny()381 Descriptor contentType = typeRegistry.getDescriptorForTypeUrl(typeUrl); in printAny()395 generator.print(typeUrl); in printAny()2181 String typeUrl = typeUrlBuilder.toString(); in mergeAnyFieldValue() local2184 contentType = typeRegistry.getDescriptorForTypeUrl(typeUrl); in mergeAnyFieldValue()2186 throw tokenizer.parseException("Invalid valid type URL. Found: " + typeUrl); in mergeAnyFieldValue()2191 + typeUrl in mergeAnyFieldValue()
193 let typeUrl;203 typeUrl = `${jsDataStructuresUrl}#${primitive}_type`;205 typeUrl = `${jsGlobalObjectsUrl}${typeText}`;207 typeUrl = customTypesMap[typeText];210 if (typeUrl) {212 `<a href="${typeUrl}" class="type"><${typeTextFull}></a>`);
124 public void GetTypeName(string typeUrl, string expectedTypeName) in GetTypeName() argument126 var any = new Any { TypeUrl = typeUrl }; in GetTypeName()127 Assert.AreEqual(expectedTypeName, Any.GetTypeName(typeUrl)); in GetTypeName()
530 Descriptor getDescriptorForTypeUrl(String typeUrl) throws InvalidProtocolBufferException { in getDescriptorForTypeUrl() argument531 return find(getTypeName(typeUrl)); in getDescriptorForTypeUrl()881 String typeUrl = (String) message.getField(typeUrlField); in printAny() local882 Descriptor type = registry.getDescriptorForTypeUrl(typeUrl); in printAny()884 type = oldRegistry.getDescriptorForTypeUrl(typeUrl); in printAny()886 throw new InvalidProtocolBufferException("Cannot find type for url: " + typeUrl); in printAny()892 WellKnownTypePrinter printer = wellKnownTypePrinters.get(getTypeName(typeUrl)); in printAny()898 generator.print("\"@type\":" + blankOrSpace + gson.toJson(typeUrl) + "," + blankOrNewLine); in printAny()906 print(contentMessage, typeUrl); in printAny()989 private void print(MessageOrBuilder message, String typeUrl) throws IOException { in print() argument[all …]
544 …string typeUrl = (string) value.Descriptor.Fields[Any.TypeUrlFieldNumber].Accessor.GetValue(value); in WriteAny()546 string typeName = Any.GetTypeName(typeUrl); in WriteAny()556 WriteString(writer, typeUrl); in WriteAny()574 …string typeUrl = (string) value.Descriptor.Fields[Any.TypeUrlFieldNumber].Accessor.GetValue(value); in WriteDiagnosticOnlyAny()579 WriteString(writer, typeUrl); in WriteDiagnosticOnlyAny()
534 string typeUrl = token.StringValue; in MergeAny()535 string typeName = Any.GetTypeName(typeUrl); in MergeAny()558 message.Descriptor.Fields[Any.TypeUrlFieldNumber].Accessor.SetValue(message, typeUrl); in MergeAny()