Skip to content

File gate_calculator.pb.h

File List > calculators > core > gate_calculator.pb.h

Go to the documentation of this file

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mediapipe/calculators/core/gate_calculator.proto

#ifndef GOOGLE_PROTOBUF_INCLUDED_mediapipe_2fcalculators_2fcore_2fgate_5fcalculator_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_mediapipe_2fcalculators_2fcore_2fgate_5fcalculator_2eproto

#include <limits>
#include <string>

#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3019000
#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 3019001 < 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/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.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/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "mediapipe/framework/calculator.pb.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_mediapipe_2fcalculators_2fcore_2fgate_5fcalculator_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct TableStruct_mediapipe_2fcalculators_2fcore_2fgate_5fcalculator_2eproto {
  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_mediapipe_2fcalculators_2fcore_2fgate_5fcalculator_2eproto;
namespace mediapipe {
class GateCalculatorOptions;
struct GateCalculatorOptionsDefaultTypeInternal;
extern GateCalculatorOptionsDefaultTypeInternal _GateCalculatorOptions_default_instance_;
}  // namespace mediapipe
PROTOBUF_NAMESPACE_OPEN
template<> ::mediapipe::GateCalculatorOptions* Arena::CreateMaybeMessage<::mediapipe::GateCalculatorOptions>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace mediapipe {

enum GateCalculatorOptions_GateState : int {
  GateCalculatorOptions_GateState_UNSPECIFIED = 0,
  GateCalculatorOptions_GateState_GATE_UNINITIALIZED = 1,
  GateCalculatorOptions_GateState_GATE_ALLOW = 2,
  GateCalculatorOptions_GateState_GATE_DISALLOW = 3
};
bool GateCalculatorOptions_GateState_IsValid(int value);
constexpr GateCalculatorOptions_GateState GateCalculatorOptions_GateState_GateState_MIN = GateCalculatorOptions_GateState_UNSPECIFIED;
constexpr GateCalculatorOptions_GateState GateCalculatorOptions_GateState_GateState_MAX = GateCalculatorOptions_GateState_GATE_DISALLOW;
constexpr int GateCalculatorOptions_GateState_GateState_ARRAYSIZE = GateCalculatorOptions_GateState_GateState_MAX + 1;

const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GateCalculatorOptions_GateState_descriptor();
template<typename T>
inline const std::string& GateCalculatorOptions_GateState_Name(T enum_t_value) {
  static_assert(::std::is_same<T, GateCalculatorOptions_GateState>::value ||
    ::std::is_integral<T>::value,
    "Incorrect type passed to function GateCalculatorOptions_GateState_Name.");
  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
    GateCalculatorOptions_GateState_descriptor(), enum_t_value);
}
inline bool GateCalculatorOptions_GateState_Parse(
    ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GateCalculatorOptions_GateState* value) {
  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<GateCalculatorOptions_GateState>(
    GateCalculatorOptions_GateState_descriptor(), name, value);
}
// ===================================================================

class GateCalculatorOptions final :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mediapipe.GateCalculatorOptions) */ {
 public:
  inline GateCalculatorOptions() : GateCalculatorOptions(nullptr) {}
  ~GateCalculatorOptions() override;
  explicit constexpr GateCalculatorOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  GateCalculatorOptions(const GateCalculatorOptions& from);
  GateCalculatorOptions(GateCalculatorOptions&& from) noexcept
    : GateCalculatorOptions() {
    *this = ::std::move(from);
  }

  inline GateCalculatorOptions& operator=(const GateCalculatorOptions& from) {
    CopyFrom(from);
    return *this;
  }
  inline GateCalculatorOptions& operator=(GateCalculatorOptions&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
    return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  }
  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const GateCalculatorOptions& default_instance() {
    return *internal_default_instance();
  }
  static inline const GateCalculatorOptions* internal_default_instance() {
    return reinterpret_cast<const GateCalculatorOptions*>(
               &_GateCalculatorOptions_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(GateCalculatorOptions& a, GateCalculatorOptions& b) {
    a.Swap(&b);
  }
  inline void Swap(GateCalculatorOptions* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GateCalculatorOptions* other) {
    if (other == this) return;
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

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

  GateCalculatorOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<GateCalculatorOptions>(arena);
  }
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  void CopyFrom(const GateCalculatorOptions& from);
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  void MergeFrom(const GateCalculatorOptions& from);
  private:
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  public:
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  uint8_t* _InternalSerialize(
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(GateCalculatorOptions* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "mediapipe.GateCalculatorOptions";
  }
  protected:
  explicit GateCalculatorOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                       bool is_message_owned = false);
  private:
  static void ArenaDtor(void* object);
  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  static const ClassData _class_data_;
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;

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

  typedef GateCalculatorOptions_GateState GateState;
  static constexpr GateState UNSPECIFIED =
    GateCalculatorOptions_GateState_UNSPECIFIED;
  static constexpr GateState GATE_UNINITIALIZED =
    GateCalculatorOptions_GateState_GATE_UNINITIALIZED;
  static constexpr GateState GATE_ALLOW =
    GateCalculatorOptions_GateState_GATE_ALLOW;
  static constexpr GateState GATE_DISALLOW =
    GateCalculatorOptions_GateState_GATE_DISALLOW;
  static inline bool GateState_IsValid(int value) {
    return GateCalculatorOptions_GateState_IsValid(value);
  }
  static constexpr GateState GateState_MIN =
    GateCalculatorOptions_GateState_GateState_MIN;
  static constexpr GateState GateState_MAX =
    GateCalculatorOptions_GateState_GateState_MAX;
  static constexpr int GateState_ARRAYSIZE =
    GateCalculatorOptions_GateState_GateState_ARRAYSIZE;
  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  GateState_descriptor() {
    return GateCalculatorOptions_GateState_descriptor();
  }
  template<typename T>
  static inline const std::string& GateState_Name(T enum_t_value) {
    static_assert(::std::is_same<T, GateState>::value ||
      ::std::is_integral<T>::value,
      "Incorrect type passed to function GateState_Name.");
    return GateCalculatorOptions_GateState_Name(enum_t_value);
  }
  static inline bool GateState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
      GateState* value) {
    return GateCalculatorOptions_GateState_Parse(name, value);
  }

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

  enum : int {
    kEmptyPacketsAsAllowFieldNumber = 1,
    kAllowFieldNumber = 2,
    kInitialGateStateFieldNumber = 3,
  };
  // optional bool empty_packets_as_allow = 1;
  bool has_empty_packets_as_allow() const;
  private:
  bool _internal_has_empty_packets_as_allow() const;
  public:
  void clear_empty_packets_as_allow();
  bool empty_packets_as_allow() const;
  void set_empty_packets_as_allow(bool value);
  private:
  bool _internal_empty_packets_as_allow() const;
  void _internal_set_empty_packets_as_allow(bool value);
  public:

  // optional bool allow = 2 [default = false];
  bool has_allow() const;
  private:
  bool _internal_has_allow() const;
  public:
  void clear_allow();
  bool allow() const;
  void set_allow(bool value);
  private:
  bool _internal_allow() const;
  void _internal_set_allow(bool value);
  public:

  // optional .mediapipe.GateCalculatorOptions.GateState initial_gate_state = 3 [default = GATE_UNINITIALIZED];
  bool has_initial_gate_state() const;
  private:
  bool _internal_has_initial_gate_state() const;
  public:
  void clear_initial_gate_state();
  ::mediapipe::GateCalculatorOptions_GateState initial_gate_state() const;
  void set_initial_gate_state(::mediapipe::GateCalculatorOptions_GateState value);
  private:
  ::mediapipe::GateCalculatorOptions_GateState _internal_initial_gate_state() const;
  void _internal_set_initial_gate_state(::mediapipe::GateCalculatorOptions_GateState value);
  public:

  static const int kExtFieldNumber = 261754847;
  static ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::mediapipe::CalculatorOptions,
      ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::mediapipe::GateCalculatorOptions >, 11, false >
    ext;
  // @@protoc_insertion_point(class_scope:mediapipe.GateCalculatorOptions)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  bool empty_packets_as_allow_;
  bool allow_;
  int initial_gate_state_;
  friend struct ::TableStruct_mediapipe_2fcalculators_2fcore_2fgate_5fcalculator_2eproto;
};
// ===================================================================


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

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

// optional bool empty_packets_as_allow = 1;
inline bool GateCalculatorOptions::_internal_has_empty_packets_as_allow() const {
  bool value = (_has_bits_[0] & 0x00000001u) != 0;
  return value;
}
inline bool GateCalculatorOptions::has_empty_packets_as_allow() const {
  return _internal_has_empty_packets_as_allow();
}
inline void GateCalculatorOptions::clear_empty_packets_as_allow() {
  empty_packets_as_allow_ = false;
  _has_bits_[0] &= ~0x00000001u;
}
inline bool GateCalculatorOptions::_internal_empty_packets_as_allow() const {
  return empty_packets_as_allow_;
}
inline bool GateCalculatorOptions::empty_packets_as_allow() const {
  // @@protoc_insertion_point(field_get:mediapipe.GateCalculatorOptions.empty_packets_as_allow)
  return _internal_empty_packets_as_allow();
}
inline void GateCalculatorOptions::_internal_set_empty_packets_as_allow(bool value) {
  _has_bits_[0] |= 0x00000001u;
  empty_packets_as_allow_ = value;
}
inline void GateCalculatorOptions::set_empty_packets_as_allow(bool value) {
  _internal_set_empty_packets_as_allow(value);
  // @@protoc_insertion_point(field_set:mediapipe.GateCalculatorOptions.empty_packets_as_allow)
}

// optional bool allow = 2 [default = false];
inline bool GateCalculatorOptions::_internal_has_allow() const {
  bool value = (_has_bits_[0] & 0x00000002u) != 0;
  return value;
}
inline bool GateCalculatorOptions::has_allow() const {
  return _internal_has_allow();
}
inline void GateCalculatorOptions::clear_allow() {
  allow_ = false;
  _has_bits_[0] &= ~0x00000002u;
}
inline bool GateCalculatorOptions::_internal_allow() const {
  return allow_;
}
inline bool GateCalculatorOptions::allow() const {
  // @@protoc_insertion_point(field_get:mediapipe.GateCalculatorOptions.allow)
  return _internal_allow();
}
inline void GateCalculatorOptions::_internal_set_allow(bool value) {
  _has_bits_[0] |= 0x00000002u;
  allow_ = value;
}
inline void GateCalculatorOptions::set_allow(bool value) {
  _internal_set_allow(value);
  // @@protoc_insertion_point(field_set:mediapipe.GateCalculatorOptions.allow)
}

// optional .mediapipe.GateCalculatorOptions.GateState initial_gate_state = 3 [default = GATE_UNINITIALIZED];
inline bool GateCalculatorOptions::_internal_has_initial_gate_state() const {
  bool value = (_has_bits_[0] & 0x00000004u) != 0;
  return value;
}
inline bool GateCalculatorOptions::has_initial_gate_state() const {
  return _internal_has_initial_gate_state();
}
inline void GateCalculatorOptions::clear_initial_gate_state() {
  initial_gate_state_ = 1;
  _has_bits_[0] &= ~0x00000004u;
}
inline ::mediapipe::GateCalculatorOptions_GateState GateCalculatorOptions::_internal_initial_gate_state() const {
  return static_cast< ::mediapipe::GateCalculatorOptions_GateState >(initial_gate_state_);
}
inline ::mediapipe::GateCalculatorOptions_GateState GateCalculatorOptions::initial_gate_state() const {
  // @@protoc_insertion_point(field_get:mediapipe.GateCalculatorOptions.initial_gate_state)
  return _internal_initial_gate_state();
}
inline void GateCalculatorOptions::_internal_set_initial_gate_state(::mediapipe::GateCalculatorOptions_GateState value) {
  assert(::mediapipe::GateCalculatorOptions_GateState_IsValid(value));
  _has_bits_[0] |= 0x00000004u;
  initial_gate_state_ = value;
}
inline void GateCalculatorOptions::set_initial_gate_state(::mediapipe::GateCalculatorOptions_GateState value) {
  _internal_set_initial_gate_state(value);
  // @@protoc_insertion_point(field_set:mediapipe.GateCalculatorOptions.initial_gate_state)
}

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

// @@protoc_insertion_point(namespace_scope)

}  // namespace mediapipe

PROTOBUF_NAMESPACE_OPEN

template <> struct is_proto_enum< ::mediapipe::GateCalculatorOptions_GateState> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::mediapipe::GateCalculatorOptions_GateState>() {
  return ::mediapipe::GateCalculatorOptions_GateState_descriptor();
}

PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

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