Home
last modified time | relevance | path

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

/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DAnyPartial.cs63 public static string GetTypeName(string typeUrl) in GetTypeName() argument
65 ProtoPreconditions.CheckNotNull(typeUrl, nameof(typeUrl)); in GetTypeName()
66 int lastSlash = typeUrl.LastIndexOf('/'); in GetTypeName()
67 return lastSlash == -1 ? "" : typeUrl.Substring(lastSlash + 1); in GetTypeName()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DTypeRegistry.java74 public final Descriptor getDescriptorForTypeUrl(String typeUrl) in getDescriptorForTypeUrl() argument
76 return find(getTypeName(typeUrl)); in getDescriptorForTypeUrl()
85 private static String getTypeName(String typeUrl) throws InvalidProtocolBufferException { in getTypeName() argument
86 String[] parts = typeUrl.split("/"); in getTypeName()
88 throw new InvalidProtocolBufferException("Invalid type url found: " + typeUrl); in getTypeName()
DTextFormat.java371 String typeUrl = (String) message.getField(typeUrlField); in printAny() local
374 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() local
2184 contentType = typeRegistry.getDescriptorForTypeUrl(typeUrl); in mergeAnyFieldValue()
2186 throw tokenizer.parseException("Invalid valid type URL. Found: " + typeUrl); in mergeAnyFieldValue()
2191 + typeUrl in mergeAnyFieldValue()
/third_party/node/tools/doc/
Dtype-parser.mjs193 let typeUrl;
203 typeUrl = `${jsDataStructuresUrl}#${primitive}_type`;
205 typeUrl = `${jsGlobalObjectsUrl}${typeText}`;
207 typeUrl = customTypesMap[typeText];
210 if (typeUrl) {
212 `<a href="${typeUrl}" class="type">&lt;${typeTextFull}&gt;</a>`);
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DAnyTest.cs124 public void GetTypeName(string typeUrl, string expectedTypeName) in GetTypeName() argument
126 var any = new Any { TypeUrl = typeUrl }; in GetTypeName()
127 Assert.AreEqual(expectedTypeName, Any.GetTypeName(typeUrl)); in GetTypeName()
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java530 Descriptor getDescriptorForTypeUrl(String typeUrl) throws InvalidProtocolBufferException { in getDescriptorForTypeUrl() argument
531 return find(getTypeName(typeUrl)); in getDescriptorForTypeUrl()
881 String typeUrl = (String) message.getField(typeUrlField); in printAny() local
882 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 …]
/third_party/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs544 …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()
DJsonParser.cs534 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()