// Generated by the protocol buffer compiler. DO NOT EDIT! // source: op_def.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "op_def.pb.h" #include #include #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace tensorflow { namespace { const ::google::protobuf::Descriptor* OpDef_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* OpDef_reflection_ = NULL; const ::google::protobuf::Descriptor* OpDef_ArgDef_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* OpDef_ArgDef_reflection_ = NULL; const ::google::protobuf::Descriptor* OpDef_AttrDef_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* OpDef_AttrDef_reflection_ = NULL; const ::google::protobuf::Descriptor* OpDeprecation_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* OpDeprecation_reflection_ = NULL; const ::google::protobuf::Descriptor* OpList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* OpList_reflection_ = NULL; } // namespace void protobuf_AssignDesc_op_5fdef_2eproto() GOOGLE_ATTRIBUTE_COLD; void protobuf_AssignDesc_op_5fdef_2eproto() { protobuf_AddDesc_op_5fdef_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "op_def.proto"); GOOGLE_CHECK(file != NULL); OpDef_descriptor_ = file->message_type(0); static const int OpDef_offsets_[11] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, input_arg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, output_arg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, attr_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, deprecation_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, summary_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, description_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, is_commutative_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, is_aggregate_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, is_stateful_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, allows_uninitialized_input_), }; OpDef_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( OpDef_descriptor_, OpDef::internal_default_instance(), OpDef_offsets_, -1, -1, -1, sizeof(OpDef), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, _internal_metadata_)); OpDef_ArgDef_descriptor_ = OpDef_descriptor_->nested_type(0); static const int OpDef_ArgDef_offsets_[7] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, description_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, type_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, type_attr_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, number_attr_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, type_list_attr_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, is_ref_), }; OpDef_ArgDef_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( OpDef_ArgDef_descriptor_, OpDef_ArgDef::internal_default_instance(), OpDef_ArgDef_offsets_, -1, -1, -1, sizeof(OpDef_ArgDef), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, _internal_metadata_)); OpDef_AttrDef_descriptor_ = OpDef_descriptor_->nested_type(1); static const int OpDef_AttrDef_offsets_[7] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, type_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, default_value_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, description_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, has_minimum_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, minimum_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, allowed_values_), }; OpDef_AttrDef_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( OpDef_AttrDef_descriptor_, OpDef_AttrDef::internal_default_instance(), OpDef_AttrDef_offsets_, -1, -1, -1, sizeof(OpDef_AttrDef), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, _internal_metadata_)); OpDeprecation_descriptor_ = file->message_type(1); static const int OpDeprecation_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDeprecation, version_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDeprecation, explanation_), }; OpDeprecation_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( OpDeprecation_descriptor_, OpDeprecation::internal_default_instance(), OpDeprecation_offsets_, -1, -1, -1, sizeof(OpDeprecation), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDeprecation, _internal_metadata_)); OpList_descriptor_ = file->message_type(2); static const int OpList_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpList, op_), }; OpList_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( OpList_descriptor_, OpList::internal_default_instance(), OpList_offsets_, -1, -1, -1, sizeof(OpList), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpList, _internal_metadata_)); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_op_5fdef_2eproto); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( OpDef_descriptor_, OpDef::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( OpDef_ArgDef_descriptor_, OpDef_ArgDef::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( OpDef_AttrDef_descriptor_, OpDef_AttrDef::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( OpDeprecation_descriptor_, OpDeprecation::internal_default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( OpList_descriptor_, OpList::internal_default_instance()); } } // namespace void protobuf_ShutdownFile_op_5fdef_2eproto() { OpDef_default_instance_.Shutdown(); delete OpDef_reflection_; OpDef_ArgDef_default_instance_.Shutdown(); delete OpDef_ArgDef_reflection_; OpDef_AttrDef_default_instance_.Shutdown(); delete OpDef_AttrDef_reflection_; OpDeprecation_default_instance_.Shutdown(); delete OpDeprecation_reflection_; OpList_default_instance_.Shutdown(); delete OpList_reflection_; } void protobuf_InitDefaults_op_5fdef_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::tensorflow::protobuf_InitDefaults_attr_5fvalue_2eproto(); ::tensorflow::protobuf_InitDefaults_types_2eproto(); ::google::protobuf::internal::GetEmptyString(); OpDef_default_instance_.DefaultConstruct(); ::google::protobuf::internal::GetEmptyString(); OpDef_ArgDef_default_instance_.DefaultConstruct(); ::google::protobuf::internal::GetEmptyString(); OpDef_AttrDef_default_instance_.DefaultConstruct(); ::google::protobuf::internal::GetEmptyString(); OpDeprecation_default_instance_.DefaultConstruct(); OpList_default_instance_.DefaultConstruct(); OpDef_default_instance_.get_mutable()->InitAsDefaultInstance(); OpDef_ArgDef_default_instance_.get_mutable()->InitAsDefaultInstance(); OpDef_AttrDef_default_instance_.get_mutable()->InitAsDefaultInstance(); OpDeprecation_default_instance_.get_mutable()->InitAsDefaultInstance(); OpList_default_instance_.get_mutable()->InitAsDefaultInstance(); } GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_op_5fdef_2eproto_once_); void protobuf_InitDefaults_op_5fdef_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_op_5fdef_2eproto_once_, &protobuf_InitDefaults_op_5fdef_2eproto_impl); } void protobuf_AddDesc_op_5fdef_2eproto_impl() { GOOGLE_PROTOBUF_VERIFY_VERSION; protobuf_InitDefaults_op_5fdef_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\014op_def.proto\022\ntensorflow\032\020attr_value.p" "roto\032\013types.proto\"\270\005\n\005OpDef\022\014\n\004name\030\001 \001(" "\t\022+\n\tinput_arg\030\002 \003(\0132\030.tensorflow.OpDef." "ArgDef\022,\n\noutput_arg\030\003 \003(\0132\030.tensorflow." "OpDef.ArgDef\022\'\n\004attr\030\004 \003(\0132\031.tensorflow." "OpDef.AttrDef\022.\n\013deprecation\030\010 \001(\0132\031.ten" "sorflow.OpDeprecation\022\017\n\007summary\030\005 \001(\t\022\023" "\n\013description\030\006 \001(\t\022\026\n\016is_commutative\030\022 " "\001(\010\022\024\n\014is_aggregate\030\020 \001(\010\022\023\n\013is_stateful" "\030\021 \001(\010\022\"\n\032allows_uninitialized_input\030\023 \001" "(\010\032\237\001\n\006ArgDef\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" "on\030\002 \001(\t\022\"\n\004type\030\003 \001(\0162\024.tensorflow.Data" "Type\022\021\n\ttype_attr\030\004 \001(\t\022\023\n\013number_attr\030\005" " \001(\t\022\026\n\016type_list_attr\030\006 \001(\t\022\016\n\006is_ref\030\020" " \001(\010\032\275\001\n\007AttrDef\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002" " \001(\t\022,\n\rdefault_value\030\003 \001(\0132\025.tensorflow" ".AttrValue\022\023\n\013description\030\004 \001(\t\022\023\n\013has_m" "inimum\030\005 \001(\010\022\017\n\007minimum\030\006 \001(\003\022-\n\016allowed" "_values\030\007 \001(\0132\025.tensorflow.AttrValue\"5\n\r" "OpDeprecation\022\017\n\007version\030\001 \001(\005\022\023\n\013explan" "ation\030\002 \001(\t\"\'\n\006OpList\022\035\n\002op\030\001 \003(\0132\021.tens" "orflow.OpDefB,\n\030org.tensorflow.framework" "B\013OpDefProtosP\001\370\001\001b\006proto3", 906); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "op_def.proto", &protobuf_RegisterTypes); ::tensorflow::protobuf_AddDesc_attr_5fvalue_2eproto(); ::tensorflow::protobuf_AddDesc_types_2eproto(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_op_5fdef_2eproto); } GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_op_5fdef_2eproto_once_); void protobuf_AddDesc_op_5fdef_2eproto() { ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_op_5fdef_2eproto_once_, &protobuf_AddDesc_op_5fdef_2eproto_impl); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_op_5fdef_2eproto { StaticDescriptorInitializer_op_5fdef_2eproto() { protobuf_AddDesc_op_5fdef_2eproto(); } } static_descriptor_initializer_op_5fdef_2eproto_; namespace { static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; static void MergeFromFail(int line) { ::google::protobuf::internal::MergeFromFail(__FILE__, line); } } // namespace // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int OpDef_ArgDef::kNameFieldNumber; const int OpDef_ArgDef::kDescriptionFieldNumber; const int OpDef_ArgDef::kTypeFieldNumber; const int OpDef_ArgDef::kTypeAttrFieldNumber; const int OpDef_ArgDef::kNumberAttrFieldNumber; const int OpDef_ArgDef::kTypeListAttrFieldNumber; const int OpDef_ArgDef::kIsRefFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 OpDef_ArgDef::OpDef_ArgDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpDef.ArgDef) } OpDef_ArgDef::OpDef_ArgDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_op_5fdef_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpDef.ArgDef) } void OpDef_ArgDef::InitAsDefaultInstance() { } OpDef_ArgDef::OpDef_ArgDef(const OpDef_ArgDef& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.OpDef.ArgDef) } void OpDef_ArgDef::SharedCtor() { name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); type_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); number_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); type_list_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&type_, 0, reinterpret_cast(&is_ref_) - reinterpret_cast(&type_) + sizeof(is_ref_)); _cached_size_ = 0; } OpDef_ArgDef::~OpDef_ArgDef() { // @@protoc_insertion_point(destructor:tensorflow.OpDef.ArgDef) SharedDtor(); } void OpDef_ArgDef::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); description_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); type_attr_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); number_attr_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); type_list_attr_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void OpDef_ArgDef::ArenaDtor(void* object) { OpDef_ArgDef* _this = reinterpret_cast< OpDef_ArgDef* >(object); (void)_this; } void OpDef_ArgDef::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void OpDef_ArgDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpDef_ArgDef::descriptor() { protobuf_AssignDescriptorsOnce(); return OpDef_ArgDef_descriptor_; } const OpDef_ArgDef& OpDef_ArgDef::default_instance() { protobuf_InitDefaults_op_5fdef_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed OpDef_ArgDef_default_instance_; OpDef_ArgDef* OpDef_ArgDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpDef_ArgDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpDef.ArgDef) #if defined(__clang__) #define ZR_HELPER_(f) \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ __builtin_offsetof(OpDef_ArgDef, f) \ _Pragma("clang diagnostic pop") #else #define ZR_HELPER_(f) reinterpret_cast(\ &reinterpret_cast(16)->f) #endif #define ZR_(first, last) do {\ ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) ZR_(type_, is_ref_); name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); type_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); number_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); type_list_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); #undef ZR_HELPER_ #undef ZR_ } bool OpDef_ArgDef::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpDef.ArgDef) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string name = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.name")); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_description; break; } // optional string description = 2; case 2: { if (tag == 18) { parse_description: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_description())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.description")); } else { goto handle_unusual; } if (input->ExpectTag(24)) goto parse_type; break; } // optional .tensorflow.DataType type = 3; case 3: { if (tag == 24) { parse_type: int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_type(static_cast< ::tensorflow::DataType >(value)); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_type_attr; break; } // optional string type_attr = 4; case 4: { if (tag == 34) { parse_type_attr: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_type_attr())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->type_attr().data(), this->type_attr().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.type_attr")); } else { goto handle_unusual; } if (input->ExpectTag(42)) goto parse_number_attr; break; } // optional string number_attr = 5; case 5: { if (tag == 42) { parse_number_attr: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_number_attr())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->number_attr().data(), this->number_attr().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.number_attr")); } else { goto handle_unusual; } if (input->ExpectTag(50)) goto parse_type_list_attr; break; } // optional string type_list_attr = 6; case 6: { if (tag == 50) { parse_type_list_attr: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_type_list_attr())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->type_list_attr().data(), this->type_list_attr().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.type_list_attr")); } else { goto handle_unusual; } if (input->ExpectTag(128)) goto parse_is_ref; break; } // optional bool is_ref = 16; case 16: { if (tag == 128) { parse_is_ref: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &is_ref_))); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.OpDef.ArgDef) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.OpDef.ArgDef) return false; #undef DO_ } void OpDef_ArgDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpDef.ArgDef) // optional string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } // optional string description = 2; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.description"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->description(), output); } // optional .tensorflow.DataType type = 3; if (this->type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 3, this->type(), output); } // optional string type_attr = 4; if (this->type_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->type_attr().data(), this->type_attr().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.type_attr"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->type_attr(), output); } // optional string number_attr = 5; if (this->number_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->number_attr().data(), this->number_attr().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.number_attr"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->number_attr(), output); } // optional string type_list_attr = 6; if (this->type_list_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->type_list_attr().data(), this->type_list_attr().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.type_list_attr"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 6, this->type_list_attr(), output); } // optional bool is_ref = 16; if (this->is_ref() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->is_ref(), output); } // @@protoc_insertion_point(serialize_end:tensorflow.OpDef.ArgDef) } ::google::protobuf::uint8* OpDef_ArgDef::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDef.ArgDef) // optional string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); } // optional string description = 2; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.description"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->description(), target); } // optional .tensorflow.DataType type = 3; if (this->type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 3, this->type(), target); } // optional string type_attr = 4; if (this->type_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->type_attr().data(), this->type_attr().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.type_attr"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->type_attr(), target); } // optional string number_attr = 5; if (this->number_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->number_attr().data(), this->number_attr().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.number_attr"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->number_attr(), target); } // optional string type_list_attr = 6; if (this->type_list_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->type_list_attr().data(), this->type_list_attr().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.type_list_attr"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6, this->type_list_attr(), target); } // optional bool is_ref = 16; if (this->is_ref() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->is_ref(), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDef.ArgDef) return target; } size_t OpDef_ArgDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDef.ArgDef) size_t total_size = 0; // optional string name = 1; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // optional string description = 2; if (this->description().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->description()); } // optional .tensorflow.DataType type = 3; if (this->type() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); } // optional string type_attr = 4; if (this->type_attr().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->type_attr()); } // optional string number_attr = 5; if (this->number_attr().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->number_attr()); } // optional string type_list_attr = 6; if (this->type_list_attr().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->type_list_attr()); } // optional bool is_ref = 16; if (this->is_ref() != 0) { total_size += 2 + 1; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void OpDef_ArgDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDef.ArgDef) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const OpDef_ArgDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpDef.ArgDef) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDef.ArgDef) UnsafeMergeFrom(*source); } } void OpDef_ArgDef::MergeFrom(const OpDef_ArgDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDef.ArgDef) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void OpDef_ArgDef::UnsafeMergeFrom(const OpDef_ArgDef& from) { GOOGLE_DCHECK(&from != this); if (from.name().size() > 0) { set_name(from.name()); } if (from.description().size() > 0) { set_description(from.description()); } if (from.type() != 0) { set_type(from.type()); } if (from.type_attr().size() > 0) { set_type_attr(from.type_attr()); } if (from.number_attr().size() > 0) { set_number_attr(from.number_attr()); } if (from.type_list_attr().size() > 0) { set_type_list_attr(from.type_list_attr()); } if (from.is_ref() != 0) { set_is_ref(from.is_ref()); } } void OpDef_ArgDef::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpDef.ArgDef) if (&from == this) return; Clear(); MergeFrom(from); } void OpDef_ArgDef::CopyFrom(const OpDef_ArgDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDef.ArgDef) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool OpDef_ArgDef::IsInitialized() const { return true; } void OpDef_ArgDef::Swap(OpDef_ArgDef* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { OpDef_ArgDef temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void OpDef_ArgDef::UnsafeArenaSwap(OpDef_ArgDef* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void OpDef_ArgDef::InternalSwap(OpDef_ArgDef* other) { name_.Swap(&other->name_); description_.Swap(&other->description_); std::swap(type_, other->type_); type_attr_.Swap(&other->type_attr_); number_attr_.Swap(&other->number_attr_); type_list_attr_.Swap(&other->type_list_attr_); std::swap(is_ref_, other->is_ref_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpDef_ArgDef::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = OpDef_ArgDef_descriptor_; metadata.reflection = OpDef_ArgDef_reflection_; return metadata; } // ------------------------------------------------------------------- void OpDef_AttrDef::_slow_mutable_default_value() { default_value_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue >( GetArenaNoVirtual()); } ::tensorflow::AttrValue* OpDef_AttrDef::_slow_release_default_value() { if (default_value_ == NULL) { return NULL; } else { ::tensorflow::AttrValue* temp = new ::tensorflow::AttrValue(*default_value_); default_value_ = NULL; return temp; } } ::tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_default_value() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.default_value) ::tensorflow::AttrValue* temp = default_value_; default_value_ = NULL; return temp; } void OpDef_AttrDef::_slow_set_allocated_default_value( ::google::protobuf::Arena* message_arena, ::tensorflow::AttrValue** default_value) { if (message_arena != NULL && ::google::protobuf::Arena::GetArena(*default_value) == NULL) { message_arena->Own(*default_value); } else if (message_arena != ::google::protobuf::Arena::GetArena(*default_value)) { ::tensorflow::AttrValue* new_default_value = ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue >( message_arena); new_default_value->CopyFrom(**default_value); *default_value = new_default_value; } } void OpDef_AttrDef::unsafe_arena_set_allocated_default_value( ::tensorflow::AttrValue* default_value) { if (GetArenaNoVirtual() == NULL) { delete default_value_; } default_value_ = default_value; if (default_value) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.default_value) } void OpDef_AttrDef::_slow_mutable_allowed_values() { allowed_values_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue >( GetArenaNoVirtual()); } ::tensorflow::AttrValue* OpDef_AttrDef::_slow_release_allowed_values() { if (allowed_values_ == NULL) { return NULL; } else { ::tensorflow::AttrValue* temp = new ::tensorflow::AttrValue(*allowed_values_); allowed_values_ = NULL; return temp; } } ::tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_allowed_values() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.allowed_values) ::tensorflow::AttrValue* temp = allowed_values_; allowed_values_ = NULL; return temp; } void OpDef_AttrDef::_slow_set_allocated_allowed_values( ::google::protobuf::Arena* message_arena, ::tensorflow::AttrValue** allowed_values) { if (message_arena != NULL && ::google::protobuf::Arena::GetArena(*allowed_values) == NULL) { message_arena->Own(*allowed_values); } else if (message_arena != ::google::protobuf::Arena::GetArena(*allowed_values)) { ::tensorflow::AttrValue* new_allowed_values = ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue >( message_arena); new_allowed_values->CopyFrom(**allowed_values); *allowed_values = new_allowed_values; } } void OpDef_AttrDef::unsafe_arena_set_allocated_allowed_values( ::tensorflow::AttrValue* allowed_values) { if (GetArenaNoVirtual() == NULL) { delete allowed_values_; } allowed_values_ = allowed_values; if (allowed_values) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.allowed_values) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int OpDef_AttrDef::kNameFieldNumber; const int OpDef_AttrDef::kTypeFieldNumber; const int OpDef_AttrDef::kDefaultValueFieldNumber; const int OpDef_AttrDef::kDescriptionFieldNumber; const int OpDef_AttrDef::kHasMinimumFieldNumber; const int OpDef_AttrDef::kMinimumFieldNumber; const int OpDef_AttrDef::kAllowedValuesFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 OpDef_AttrDef::OpDef_AttrDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpDef.AttrDef) } OpDef_AttrDef::OpDef_AttrDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_op_5fdef_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpDef.AttrDef) } void OpDef_AttrDef::InitAsDefaultInstance() { default_value_ = const_cast< ::tensorflow::AttrValue*>( ::tensorflow::AttrValue::internal_default_instance()); allowed_values_ = const_cast< ::tensorflow::AttrValue*>( ::tensorflow::AttrValue::internal_default_instance()); } OpDef_AttrDef::OpDef_AttrDef(const OpDef_AttrDef& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.OpDef.AttrDef) } void OpDef_AttrDef::SharedCtor() { name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); default_value_ = NULL; allowed_values_ = NULL; ::memset(&minimum_, 0, reinterpret_cast(&has_minimum_) - reinterpret_cast(&minimum_) + sizeof(has_minimum_)); _cached_size_ = 0; } OpDef_AttrDef::~OpDef_AttrDef() { // @@protoc_insertion_point(destructor:tensorflow.OpDef.AttrDef) SharedDtor(); } void OpDef_AttrDef::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); type_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); description_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); if (this != &OpDef_AttrDef_default_instance_.get()) { delete default_value_; delete allowed_values_; } } void OpDef_AttrDef::ArenaDtor(void* object) { OpDef_AttrDef* _this = reinterpret_cast< OpDef_AttrDef* >(object); (void)_this; } void OpDef_AttrDef::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void OpDef_AttrDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpDef_AttrDef::descriptor() { protobuf_AssignDescriptorsOnce(); return OpDef_AttrDef_descriptor_; } const OpDef_AttrDef& OpDef_AttrDef::default_instance() { protobuf_InitDefaults_op_5fdef_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed OpDef_AttrDef_default_instance_; OpDef_AttrDef* OpDef_AttrDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpDef_AttrDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpDef.AttrDef) #if defined(__clang__) #define ZR_HELPER_(f) \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ __builtin_offsetof(OpDef_AttrDef, f) \ _Pragma("clang diagnostic pop") #else #define ZR_HELPER_(f) reinterpret_cast(\ &reinterpret_cast(16)->f) #endif #define ZR_(first, last) do {\ ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) ZR_(minimum_, has_minimum_); name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); if (GetArenaNoVirtual() == NULL && default_value_ != NULL) delete default_value_; default_value_ = NULL; description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); if (GetArenaNoVirtual() == NULL && allowed_values_ != NULL) delete allowed_values_; allowed_values_ = NULL; #undef ZR_HELPER_ #undef ZR_ } bool OpDef_AttrDef::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpDef.AttrDef) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string name = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.AttrDef.name")); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_type; break; } // optional string type = 2; case 2: { if (tag == 18) { parse_type: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_type())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->type().data(), this->type().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.AttrDef.type")); } else { goto handle_unusual; } if (input->ExpectTag(26)) goto parse_default_value; break; } // optional .tensorflow.AttrValue default_value = 3; case 3: { if (tag == 26) { parse_default_value: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_default_value())); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_description; break; } // optional string description = 4; case 4: { if (tag == 34) { parse_description: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_description())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.AttrDef.description")); } else { goto handle_unusual; } if (input->ExpectTag(40)) goto parse_has_minimum; break; } // optional bool has_minimum = 5; case 5: { if (tag == 40) { parse_has_minimum: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &has_minimum_))); } else { goto handle_unusual; } if (input->ExpectTag(48)) goto parse_minimum; break; } // optional int64 minimum = 6; case 6: { if (tag == 48) { parse_minimum: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &minimum_))); } else { goto handle_unusual; } if (input->ExpectTag(58)) goto parse_allowed_values; break; } // optional .tensorflow.AttrValue allowed_values = 7; case 7: { if (tag == 58) { parse_allowed_values: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_allowed_values())); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.OpDef.AttrDef) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.OpDef.AttrDef) return false; #undef DO_ } void OpDef_AttrDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpDef.AttrDef) // optional string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } // optional string type = 2; if (this->type().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->type().data(), this->type().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.type"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->type(), output); } // optional .tensorflow.AttrValue default_value = 3; if (this->has_default_value()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->default_value_, output); } // optional string description = 4; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.description"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->description(), output); } // optional bool has_minimum = 5; if (this->has_minimum() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->has_minimum(), output); } // optional int64 minimum = 6; if (this->minimum() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->minimum(), output); } // optional .tensorflow.AttrValue allowed_values = 7; if (this->has_allowed_values()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, *this->allowed_values_, output); } // @@protoc_insertion_point(serialize_end:tensorflow.OpDef.AttrDef) } ::google::protobuf::uint8* OpDef_AttrDef::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDef.AttrDef) // optional string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); } // optional string type = 2; if (this->type().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->type().data(), this->type().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.type"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->type(), target); } // optional .tensorflow.AttrValue default_value = 3; if (this->has_default_value()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 3, *this->default_value_, false, target); } // optional string description = 4; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.description"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->description(), target); } // optional bool has_minimum = 5; if (this->has_minimum() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->has_minimum(), target); } // optional int64 minimum = 6; if (this->minimum() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->minimum(), target); } // optional .tensorflow.AttrValue allowed_values = 7; if (this->has_allowed_values()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 7, *this->allowed_values_, false, target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDef.AttrDef) return target; } size_t OpDef_AttrDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDef.AttrDef) size_t total_size = 0; // optional string name = 1; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // optional string type = 2; if (this->type().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->type()); } // optional .tensorflow.AttrValue default_value = 3; if (this->has_default_value()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->default_value_); } // optional string description = 4; if (this->description().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->description()); } // optional bool has_minimum = 5; if (this->has_minimum() != 0) { total_size += 1 + 1; } // optional int64 minimum = 6; if (this->minimum() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->minimum()); } // optional .tensorflow.AttrValue allowed_values = 7; if (this->has_allowed_values()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->allowed_values_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void OpDef_AttrDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDef.AttrDef) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const OpDef_AttrDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpDef.AttrDef) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDef.AttrDef) UnsafeMergeFrom(*source); } } void OpDef_AttrDef::MergeFrom(const OpDef_AttrDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDef.AttrDef) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void OpDef_AttrDef::UnsafeMergeFrom(const OpDef_AttrDef& from) { GOOGLE_DCHECK(&from != this); if (from.name().size() > 0) { set_name(from.name()); } if (from.type().size() > 0) { set_type(from.type()); } if (from.has_default_value()) { mutable_default_value()->::tensorflow::AttrValue::MergeFrom(from.default_value()); } if (from.description().size() > 0) { set_description(from.description()); } if (from.has_minimum() != 0) { set_has_minimum(from.has_minimum()); } if (from.minimum() != 0) { set_minimum(from.minimum()); } if (from.has_allowed_values()) { mutable_allowed_values()->::tensorflow::AttrValue::MergeFrom(from.allowed_values()); } } void OpDef_AttrDef::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpDef.AttrDef) if (&from == this) return; Clear(); MergeFrom(from); } void OpDef_AttrDef::CopyFrom(const OpDef_AttrDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDef.AttrDef) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool OpDef_AttrDef::IsInitialized() const { return true; } void OpDef_AttrDef::Swap(OpDef_AttrDef* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { OpDef_AttrDef temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void OpDef_AttrDef::UnsafeArenaSwap(OpDef_AttrDef* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void OpDef_AttrDef::InternalSwap(OpDef_AttrDef* other) { name_.Swap(&other->name_); type_.Swap(&other->type_); std::swap(default_value_, other->default_value_); description_.Swap(&other->description_); std::swap(has_minimum_, other->has_minimum_); std::swap(minimum_, other->minimum_); std::swap(allowed_values_, other->allowed_values_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpDef_AttrDef::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = OpDef_AttrDef_descriptor_; metadata.reflection = OpDef_AttrDef_reflection_; return metadata; } // ------------------------------------------------------------------- void OpDef::_slow_mutable_deprecation() { deprecation_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::OpDeprecation >( GetArenaNoVirtual()); } ::tensorflow::OpDeprecation* OpDef::_slow_release_deprecation() { if (deprecation_ == NULL) { return NULL; } else { ::tensorflow::OpDeprecation* temp = new ::tensorflow::OpDeprecation(*deprecation_); deprecation_ = NULL; return temp; } } ::tensorflow::OpDeprecation* OpDef::unsafe_arena_release_deprecation() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.deprecation) ::tensorflow::OpDeprecation* temp = deprecation_; deprecation_ = NULL; return temp; } void OpDef::_slow_set_allocated_deprecation( ::google::protobuf::Arena* message_arena, ::tensorflow::OpDeprecation** deprecation) { if (message_arena != NULL && ::google::protobuf::Arena::GetArena(*deprecation) == NULL) { message_arena->Own(*deprecation); } else if (message_arena != ::google::protobuf::Arena::GetArena(*deprecation)) { ::tensorflow::OpDeprecation* new_deprecation = ::google::protobuf::Arena::CreateMessage< ::tensorflow::OpDeprecation >( message_arena); new_deprecation->CopyFrom(**deprecation); *deprecation = new_deprecation; } } void OpDef::unsafe_arena_set_allocated_deprecation( ::tensorflow::OpDeprecation* deprecation) { if (GetArenaNoVirtual() == NULL) { delete deprecation_; } deprecation_ = deprecation; if (deprecation) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.deprecation) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int OpDef::kNameFieldNumber; const int OpDef::kInputArgFieldNumber; const int OpDef::kOutputArgFieldNumber; const int OpDef::kAttrFieldNumber; const int OpDef::kDeprecationFieldNumber; const int OpDef::kSummaryFieldNumber; const int OpDef::kDescriptionFieldNumber; const int OpDef::kIsCommutativeFieldNumber; const int OpDef::kIsAggregateFieldNumber; const int OpDef::kIsStatefulFieldNumber; const int OpDef::kAllowsUninitializedInputFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 OpDef::OpDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpDef) } OpDef::OpDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), input_arg_(arena), output_arg_(arena), attr_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_op_5fdef_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpDef) } void OpDef::InitAsDefaultInstance() { deprecation_ = const_cast< ::tensorflow::OpDeprecation*>( ::tensorflow::OpDeprecation::internal_default_instance()); } OpDef::OpDef(const OpDef& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.OpDef) } void OpDef::SharedCtor() { name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); summary_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); deprecation_ = NULL; ::memset(&is_commutative_, 0, reinterpret_cast(&allows_uninitialized_input_) - reinterpret_cast(&is_commutative_) + sizeof(allows_uninitialized_input_)); _cached_size_ = 0; } OpDef::~OpDef() { // @@protoc_insertion_point(destructor:tensorflow.OpDef) SharedDtor(); } void OpDef::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); summary_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); description_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); if (this != &OpDef_default_instance_.get()) { delete deprecation_; } } void OpDef::ArenaDtor(void* object) { OpDef* _this = reinterpret_cast< OpDef* >(object); (void)_this; } void OpDef::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void OpDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpDef::descriptor() { protobuf_AssignDescriptorsOnce(); return OpDef_descriptor_; } const OpDef& OpDef::default_instance() { protobuf_InitDefaults_op_5fdef_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed OpDef_default_instance_; OpDef* OpDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpDef) #if defined(__clang__) #define ZR_HELPER_(f) \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ __builtin_offsetof(OpDef, f) \ _Pragma("clang diagnostic pop") #else #define ZR_HELPER_(f) reinterpret_cast(\ &reinterpret_cast(16)->f) #endif #define ZR_(first, last) do {\ ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) delete deprecation_; deprecation_ = NULL; summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); is_commutative_ = false; ZR_(is_aggregate_, allows_uninitialized_input_); #undef ZR_HELPER_ #undef ZR_ input_arg_.Clear(); output_arg_.Clear(); attr_.Clear(); } bool OpDef::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpDef) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string name = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.name")); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_input_arg; break; } // repeated .tensorflow.OpDef.ArgDef input_arg = 2; case 2: { if (tag == 18) { parse_input_arg: DO_(input->IncrementRecursionDepth()); parse_loop_input_arg: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_input_arg())); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_loop_input_arg; if (input->ExpectTag(26)) goto parse_loop_output_arg; input->UnsafeDecrementRecursionDepth(); break; } // repeated .tensorflow.OpDef.ArgDef output_arg = 3; case 3: { if (tag == 26) { DO_(input->IncrementRecursionDepth()); parse_loop_output_arg: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_output_arg())); } else { goto handle_unusual; } if (input->ExpectTag(26)) goto parse_loop_output_arg; if (input->ExpectTag(34)) goto parse_loop_attr; input->UnsafeDecrementRecursionDepth(); break; } // repeated .tensorflow.OpDef.AttrDef attr = 4; case 4: { if (tag == 34) { DO_(input->IncrementRecursionDepth()); parse_loop_attr: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_attr())); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_loop_attr; input->UnsafeDecrementRecursionDepth(); if (input->ExpectTag(42)) goto parse_summary; break; } // optional string summary = 5; case 5: { if (tag == 42) { parse_summary: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_summary())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->summary().data(), this->summary().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.summary")); } else { goto handle_unusual; } if (input->ExpectTag(50)) goto parse_description; break; } // optional string description = 6; case 6: { if (tag == 50) { parse_description: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_description())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.description")); } else { goto handle_unusual; } if (input->ExpectTag(66)) goto parse_deprecation; break; } // optional .tensorflow.OpDeprecation deprecation = 8; case 8: { if (tag == 66) { parse_deprecation: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_deprecation())); } else { goto handle_unusual; } if (input->ExpectTag(128)) goto parse_is_aggregate; break; } // optional bool is_aggregate = 16; case 16: { if (tag == 128) { parse_is_aggregate: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &is_aggregate_))); } else { goto handle_unusual; } if (input->ExpectTag(136)) goto parse_is_stateful; break; } // optional bool is_stateful = 17; case 17: { if (tag == 136) { parse_is_stateful: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &is_stateful_))); } else { goto handle_unusual; } if (input->ExpectTag(144)) goto parse_is_commutative; break; } // optional bool is_commutative = 18; case 18: { if (tag == 144) { parse_is_commutative: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &is_commutative_))); } else { goto handle_unusual; } if (input->ExpectTag(152)) goto parse_allows_uninitialized_input; break; } // optional bool allows_uninitialized_input = 19; case 19: { if (tag == 152) { parse_allows_uninitialized_input: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &allows_uninitialized_input_))); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.OpDef) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.OpDef) return false; #undef DO_ } void OpDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpDef) // optional string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } // repeated .tensorflow.OpDef.ArgDef input_arg = 2; for (unsigned int i = 0, n = this->input_arg_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->input_arg(i), output); } // repeated .tensorflow.OpDef.ArgDef output_arg = 3; for (unsigned int i = 0, n = this->output_arg_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->output_arg(i), output); } // repeated .tensorflow.OpDef.AttrDef attr = 4; for (unsigned int i = 0, n = this->attr_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->attr(i), output); } // optional string summary = 5; if (this->summary().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->summary().data(), this->summary().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.summary"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->summary(), output); } // optional string description = 6; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.description"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 6, this->description(), output); } // optional .tensorflow.OpDeprecation deprecation = 8; if (this->has_deprecation()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, *this->deprecation_, output); } // optional bool is_aggregate = 16; if (this->is_aggregate() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->is_aggregate(), output); } // optional bool is_stateful = 17; if (this->is_stateful() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->is_stateful(), output); } // optional bool is_commutative = 18; if (this->is_commutative() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->is_commutative(), output); } // optional bool allows_uninitialized_input = 19; if (this->allows_uninitialized_input() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->allows_uninitialized_input(), output); } // @@protoc_insertion_point(serialize_end:tensorflow.OpDef) } ::google::protobuf::uint8* OpDef::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDef) // optional string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); } // repeated .tensorflow.OpDef.ArgDef input_arg = 2; for (unsigned int i = 0, n = this->input_arg_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, this->input_arg(i), false, target); } // repeated .tensorflow.OpDef.ArgDef output_arg = 3; for (unsigned int i = 0, n = this->output_arg_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 3, this->output_arg(i), false, target); } // repeated .tensorflow.OpDef.AttrDef attr = 4; for (unsigned int i = 0, n = this->attr_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 4, this->attr(i), false, target); } // optional string summary = 5; if (this->summary().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->summary().data(), this->summary().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.summary"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->summary(), target); } // optional string description = 6; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->description().data(), this->description().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.description"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6, this->description(), target); } // optional .tensorflow.OpDeprecation deprecation = 8; if (this->has_deprecation()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 8, *this->deprecation_, false, target); } // optional bool is_aggregate = 16; if (this->is_aggregate() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->is_aggregate(), target); } // optional bool is_stateful = 17; if (this->is_stateful() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->is_stateful(), target); } // optional bool is_commutative = 18; if (this->is_commutative() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->is_commutative(), target); } // optional bool allows_uninitialized_input = 19; if (this->allows_uninitialized_input() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->allows_uninitialized_input(), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDef) return target; } size_t OpDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDef) size_t total_size = 0; // optional string name = 1; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // optional .tensorflow.OpDeprecation deprecation = 8; if (this->has_deprecation()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->deprecation_); } // optional string summary = 5; if (this->summary().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->summary()); } // optional string description = 6; if (this->description().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->description()); } // optional bool is_commutative = 18; if (this->is_commutative() != 0) { total_size += 2 + 1; } // optional bool is_aggregate = 16; if (this->is_aggregate() != 0) { total_size += 2 + 1; } // optional bool is_stateful = 17; if (this->is_stateful() != 0) { total_size += 2 + 1; } // optional bool allows_uninitialized_input = 19; if (this->allows_uninitialized_input() != 0) { total_size += 2 + 1; } // repeated .tensorflow.OpDef.ArgDef input_arg = 2; { unsigned int count = this->input_arg_size(); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->input_arg(i)); } } // repeated .tensorflow.OpDef.ArgDef output_arg = 3; { unsigned int count = this->output_arg_size(); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->output_arg(i)); } } // repeated .tensorflow.OpDef.AttrDef attr = 4; { unsigned int count = this->attr_size(); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->attr(i)); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void OpDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDef) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const OpDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpDef) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDef) UnsafeMergeFrom(*source); } } void OpDef::MergeFrom(const OpDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDef) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void OpDef::UnsafeMergeFrom(const OpDef& from) { GOOGLE_DCHECK(&from != this); input_arg_.MergeFrom(from.input_arg_); output_arg_.MergeFrom(from.output_arg_); attr_.MergeFrom(from.attr_); if (from.name().size() > 0) { set_name(from.name()); } if (from.has_deprecation()) { mutable_deprecation()->::tensorflow::OpDeprecation::MergeFrom(from.deprecation()); } if (from.summary().size() > 0) { set_summary(from.summary()); } if (from.description().size() > 0) { set_description(from.description()); } if (from.is_commutative() != 0) { set_is_commutative(from.is_commutative()); } if (from.is_aggregate() != 0) { set_is_aggregate(from.is_aggregate()); } if (from.is_stateful() != 0) { set_is_stateful(from.is_stateful()); } if (from.allows_uninitialized_input() != 0) { set_allows_uninitialized_input(from.allows_uninitialized_input()); } } void OpDef::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpDef) if (&from == this) return; Clear(); MergeFrom(from); } void OpDef::CopyFrom(const OpDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDef) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool OpDef::IsInitialized() const { return true; } void OpDef::Swap(OpDef* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { OpDef temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void OpDef::UnsafeArenaSwap(OpDef* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void OpDef::InternalSwap(OpDef* other) { name_.Swap(&other->name_); input_arg_.UnsafeArenaSwap(&other->input_arg_); output_arg_.UnsafeArenaSwap(&other->output_arg_); attr_.UnsafeArenaSwap(&other->attr_); std::swap(deprecation_, other->deprecation_); summary_.Swap(&other->summary_); description_.Swap(&other->description_); std::swap(is_commutative_, other->is_commutative_); std::swap(is_aggregate_, other->is_aggregate_); std::swap(is_stateful_, other->is_stateful_); std::swap(allows_uninitialized_input_, other->allows_uninitialized_input_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpDef::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = OpDef_descriptor_; metadata.reflection = OpDef_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // OpDef_ArgDef // optional string name = 1; void OpDef_ArgDef::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef_ArgDef::name() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.name) return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef_ArgDef::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.name) } void OpDef_ArgDef::set_name(const char* value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.name) } void OpDef_ArgDef::set_name(const char* value, size_t size) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.name) } ::std::string* OpDef_ArgDef::mutable_name() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.name) return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::release_name() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.name) return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::unsafe_arena_release_name() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.name) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef_ArgDef::set_allocated_name(::std::string* name) { if (name != NULL) { } else { } name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.name) } void OpDef_ArgDef::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (name != NULL) { } else { } name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.name) } // optional string description = 2; void OpDef_ArgDef::clear_description() { description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef_ArgDef::description() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.description) return description_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef_ArgDef::set_description(const ::std::string& value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.description) } void OpDef_ArgDef::set_description(const char* value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.description) } void OpDef_ArgDef::set_description(const char* value, size_t size) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.description) } ::std::string* OpDef_ArgDef::mutable_description() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.description) return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::release_description() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.description) return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::unsafe_arena_release_description() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.description) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef_ArgDef::set_allocated_description(::std::string* description) { if (description != NULL) { } else { } description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.description) } void OpDef_ArgDef::unsafe_arena_set_allocated_description( ::std::string* description) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (description != NULL) { } else { } description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.description) } // optional .tensorflow.DataType type = 3; void OpDef_ArgDef::clear_type() { type_ = 0; } ::tensorflow::DataType OpDef_ArgDef::type() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type) return static_cast< ::tensorflow::DataType >(type_); } void OpDef_ArgDef::set_type(::tensorflow::DataType value) { type_ = value; // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type) } // optional string type_attr = 4; void OpDef_ArgDef::clear_type_attr() { type_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef_ArgDef::type_attr() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type_attr) return type_attr_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef_ArgDef::set_type_attr(const ::std::string& value) { type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type_attr) } void OpDef_ArgDef::set_type_attr(const char* value) { type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.type_attr) } void OpDef_ArgDef::set_type_attr(const char* value, size_t size) { type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.type_attr) } ::std::string* OpDef_ArgDef::mutable_type_attr() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.type_attr) return type_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::release_type_attr() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.type_attr) return type_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::unsafe_arena_release_type_attr() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_attr) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return type_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef_ArgDef::set_allocated_type_attr(::std::string* type_attr) { if (type_attr != NULL) { } else { } type_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_attr, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.type_attr) } void OpDef_ArgDef::unsafe_arena_set_allocated_type_attr( ::std::string* type_attr) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (type_attr != NULL) { } else { } type_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_attr, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.type_attr) } // optional string number_attr = 5; void OpDef_ArgDef::clear_number_attr() { number_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef_ArgDef::number_attr() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.number_attr) return number_attr_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef_ArgDef::set_number_attr(const ::std::string& value) { number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.number_attr) } void OpDef_ArgDef::set_number_attr(const char* value) { number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.number_attr) } void OpDef_ArgDef::set_number_attr(const char* value, size_t size) { number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.number_attr) } ::std::string* OpDef_ArgDef::mutable_number_attr() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.number_attr) return number_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::release_number_attr() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.number_attr) return number_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::unsafe_arena_release_number_attr() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.number_attr) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return number_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef_ArgDef::set_allocated_number_attr(::std::string* number_attr) { if (number_attr != NULL) { } else { } number_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), number_attr, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.number_attr) } void OpDef_ArgDef::unsafe_arena_set_allocated_number_attr( ::std::string* number_attr) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (number_attr != NULL) { } else { } number_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), number_attr, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.number_attr) } // optional string type_list_attr = 6; void OpDef_ArgDef::clear_type_list_attr() { type_list_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef_ArgDef::type_list_attr() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type_list_attr) return type_list_attr_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef_ArgDef::set_type_list_attr(const ::std::string& value) { type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type_list_attr) } void OpDef_ArgDef::set_type_list_attr(const char* value) { type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.type_list_attr) } void OpDef_ArgDef::set_type_list_attr(const char* value, size_t size) { type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.type_list_attr) } ::std::string* OpDef_ArgDef::mutable_type_list_attr() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.type_list_attr) return type_list_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::release_type_list_attr() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.type_list_attr) return type_list_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_ArgDef::unsafe_arena_release_type_list_attr() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_list_attr) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return type_list_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef_ArgDef::set_allocated_type_list_attr(::std::string* type_list_attr) { if (type_list_attr != NULL) { } else { } type_list_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_list_attr, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.type_list_attr) } void OpDef_ArgDef::unsafe_arena_set_allocated_type_list_attr( ::std::string* type_list_attr) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (type_list_attr != NULL) { } else { } type_list_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_list_attr, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.type_list_attr) } // optional bool is_ref = 16; void OpDef_ArgDef::clear_is_ref() { is_ref_ = false; } bool OpDef_ArgDef::is_ref() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.is_ref) return is_ref_; } void OpDef_ArgDef::set_is_ref(bool value) { is_ref_ = value; // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.is_ref) } inline const OpDef_ArgDef* OpDef_ArgDef::internal_default_instance() { return &OpDef_ArgDef_default_instance_.get(); } // ------------------------------------------------------------------- // OpDef_AttrDef // optional string name = 1; void OpDef_AttrDef::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef_AttrDef::name() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.name) return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef_AttrDef::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.name) } void OpDef_AttrDef::set_name(const char* value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.AttrDef.name) } void OpDef_AttrDef::set_name(const char* value, size_t size) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.AttrDef.name) } ::std::string* OpDef_AttrDef::mutable_name() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.name) return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_AttrDef::release_name() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.name) return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_AttrDef::unsafe_arena_release_name() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.name) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef_AttrDef::set_allocated_name(::std::string* name) { if (name != NULL) { } else { } name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.name) } void OpDef_AttrDef::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (name != NULL) { } else { } name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.name) } // optional string type = 2; void OpDef_AttrDef::clear_type() { type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef_AttrDef::type() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.type) return type_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef_AttrDef::set_type(const ::std::string& value) { type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.type) } void OpDef_AttrDef::set_type(const char* value) { type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.AttrDef.type) } void OpDef_AttrDef::set_type(const char* value, size_t size) { type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.AttrDef.type) } ::std::string* OpDef_AttrDef::mutable_type() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.type) return type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_AttrDef::release_type() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.type) return type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_AttrDef::unsafe_arena_release_type() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.type) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef_AttrDef::set_allocated_type(::std::string* type) { if (type != NULL) { } else { } type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.type) } void OpDef_AttrDef::unsafe_arena_set_allocated_type( ::std::string* type) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (type != NULL) { } else { } type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.type) } // optional .tensorflow.AttrValue default_value = 3; bool OpDef_AttrDef::has_default_value() const { return this != internal_default_instance() && default_value_ != NULL; } void OpDef_AttrDef::clear_default_value() { if (GetArenaNoVirtual() == NULL && default_value_ != NULL) delete default_value_; default_value_ = NULL; } const ::tensorflow::AttrValue& OpDef_AttrDef::default_value() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.default_value) return default_value_ != NULL ? *default_value_ : *::tensorflow::AttrValue::internal_default_instance(); } ::tensorflow::AttrValue* OpDef_AttrDef::mutable_default_value() { if (default_value_ == NULL) { _slow_mutable_default_value(); } // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.default_value) return default_value_; } ::tensorflow::AttrValue* OpDef_AttrDef::release_default_value() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.default_value) if (GetArenaNoVirtual() != NULL) { return _slow_release_default_value(); } else { ::tensorflow::AttrValue* temp = default_value_; default_value_ = NULL; return temp; } } void OpDef_AttrDef::set_allocated_default_value(::tensorflow::AttrValue* default_value) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete default_value_; } if (default_value != NULL) { _slow_set_allocated_default_value(message_arena, &default_value); } default_value_ = default_value; if (default_value) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.default_value) } // optional string description = 4; void OpDef_AttrDef::clear_description() { description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef_AttrDef::description() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.description) return description_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef_AttrDef::set_description(const ::std::string& value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.description) } void OpDef_AttrDef::set_description(const char* value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.AttrDef.description) } void OpDef_AttrDef::set_description(const char* value, size_t size) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.AttrDef.description) } ::std::string* OpDef_AttrDef::mutable_description() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.description) return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_AttrDef::release_description() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.description) return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef_AttrDef::unsafe_arena_release_description() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.description) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef_AttrDef::set_allocated_description(::std::string* description) { if (description != NULL) { } else { } description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.description) } void OpDef_AttrDef::unsafe_arena_set_allocated_description( ::std::string* description) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (description != NULL) { } else { } description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.description) } // optional bool has_minimum = 5; void OpDef_AttrDef::clear_has_minimum() { has_minimum_ = false; } bool OpDef_AttrDef::has_minimum() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.has_minimum) return has_minimum_; } void OpDef_AttrDef::set_has_minimum(bool value) { has_minimum_ = value; // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.has_minimum) } // optional int64 minimum = 6; void OpDef_AttrDef::clear_minimum() { minimum_ = GOOGLE_LONGLONG(0); } ::google::protobuf::int64 OpDef_AttrDef::minimum() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.minimum) return minimum_; } void OpDef_AttrDef::set_minimum(::google::protobuf::int64 value) { minimum_ = value; // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.minimum) } // optional .tensorflow.AttrValue allowed_values = 7; bool OpDef_AttrDef::has_allowed_values() const { return this != internal_default_instance() && allowed_values_ != NULL; } void OpDef_AttrDef::clear_allowed_values() { if (GetArenaNoVirtual() == NULL && allowed_values_ != NULL) delete allowed_values_; allowed_values_ = NULL; } const ::tensorflow::AttrValue& OpDef_AttrDef::allowed_values() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.allowed_values) return allowed_values_ != NULL ? *allowed_values_ : *::tensorflow::AttrValue::internal_default_instance(); } ::tensorflow::AttrValue* OpDef_AttrDef::mutable_allowed_values() { if (allowed_values_ == NULL) { _slow_mutable_allowed_values(); } // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.allowed_values) return allowed_values_; } ::tensorflow::AttrValue* OpDef_AttrDef::release_allowed_values() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.allowed_values) if (GetArenaNoVirtual() != NULL) { return _slow_release_allowed_values(); } else { ::tensorflow::AttrValue* temp = allowed_values_; allowed_values_ = NULL; return temp; } } void OpDef_AttrDef::set_allocated_allowed_values(::tensorflow::AttrValue* allowed_values) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete allowed_values_; } if (allowed_values != NULL) { _slow_set_allocated_allowed_values(message_arena, &allowed_values); } allowed_values_ = allowed_values; if (allowed_values) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.allowed_values) } inline const OpDef_AttrDef* OpDef_AttrDef::internal_default_instance() { return &OpDef_AttrDef_default_instance_.get(); } // ------------------------------------------------------------------- // OpDef // optional string name = 1; void OpDef::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef::name() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.name) return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.name) } void OpDef::set_name(const char* value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.name) } void OpDef::set_name(const char* value, size_t size) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.name) } ::std::string* OpDef::mutable_name() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.name) return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef::release_name() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.name) return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef::unsafe_arena_release_name() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.name) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef::set_allocated_name(::std::string* name) { if (name != NULL) { } else { } name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.name) } void OpDef::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (name != NULL) { } else { } name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.name) } // repeated .tensorflow.OpDef.ArgDef input_arg = 2; int OpDef::input_arg_size() const { return input_arg_.size(); } void OpDef::clear_input_arg() { input_arg_.Clear(); } const ::tensorflow::OpDef_ArgDef& OpDef::input_arg(int index) const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.input_arg) return input_arg_.Get(index); } ::tensorflow::OpDef_ArgDef* OpDef::mutable_input_arg(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.input_arg) return input_arg_.Mutable(index); } ::tensorflow::OpDef_ArgDef* OpDef::add_input_arg() { // @@protoc_insertion_point(field_add:tensorflow.OpDef.input_arg) return input_arg_.Add(); } ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >* OpDef::mutable_input_arg() { // @@protoc_insertion_point(field_mutable_list:tensorflow.OpDef.input_arg) return &input_arg_; } const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >& OpDef::input_arg() const { // @@protoc_insertion_point(field_list:tensorflow.OpDef.input_arg) return input_arg_; } // repeated .tensorflow.OpDef.ArgDef output_arg = 3; int OpDef::output_arg_size() const { return output_arg_.size(); } void OpDef::clear_output_arg() { output_arg_.Clear(); } const ::tensorflow::OpDef_ArgDef& OpDef::output_arg(int index) const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.output_arg) return output_arg_.Get(index); } ::tensorflow::OpDef_ArgDef* OpDef::mutable_output_arg(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.output_arg) return output_arg_.Mutable(index); } ::tensorflow::OpDef_ArgDef* OpDef::add_output_arg() { // @@protoc_insertion_point(field_add:tensorflow.OpDef.output_arg) return output_arg_.Add(); } ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >* OpDef::mutable_output_arg() { // @@protoc_insertion_point(field_mutable_list:tensorflow.OpDef.output_arg) return &output_arg_; } const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >& OpDef::output_arg() const { // @@protoc_insertion_point(field_list:tensorflow.OpDef.output_arg) return output_arg_; } // repeated .tensorflow.OpDef.AttrDef attr = 4; int OpDef::attr_size() const { return attr_.size(); } void OpDef::clear_attr() { attr_.Clear(); } const ::tensorflow::OpDef_AttrDef& OpDef::attr(int index) const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.attr) return attr_.Get(index); } ::tensorflow::OpDef_AttrDef* OpDef::mutable_attr(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.attr) return attr_.Mutable(index); } ::tensorflow::OpDef_AttrDef* OpDef::add_attr() { // @@protoc_insertion_point(field_add:tensorflow.OpDef.attr) return attr_.Add(); } ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef >* OpDef::mutable_attr() { // @@protoc_insertion_point(field_mutable_list:tensorflow.OpDef.attr) return &attr_; } const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef >& OpDef::attr() const { // @@protoc_insertion_point(field_list:tensorflow.OpDef.attr) return attr_; } // optional .tensorflow.OpDeprecation deprecation = 8; bool OpDef::has_deprecation() const { return this != internal_default_instance() && deprecation_ != NULL; } void OpDef::clear_deprecation() { if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) delete deprecation_; deprecation_ = NULL; } const ::tensorflow::OpDeprecation& OpDef::deprecation() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.deprecation) return deprecation_ != NULL ? *deprecation_ : *::tensorflow::OpDeprecation::internal_default_instance(); } ::tensorflow::OpDeprecation* OpDef::mutable_deprecation() { if (deprecation_ == NULL) { _slow_mutable_deprecation(); } // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.deprecation) return deprecation_; } ::tensorflow::OpDeprecation* OpDef::release_deprecation() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.deprecation) if (GetArenaNoVirtual() != NULL) { return _slow_release_deprecation(); } else { ::tensorflow::OpDeprecation* temp = deprecation_; deprecation_ = NULL; return temp; } } void OpDef::set_allocated_deprecation(::tensorflow::OpDeprecation* deprecation) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete deprecation_; } if (deprecation != NULL) { _slow_set_allocated_deprecation(message_arena, &deprecation); } deprecation_ = deprecation; if (deprecation) { } else { } // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.deprecation) } // optional string summary = 5; void OpDef::clear_summary() { summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef::summary() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.summary) return summary_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef::set_summary(const ::std::string& value) { summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.summary) } void OpDef::set_summary(const char* value) { summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.summary) } void OpDef::set_summary(const char* value, size_t size) { summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.summary) } ::std::string* OpDef::mutable_summary() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.summary) return summary_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef::release_summary() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.summary) return summary_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef::unsafe_arena_release_summary() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.summary) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return summary_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef::set_allocated_summary(::std::string* summary) { if (summary != NULL) { } else { } summary_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), summary, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.summary) } void OpDef::unsafe_arena_set_allocated_summary( ::std::string* summary) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (summary != NULL) { } else { } summary_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), summary, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.summary) } // optional string description = 6; void OpDef::clear_description() { description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDef::description() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.description) return description_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef::set_description(const ::std::string& value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.description) } void OpDef::set_description(const char* value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.description) } void OpDef::set_description(const char* value, size_t size) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.description) } ::std::string* OpDef::mutable_description() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.description) return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef::release_description() { // @@protoc_insertion_point(field_release:tensorflow.OpDef.description) return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDef::unsafe_arena_release_description() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.description) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDef::set_allocated_description(::std::string* description) { if (description != NULL) { } else { } description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.description) } void OpDef::unsafe_arena_set_allocated_description( ::std::string* description) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (description != NULL) { } else { } description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.description) } // optional bool is_commutative = 18; void OpDef::clear_is_commutative() { is_commutative_ = false; } bool OpDef::is_commutative() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.is_commutative) return is_commutative_; } void OpDef::set_is_commutative(bool value) { is_commutative_ = value; // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_commutative) } // optional bool is_aggregate = 16; void OpDef::clear_is_aggregate() { is_aggregate_ = false; } bool OpDef::is_aggregate() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.is_aggregate) return is_aggregate_; } void OpDef::set_is_aggregate(bool value) { is_aggregate_ = value; // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_aggregate) } // optional bool is_stateful = 17; void OpDef::clear_is_stateful() { is_stateful_ = false; } bool OpDef::is_stateful() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.is_stateful) return is_stateful_; } void OpDef::set_is_stateful(bool value) { is_stateful_ = value; // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_stateful) } // optional bool allows_uninitialized_input = 19; void OpDef::clear_allows_uninitialized_input() { allows_uninitialized_input_ = false; } bool OpDef::allows_uninitialized_input() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.allows_uninitialized_input) return allows_uninitialized_input_; } void OpDef::set_allows_uninitialized_input(bool value) { allows_uninitialized_input_ = value; // @@protoc_insertion_point(field_set:tensorflow.OpDef.allows_uninitialized_input) } inline const OpDef* OpDef::internal_default_instance() { return &OpDef_default_instance_.get(); } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int OpDeprecation::kVersionFieldNumber; const int OpDeprecation::kExplanationFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 OpDeprecation::OpDeprecation() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpDeprecation) } OpDeprecation::OpDeprecation(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_op_5fdef_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpDeprecation) } void OpDeprecation::InitAsDefaultInstance() { } OpDeprecation::OpDeprecation(const OpDeprecation& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.OpDeprecation) } void OpDeprecation::SharedCtor() { explanation_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); version_ = 0; _cached_size_ = 0; } OpDeprecation::~OpDeprecation() { // @@protoc_insertion_point(destructor:tensorflow.OpDeprecation) SharedDtor(); } void OpDeprecation::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } explanation_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); } void OpDeprecation::ArenaDtor(void* object) { OpDeprecation* _this = reinterpret_cast< OpDeprecation* >(object); (void)_this; } void OpDeprecation::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void OpDeprecation::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpDeprecation::descriptor() { protobuf_AssignDescriptorsOnce(); return OpDeprecation_descriptor_; } const OpDeprecation& OpDeprecation::default_instance() { protobuf_InitDefaults_op_5fdef_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed OpDeprecation_default_instance_; OpDeprecation* OpDeprecation::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpDeprecation::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpDeprecation) version_ = 0; explanation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } bool OpDeprecation::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpDeprecation) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional int32 version = 1; case 1: { if (tag == 8) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &version_))); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_explanation; break; } // optional string explanation = 2; case 2: { if (tag == 18) { parse_explanation: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_explanation())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->explanation().data(), this->explanation().length(), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDeprecation.explanation")); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.OpDeprecation) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.OpDeprecation) return false; #undef DO_ } void OpDeprecation::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpDeprecation) // optional int32 version = 1; if (this->version() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->version(), output); } // optional string explanation = 2; if (this->explanation().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->explanation().data(), this->explanation().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDeprecation.explanation"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->explanation(), output); } // @@protoc_insertion_point(serialize_end:tensorflow.OpDeprecation) } ::google::protobuf::uint8* OpDeprecation::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDeprecation) // optional int32 version = 1; if (this->version() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->version(), target); } // optional string explanation = 2; if (this->explanation().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->explanation().data(), this->explanation().length(), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDeprecation.explanation"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->explanation(), target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDeprecation) return target; } size_t OpDeprecation::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDeprecation) size_t total_size = 0; // optional int32 version = 1; if (this->version() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->version()); } // optional string explanation = 2; if (this->explanation().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->explanation()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void OpDeprecation::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDeprecation) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const OpDeprecation* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpDeprecation) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDeprecation) UnsafeMergeFrom(*source); } } void OpDeprecation::MergeFrom(const OpDeprecation& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDeprecation) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void OpDeprecation::UnsafeMergeFrom(const OpDeprecation& from) { GOOGLE_DCHECK(&from != this); if (from.version() != 0) { set_version(from.version()); } if (from.explanation().size() > 0) { set_explanation(from.explanation()); } } void OpDeprecation::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpDeprecation) if (&from == this) return; Clear(); MergeFrom(from); } void OpDeprecation::CopyFrom(const OpDeprecation& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDeprecation) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool OpDeprecation::IsInitialized() const { return true; } void OpDeprecation::Swap(OpDeprecation* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { OpDeprecation temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void OpDeprecation::UnsafeArenaSwap(OpDeprecation* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void OpDeprecation::InternalSwap(OpDeprecation* other) { std::swap(version_, other->version_); explanation_.Swap(&other->explanation_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpDeprecation::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = OpDeprecation_descriptor_; metadata.reflection = OpDeprecation_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // OpDeprecation // optional int32 version = 1; void OpDeprecation::clear_version() { version_ = 0; } ::google::protobuf::int32 OpDeprecation::version() const { // @@protoc_insertion_point(field_get:tensorflow.OpDeprecation.version) return version_; } void OpDeprecation::set_version(::google::protobuf::int32 value) { version_ = value; // @@protoc_insertion_point(field_set:tensorflow.OpDeprecation.version) } // optional string explanation = 2; void OpDeprecation::clear_explanation() { explanation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } const ::std::string& OpDeprecation::explanation() const { // @@protoc_insertion_point(field_get:tensorflow.OpDeprecation.explanation) return explanation_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDeprecation::set_explanation(const ::std::string& value) { explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDeprecation.explanation) } void OpDeprecation::set_explanation(const char* value) { explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:tensorflow.OpDeprecation.explanation) } void OpDeprecation::set_explanation(const char* value, size_t size) { explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDeprecation.explanation) } ::std::string* OpDeprecation::mutable_explanation() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDeprecation.explanation) return explanation_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDeprecation::release_explanation() { // @@protoc_insertion_point(field_release:tensorflow.OpDeprecation.explanation) return explanation_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } ::std::string* OpDeprecation::unsafe_arena_release_explanation() { // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDeprecation.explanation) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return explanation_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } void OpDeprecation::set_allocated_explanation(::std::string* explanation) { if (explanation != NULL) { } else { } explanation_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), explanation, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDeprecation.explanation) } void OpDeprecation::unsafe_arena_set_allocated_explanation( ::std::string* explanation) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (explanation != NULL) { } else { } explanation_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), explanation, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDeprecation.explanation) } inline const OpDeprecation* OpDeprecation::internal_default_instance() { return &OpDeprecation_default_instance_.get(); } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int OpList::kOpFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 OpList::OpList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpList) } OpList::OpList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), op_(arena) { #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER protobuf_InitDefaults_op_5fdef_2eproto(); #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpList) } void OpList::InitAsDefaultInstance() { } OpList::OpList(const OpList& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); UnsafeMergeFrom(from); // @@protoc_insertion_point(copy_constructor:tensorflow.OpList) } void OpList::SharedCtor() { _cached_size_ = 0; } OpList::~OpList() { // @@protoc_insertion_point(destructor:tensorflow.OpList) SharedDtor(); } void OpList::SharedDtor() { ::google::protobuf::Arena* arena = GetArenaNoVirtual(); if (arena != NULL) { return; } } void OpList::ArenaDtor(void* object) { OpList* _this = reinterpret_cast< OpList* >(object); (void)_this; } void OpList::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void OpList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpList::descriptor() { protobuf_AssignDescriptorsOnce(); return OpList_descriptor_; } const OpList& OpList::default_instance() { protobuf_InitDefaults_op_5fdef_2eproto(); return *internal_default_instance(); } ::google::protobuf::internal::ExplicitlyConstructed OpList_default_instance_; OpList* OpList::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpList::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpList) op_.Clear(); } bool OpList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpList) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .tensorflow.OpDef op = 1; case 1: { if (tag == 10) { DO_(input->IncrementRecursionDepth()); parse_loop_op: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_op())); } else { goto handle_unusual; } if (input->ExpectTag(10)) goto parse_loop_op; input->UnsafeDecrementRecursionDepth(); if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } success: // @@protoc_insertion_point(parse_success:tensorflow.OpList) return true; failure: // @@protoc_insertion_point(parse_failure:tensorflow.OpList) return false; #undef DO_ } void OpList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpList) // repeated .tensorflow.OpDef op = 1; for (unsigned int i = 0, n = this->op_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->op(i), output); } // @@protoc_insertion_point(serialize_end:tensorflow.OpList) } ::google::protobuf::uint8* OpList::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpList) // repeated .tensorflow.OpDef op = 1; for (unsigned int i = 0, n = this->op_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, this->op(i), false, target); } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpList) return target; } size_t OpList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpList) size_t total_size = 0; // repeated .tensorflow.OpDef op = 1; { unsigned int count = this->op_size(); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->op(i)); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void OpList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpList) if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); const OpList* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.OpList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpList) UnsafeMergeFrom(*source); } } void OpList::MergeFrom(const OpList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpList) if (GOOGLE_PREDICT_TRUE(&from != this)) { UnsafeMergeFrom(from); } else { MergeFromFail(__LINE__); } } void OpList::UnsafeMergeFrom(const OpList& from) { GOOGLE_DCHECK(&from != this); op_.MergeFrom(from.op_); } void OpList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.OpList) if (&from == this) return; Clear(); MergeFrom(from); } void OpList::CopyFrom(const OpList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpList) if (&from == this) return; Clear(); UnsafeMergeFrom(from); } bool OpList::IsInitialized() const { return true; } void OpList::Swap(OpList* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { OpList temp; temp.UnsafeMergeFrom(*this); CopyFrom(*other); other->CopyFrom(temp); } } void OpList::UnsafeArenaSwap(OpList* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void OpList::InternalSwap(OpList* other) { op_.UnsafeArenaSwap(&other->op_); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = OpList_descriptor_; metadata.reflection = OpList_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // OpList // repeated .tensorflow.OpDef op = 1; int OpList::op_size() const { return op_.size(); } void OpList::clear_op() { op_.Clear(); } const ::tensorflow::OpDef& OpList::op(int index) const { // @@protoc_insertion_point(field_get:tensorflow.OpList.op) return op_.Get(index); } ::tensorflow::OpDef* OpList::mutable_op(int index) { // @@protoc_insertion_point(field_mutable:tensorflow.OpList.op) return op_.Mutable(index); } ::tensorflow::OpDef* OpList::add_op() { // @@protoc_insertion_point(field_add:tensorflow.OpList.op) return op_.Add(); } ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef >* OpList::mutable_op() { // @@protoc_insertion_point(field_mutable_list:tensorflow.OpList.op) return &op_; } const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef >& OpList::op() const { // @@protoc_insertion_point(field_list:tensorflow.OpList.op) return op_; } inline const OpList* OpList::internal_default_instance() { return &OpList_default_instance_.get(); } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace tensorflow // @@protoc_insertion_point(global_scope)