| /third_party/protobuf/src/google/protobuf/ |
| H A D | any_lite.cc | 56 AnyMetadata::AnyMetadata(UrlType* type_url, ValueType* value) in AnyMetadata() argument 57 : type_url_(type_url), value_(value) {} in AnyMetadata() 97 StringPiece type_url = Get(type_url_); in InternalIs() local 98 return type_url.size() >= type_name.size() + 1 && in InternalIs() 99 type_url[type_url.size() - type_name.size() - 1] == '/' && in InternalIs() 100 HasSuffixString(type_url, type_name); in InternalIs() 103 bool ParseAnyTypeUrl(const std::string& type_url, std::string* url_prefix, in ParseAnyTypeUrl() argument 105 size_t pos = type_url.find_last_of("/"); in ParseAnyTypeUrl() 106 if (pos == std::string::npos || pos + 1 == type_url in ParseAnyTypeUrl() 116 ParseAnyTypeUrl(const std::string& type_url, std::string* full_type_name) ParseAnyTypeUrl() argument [all...] |
| H A D | any_test.cc | 92 EXPECT_EQ("type.myservice.com/protobuf_unittest.TestAny", any.type_url()); in TEST() 95 EXPECT_EQ("type.myservice.com/protobuf_unittest.TestAny", any.type_url()); in TEST() 98 EXPECT_EQ("/protobuf_unittest.TestAny", any.type_url()); in TEST() 138 const char* type_url = src.type_url().data(); in TEST() local 141 EXPECT_EQ(type_url, dst.type_url().data()); in TEST() 154 const char* type_url = src.type_url().data(); in TEST() local 158 EXPECT_EQ(type_url, ds in TEST() [all...] |
| H A D | any.h | 62 // AnyMetadata does not take ownership of "type_url" and "value". 63 AnyMetadata(UrlType* type_url, ValueType* value); 120 // Get the proto type name from Any::type_url value. For example, passing 122 // *full_type_name. Returns false if the type_url does not have a "/" 127 bool ParseAnyTypeUrl(const std::string& type_url, std::string* full_type_name); 129 // Get the proto type name and prefix from Any::type_url value. For example, 132 // *full_type_name. Returns false if the type_url does not have a "/" in the 134 bool ParseAnyTypeUrl(const std::string& type_url, std::string* url_prefix, 138 // for "type_url" and "value" fields.
|
| H A D | any.pb.h | 144 static bool ParseAnyTypeUrl(const string& type_url, 218 // string type_url = 1; 220 const std::string& type_url() const; 227 void set_allocated_type_url(std::string* type_url); 274 // string type_url = 1; 278 inline const std::string& Any::type_url() const { in type_url() function in Any 279 // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url) in type_url() 284 // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url) in set_type_url() 287 // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url) in mutable_type_url() 301 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Any.type_url) in set_type_url() 325 set_allocated_type_url(std::string* type_url) set_allocated_type_url() argument 331 type_url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_url, set_allocated_type_url() local [all...] |
| H A D | any.pb.cc | 60 "obuf\"&\n\003Any\022\020\n\010type_url\030\001 \001(\t\022\r\n\005value\030\002" 94 bool Any::ParseAnyTypeUrl(const string& type_url, in ParseAnyTypeUrl() argument 96 return ::PROTOBUF_NAMESPACE_ID::internal::ParseAnyTypeUrl(type_url, in ParseAnyTypeUrl() 180 // string type_url = 1; in _InternalParse() 185 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Any.type_url")); in _InternalParse() 225 // string type_url = 1; in _InternalSerialize() 226 if (this->type_url().size() > 0) { in _InternalSerialize() 230 "google.protobuf.Any.type_url"); in _InternalSerialize() 257 // string type_url = 1; in ByteSizeLong() 258 if (this->type_url() in ByteSizeLong() [all...] |
| /third_party/protobuf/php/src/Google/Protobuf/ |
| H A D | Any.php | 105 * Generated from protobuf field <code>string type_url = 1;</code> 107 private $type_url = ''; variable 123 * @type string $type_url 179 * Generated from protobuf field <code>string type_url = 1;</code> 184 return $this->type_url; 211 * Generated from protobuf field <code>string type_url = 1;</code> 218 $this->type_url = $var; variable 250 * This method will try to resolve the type_url in Any message to get the 263 if (substr($this->type_url, 0, $url_prifix_len) != 269 substr($this->type_url, 306 $this->type_url = GPBUtil::TYPE_URL_PREFIX . $fully_qualifed_name; global() variable 319 $type_url = GPBUtil::TYPE_URL_PREFIX . $fully_qualifed_name; global() variable 320 return $this->type_url === $type_url; global() variable [all...] |
| H A D | Field.php | 46 * Generated from protobuf field <code>string type_url = 6;</code> 48 private $type_url = ''; variable 95 * @type string $type_url 224 * Generated from protobuf field <code>string type_url = 6;</code> 229 return $this->type_url; 236 * Generated from protobuf field <code>string type_url = 6;</code> 243 $this->type_url = $var; variable
|
| /third_party/protobuf/src/google/protobuf/util/ |
| H A D | json_util.h | 122 TypeResolver* resolver, const std::string& type_url, 127 TypeResolver* resolver, const std::string& type_url, in BinaryToJsonStream() 130 return BinaryToJsonStream(resolver, type_url, binary_input, json_output, in BinaryToJsonStream() 135 TypeResolver* resolver, const std::string& type_url, 140 const std::string& type_url, in BinaryToJsonString() 143 return BinaryToJsonString(resolver, type_url, binary_input, json_output, in BinaryToJsonString() 153 TypeResolver* resolver, const std::string& type_url, 158 TypeResolver* resolver, const std::string& type_url, in JsonToBinaryStream() 161 return JsonToBinaryStream(resolver, type_url, json_input, binary_output, in JsonToBinaryStream() 166 TypeResolver* resolver, const std::string& type_url, 126 BinaryToJsonStream( TypeResolver* resolver, const std::string& type_url, io::ZeroCopyInputStream* binary_input, io::ZeroCopyOutputStream* json_output) BinaryToJsonStream() argument 139 BinaryToJsonString(TypeResolver* resolver, const std::string& type_url, const std::string& binary_input, std::string* json_output) BinaryToJsonString() argument 157 JsonToBinaryStream( TypeResolver* resolver, const std::string& type_url, io::ZeroCopyInputStream* json_input, io::ZeroCopyOutputStream* binary_output) JsonToBinaryStream() argument 170 JsonToBinaryString(TypeResolver* resolver, const std::string& type_url, StringPiece json_input, std::string* binary_output) JsonToBinaryString() argument [all...] |
| H A D | json_util.cc | 85 const std::string& type_url, in BinaryToJsonStream() 91 RETURN_IF_ERROR(resolver->ResolveMessageType(type_url, &type)); in BinaryToJsonStream() 113 const std::string& type_url, in BinaryToJsonString() 119 return BinaryToJsonStream(resolver, type_url, &input_stream, &output_stream, in BinaryToJsonString() 176 const std::string& type_url, in JsonToBinaryStream() 181 RETURN_IF_ERROR(resolver->ResolveMessageType(type_url, &type)); in JsonToBinaryStream() 207 const std::string& type_url, in JsonToBinaryString() 213 return JsonToBinaryStream(resolver, type_url, &input_stream, &output_stream, in JsonToBinaryString() 84 BinaryToJsonStream(TypeResolver* resolver, const std::string& type_url, io::ZeroCopyInputStream* binary_input, io::ZeroCopyOutputStream* json_output, const JsonPrintOptions& options) BinaryToJsonStream() argument 112 BinaryToJsonString(TypeResolver* resolver, const std::string& type_url, const std::string& binary_input, std::string* json_output, const JsonPrintOptions& options) BinaryToJsonString() argument 175 JsonToBinaryStream(TypeResolver* resolver, const std::string& type_url, io::ZeroCopyInputStream* json_input, io::ZeroCopyOutputStream* binary_output, const JsonParseOptions& options) JsonToBinaryStream() argument 206 JsonToBinaryString(TypeResolver* resolver, const std::string& type_url, StringPiece json_input, std::string* binary_output, const JsonParseOptions& options) JsonToBinaryString() argument
|
| H A D | type_resolver_util.cc | 76 Status ResolveMessageType(const std::string& type_url, Type* type) override { 78 Status status = ParseTypeUrl(type_url, &type_name); 92 Status ResolveEnumType(const std::string& type_url, 95 Status status = ParseTypeUrl(type_url, &type_name); 308 Status ParseTypeUrl(const std::string& type_url, std::string* type_name) { in ParseTypeUrl() argument 309 if (type_url.substr(0, url_prefix_.size() + 1) != url_prefix_ + "/") { in ParseTypeUrl() 313 url_prefix_, "/<typename>', got: ", type_url)); in ParseTypeUrl() 315 *type_name = type_url.substr(url_prefix_.size() + 1); in ParseTypeUrl()
|
| H A D | type_resolver.h | 59 const std::string& type_url, google::protobuf::Type* message_type) = 0; 62 virtual util::Status ResolveEnumType(const std::string& type_url,
|
| /third_party/skia/third_party/externals/abseil-cpp/absl/status/ |
| H A D | status.cc | 78 absl::string_view type_url) { in FindPayloadIndexByUrl() 82 if ((*payloads)[i].type_url == type_url) return i; in FindPayloadIndexByUrl() 117 absl::string_view type_url) const { in GetPayload() 119 int index = status_internal::FindPayloadIndexByUrl(payloads, type_url); in GetPayload() 125 void Status::SetPayload(absl::string_view type_url, absl::Cord payload) { in SetPayload() argument 136 status_internal::FindPayloadIndexByUrl(rep->payloads.get(), type_url); in SetPayload() 142 rep->payloads->push_back({std::string(type_url), std::move(payload)}); in SetPayload() 145 bool Status::ErasePayload(absl::string_view type_url) { in ErasePayload() argument 146 int index = status_internal::FindPayloadIndexByUrl(GetPayloads(), type_url); in ErasePayload() 77 FindPayloadIndexByUrl(const Payloads* payloads, absl::string_view type_url) FindPayloadIndexByUrl() argument [all...] |
| /third_party/protobuf/src/google/protobuf/util/internal/ |
| H A D | type_info_test_helper.cc | 89 io::CodedInputStream* coded_input, const std::string& type_url) { in NewProtoSource() 90 const google::protobuf::Type* type = typeinfo_->GetTypeByTypeUrl(type_url); in NewProtoSource() 102 const std::string& type_url, strings::ByteSink* output, in NewProtoWriter() 104 const google::protobuf::Type* type = typeinfo_->GetTypeByTypeUrl(type_url); in NewProtoWriter() 116 const std::string& type_url, ObjectWriter* writer) { in NewDefaultValueWriter() 117 const google::protobuf::Type* type = typeinfo_->GetTypeByTypeUrl(type_url); in NewDefaultValueWriter() 88 NewProtoSource( io::CodedInputStream* coded_input, const std::string& type_url) NewProtoSource() argument 101 NewProtoWriter( const std::string& type_url, strings::ByteSink* output, ErrorListener* listener, const ProtoStreamObjectWriter::Options& options) NewProtoWriter() argument 115 NewDefaultValueWriter( const std::string& type_url, ObjectWriter* writer) NewDefaultValueWriter() argument
|
| H A D | type_info.cc | 62 StringPiece type_url) const override { 64 cached_types_.find(type_url); 71 *string_storage_.insert(std::string(type_url)).first; 82 StringPiece type_url) const override { 83 StatusOrType result = ResolveTypeUrl(type_url); 88 StringPiece type_url) const override { 90 cached_enums_.find(type_url); 97 *string_storage_.insert(std::string(type_url)).first;
|
| H A D | type_info.h | 61 StringPiece type_url) const = 0; 68 StringPiece type_url) const = 0; 75 StringPiece type_url) const = 0;
|
| H A D | type_info_test_helper.h | 75 const std::string& type_url); 78 const std::string& type_url, strings::ByteSink* output, 81 DefaultValueObjectWriter* NewDefaultValueWriter(const std::string& type_url,
|
| H A D | utility.cc | 127 const StringPiece GetTypeWithoutUrl(StringPiece type_url) { in GetTypeWithoutUrl() argument 128 if (type_url.size() > kTypeUrlSize && type_url[kTypeUrlSize] == '/') { in GetTypeWithoutUrl() 129 return type_url.substr(kTypeUrlSize + 1); in GetTypeWithoutUrl() 131 size_t idx = type_url.rfind('/'); in GetTypeWithoutUrl() 132 if (idx != type_url.npos) { in GetTypeWithoutUrl() 133 type_url.remove_prefix(idx + 1); in GetTypeWithoutUrl() 135 return type_url; in GetTypeWithoutUrl()
|
| H A D | protostream_objectsource.cc | 280 typeinfo_->GetTypeByTypeUrl(field->type_url()); in RenderMap() 600 // An Any is of the form { string type_url = 1; bytes value = 2; } in RenderAny() 602 std::string type_url; in RenderAny() local 605 // First read out the type_url and value from the proto stream in RenderAny() 612 // 'type_url' has field number of 1 and 'value' has field number 2 in RenderAny() 615 // read type_url in RenderAny() 618 os->stream_->ReadString(&type_url, type_url_size); in RenderAny() 631 if (!type_url.empty()) { in RenderAny() 632 ow->RenderString("@type", type_url); in RenderAny() 639 if (type_url in RenderAny() 760 FindTypeRenderer(const std::string& type_url) FindTypeRenderer() argument [all...] |
| H A D | protostream_objectwriter.cc | 401 // Render the type_url and value fields directly to the stream. in WriteAny() 402 // type_url has tag 1 and value has tag 2. in WriteAny() 1146 field->type_url() != kStructNullValueTypeUrl) { in RenderDataPiece() 1157 const TypeRenderer* type_renderer = FindTypeRenderer(field->type_url()); in RenderDataPiece() 1166 InvalidValue(field->type_url(), in RenderDataPiece() 1176 field->type_url() != kStructNullValueTypeUrl) { in RenderDataPiece() 1191 const TypeRenderer* type_renderer = FindTypeRenderer(field->type_url()); in RenderDataPiece() 1196 field->type_url() == kStructValueTypeUrl) { in RenderDataPiece() 1200 InvalidValue(field->type_url(), in RenderDataPiece() 1211 field->type_url() ! in RenderDataPiece() 1281 FindTypeRenderer(const std::string& type_url) FindTypeRenderer() argument [all...] |
| H A D | default_value_objectwriter.cc | 289 typeinfo->ResolveTypeUrl(sub_field.type_url()); in GetMapValueType() 291 GOOGLE_LOG(WARNING) << "Cannot resolve type '" << sub_field.type_url() << "'."; in GetMapValueType() 352 typeinfo->ResolveTypeUrl(field.type_url()); in PopulateChildren() 355 GOOGLE_LOG(WARNING) << "Cannot resolve type '" << field.type_url() << "'."; in PopulateChildren() 420 typeinfo->GetEnumByTypeUrl(field.type_url()); in FindEnumDefault() 422 GOOGLE_LOG(WARNING) << "Could not find enum with type '" << field.type_url() in FindEnumDefault()
|
| H A D | proto_writer.cc | 480 field->type_url())); in StartObject() 523 field->type_url())); in StartList() 554 field->type_url())); in RenderDataPiece() 632 InvalidValue(field.type_url().empty() in RenderPrimitiveField() 634 : field.type_url(), in RenderPrimitiveField() 703 field.number(), data, typeinfo_->GetEnumByTypeUrl(field.type_url()), in RenderPrimitiveField() 778 ? typeinfo_->GetTypeByTypeUrl(field->type_url()) in LookupType()
|
| /third_party/protobuf/python/google/protobuf/ |
| H A D | json_format.py | 329 type_url = message.type_url 330 js['@type'] = type_url 331 sub_message = _CreateMessageFromTypeUrl(type_url, self.descriptor_pool) 397 def _CreateMessageFromTypeUrl(type_url, descriptor_pool): 401 type_name = type_url.split('/')[-1] 406 'Can not find message descriptor by type_url: {0}.'.format(type_url)) 605 type_url = value['@type'] 609 sub_message = _CreateMessageFromTypeUrl(type_url, sel [all...] |
| /third_party/protobuf/conformance/ |
| H A D | conformance_cpp.cc | 71 string* type_url; variable 128 Status status = JsonToBinaryString(type_resolver, *type_url, in DoTest() 182 Status status = BinaryToJsonString(type_resolver, *type_url, proto_binary, in DoTest() 255 type_url = new string(GetTypeUrl(TestAllTypesProto3::descriptor())); in main()
|
| /third_party/skia/third_party/externals/abseil-cpp/absl/status/internal/ |
| H A D | status_internal.h | 42 std::string type_url; member
|
| /third_party/protobuf/python/google/protobuf/internal/ |
| H A D | well_known_types.py | 76 self.type_url = '%s/%s' % (type_url_prefix, msg.DESCRIPTOR.full_name) 78 self.type_url = '%s%s' % (type_url_prefix, msg.DESCRIPTOR.full_name) 92 return self.type_url.split('/')[-1] 96 return '/' in self.type_url and self.TypeName() == descriptor.full_name
|