// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/compiler/tf2tensorrt/utils/trt_engine_instance.proto

#ifndef PROTOBUF_INCLUDED_tensorflow_2fcompiler_2ftf2tensorrt_2futils_2ftrt_5fengine_5finstance_2eproto
#define PROTOBUF_INCLUDED_tensorflow_2fcompiler_2ftf2tensorrt_2futils_2ftrt_5fengine_5finstance_2eproto

#include <limits>
#include <string>

#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3007000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3007001 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include "tensorflow/core/framework/tensor_shape.pb.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcompiler_2ftf2tensorrt_2futils_2ftrt_5fengine_5finstance_2eproto

// Internal implementation detail -- do not use these members.
struct TableStruct_tensorflow_2fcompiler_2ftf2tensorrt_2futils_2ftrt_5fengine_5finstance_2eproto {
  static const ::google::protobuf::internal::ParseTableField entries[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::google::protobuf::internal::ParseTable schema[1]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
  static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors_tensorflow_2fcompiler_2ftf2tensorrt_2futils_2ftrt_5fengine_5finstance_2eproto();
namespace tensorflow {
namespace tensorrt {
class TRTEngineInstance;
class TRTEngineInstanceDefaultTypeInternal;
extern TRTEngineInstanceDefaultTypeInternal _TRTEngineInstance_default_instance_;
}  // namespace tensorrt
}  // namespace tensorflow
namespace google {
namespace protobuf {
template<> ::tensorflow::tensorrt::TRTEngineInstance* Arena::CreateMaybeMessage<::tensorflow::tensorrt::TRTEngineInstance>(Arena*);
}  // namespace protobuf
}  // namespace google
namespace tensorflow {
namespace tensorrt {

// ===================================================================

class TRTEngineInstance :
    public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tensorrt.TRTEngineInstance) */ {
 public:
  TRTEngineInstance();
  virtual ~TRTEngineInstance();

  TRTEngineInstance(const TRTEngineInstance& from);

  inline TRTEngineInstance& operator=(const TRTEngineInstance& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  TRTEngineInstance(TRTEngineInstance&& from) noexcept
    : TRTEngineInstance() {
    *this = ::std::move(from);
  }

  inline TRTEngineInstance& operator=(TRTEngineInstance&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  static const ::google::protobuf::Descriptor* descriptor() {
    return default_instance().GetDescriptor();
  }
  static const TRTEngineInstance& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const TRTEngineInstance* internal_default_instance() {
    return reinterpret_cast<const TRTEngineInstance*>(
               &_TRTEngineInstance_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  void Swap(TRTEngineInstance* other);
  friend void swap(TRTEngineInstance& a, TRTEngineInstance& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline TRTEngineInstance* New() const final {
    return CreateMaybeMessage<TRTEngineInstance>(nullptr);
  }

  TRTEngineInstance* New(::google::protobuf::Arena* arena) const final {
    return CreateMaybeMessage<TRTEngineInstance>(arena);
  }
  void CopyFrom(const ::google::protobuf::Message& from) final;
  void MergeFrom(const ::google::protobuf::Message& from) final;
  void CopyFrom(const TRTEngineInstance& from);
  void MergeFrom(const TRTEngineInstance& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
  ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
  #else
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) final;
  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const final;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      ::google::protobuf::uint8* target) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(TRTEngineInstance* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // repeated .tensorflow.TensorShapeProto input_shapes = 1;
  int input_shapes_size() const;
  void clear_input_shapes();
  static const int kInputShapesFieldNumber = 1;
  ::tensorflow::TensorShapeProto* mutable_input_shapes(int index);
  ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >*
      mutable_input_shapes();
  const ::tensorflow::TensorShapeProto& input_shapes(int index) const;
  ::tensorflow::TensorShapeProto* add_input_shapes();
  const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >&
      input_shapes() const;

  // bytes serialized_engine = 2;
  void clear_serialized_engine();
  static const int kSerializedEngineFieldNumber = 2;
  const ::std::string& serialized_engine() const;
  void set_serialized_engine(const ::std::string& value);
  #if LANG_CXX11
  void set_serialized_engine(::std::string&& value);
  #endif
  void set_serialized_engine(const char* value);
  void set_serialized_engine(const void* value, size_t size);
  ::std::string* mutable_serialized_engine();
  ::std::string* release_serialized_engine();
  void set_allocated_serialized_engine(::std::string* serialized_engine);

  // @@protoc_insertion_point(class_scope:tensorflow.tensorrt.TRTEngineInstance)
 private:
  class HasBitSetters;

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto > input_shapes_;
  ::google::protobuf::internal::ArenaStringPtr serialized_engine_;
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
  friend struct ::TableStruct_tensorflow_2fcompiler_2ftf2tensorrt_2futils_2ftrt_5fengine_5finstance_2eproto;
};
// ===================================================================


// ===================================================================

#ifdef __GNUC__
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// TRTEngineInstance

// repeated .tensorflow.TensorShapeProto input_shapes = 1;
inline int TRTEngineInstance::input_shapes_size() const {
  return input_shapes_.size();
}
inline ::tensorflow::TensorShapeProto* TRTEngineInstance::mutable_input_shapes(int index) {
  // @@protoc_insertion_point(field_mutable:tensorflow.tensorrt.TRTEngineInstance.input_shapes)
  return input_shapes_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >*
TRTEngineInstance::mutable_input_shapes() {
  // @@protoc_insertion_point(field_mutable_list:tensorflow.tensorrt.TRTEngineInstance.input_shapes)
  return &input_shapes_;
}
inline const ::tensorflow::TensorShapeProto& TRTEngineInstance::input_shapes(int index) const {
  // @@protoc_insertion_point(field_get:tensorflow.tensorrt.TRTEngineInstance.input_shapes)
  return input_shapes_.Get(index);
}
inline ::tensorflow::TensorShapeProto* TRTEngineInstance::add_input_shapes() {
  // @@protoc_insertion_point(field_add:tensorflow.tensorrt.TRTEngineInstance.input_shapes)
  return input_shapes_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >&
TRTEngineInstance::input_shapes() const {
  // @@protoc_insertion_point(field_list:tensorflow.tensorrt.TRTEngineInstance.input_shapes)
  return input_shapes_;
}

// bytes serialized_engine = 2;
inline void TRTEngineInstance::clear_serialized_engine() {
  serialized_engine_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& TRTEngineInstance::serialized_engine() const {
  // @@protoc_insertion_point(field_get:tensorflow.tensorrt.TRTEngineInstance.serialized_engine)
  return serialized_engine_.GetNoArena();
}
inline void TRTEngineInstance::set_serialized_engine(const ::std::string& value) {
  
  serialized_engine_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:tensorflow.tensorrt.TRTEngineInstance.serialized_engine)
}
#if LANG_CXX11
inline void TRTEngineInstance::set_serialized_engine(::std::string&& value) {
  
  serialized_engine_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:tensorflow.tensorrt.TRTEngineInstance.serialized_engine)
}
#endif
inline void TRTEngineInstance::set_serialized_engine(const char* value) {
  GOOGLE_DCHECK(value != nullptr);
  
  serialized_engine_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:tensorflow.tensorrt.TRTEngineInstance.serialized_engine)
}
inline void TRTEngineInstance::set_serialized_engine(const void* value, size_t size) {
  
  serialized_engine_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:tensorflow.tensorrt.TRTEngineInstance.serialized_engine)
}
inline ::std::string* TRTEngineInstance::mutable_serialized_engine() {
  
  // @@protoc_insertion_point(field_mutable:tensorflow.tensorrt.TRTEngineInstance.serialized_engine)
  return serialized_engine_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* TRTEngineInstance::release_serialized_engine() {
  // @@protoc_insertion_point(field_release:tensorflow.tensorrt.TRTEngineInstance.serialized_engine)
  
  return serialized_engine_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void TRTEngineInstance::set_allocated_serialized_engine(::std::string* serialized_engine) {
  if (serialized_engine != nullptr) {
    
  } else {
    
  }
  serialized_engine_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialized_engine);
  // @@protoc_insertion_point(field_set_allocated:tensorflow.tensorrt.TRTEngineInstance.serialized_engine)
}

#ifdef __GNUC__
  #pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)

}  // namespace tensorrt
}  // namespace tensorflow

// @@protoc_insertion_point(global_scope)

#include <google/protobuf/port_undef.inc>
#endif  // PROTOBUF_INCLUDED_tensorflow_2fcompiler_2ftf2tensorrt_2futils_2ftrt_5fengine_5finstance_2eproto
