Searched refs:field_desc (Results 1 – 7 of 7) sorted by relevance
/external/tensorflow/tensorflow/core/kernels/ |
D | encode_proto_op.cc | 251 Status WriteField(const FieldDescriptor& field_desc, const Tensor& input, in WriteField() argument 254 WireFormatLite::FieldType(field_desc.type())); in WriteField() 257 if (field_desc.options().packed()) { in WriteField() 259 WireFormatLite::WriteTag(field_desc.number(), in WriteField() 275 WireFormatLite::WriteTag(field_desc.number(), wire_type, output); in WriteField() 287 Status WriteVarLenField(const FieldDescriptor& field_desc, const Tensor& input, in WriteVarLenField() argument 296 Writer(field_desc.number(), value, output); in WriteVarLenField() 304 Status WriteGroup(const FieldDescriptor& field_desc, const Tensor& input, in WriteGroup() argument 309 WireFormatLite::WriteTag(field_desc.number(), in WriteGroup() 313 WireFormatLite::WriteTag(field_desc.number(), in WriteGroup() [all …]
|
D | decode_proto_op.cc | 150 const FieldDescriptor* field_desc, in InitDefaultValueFromFieldDescriptor() argument 152 switch (field_desc->type()) { in InitDefaultValueFromFieldDescriptor() 154 return InitDefaultValue(dtype, field_desc->default_value_double(), in InitDefaultValueFromFieldDescriptor() 157 return InitDefaultValue(dtype, field_desc->default_value_float(), result); in InitDefaultValueFromFieldDescriptor() 161 return InitDefaultValue(dtype, field_desc->default_value_int64(), result); in InitDefaultValueFromFieldDescriptor() 164 return InitDefaultValue(dtype, field_desc->default_value_uint64(), in InitDefaultValueFromFieldDescriptor() 170 return InitDefaultValue(dtype, field_desc->default_value_int32(), result); in InitDefaultValueFromFieldDescriptor() 173 return InitDefaultValue(dtype, field_desc->default_value_uint32(), in InitDefaultValueFromFieldDescriptor() 176 return InitDefaultValue(dtype, field_desc->default_value_bool(), result); in InitDefaultValueFromFieldDescriptor() 185 return InitDefaultValue(dtype, field_desc->default_value_string().c_str(), in InitDefaultValueFromFieldDescriptor() [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_pool_test.py | 437 field_desc = msg_desc.fields_by_name[name] 439 test.assertEqual(name, field_desc.name) 441 test.assertEqual(expected_field_full_name, field_desc.full_name) 442 test.assertEqual(index, field_desc.index) 443 test.assertEqual(self.number, field_desc.number) 444 test.assertEqual(descriptor.FieldDescriptor.TYPE_ENUM, field_desc.type) 446 field_desc.cpp_type) 447 test.assertTrue(field_desc.has_default_value) 449 field_desc.default_value) 450 test.assertEqual(msg_desc, field_desc.containing_type) [all …]
|
D | generator_test.py | 302 for field_name, field_desc in desc.fields_by_name.items(): 304 self.assertIs(desc.oneofs[0], field_desc.containing_oneof) 306 self.assertIsNone(field_desc.containing_oneof)
|
D | python_message.py | 1103 field_decoder, field_desc = decoders_by_tag.get(tag_bytes, (None, None)) 1117 if field_desc: 1118 self._UpdateOneofState(field_desc)
|
/external/protobuf/python/google/protobuf/ |
D | descriptor_pool.py | 472 for field_index, field_desc in enumerate(desc_proto.field): 473 if field_desc.HasField('oneof_index'): 474 oneof_index = field_desc.oneof_index 582 for field_proto, field_desc in zip(desc_proto.field, main_desc.fields): 583 self._SetFieldType(field_proto, field_desc, nested_package, scope) 594 def _SetFieldType(self, field_proto, field_desc, package, scope): argument 614 field_desc.cpp_type = descriptor.FieldDescriptor.ProtoTypeToCppProtoType( 619 field_desc.message_type = desc 622 field_desc.enum_type = desc 625 field_desc.has_default_value = False [all …]
|
/external/grpc-grpc/src/cpp/ext/ |
D | proto_server_reflection.cc | 159 const protobuf::FieldDescriptor* field_desc = in GetFileContainingExtension() local 162 if (field_desc == nullptr) { in GetFileContainingExtension() 166 FillFileDescriptorResponse(field_desc->file(), response, &seen_files); in GetFileContainingExtension()
|