Home
last modified time | relevance | path

Searched refs:HasField (Results 1 – 25 of 69) sorted by relevance

123

/external/protobuf/src/google/protobuf/util/
Dtype_resolver_util_test.cc80 bool HasField(const Type& type, const string& name) { in HasField() function in google::protobuf::util::__anon9c8df64d0111::DescriptorPoolTypeResolverTest
84 bool HasField(const Type& type, Field::Cardinality cardinality, in HasField() function in google::protobuf::util::__anon9c8df64d0111::DescriptorPoolTypeResolverTest
164 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
166 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
168 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
170 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
172 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
174 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
176 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
178 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
[all …]
/external/protobuf/python/google/protobuf/internal/
Dtest_util.py388 test_case.assertTrue(message.HasField('optional_int32'))
389 test_case.assertTrue(message.HasField('optional_int64'))
390 test_case.assertTrue(message.HasField('optional_uint32'))
391 test_case.assertTrue(message.HasField('optional_uint64'))
392 test_case.assertTrue(message.HasField('optional_sint32'))
393 test_case.assertTrue(message.HasField('optional_sint64'))
394 test_case.assertTrue(message.HasField('optional_fixed32'))
395 test_case.assertTrue(message.HasField('optional_fixed64'))
396 test_case.assertTrue(message.HasField('optional_sfixed32'))
397 test_case.assertTrue(message.HasField('optional_sfixed64'))
[all …]
Dreflection_test.py129 self.assertFalse(proto.HasField("optional_float"))
213 self.assertFalse(proto.HasField("optional_nested_message"))
253 self.assertTrue(not proto.HasField('optional_int32'))
257 self.assertTrue(not proto.HasField('optional_int32'))
260 self.assertTrue(proto.HasField('optional_int32'))
263 self.assertTrue(not proto.HasField('optional_int32'))
308 self.assertTrue(not composite_field.HasField(scalar_field_name))
310 self.assertTrue(not proto.HasField(composite_field_name))
321 self.assertTrue(composite_field.HasField(scalar_field_name))
322 self.assertTrue(proto.HasField(composite_field_name))
[all …]
Dmessage_test.py570 self.assertFalse(msg.HasField(attribute))
579 self.assertFalse(m.HasField('oneof_uint32'))
584 self.assertTrue(m.HasField('oneof_uint32'))
585 self.assertFalse(m.HasField('oneof_string'))
589 self.assertTrue(m.HasField('oneof_string'))
590 self.assertFalse(m.HasField('oneof_uint32'))
598 self.assertTrue(m.HasField('oneof_uint32'))
602 self.assertFalse(m.HasField('oneof_uint32'))
603 self.assertTrue(m.HasField('oneof_string'))
608 self.assertTrue(m.HasField('oneof_string'))
[all …]
Dpython_message.py300 field_descriptor.GetOptions().HasField("packed") and
831 def HasField(self, field_name): function
839 return HasField(self, self._oneofs[field].name)
849 cls.HasField = HasField
1182 if not self.HasField(field.name):
1272 if nested_field is not None and self.HasField(nested_field.name):
Dwell_known_types_test.py491 self.assertTrue(nested_dst.HasField('payload'))
494 self.assertTrue(nested_dst.HasField('payload'))
500 self.assertFalse(nested_dst.HasField('payload'))
/external/protobuf/src/google/protobuf/
Dno_field_presence_test.cc291 EXPECT_EQ(false, r->HasField(message, field)); in TEST()
297 EXPECT_EQ(false, r->HasField( in TEST()
311 EXPECT_EQ(true, r->HasField(message, field)); in TEST()
324 EXPECT_EQ(false, r->HasField(message, field_int32)); in TEST()
325 EXPECT_EQ(false, r->HasField(message, field_double)); in TEST()
326 EXPECT_EQ(false, r->HasField(message, field_string)); in TEST()
329 EXPECT_EQ(true, r->HasField(message, field_int32)); in TEST()
331 EXPECT_EQ(false, r->HasField(message, field_int32)); in TEST()
334 EXPECT_EQ(true, r->HasField(message, field_double)); in TEST()
336 EXPECT_EQ(false, r->HasField(message, field_double)); in TEST()
[all …]
Dtest_util.cc2556 EXPECT_TRUE(reflection->HasField( in ExpectOneofSetViaReflection()
2558 EXPECT_TRUE(reflection->HasField( in ExpectOneofSetViaReflection()
2560 EXPECT_TRUE(reflection->HasField( in ExpectOneofSetViaReflection()
2562 EXPECT_TRUE(reflection->HasField( in ExpectOneofSetViaReflection()
2637 EXPECT_TRUE(reflection->HasField(message, F("optional_int32" ))); in ExpectAllFieldsSetViaReflection1()
2638 EXPECT_TRUE(reflection->HasField(message, F("optional_int64" ))); in ExpectAllFieldsSetViaReflection1()
2639 EXPECT_TRUE(reflection->HasField(message, F("optional_uint32" ))); in ExpectAllFieldsSetViaReflection1()
2640 EXPECT_TRUE(reflection->HasField(message, F("optional_uint64" ))); in ExpectAllFieldsSetViaReflection1()
2641 EXPECT_TRUE(reflection->HasField(message, F("optional_sint32" ))); in ExpectAllFieldsSetViaReflection1()
2642 EXPECT_TRUE(reflection->HasField(message, F("optional_sint64" ))); in ExpectAllFieldsSetViaReflection1()
[all …]
Ddynamic_message_unittest.cc272 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); in TEST_F()
274 EXPECT_EQ(true, refl->HasField(*message, optional_int32)); in TEST_F()
276 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); in TEST_F()
278 EXPECT_EQ(false, refl->HasField(*message, optional_msg)); in TEST_F()
280 EXPECT_EQ(true, refl->HasField(*message, optional_msg)); in TEST_F()
282 EXPECT_EQ(false, refl->HasField(*message, optional_msg)); in TEST_F()
285 EXPECT_EQ(false, refl->HasField(*proto3_prototype_, optional_msg)); in TEST_F()
Dreflection_ops.cc148 if (!reflection->HasField(message, descriptor->field(i))) { in IsInitialized()
234 if (!reflection->HasField(message, descriptor->field(i))) { in FindInitializationErrors()
/external/autotest/client/cros/
Downership.py130 if not response_proto.HasField("policy_data"):
140 if (not data_proto.HasField("policy_type") or
142 not data_proto.HasField("policy_value")):
164 if not settings.HasField("guest_mode_enabled"):
166 if not settings.guest_mode_enabled.HasField("guest_mode_enabled"):
179 if not settings.HasField("show_user_names"):
181 if not settings.show_user_names.HasField("show_user_names"):
194 if not settings.HasField("data_roaming_enabled"):
196 if not settings.data_roaming_enabled.HasField("data_roaming_enabled"):
209 if not settings.HasField("allow_new_users"):
[all …]
/external/tensorflow/tensorflow/python/saved_model/
Dnested_structure_coder.py131 return value.HasField("list_value")
174 return value.HasField("tuple_value")
197 return value.HasField("dict_value")
228 return value.HasField("named_tuple_value")
254 return value.HasField("float64_value")
277 return value.HasField("int64_value")
304 return value.HasField("string_value")
327 return value.HasField("none_value")
350 return value.HasField("bool_value")
374 return value.HasField("tensor_shape_value")
[all …]
/external/grpc-grpc/src/python/grpcio_reflection/grpc_reflection/v1alpha/
Dreflection.py116 if request.HasField('file_by_filename'):
118 elif request.HasField('file_containing_symbol'):
121 elif request.HasField('file_containing_extension'):
125 elif request.HasField('all_extension_numbers_of_type'):
128 elif request.HasField('list_services'):
/external/tensorflow/tensorflow/contrib/testing/python/framework/
Dutil_test.py103 return [e for e in latest_events(base_dir) if e.HasField('summary')]
120 if e.HasField('summary'):
124 if not v.HasField('simple_value'):
/external/libprotobuf-mutator/src/
Dmutator.cc223 if (reflection->HasField(*message, field) || in Sample()
247 } else if (reflection->HasField(*message, field)) { in Sample()
299 } else if (reflection->HasField(*message, field)) { in Sample()
320 if (reflection->HasField(*message, field)) { in Sample()
555 if (!reflection->HasField(message1, field)) { in CrossOverImpl()
558 } else if (!reflection->HasField(*message2, field)) { in CrossOverImpl()
569 if (reflection->HasField(message1, field)) { in CrossOverImpl()
586 !reflection->HasField(*message, field)) in InitializeAndTrim()
596 assert(!reflection->HasField(*message, field)); in InitializeAndTrim()
607 } else if (reflection->HasField(*message, field)) { in InitializeAndTrim()
/external/tensorflow/tensorflow/python/client/
Dtimeline_test.py55 self.assertTrue(run_metadata.HasField('step_stats'))
71 self.assertTrue(run_metadata.HasField('step_stats'))
103 self.assertTrue(run_metadata.HasField('step_stats'))
155 self.assertTrue(run_metadata.HasField('step_stats'))
183 self.assertTrue(run_metadata.HasField('step_stats'))
Devents_writer_test.py57 self.assertTrue(event_read.HasField("file_version"))
/external/tensorflow/tensorflow/contrib/meta_graph_transform/
Dmeta_graph_transform.py410 if base_meta_graph_def.HasField('saver_def'):
470 if base_collection.HasField('any_list'):
476 elif base_collection.HasField('bytes_list'):
486 elif base_collection.HasField('node_list'):
510 if base_meta_graph_def.HasField('saver_def'):
/external/tensorflow/tensorflow/python/framework/
Dop_def_library.py53 if attr_def.HasField("allowed_values"):
401 if attr_def.HasField("default_value"):
686 if attr_def.HasField("default_value") and value is None:
702 if attr_def.HasField("allowed_values"):
711 if attr_def.HasField("allowed_values"):
Dimporter.py168 if (attr_def and attr_def.HasField('default_value') and
334 if attr_def.HasField('default_value'):
/external/protobuf/python/google/protobuf/
Dmessage.py234 def HasField(self, field_name): member in Message
Ddescriptor_pool.py473 if field_desc.HasField('oneof_index'):
608 if not field_proto.HasField('type'):
627 elif field_proto.HasField('default_value'):
/external/tensorflow/tensorflow/contrib/learn/python/learn/utils/
Dexport_test.py85 self.assertTrue(signature.HasField(expected_signature))
251 self.assertTrue(signature.HasField('regression_signature'))
Dsaved_model_export_utils.py637 if event.HasField('summary'):
640 if value.HasField('simple_value'):
/external/tensorflow/tensorflow/tools/api/tests/
Dapi_compatibility_test.py155 if api_object.HasField('tf_module'):
157 elif api_object.HasField('tf_class'):

123