Home
last modified time | relevance | path

Searched refs:reflection (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/third_party/protobuf/src/google/protobuf/
Dtest_util.h195 const Reflection* reflection = message->GetReflection(); in SetAllFieldsViaReflection() local
198 reflection->SetInt32(message, F("optional_int32"), 101); in SetAllFieldsViaReflection()
199 reflection->SetInt64(message, F("optional_int64"), 102); in SetAllFieldsViaReflection()
200 reflection->SetUInt32(message, F("optional_uint32"), 103); in SetAllFieldsViaReflection()
201 reflection->SetUInt64(message, F("optional_uint64"), 104); in SetAllFieldsViaReflection()
202 reflection->SetInt32(message, F("optional_sint32"), 105); in SetAllFieldsViaReflection()
203 reflection->SetInt64(message, F("optional_sint64"), 106); in SetAllFieldsViaReflection()
204 reflection->SetUInt32(message, F("optional_fixed32"), 107); in SetAllFieldsViaReflection()
205 reflection->SetUInt64(message, F("optional_fixed64"), 108); in SetAllFieldsViaReflection()
206 reflection->SetInt32(message, F("optional_sfixed32"), 109); in SetAllFieldsViaReflection()
[all …]
Dmap_test_util.h297 const Reflection* reflection = message->GetReflection(); in SetMapFieldsViaReflection() local
302 sub_message = reflection->AddMessage(message, F("map_int32_int32")); in SetMapFieldsViaReflection()
306 sub_message = reflection->AddMessage(message, F("map_int64_int64")); in SetMapFieldsViaReflection()
310 sub_message = reflection->AddMessage(message, F("map_uint32_uint32")); in SetMapFieldsViaReflection()
316 sub_message = reflection->AddMessage(message, F("map_uint64_uint64")); in SetMapFieldsViaReflection()
322 sub_message = reflection->AddMessage(message, F("map_sint32_sint32")); in SetMapFieldsViaReflection()
328 sub_message = reflection->AddMessage(message, F("map_sint64_sint64")); in SetMapFieldsViaReflection()
334 sub_message = reflection->AddMessage(message, F("map_fixed32_fixed32")); in SetMapFieldsViaReflection()
340 sub_message = reflection->AddMessage(message, F("map_fixed64_fixed64")); in SetMapFieldsViaReflection()
346 sub_message = reflection->AddMessage(message, F("map_sfixed32_sfixed32")); in SetMapFieldsViaReflection()
[all …]
Dgenerated_message_reflection_unittest.cc79 const Reflection* reflection = message.GetReflection(); in TEST() local
85 &reflection->GetMessage(message, F("optionalgroup"))); in TEST()
87 &reflection->GetMessage(message, F("optional_nested_message"))); in TEST()
89 &reflection->GetMessage(message, F("optional_foreign_message"))); in TEST()
91 &reflection->GetMessage(message, F("optional_import_message"))); in TEST()
116 const Reflection* reflection = message.GetReflection(); in TEST() local
121 &reflection->GetStringReference(message, F("optional_string"), &scratch)) in TEST()
125 &reflection->GetRepeatedStringReference( in TEST()
143 const Reflection* reflection = message.GetReflection(); in TEST() local
146 &reflection->GetMessage(message, F("optionalgroup"))); in TEST()
[all …]
Dreflection_ops.cc180 const Reflection* reflection = GetReflectionOrDie(*message); in Clear() local
183 reflection->ListFieldsOmitStripped(*message, &fields); in Clear()
185 reflection->ClearField(message, fields[i]); in Clear()
188 reflection->MutableUnknownFields(message)->Clear(); in Clear()
194 const Reflection* reflection = GetReflectionOrDie(message); in IsInitialized() local
203 if (field->is_required() && !reflection->HasField(message, field)) { in IsInitialized()
217 reflection->GetMapData(message, field); in IsInitialized()
230 const int size = reflection->FieldSize(message, field); in IsInitialized()
232 if (!reflection->GetRepeatedMessage(message, field, j) in IsInitialized()
237 } else if (reflection->HasField(message, field)) { in IsInitialized()
[all …]
Ddynamic_message.h160 const Reflection* reflection, in Sort() argument
165 reflection->GetRepeatedFieldRef<Message>(message, field); in Sort()
191 const Reflection* reflection = a->GetReflection(); in operator() local
194 bool first = reflection->GetBool(*a, field_); in operator()
195 bool second = reflection->GetBool(*b, field_); in operator()
199 int32 first = reflection->GetInt32(*a, field_); in operator()
200 int32 second = reflection->GetInt32(*b, field_); in operator()
204 int64 first = reflection->GetInt64(*a, field_); in operator()
205 int64 second = reflection->GetInt64(*b, field_); in operator()
209 uint32 first = reflection->GetUInt32(*a, field_); in operator()
[all …]
Dtext_format.cc382 const Reflection* reflection = message->GetReflection(); in ConsumeField() local
413 reflection->HasField(*message, any_type_url_field)) || in ConsumeField()
415 reflection->HasField(*message, any_value_field))) { in ConsumeField()
420 reflection->SetString(message, any_type_url_field, in ConsumeField()
422 reflection->SetString(message, any_value_field, serialized_value); in ConsumeField()
525 if (!field->is_repeated() && reflection->HasField(*message, field)) { in ConsumeField()
533 if (oneof != nullptr && reflection->HasOneof(*message, oneof)) { in ConsumeField()
535 reflection->GetOneofFieldDescriptor(*message, oneof); in ConsumeField()
558 reflection->MutableMessage(message, field, factory) in ConsumeField()
574 DO(ConsumeFieldMessage(message, reflection, field)); in ConsumeField()
[all …]
Ddynamic_message_unittest.cc194 const Reflection* reflection = message->GetReflection(); in TEST_P() local
195 EXPECT_EQ(0, reflection->GetInt32(*message, in TEST_P()
197 EXPECT_EQ("", reflection->GetString( in TEST_P()
199 EXPECT_EQ("", reflection->GetString(*message, in TEST_P()
201 EXPECT_EQ("", reflection->GetString( in TEST_P()
203 EXPECT_EQ("", reflection->GetString( in TEST_P()
207 reflection->GetEnum(*message, descriptor->FindFieldByName("foo_enum")) in TEST_P()
215 &reflection->GetMessage( in TEST_P()
223 &reflection->GetMessage(*message, in TEST_P()
226 &reflection->GetMessage( in TEST_P()
[all …]
Dmap_field.cc361 const Reflection* reflection = default_entry_->GetReflection(); in SyncRepeatedFieldWithMapNoLock() local
383 reflection->SetString(new_entry, key_des, map_key.GetStringValue()); in SyncRepeatedFieldWithMapNoLock()
386 reflection->SetInt64(new_entry, key_des, map_key.GetInt64Value()); in SyncRepeatedFieldWithMapNoLock()
389 reflection->SetInt32(new_entry, key_des, map_key.GetInt32Value()); in SyncRepeatedFieldWithMapNoLock()
392 reflection->SetUInt64(new_entry, key_des, map_key.GetUInt64Value()); in SyncRepeatedFieldWithMapNoLock()
395 reflection->SetUInt32(new_entry, key_des, map_key.GetUInt32Value()); in SyncRepeatedFieldWithMapNoLock()
398 reflection->SetBool(new_entry, key_des, map_key.GetBoolValue()); in SyncRepeatedFieldWithMapNoLock()
410 reflection->SetString(new_entry, val_des, map_val.GetStringValue()); in SyncRepeatedFieldWithMapNoLock()
413 reflection->SetInt64(new_entry, val_des, map_val.GetInt64Value()); in SyncRepeatedFieldWithMapNoLock()
416 reflection->SetInt32(new_entry, val_des, map_val.GetInt32Value()); in SyncRepeatedFieldWithMapNoLock()
[all …]
/third_party/flatbuffers/src/
Dreflection.cpp25 int64_t GetAnyValueI(reflection::BaseType type, const uint8_t *data) { in GetAnyValueI()
29 case reflection::UType: in GetAnyValueI()
30 case reflection::Bool: in GetAnyValueI()
31 case reflection::UByte: return FLATBUFFERS_GET(uint8_t); in GetAnyValueI()
32 case reflection::Byte: return FLATBUFFERS_GET(int8_t); in GetAnyValueI()
33 case reflection::Short: return FLATBUFFERS_GET(int16_t); in GetAnyValueI()
34 case reflection::UShort: return FLATBUFFERS_GET(uint16_t); in GetAnyValueI()
35 case reflection::Int: return FLATBUFFERS_GET(int32_t); in GetAnyValueI()
36 case reflection::UInt: return FLATBUFFERS_GET(uint32_t); in GetAnyValueI()
37 case reflection::Long: return FLATBUFFERS_GET(int64_t); in GetAnyValueI()
[all …]
/third_party/flatbuffers/include/flatbuffers/
Dreflection.h33 inline bool IsScalar(reflection::BaseType t) { in IsScalar()
34 return t >= reflection::UType && t <= reflection::Double; in IsScalar()
36 inline bool IsInteger(reflection::BaseType t) { in IsInteger()
37 return t >= reflection::UType && t <= reflection::ULong; in IsInteger()
39 inline bool IsFloat(reflection::BaseType t) { in IsFloat()
40 return t == reflection::Float || t == reflection::Double; in IsFloat()
42 inline bool IsLong(reflection::BaseType t) { in IsLong()
43 return t == reflection::Long || t == reflection::ULong; in IsLong()
47 inline size_t GetTypeSize(reflection::BaseType base_type) { in GetTypeSize()
72 static_assert(sizeof(sizes) / sizeof(size_t) == reflection::MaxBaseType + 1, in GetTypeSize()
[all …]
Dreflection_generated.h9 namespace reflection {
163 reflection::BaseType base_type() const { in base_type()
164 return static_cast<reflection::BaseType>(GetField<int8_t>(VT_BASE_TYPE, 0)); in base_type()
166 reflection::BaseType element() const { in element()
167 return static_cast<reflection::BaseType>(GetField<int8_t>(VT_ELEMENT, 0)); in element()
189 void add_base_type(reflection::BaseType base_type) { in add_base_type()
192 void add_element(reflection::BaseType element) { in add_element()
214 reflection::BaseType base_type = reflection::None,
215 reflection::BaseType element = reflection::None,
292 return reflection::CreateKeyValue(
[all …]
/third_party/grpc/src/cpp/ext/
Dproto_server_reflection.h31 : public reflection::v1alpha::ServerReflection::Service {
42 ServerReaderWriter<reflection::v1alpha::ServerReflectionResponse,
43 reflection::v1alpha::ServerReflectionRequest>* stream)
48 reflection::v1alpha::ListServiceResponse* response);
51 reflection::v1alpha::ServerReflectionResponse* response);
55 reflection::v1alpha::ServerReflectionResponse* response);
59 const reflection::v1alpha::ExtensionRequest* request,
60 reflection::v1alpha::ServerReflectionResponse* response);
64 reflection::v1alpha::ExtensionNumberResponse* response);
68 reflection::v1alpha::ServerReflectionResponse* response,
[all …]
/third_party/grpc/doc/python/
Dserver_reflection.md5 and more examples how to use server reflection.
7 ## Enable server reflection in Python servers
10 the [grpcio-reflection] PyPI package into your project.
13 descriptors with the reflection service implementation when creating a server
16 # add the following import statement to use server reflection
17 from grpc_reflection.v1alpha import reflection
22 # the reflection service will be aware of "Greeter" and "ServerReflection" services.
25 reflection.SERVICE_NAME,
27 reflection.enable_server_reflection(SERVICE_NAMES, server)
33 example, which extends the gRPC [Python `Greeter` example] on a reflection-enabled server.
[all …]
/third_party/glslang/Test/baseResults/
Dreflection.frag.out1 reflection.frag
2 Uniform reflection:
4 Uniform block reflection:
6 Buffer variable reflection:
8 Buffer block reflection:
10 Pipeline input reflection:
12 Pipeline output reflection:
Dreflection.options.frag.out1 reflection.frag
2 Uniform reflection:
4 Uniform block reflection:
6 Buffer variable reflection:
8 Buffer block reflection:
10 Pipeline input reflection:
13 Pipeline output reflection:
Dreflection.linked.out1 reflection.linked.vert
2 reflection.linked.frag
3 Uniform reflection:
8 Uniform block reflection:
11 Buffer variable reflection:
13 Buffer block reflection:
15 Pipeline input reflection:
18 Pipeline output reflection:
Dreflection.linked.options.out1 reflection.linked.vert
2 reflection.linked.frag
3 Uniform reflection:
9 Uniform block reflection:
12 Buffer variable reflection:
14 Buffer block reflection:
16 Pipeline input reflection:
21 Pipeline output reflection:
Dhlsl.reflection.binding.frag.out1 hlsl.reflection.binding.frag
2 Uniform reflection:
14 Uniform block reflection:
18 Buffer variable reflection:
20 Buffer block reflection:
22 Pipeline input reflection:
24 Pipeline output reflection:
Dreflection.options.geom.out1 reflection.options.geom
2 Uniform reflection:
4 Uniform block reflection:
6 Buffer variable reflection:
8 Buffer block reflection:
10 Pipeline input reflection:
18 Pipeline output reflection:
/third_party/protobuf/src/google/protobuf/util/
Dtype_resolver_util.cc146 const Reflection* reflection = options.GetReflection(); in ConvertOptionsInternal() local
148 reflection->ListFields(options, &fields); in ConvertOptionsInternal()
151 const int size = reflection->FieldSize(options, field); in ConvertOptionsInternal()
153 ConvertOptionField(reflection, options, field, i, output->Add()); in ConvertOptionsInternal()
156 ConvertOptionField(reflection, options, field, -1, output->Add()); in ConvertOptionsInternal()
161 static void ConvertOptionField(const Reflection* reflection, in ConvertOptionField() argument
171 ? reflection->GetRepeatedMessage(options, field, index) in ConvertOptionField()
172 : reflection->GetMessage(options, field)); in ConvertOptionField()
177 ? reflection->GetRepeatedDouble(options, field, index) in ConvertOptionField()
178 : reflection->GetDouble(options, field))); in ConvertOptionField()
[all …]
/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc93 const Reflection* reflection = message->GetReflection(); in AssignItem() local
94 int field_size = reflection->FieldSize(*message, field_descriptor); in AssignItem()
119 reflection->SetRepeatedInt32(message, field_descriptor, index, value); in AssignItem()
124 reflection->SetRepeatedInt64(message, field_descriptor, index, value); in AssignItem()
129 reflection->SetRepeatedUInt32(message, field_descriptor, index, value); in AssignItem()
134 reflection->SetRepeatedUInt64(message, field_descriptor, index, value); in AssignItem()
139 reflection->SetRepeatedFloat(message, field_descriptor, index, value); in AssignItem()
144 reflection->SetRepeatedDouble(message, field_descriptor, index, value); in AssignItem()
149 reflection->SetRepeatedBool(message, field_descriptor, index, value); in AssignItem()
154 arg, message, field_descriptor, reflection, false, index)) { in AssignItem()
[all …]
/third_party/glslang/Test/
Druntests55 echo Running reflection...
56 run -l -q -C reflection.vert > $TARGETDIR/reflection.vert.out
57 diff -b $BASEDIR/reflection.vert.out $TARGETDIR/reflection.vert.out || HASERROR=1
58 …flect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.options.vert > $TARGETDIR/reflecti…
59 diff -b $BASEDIR/reflection.options.vert.out $TARGETDIR/reflection.options.vert.out || HASERROR=1
60 run -l -q -C reflection.frag > $TARGETDIR/reflection.frag.out
61 diff -b $BASEDIR/reflection.frag.out $TARGETDIR/reflection.frag.out || HASERROR=1
62 …--reflect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.frag > $TARGETDIR/reflection.o…
63 diff -b $BASEDIR/reflection.options.frag.out $TARGETDIR/reflection.options.frag.out || HASERROR=1
64 …flect-shared-std140-ubo --reflect-shared-std140-ssbo reflection.options.geom > $TARGETDIR/reflecti…
[all …]
/third_party/protobuf/benchmarks/util/
Ddata_proto2_to_proto3_util.h19 const Reflection* reflection = message->GetReflection(); in StripMessage() local
20 reflection->ListFields(*message, &set_fields); in StripMessage()
25 reflection->ClearField(message, field); in StripMessage()
30 for (int j = 0; j < reflection->FieldSize(*message, field); j++) { in StripMessage()
31 StripMessage(reflection->MutableRepeatedMessage(message, field, j)); in StripMessage()
34 StripMessage(reflection->MutableMessage(message, field)); in StripMessage()
39 reflection->MutableUnknownFields(message)->Clear(); in StripMessage()
/third_party/grpc/doc/csharp/
Dserver_reflection.md5 for general information and more examples how to use server reflection.
7 ## Enable server reflection in C# servers
14 descriptors with the reflection service implementation when creating a server
17 // the reflection service will be aware of "Greeter" and "ServerReflection" services.
32 After starting the server, you can verify that the server reflection
43 grpc.reflection.v1alpha.ServerReflection
52 The [Server Reflection Protocol](../server-reflection.md) provides detailed
53 information about how the server reflection works and describes the server reflection
/third_party/grpc/test/cpp/util/
Dproto_reflection_descriptor_database.h38 std::unique_ptr<reflection::v1alpha::ServerReflection::Stub> stub);
81 grpc::reflection::v1alpha::ServerReflectionRequest,
82 grpc::reflection::v1alpha::ServerReflectionResponse>
89 const grpc::reflection::v1alpha::FileDescriptorResponse& response);
94 const grpc::reflection::v1alpha::ServerReflectionRequest& request,
95 grpc::reflection::v1alpha::ServerReflectionResponse& response);
99 std::unique_ptr<grpc::reflection::v1alpha::ServerReflection::Stub> stub_;

12345678910>>...13