// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: video_decode_stats.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "video_decode_stats.pb.h"

#include <algorithm>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
// @@protoc_insertion_point(includes)

namespace media {
class DecodeStatsProtoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<DecodeStatsProto> {
} _DecodeStatsProto_default_instance_;

namespace protobuf_video_5fdecode_5fstats_2eproto {

PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
    const TableStruct::entries[] = {
  {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
};

PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
    const TableStruct::aux[] = {
  ::google::protobuf::internal::AuxillaryParseTableField(),
};
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
    TableStruct::schema[] = {
  { NULL, NULL, 0, -1, -1, false },
};


void TableStruct::Shutdown() {
  _DecodeStatsProto_default_instance_.Shutdown();
}

void TableStruct::InitDefaultsImpl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::google::protobuf::internal::InitProtobufDefaults();
  _DecodeStatsProto_default_instance_.DefaultConstruct();
}

void InitDefaults() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
}
void AddDescriptorsImpl() {
  InitDefaults();
  ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown);
}

void AddDescriptors() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
}

}  // namespace protobuf_video_5fdecode_5fstats_2eproto


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

#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int DecodeStatsProto::kFramesDecodedFieldNumber;
const int DecodeStatsProto::kFramesDroppedFieldNumber;
const int DecodeStatsProto::kFramesDecodedPowerEfficientFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

DecodeStatsProto::DecodeStatsProto()
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    protobuf_video_5fdecode_5fstats_2eproto::InitDefaults();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:media.DecodeStatsProto)
}
DecodeStatsProto::DecodeStatsProto(const DecodeStatsProto& from)
  : ::google::protobuf::MessageLite(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::memcpy(&frames_decoded_, &from.frames_decoded_,
    static_cast<size_t>(reinterpret_cast<char*>(&frames_decoded_power_efficient_) -
    reinterpret_cast<char*>(&frames_decoded_)) + sizeof(frames_decoded_power_efficient_));
  // @@protoc_insertion_point(copy_constructor:media.DecodeStatsProto)
}

void DecodeStatsProto::SharedCtor() {
  _cached_size_ = 0;
  ::memset(&frames_decoded_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&frames_decoded_power_efficient_) -
      reinterpret_cast<char*>(&frames_decoded_)) + sizeof(frames_decoded_power_efficient_));
}

DecodeStatsProto::~DecodeStatsProto() {
  // @@protoc_insertion_point(destructor:media.DecodeStatsProto)
  SharedDtor();
}

void DecodeStatsProto::SharedDtor() {
}

void DecodeStatsProto::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const DecodeStatsProto& DecodeStatsProto::default_instance() {
  protobuf_video_5fdecode_5fstats_2eproto::InitDefaults();
  return *internal_default_instance();
}

DecodeStatsProto* DecodeStatsProto::New(::google::protobuf::Arena* arena) const {
  DecodeStatsProto* n = new DecodeStatsProto;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void DecodeStatsProto::Clear() {
// @@protoc_insertion_point(message_clear_start:media.DecodeStatsProto)
  if (_has_bits_[0 / 32] & 7u) {
    ::memset(&frames_decoded_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&frames_decoded_power_efficient_) -
        reinterpret_cast<char*>(&frames_decoded_)) + sizeof(frames_decoded_power_efficient_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool DecodeStatsProto::MergePartialFromCodedStream(
    ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  ::google::protobuf::uint32 tag;
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
              mutable_unknown_fields));
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
      &unknown_fields_string, false);
  // @@protoc_insertion_point(parse_start:media.DecodeStatsProto)
  for (;;) {
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
    tag = p.first;
    if (!p.second) goto handle_unusual;
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
      // optional uint64 frames_decoded = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(8u)) {
          set_has_frames_decoded();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
                 input, &frames_decoded_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional uint64 frames_dropped = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(16u)) {
          set_has_frames_dropped();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
                 input, &frames_dropped_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional uint64 frames_decoded_power_efficient = 3 [default = 0];
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(24u)) {
          set_has_frames_decoded_power_efficient();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
                 input, &frames_decoded_power_efficient_)));
        } else {
          goto handle_unusual;
        }
        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, &unknown_fields_stream));
        break;
      }
    }
  }
success:
  // @@protoc_insertion_point(parse_success:media.DecodeStatsProto)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:media.DecodeStatsProto)
  return false;
#undef DO_
}

void DecodeStatsProto::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:media.DecodeStatsProto)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional uint64 frames_decoded = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->frames_decoded(), output);
  }

  // optional uint64 frames_dropped = 2;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->frames_dropped(), output);
  }

  // optional uint64 frames_decoded_power_efficient = 3 [default = 0];
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->frames_decoded_power_efficient(), output);
  }

  output->WriteRaw(unknown_fields().data(),
                   static_cast<int>(unknown_fields().size()));
  // @@protoc_insertion_point(serialize_end:media.DecodeStatsProto)
}

size_t DecodeStatsProto::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:media.DecodeStatsProto)
  size_t total_size = 0;

  total_size += unknown_fields().size();

  if (_has_bits_[0 / 32] & 7u) {
    // optional uint64 frames_decoded = 1;
    if (has_frames_decoded()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
          this->frames_decoded());
    }

    // optional uint64 frames_dropped = 2;
    if (has_frames_dropped()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
          this->frames_dropped());
    }

    // optional uint64 frames_decoded_power_efficient = 3 [default = 0];
    if (has_frames_decoded_power_efficient()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
          this->frames_decoded_power_efficient());
    }

  }
  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 DecodeStatsProto::CheckTypeAndMergeFrom(
    const ::google::protobuf::MessageLite& from) {
  MergeFrom(*::google::protobuf::down_cast<const DecodeStatsProto*>(&from));
}

void DecodeStatsProto::MergeFrom(const DecodeStatsProto& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:media.DecodeStatsProto)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 7u) {
    if (cached_has_bits & 0x00000001u) {
      frames_decoded_ = from.frames_decoded_;
    }
    if (cached_has_bits & 0x00000002u) {
      frames_dropped_ = from.frames_dropped_;
    }
    if (cached_has_bits & 0x00000004u) {
      frames_decoded_power_efficient_ = from.frames_decoded_power_efficient_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void DecodeStatsProto::CopyFrom(const DecodeStatsProto& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:media.DecodeStatsProto)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool DecodeStatsProto::IsInitialized() const {
  return true;
}

void DecodeStatsProto::Swap(DecodeStatsProto* other) {
  if (other == this) return;
  InternalSwap(other);
}
void DecodeStatsProto::InternalSwap(DecodeStatsProto* other) {
  std::swap(frames_decoded_, other->frames_decoded_);
  std::swap(frames_dropped_, other->frames_dropped_);
  std::swap(frames_decoded_power_efficient_, other->frames_decoded_power_efficient_);
  std::swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  std::swap(_cached_size_, other->_cached_size_);
}

::std::string DecodeStatsProto::GetTypeName() const {
  return "media.DecodeStatsProto";
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// DecodeStatsProto

// optional uint64 frames_decoded = 1;
bool DecodeStatsProto::has_frames_decoded() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
void DecodeStatsProto::set_has_frames_decoded() {
  _has_bits_[0] |= 0x00000001u;
}
void DecodeStatsProto::clear_has_frames_decoded() {
  _has_bits_[0] &= ~0x00000001u;
}
void DecodeStatsProto::clear_frames_decoded() {
  frames_decoded_ = GOOGLE_ULONGLONG(0);
  clear_has_frames_decoded();
}
::google::protobuf::uint64 DecodeStatsProto::frames_decoded() const {
  // @@protoc_insertion_point(field_get:media.DecodeStatsProto.frames_decoded)
  return frames_decoded_;
}
void DecodeStatsProto::set_frames_decoded(::google::protobuf::uint64 value) {
  set_has_frames_decoded();
  frames_decoded_ = value;
  // @@protoc_insertion_point(field_set:media.DecodeStatsProto.frames_decoded)
}

// optional uint64 frames_dropped = 2;
bool DecodeStatsProto::has_frames_dropped() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
void DecodeStatsProto::set_has_frames_dropped() {
  _has_bits_[0] |= 0x00000002u;
}
void DecodeStatsProto::clear_has_frames_dropped() {
  _has_bits_[0] &= ~0x00000002u;
}
void DecodeStatsProto::clear_frames_dropped() {
  frames_dropped_ = GOOGLE_ULONGLONG(0);
  clear_has_frames_dropped();
}
::google::protobuf::uint64 DecodeStatsProto::frames_dropped() const {
  // @@protoc_insertion_point(field_get:media.DecodeStatsProto.frames_dropped)
  return frames_dropped_;
}
void DecodeStatsProto::set_frames_dropped(::google::protobuf::uint64 value) {
  set_has_frames_dropped();
  frames_dropped_ = value;
  // @@protoc_insertion_point(field_set:media.DecodeStatsProto.frames_dropped)
}

// optional uint64 frames_decoded_power_efficient = 3 [default = 0];
bool DecodeStatsProto::has_frames_decoded_power_efficient() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
void DecodeStatsProto::set_has_frames_decoded_power_efficient() {
  _has_bits_[0] |= 0x00000004u;
}
void DecodeStatsProto::clear_has_frames_decoded_power_efficient() {
  _has_bits_[0] &= ~0x00000004u;
}
void DecodeStatsProto::clear_frames_decoded_power_efficient() {
  frames_decoded_power_efficient_ = GOOGLE_ULONGLONG(0);
  clear_has_frames_decoded_power_efficient();
}
::google::protobuf::uint64 DecodeStatsProto::frames_decoded_power_efficient() const {
  // @@protoc_insertion_point(field_get:media.DecodeStatsProto.frames_decoded_power_efficient)
  return frames_decoded_power_efficient_;
}
void DecodeStatsProto::set_frames_decoded_power_efficient(::google::protobuf::uint64 value) {
  set_has_frames_decoded_power_efficient();
  frames_decoded_power_efficient_ = value;
  // @@protoc_insertion_point(field_set:media.DecodeStatsProto.frames_decoded_power_efficient)
}

#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS

// @@protoc_insertion_point(namespace_scope)

}  // namespace media

// @@protoc_insertion_point(global_scope)
