/external/protobuf/src/google/protobuf/ |
any.cc | 53 AnyMetadata::AnyMetadata(UrlType* type_url, ValueType* value) 54 : type_url_(type_url), value_(value) { 78 const string type_url = type_url_->GetNoArena( local 81 if (!ParseAnyTypeUrl(type_url, &full_name)) { 87 bool ParseAnyTypeUrl(const string& type_url, string* full_type_name) { 88 size_t pos = type_url.find_last_of("/"); 89 if (pos == string::npos || pos + 1 == type_url.size()) { 92 *full_type_name = type_url.substr(pos + 1);
|
any.h | 50 // AnyMetadata does not take ownership of "type_url" and "value". 51 AnyMetadata(UrlType* type_url, ValueType* value); 91 // Get the proto type name from Any::type_url value. For example, passing 93 // *full_type_name. Returns false if type_url does not start with 95 bool ParseAnyTypeUrl(const string& type_url, string* full_type_name); 98 // for "type_url" and "value" fields.
|
any.pb.cc | 85 "obuf\"&\n\003Any\022\020\n\010type_url\030\001 \001(\t\022\r\n\005value\030\002" 214 // optional string type_url = 1; 220 this->type_url().data(), this->type_url().length(), 222 "google.protobuf.Any.type_url")); 267 // optional string type_url = 1; 268 if (this->type_url().size() > 0) { 270 this->type_url().data(), this->type_url().length(), 272 "google.protobuf.Any.type_url"); 408 const ::std::string& Any::type_url() const { function in class:google::protobuf::Any 444 type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url); local [all...] |
any.pb.h | 111 // optional string type_url = 1; 114 const ::std::string& type_url() const; 120 void set_allocated_type_url(::std::string* type_url); 157 // optional string type_url = 1; 161 inline const ::std::string& Any::type_url() const { function in class:google::protobuf::Any 162 // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url) 168 // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url) 173 // @@protoc_insertion_point(field_set_char:google.protobuf.Any.type_url) 179 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Any.type_url) 183 // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url) 197 type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url); local [all...] |
/external/protobuf/src/google/protobuf/util/ |
json_util.h | 70 const string& type_url, 76 TypeResolver* resolver, const string& type_url, 79 return BinaryToJsonStream(resolver, type_url, binary_input, json_output, 85 const string& type_url, 91 const string& type_url, 94 return BinaryToJsonString(resolver, type_url, binary_input, json_output, 106 const string& type_url, 112 const string& type_url,
|
type_resolver.h | 61 const string& type_url, google::protobuf::Type* message_type) = 0; 64 virtual util::Status ResolveEnumType(const string& type_url,
|
type_resolver_util.cc | 57 bool SplitTypeUrl(const string& type_url, string* url_prefix, 59 size_t pos = type_url.find_last_of("/"); 63 *url_prefix = type_url.substr(0, pos); 64 *message_name = type_url.substr(pos + 1); 74 Status ResolveMessageType(const string& type_url, Type* type) { 76 if (!SplitTypeUrl(type_url, &url_prefix, &message_name) || 80 url_prefix_, "/<typename>', got: ", type_url)); 95 Status ResolveEnumType(const string& type_url, Enum* enum_type) { 97 if (!SplitTypeUrl(type_url, &url_prefix, &type_name) || 101 url_prefix_, "/<typename>', got: ", type_url)); [all...] |
json_util.cc | 74 const string& type_url, 80 RETURN_IF_ERROR(resolver->ResolveMessageType(type_url, &type)); 95 const string& type_url, 101 return BinaryToJsonStream(resolver, type_url, &input_stream, &output_stream, 142 const string& type_url, 146 RETURN_IF_ERROR(resolver->ResolveMessageType(type_url, &type)); 166 const string& type_url, 171 return JsonToBinaryStream(resolver, type_url, &input_stream, &output_stream);
|
type_resolver_util_test.cc | 95 const string& type_url) { 100 return field->type_url() == type_url;
|
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/util/ |
json_util.h | 70 const string& type_url, 76 TypeResolver* resolver, const string& type_url, 79 return BinaryToJsonStream(resolver, type_url, binary_input, json_output, 85 const string& type_url, 91 const string& type_url, 94 return BinaryToJsonString(resolver, type_url, binary_input, json_output, 106 const string& type_url, 112 const string& type_url,
|
type_resolver.h | 61 const string& type_url, google::protobuf::Type* message_type) = 0; 64 virtual util::Status ResolveEnumType(const string& type_url,
|
/external/protobuf/src/google/protobuf/util/internal/ |
type_info.h | 58 StringPiece type_url) const = 0; 65 StringPiece type_url) const = 0; 72 StringPiece type_url) const = 0;
|
type_info_test_helper.cc | 92 io::CodedInputStream* coded_input, const string& type_url) { 93 const google::protobuf::Type* type = typeinfo_->GetTypeByTypeUrl(type_url); 105 const string& type_url, strings::ByteSink* output, ErrorListener* listener, 107 const google::protobuf::Type* type = typeinfo_->GetTypeByTypeUrl(type_url); 119 const string& type_url, ObjectWriter* writer) { 120 const google::protobuf::Type* type = typeinfo_->GetTypeByTypeUrl(type_url);
|
type_info_test_helper.h | 78 const string& type_url); 81 const string& type_url, strings::ByteSink* output, 84 DefaultValueObjectWriter* NewDefaultValueWriter(const string& type_url,
|
type_info.cc | 62 StringPiece type_url) const { 63 map<StringPiece, StatusOrType>::iterator it = cached_types_.find(type_url); 70 *string_storage_.insert(type_url.ToString()).first; 81 StringPiece type_url) const { 82 StatusOrType result = ResolveTypeUrl(type_url); 87 StringPiece type_url) const { 88 map<StringPiece, StatusOrEnum>::iterator it = cached_enums_.find(type_url); 95 *string_storage_.insert(type_url.ToString()).first;
|
protostream_objectwriter.cc | 367 // Render the type_url and value fields directly to the stream. 368 // type_url has tag 1 and value has tag 2. [all...] |
protostream_objectsource.cc | 256 typeinfo_->GetTypeByTypeUrl(field->type_url()); 568 // An Any is of the form { string type_url = 1; bytes value = 2; } 570 string type_url; local 573 // First read out the type_url and value from the proto stream 580 // 'type_url' has field number of 1 and 'value' has field number 2 583 // read type_url 586 os->stream_->ReadString(&type_url, type_url_size); 599 if (!type_url.empty()) { 600 ow->RenderString("@type", type_url); 607 if (type_url.empty()) [all...] |
default_value_objectwriter.cc | 270 typeinfo->ResolveTypeUrl(sub_field.type_url()); 272 GOOGLE_LOG(WARNING) << "Cannot resolve type '" << sub_field.type_url() << "'."; 334 typeinfo->ResolveTypeUrl(field.type_url()); 337 GOOGLE_LOG(WARNING) << "Cannot resolve type '" << field.type_url() << "'."; 398 typeinfo->GetEnumByTypeUrl(field.type_url()); 400 GOOGLE_LOG(WARNING) << "Could not find enum with type '" << field.type_url()
|
utility.cc | 130 const StringPiece GetTypeWithoutUrl(StringPiece type_url) { 131 size_t idx = type_url.rfind('/'); 132 return type_url.substr(idx + 1);
|
proto_writer.cc | 446 StrCat("Missing descriptor for field: ", field->type_url())); 485 StrCat("Missing descriptor for field: ", field->type_url())); 514 StrCat("Missing descriptor for field: ", field->type_url())); 568 InvalidValue(field.type_url().empty() 570 : field.type_url(), 639 typeinfo_->GetEnumByTypeUrl(field.type_url()), 703 ? typeinfo_->GetTypeByTypeUrl(field->type_url())
|
utility.h | 109 LIBPROTOBUF_EXPORT const StringPiece GetTypeWithoutUrl(StringPiece type_url);
|
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/ |
any.h | 50 // AnyMetadata does not take ownership of "type_url" and "value". 51 AnyMetadata(UrlType* type_url, ValueType* value); 91 // Get the proto type name from Any::type_url value. For example, passing 93 // *full_type_name. Returns false if type_url does not start with 95 bool ParseAnyTypeUrl(const string& type_url, string* full_type_name); 98 // for "type_url" and "value" fields.
|
any.pb.h | 111 // optional string type_url = 1; 114 const ::std::string& type_url() const; 120 void set_allocated_type_url(::std::string* type_url); 157 // optional string type_url = 1; 161 inline const ::std::string& Any::type_url() const { function in class:google::protobuf::Any 162 // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url) 168 // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url) 173 // @@protoc_insertion_point(field_set_char:google.protobuf.Any.type_url) 179 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Any.type_url) 183 // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url) 197 type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url); local [all...] |
/external/protobuf/conformance/ |
conformance_cpp.cc | 61 string* type_url; variable 103 Status status = JsonToBinaryString(type_resolver, *type_url, 137 Status status = BinaryToJsonString(type_resolver, *type_url, proto_binary, 199 type_url = new string(GetTypeUrl(TestAllTypes::descriptor()));
|
/external/protobuf/python/google/protobuf/ |
json_format.py | 212 type_url = message.type_url 213 js['@type'] = type_url 214 sub_message = _CreateMessageFromTypeUrl(type_url) 227 def _CreateMessageFromTypeUrl(type_url): 231 type_name = type_url.split('/')[-1] 236 'Can not find message descriptor by type_url: {0}.'.format(type_url)) 430 type_url = value['@type'] 434 sub_message = _CreateMessageFromTypeUrl(type_url) [all...] |