/external/protobuf/src/google/protobuf/ |
D | any_lite.cc | 57 AnyMetadata::AnyMetadata(UrlType* type_url, ValueType* value) in AnyMetadata() argument 58 : type_url_(type_url), value_(value) {} in AnyMetadata() 98 StringPiece type_url = Get(type_url_); in InternalIs() local 99 return type_url.size() >= type_name.size() + 1 && in InternalIs() 100 type_url[type_url.size() - type_name.size() - 1] == '/' && in InternalIs() 101 HasSuffixString(type_url, type_name); in InternalIs() 104 bool ParseAnyTypeUrl(const std::string& type_url, std::string* url_prefix, in ParseAnyTypeUrl() argument 106 size_t pos = type_url.find_last_of("/"); in ParseAnyTypeUrl() 107 if (pos == std::string::npos || pos + 1 == type_url.size()) { in ParseAnyTypeUrl() 111 *url_prefix = type_url.substr(0, pos + 1); in ParseAnyTypeUrl() [all …]
|
D | any_test.cc | 93 EXPECT_EQ("type.myservice.com/protobuf_unittest.TestAny", any.type_url()); in TEST() 96 EXPECT_EQ("type.myservice.com/protobuf_unittest.TestAny", any.type_url()); in TEST() 99 EXPECT_EQ("/protobuf_unittest.TestAny", any.type_url()); in TEST() 139 const char* type_url = src.type_url().data(); in TEST() local 142 EXPECT_EQ(type_url, dst.type_url().data()); in TEST() 155 const char* type_url = src.type_url().data(); in TEST() local 159 EXPECT_EQ(type_url, dst.type_url().data()); in TEST()
|
D | any.pb.cc | 108 bool Any::ParseAnyTypeUrl(const string& type_url, in ParseAnyTypeUrl() argument 110 return ::PROTOBUF_NAMESPACE_ID::internal::ParseAnyTypeUrl(type_url, in ParseAnyTypeUrl() 129 if (!from.type_url().empty()) { in Any() 233 this->type_url().data(), static_cast<int>(this->type_url().length()), in MergePartialFromCodedStream() 281 if (this->type_url().size() > 0) { in SerializeWithCachedSizes() 283 this->type_url().data(), static_cast<int>(this->type_url().length()), in SerializeWithCachedSizes() 287 1, this->type_url(), output); in SerializeWithCachedSizes() 310 if (this->type_url().size() > 0) { in InternalSerializeWithCachedSizesToArray() 312 this->type_url().data(), static_cast<int>(this->type_url().length()), in InternalSerializeWithCachedSizesToArray() 317 1, this->type_url(), target); in InternalSerializeWithCachedSizesToArray() [all …]
|
D | any.pb.h | 127 static bool ParseAnyTypeUrl(const string& type_url, 203 const std::string& type_url() const; 210 void set_allocated_type_url(std::string* type_url); 249 inline const std::string& Any::type_url() const { in type_url() function 286 inline void Any::set_allocated_type_url(std::string* type_url) { in set_allocated_type_url() argument 287 if (type_url != nullptr) { in set_allocated_type_url() 292 …_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_url); in set_allocated_type_url()
|
D | any.h | 63 AnyMetadata(UrlType* type_url, ValueType* value); 127 bool ParseAnyTypeUrl(const std::string& type_url, std::string* full_type_name); 134 bool ParseAnyTypeUrl(const std::string& type_url, std::string* url_prefix,
|
/external/protobuf/src/google/protobuf/util/ |
D | json_util.h | 122 TypeResolver* resolver, const std::string& type_url, 127 TypeResolver* resolver, const std::string& type_url, in BinaryToJsonStream() argument 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() argument 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() argument 161 return JsonToBinaryStream(resolver, type_url, json_input, binary_output, in JsonToBinaryStream() 166 TypeResolver* resolver, const std::string& type_url, [all …]
|
D | json_util.cc | 86 const std::string& type_url, in BinaryToJsonStream() argument 92 RETURN_IF_ERROR(resolver->ResolveMessageType(type_url, &type)); in BinaryToJsonStream() 114 const std::string& type_url, in BinaryToJsonString() argument 120 return BinaryToJsonStream(resolver, type_url, &input_stream, &output_stream, in BinaryToJsonString() 177 const std::string& type_url, in JsonToBinaryStream() argument 182 RETURN_IF_ERROR(resolver->ResolveMessageType(type_url, &type)); in JsonToBinaryStream() 208 const std::string& type_url, in JsonToBinaryString() argument 214 return JsonToBinaryStream(resolver, type_url, &input_stream, &output_stream, in JsonToBinaryString()
|
/external/protobuf/php/src/Google/Protobuf/ |
D | Any.php | 107 private $type_url = ''; variable in Google\\Protobuf\\Any 184 return $this->type_url; 218 $this->type_url = $var; 263 if (substr($this->type_url, 0, $url_prifix_len) != 269 substr($this->type_url, $url_prifix_len); 306 $this->type_url = GPBUtil::TYPE_URL_PREFIX.substr( 320 $type_url = GPBUtil::TYPE_URL_PREFIX.substr( 322 return $this->type_url === $type_url;
|
/external/rust/crates/protobuf/src/well_known_types/ |
D | any.rs | 26 pub type_url: ::std::string::String, field 50 &self.type_url in get_type_url() 53 self.type_url.clear(); in clear_type_url() 58 self.type_url = v; in set_type_url() 64 &mut self.type_url in mut_type_url() 69 ::std::mem::replace(&mut self.type_url, ::std::string::String::new()) in take_type_url() 109 crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.type_url)?; in merge_from() 126 if !self.type_url.is_empty() { in compute_size() 127 my_size += crate::rt::string_size(1, &self.type_url); in compute_size() 138 if !self.type_url.is_empty() { in write_to_with_cached_sizes() [all …]
|
/external/rust/crates/protobuf/src/ |
D | any.rs | 8 fn type_url(type_url_prefix: &str, descriptor: &MessageDescriptor) -> String { in type_url() method 12 fn get_type_name_from_type_url(type_url: &str) -> Option<&str> { in get_type_name_from_type_url() 13 match type_url.rfind('/') { in get_type_name_from_type_url() 14 Some(i) => Some(&type_url[i + 1..]), in get_type_name_from_type_url() 64 type_url: Any::type_url(type_url_prefix, message.descriptor()), in pack_with_type_url_prefix() 77 match Any::get_type_name_from_type_url(&self.type_url) { in is_dyn()
|
/external/rust/crates/protobuf/src/well_known_types_util/ |
D | any.rs | 7 fn type_url(type_url_prefix: &str, descriptor: &MessageDescriptor) -> String { in type_url() method 11 fn get_type_name_from_type_url(type_url: &str) -> Option<&str> { in get_type_name_from_type_url() 12 match type_url.rfind('/') { in get_type_name_from_type_url() 13 Some(i) => Some(&type_url[i + 1..]), in get_type_name_from_type_url() 63 type_url: Any::type_url(type_url_prefix, message.descriptor()), in pack_with_type_url_prefix() 76 match Any::get_type_name_from_type_url(&self.type_url) { in is_dyn()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | type_info_test_helper.cc | 89 io::CodedInputStream* coded_input, const std::string& type_url) { in NewProtoSource() argument 90 const google::protobuf::Type* type = typeinfo_->GetTypeByTypeUrl(type_url); in NewProtoSource() 102 const std::string& type_url, strings::ByteSink* output, in NewProtoWriter() argument 104 const google::protobuf::Type* type = typeinfo_->GetTypeByTypeUrl(type_url); in NewProtoWriter() 116 const std::string& type_url, ObjectWriter* writer) { in NewDefaultValueWriter() argument 117 const google::protobuf::Type* type = typeinfo_->GetTypeByTypeUrl(type_url); in NewDefaultValueWriter()
|
D | type_info.cc | 62 StringPiece type_url) const override { in ResolveTypeUrl() 64 cached_types_.find(type_url); in ResolveTypeUrl() 71 *string_storage_.insert(std::string(type_url)).first; in ResolveTypeUrl() 82 StringPiece type_url) const override { in GetTypeByTypeUrl() 83 StatusOrType result = ResolveTypeUrl(type_url); in GetTypeByTypeUrl() 88 StringPiece type_url) const override { in GetEnumByTypeUrl() 90 cached_enums_.find(type_url); in GetEnumByTypeUrl() 97 *string_storage_.insert(std::string(type_url)).first; in GetEnumByTypeUrl()
|
D | type_info.h | 60 StringPiece type_url) const = 0; 67 StringPiece type_url) const = 0; 74 StringPiece type_url) const = 0;
|
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,
|
D | utility.cc | 124 const StringPiece GetTypeWithoutUrl(StringPiece type_url) { in GetTypeWithoutUrl() argument 125 if (type_url.size() > kTypeUrlSize && type_url[kTypeUrlSize] == '/') { in GetTypeWithoutUrl() 126 return type_url.substr(kTypeUrlSize + 1); in GetTypeWithoutUrl() 128 size_t idx = type_url.rfind('/'); in GetTypeWithoutUrl() 129 if (idx != type_url.npos) { in GetTypeWithoutUrl() 130 type_url.remove_prefix(idx + 1); in GetTypeWithoutUrl() 132 return type_url; in GetTypeWithoutUrl()
|
/external/libtextclassifier/abseil-cpp/absl/status/ |
D | status.cc | 78 absl::string_view type_url) { in FindPayloadIndexByUrl() argument 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() 175 visitor(elem.type_url, elem.payload); in ForEachPayload() [all …]
|
/external/openscreen/third_party/abseil/src/absl/status/ |
D | status.cc | 78 absl::string_view type_url) { in FindPayloadIndexByUrl() argument 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() 175 visitor(elem.type_url, elem.payload); in ForEachPayload() [all …]
|
/external/abseil-cpp/absl/status/ |
D | status.cc | 80 absl::string_view type_url) { in FindPayloadIndexByUrl() argument 84 if ((*payloads)[i].type_url == type_url) return i; in FindPayloadIndexByUrl() 119 absl::string_view type_url) const { in GetPayload() 121 int index = status_internal::FindPayloadIndexByUrl(payloads, type_url); in GetPayload() 127 void Status::SetPayload(absl::string_view type_url, absl::Cord payload) { in SetPayload() argument 138 status_internal::FindPayloadIndexByUrl(rep->payloads.get(), type_url); in SetPayload() 144 rep->payloads->push_back({std::string(type_url), std::move(payload)}); in SetPayload() 147 bool Status::ErasePayload(absl::string_view type_url) { in ErasePayload() argument 148 int index = status_internal::FindPayloadIndexByUrl(GetPayloads(), type_url); in ErasePayload() 177 visitor(elem.type_url, elem.payload); in ForEachPayload() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/status/ |
D | status.cc | 78 absl::string_view type_url) { in FindPayloadIndexByUrl() argument 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() 175 visitor(elem.type_url, elem.payload); in ForEachPayload() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/status/ |
D | status.cc | 80 absl::string_view type_url) { in FindPayloadIndexByUrl() argument 84 if ((*payloads)[i].type_url == type_url) return i; in FindPayloadIndexByUrl() 119 absl::string_view type_url) const { in GetPayload() 121 int index = status_internal::FindPayloadIndexByUrl(payloads, type_url); in GetPayload() 127 void Status::SetPayload(absl::string_view type_url, absl::Cord payload) { in SetPayload() argument 138 status_internal::FindPayloadIndexByUrl(rep->payloads.get(), type_url); in SetPayload() 144 rep->payloads->push_back({std::string(type_url), std::move(payload)}); in SetPayload() 147 bool Status::ErasePayload(absl::string_view type_url) { in ErasePayload() argument 148 int index = status_internal::FindPayloadIndexByUrl(GetPayloads(), type_url); in ErasePayload() 177 visitor(elem.type_url, elem.payload); in ForEachPayload() [all …]
|
/external/angle/third_party/abseil-cpp/absl/status/ |
D | status.cc | 78 absl::string_view type_url) { in FindPayloadIndexByUrl() argument 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() 175 visitor(elem.type_url, elem.payload); in ForEachPayload() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/xds/ |
D | xds_client.cc | 135 void Subscribe(const std::string& type_url, const std::string& name); 136 void Unsubscribe(const std::string& type_url, const std::string& name, 144 ResourceState(const std::string& type_url, const std::string& name, in ResourceState() argument 146 : type_url_(type_url), in ResourceState() 251 void SendMessageLocked(const std::string& type_url); 268 const std::string& type_url); 533 void XdsClient::ChannelState::Subscribe(const std::string& type_url, in Subscribe() argument 548 ads_calld()->Subscribe(type_url, name); in Subscribe() 551 void XdsClient::ChannelState::Unsubscribe(const std::string& type_url, in Unsubscribe() argument 557 calld->Unsubscribe(type_url, name, delay_unsubscription); in Unsubscribe() [all …]
|
D | xds_api.cc | 727 bool IsLds(absl::string_view type_url) { in IsLds() argument 728 return type_url == XdsApi::kLdsTypeUrl || type_url == kLdsV2TypeUrl; in IsLds() 731 bool IsRds(absl::string_view type_url) { in IsRds() argument 732 return type_url == XdsApi::kRdsTypeUrl || type_url == kRdsV2TypeUrl; in IsRds() 735 bool IsCds(absl::string_view type_url) { in IsCds() argument 736 return type_url == XdsApi::kCdsTypeUrl || type_url == kCdsV2TypeUrl; in IsCds() 739 bool IsEds(absl::string_view type_url) { in IsEds() argument 740 return type_url == XdsApi::kEdsTypeUrl || type_url == kEdsV2TypeUrl; in IsEds() 929 const std::string& type_url) { in TypeUrlExternalToInternal() argument 931 if (type_url == XdsApi::kLdsTypeUrl) { in TypeUrlExternalToInternal() [all …]
|
/external/protobuf/python/google/protobuf/ |
D | json_format.py | 312 type_url = message.type_url 313 js['@type'] = type_url 314 sub_message = _CreateMessageFromTypeUrl(type_url, self.descriptor_pool) 380 def _CreateMessageFromTypeUrl(type_url, descriptor_pool): argument 384 type_name = type_url.split('/')[-1] 389 'Can not find message descriptor by type_url: {0}.'.format(type_url)) 588 type_url = value['@type'] 592 sub_message = _CreateMessageFromTypeUrl(type_url, self.descriptor_pool) 603 value['@type'] = type_url 606 message.type_url = type_url
|