4 #ifndef GOOGLE_PROTOBUF_INCLUDED_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto 5 #define GOOGLE_PROTOBUF_INCLUDED_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto 10 #include <google/protobuf/port_def.inc> 11 #if PROTOBUF_VERSION < 3009000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/port_undef.inc> 23 #include <google/protobuf/io/coded_stream.h> 24 #include <google/protobuf/arena.h> 25 #include <google/protobuf/arenastring.h> 26 #include <google/protobuf/generated_message_table_driven.h> 27 #include <google/protobuf/generated_message_util.h> 28 #include <google/protobuf/inlined_string_field.h> 29 #include <google/protobuf/metadata_lite.h> 30 #include <google/protobuf/message_lite.h> 31 #include <google/protobuf/repeated_field.h> 32 #include <google/protobuf/extension_set.h> 34 #include <google/protobuf/port_def.inc> 35 #define PROTOBUF_INTERNAL_EXPORT_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto 36 PROTOBUF_NAMESPACE_OPEN
40 PROTOBUF_NAMESPACE_CLOSE
44 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
45 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
46 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
47 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
48 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
49 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
51 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
52 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
67 PROTOBUF_NAMESPACE_OPEN
71 PROTOBUF_NAMESPACE_CLOSE
78 public ::PROTOBUF_NAMESPACE_ID::MessageLite {
86 *
this = ::std::move(from);
94 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
95 if (
this != &from) InternalSwap(&from);
103 return _internal_metadata_.unknown_fields();
106 return _internal_metadata_.mutable_unknown_fields();
111 static void InitAsDefaultInstance();
116 static constexpr
int kIndexInFileMessages =
123 if (other ==
this)
return;
130 return CreateMaybeMessage<MediaInfo_Frame>(
nullptr);
134 return CreateMaybeMessage<MediaInfo_Frame>(arena);
136 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
140 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear()
final;
141 bool IsInitialized()
const final;
143 size_t ByteSizeLong()
const final;
144 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 145 const char* _InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
147 bool MergePartialFromCodedStream(
148 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input)
final;
149 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 150 void SerializeWithCachedSizes(
151 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output)
const final;
152 void DiscardUnknownFields();
156 inline void SharedCtor();
157 inline void SharedDtor();
158 void SetCachedSize(
int size)
const;
160 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
161 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
162 return "shaka.proto.MediaInfo.Frame";
165 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual()
const {
168 inline void* MaybeArenaPtr()
const {
173 std::string GetTypeName()
const final;
180 kDataHashFieldNumber = 5,
183 kDurationFieldNumber = 3,
184 kIsEncryptedFieldNumber = 4,
187 bool has_data_hash()
const;
188 void clear_data_hash();
189 const std::string& data_hash()
const;
190 void set_data_hash(
const std::string& value);
191 void set_data_hash(std::string&& value);
192 void set_data_hash(
const char* value);
193 void set_data_hash(
const char* value,
size_t size);
194 std::string* mutable_data_hash();
195 std::string* release_data_hash();
196 void set_allocated_data_hash(std::string* data_hash);
199 bool has_pts()
const;
202 void set_pts(
double value);
205 bool has_dts()
const;
208 void set_dts(
double value);
211 bool has_duration()
const;
212 void clear_duration();
213 double duration()
const;
214 void set_duration(
double value);
217 bool has_is_encrypted()
const;
218 void clear_is_encrypted();
219 bool is_encrypted()
const;
220 void set_is_encrypted(
bool value);
227 size_t RequiredFieldsByteSizeFallback()
const;
229 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
230 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
231 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
232 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_hash_;
237 friend struct ::TableStruct_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto;
242 public ::PROTOBUF_NAMESPACE_ID::MessageLite {
250 *
this = ::std::move(from);
258 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
259 if (
this != &from) InternalSwap(&from);
267 return _internal_metadata_.unknown_fields();
270 return _internal_metadata_.mutable_unknown_fields();
275 static void InitAsDefaultInstance();
280 static constexpr
int kIndexInFileMessages =
287 if (other ==
this)
return;
294 return CreateMaybeMessage<MediaInfo_Stream>(
nullptr);
298 return CreateMaybeMessage<MediaInfo_Stream>(arena);
300 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
304 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear()
final;
305 bool IsInitialized()
const final;
307 size_t ByteSizeLong()
const final;
308 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 309 const char* _InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
311 bool MergePartialFromCodedStream(
312 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input)
final;
313 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 314 void SerializeWithCachedSizes(
315 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output)
const final;
316 void DiscardUnknownFields();
320 inline void SharedCtor();
321 inline void SharedDtor();
322 void SetCachedSize(
int size)
const;
324 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
325 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
326 return "shaka.proto.MediaInfo.Stream";
329 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual()
const {
332 inline void* MaybeArenaPtr()
const {
337 std::string GetTypeName()
const final;
344 kExtraDataHashFieldNumber = 4,
345 kTimeScaleNumFieldNumber = 1,
346 kTimeScaleDenFieldNumber = 2,
347 kIsVideoFieldNumber = 3,
348 kSarNumFieldNumber = 5,
349 kSarDenFieldNumber = 6,
352 bool has_extra_data_hash()
const;
353 void clear_extra_data_hash();
354 const std::string& extra_data_hash()
const;
355 void set_extra_data_hash(
const std::string& value);
356 void set_extra_data_hash(std::string&& value);
357 void set_extra_data_hash(
const char* value);
358 void set_extra_data_hash(
const char* value,
size_t size);
359 std::string* mutable_extra_data_hash();
360 std::string* release_extra_data_hash();
361 void set_allocated_extra_data_hash(std::string* extra_data_hash);
364 bool has_time_scale_num()
const;
365 void clear_time_scale_num();
366 ::PROTOBUF_NAMESPACE_ID::uint32 time_scale_num()
const;
367 void set_time_scale_num(::PROTOBUF_NAMESPACE_ID::uint32 value);
370 bool has_time_scale_den()
const;
371 void clear_time_scale_den();
372 ::PROTOBUF_NAMESPACE_ID::uint32 time_scale_den()
const;
373 void set_time_scale_den(::PROTOBUF_NAMESPACE_ID::uint32 value);
376 bool has_is_video()
const;
377 void clear_is_video();
378 bool is_video()
const;
379 void set_is_video(
bool value);
382 bool has_sar_num()
const;
383 void clear_sar_num();
384 ::PROTOBUF_NAMESPACE_ID::uint32 sar_num()
const;
385 void set_sar_num(::PROTOBUF_NAMESPACE_ID::uint32 value);
388 bool has_sar_den()
const;
389 void clear_sar_den();
390 ::PROTOBUF_NAMESPACE_ID::uint32 sar_den()
const;
391 void set_sar_den(::PROTOBUF_NAMESPACE_ID::uint32 value);
398 size_t RequiredFieldsByteSizeFallback()
const;
400 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
401 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
402 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
403 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extra_data_hash_;
404 ::PROTOBUF_NAMESPACE_ID::uint32 time_scale_num_;
405 ::PROTOBUF_NAMESPACE_ID::uint32 time_scale_den_;
407 ::PROTOBUF_NAMESPACE_ID::uint32 sar_num_;
408 ::PROTOBUF_NAMESPACE_ID::uint32 sar_den_;
409 friend struct ::TableStruct_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto;
414 public ::PROTOBUF_NAMESPACE_ID::MessageLite {
422 *
this = ::std::move(from);
430 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
431 if (
this != &from) InternalSwap(&from);
439 return _internal_metadata_.unknown_fields();
442 return _internal_metadata_.mutable_unknown_fields();
445 static const MediaInfo& default_instance();
447 static void InitAsDefaultInstance();
449 return reinterpret_cast<const MediaInfo*
>(
452 static constexpr
int kIndexInFileMessages =
459 if (other ==
this)
return;
466 return CreateMaybeMessage<MediaInfo>(
nullptr);
470 return CreateMaybeMessage<MediaInfo>(arena);
472 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
476 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear()
final;
477 bool IsInitialized()
const final;
479 size_t ByteSizeLong()
const final;
480 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 481 const char* _InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
483 bool MergePartialFromCodedStream(
484 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input)
final;
485 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 486 void SerializeWithCachedSizes(
487 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output)
const final;
488 void DiscardUnknownFields();
492 inline void SharedCtor();
493 inline void SharedDtor();
494 void SetCachedSize(
int size)
const;
496 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
497 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
498 return "shaka.proto.MediaInfo";
501 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual()
const {
504 inline void* MaybeArenaPtr()
const {
509 std::string GetTypeName()
const final;
519 kFramesFieldNumber = 2,
520 kMimeFieldNumber = 1,
521 kStreamFieldNumber = 3,
524 int frames_size()
const;
527 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shaka::proto::MediaInfo_Frame >*
529 const ::shaka::proto::MediaInfo_Frame&
frames(
int index)
const;
531 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shaka::proto::MediaInfo_Frame >&
535 bool has_mime()
const;
537 const std::string& mime()
const;
538 void set_mime(
const std::string& value);
539 void set_mime(std::string&& value);
540 void set_mime(
const char* value);
541 void set_mime(
const char* value,
size_t size);
542 std::string* mutable_mime();
543 std::string* release_mime();
544 void set_allocated_mime(std::string* mime);
547 bool has_stream()
const;
549 const ::shaka::proto::MediaInfo_Stream& stream()
const;
559 size_t RequiredFieldsByteSizeFallback()
const;
561 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
562 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
563 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
564 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shaka::proto::MediaInfo_Frame > frames_;
565 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mime_;
567 friend struct ::TableStruct_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto;
575 #pragma GCC diagnostic push 576 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 581 inline bool MediaInfo_Frame::has_pts()
const {
582 return (_has_bits_[0] & 0x00000002u) != 0;
584 inline void MediaInfo_Frame::clear_pts() {
586 _has_bits_[0] &= ~0x00000002u;
588 inline double MediaInfo_Frame::pts()
const {
592 inline void MediaInfo_Frame::set_pts(
double value) {
593 _has_bits_[0] |= 0x00000002u;
599 inline bool MediaInfo_Frame::has_dts()
const {
600 return (_has_bits_[0] & 0x00000004u) != 0;
602 inline void MediaInfo_Frame::clear_dts() {
604 _has_bits_[0] &= ~0x00000004u;
606 inline double MediaInfo_Frame::dts()
const {
610 inline void MediaInfo_Frame::set_dts(
double value) {
611 _has_bits_[0] |= 0x00000004u;
617 inline bool MediaInfo_Frame::has_duration()
const {
618 return (_has_bits_[0] & 0x00000008u) != 0;
620 inline void MediaInfo_Frame::clear_duration() {
622 _has_bits_[0] &= ~0x00000008u;
624 inline double MediaInfo_Frame::duration()
const {
628 inline void MediaInfo_Frame::set_duration(
double value) {
629 _has_bits_[0] |= 0x00000008u;
635 inline bool MediaInfo_Frame::has_is_encrypted()
const {
636 return (_has_bits_[0] & 0x00000010u) != 0;
638 inline void MediaInfo_Frame::clear_is_encrypted() {
639 is_encrypted_ =
false;
640 _has_bits_[0] &= ~0x00000010u;
642 inline bool MediaInfo_Frame::is_encrypted()
const {
644 return is_encrypted_;
646 inline void MediaInfo_Frame::set_is_encrypted(
bool value) {
647 _has_bits_[0] |= 0x00000010u;
648 is_encrypted_ = value;
653 inline bool MediaInfo_Frame::has_data_hash()
const {
654 return (_has_bits_[0] & 0x00000001u) != 0;
656 inline void MediaInfo_Frame::clear_data_hash() {
657 data_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
658 _has_bits_[0] &= ~0x00000001u;
660 inline const std::string& MediaInfo_Frame::data_hash()
const {
662 return data_hash_.GetNoArena();
664 inline void MediaInfo_Frame::set_data_hash(
const std::string& value) {
665 _has_bits_[0] |= 0x00000001u;
666 data_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
669 inline void MediaInfo_Frame::set_data_hash(std::string&& value) {
670 _has_bits_[0] |= 0x00000001u;
671 data_hash_.SetNoArena(
672 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
675 inline void MediaInfo_Frame::set_data_hash(
const char* value) {
676 GOOGLE_DCHECK(value !=
nullptr);
677 _has_bits_[0] |= 0x00000001u;
678 data_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
681 inline void MediaInfo_Frame::set_data_hash(
const char* value,
size_t size) {
682 _has_bits_[0] |= 0x00000001u;
683 data_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
684 ::std::string(reinterpret_cast<const char*>(value), size));
687 inline std::string* MediaInfo_Frame::mutable_data_hash() {
688 _has_bits_[0] |= 0x00000001u;
690 return data_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
692 inline std::string* MediaInfo_Frame::release_data_hash() {
694 if (!has_data_hash()) {
697 _has_bits_[0] &= ~0x00000001u;
698 return data_hash_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
700 inline void MediaInfo_Frame::set_allocated_data_hash(std::string* data_hash) {
701 if (data_hash !=
nullptr) {
702 _has_bits_[0] |= 0x00000001u;
704 _has_bits_[0] &= ~0x00000001u;
706 data_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data_hash);
715 inline bool MediaInfo_Stream::has_time_scale_num()
const {
716 return (_has_bits_[0] & 0x00000002u) != 0;
718 inline void MediaInfo_Stream::clear_time_scale_num() {
719 time_scale_num_ = 0u;
720 _has_bits_[0] &= ~0x00000002u;
722 inline ::PROTOBUF_NAMESPACE_ID::uint32 MediaInfo_Stream::time_scale_num()
const {
724 return time_scale_num_;
726 inline void MediaInfo_Stream::set_time_scale_num(::PROTOBUF_NAMESPACE_ID::uint32 value) {
727 _has_bits_[0] |= 0x00000002u;
728 time_scale_num_ = value;
733 inline bool MediaInfo_Stream::has_time_scale_den()
const {
734 return (_has_bits_[0] & 0x00000004u) != 0;
736 inline void MediaInfo_Stream::clear_time_scale_den() {
737 time_scale_den_ = 0u;
738 _has_bits_[0] &= ~0x00000004u;
740 inline ::PROTOBUF_NAMESPACE_ID::uint32 MediaInfo_Stream::time_scale_den()
const {
742 return time_scale_den_;
744 inline void MediaInfo_Stream::set_time_scale_den(::PROTOBUF_NAMESPACE_ID::uint32 value) {
745 _has_bits_[0] |= 0x00000004u;
746 time_scale_den_ = value;
751 inline bool MediaInfo_Stream::has_is_video()
const {
752 return (_has_bits_[0] & 0x00000008u) != 0;
754 inline void MediaInfo_Stream::clear_is_video() {
756 _has_bits_[0] &= ~0x00000008u;
758 inline bool MediaInfo_Stream::is_video()
const {
762 inline void MediaInfo_Stream::set_is_video(
bool value) {
763 _has_bits_[0] |= 0x00000008u;
769 inline bool MediaInfo_Stream::has_extra_data_hash()
const {
770 return (_has_bits_[0] & 0x00000001u) != 0;
772 inline void MediaInfo_Stream::clear_extra_data_hash() {
773 extra_data_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
774 _has_bits_[0] &= ~0x00000001u;
776 inline const std::string& MediaInfo_Stream::extra_data_hash()
const {
778 return extra_data_hash_.GetNoArena();
780 inline void MediaInfo_Stream::set_extra_data_hash(
const std::string& value) {
781 _has_bits_[0] |= 0x00000001u;
782 extra_data_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
785 inline void MediaInfo_Stream::set_extra_data_hash(std::string&& value) {
786 _has_bits_[0] |= 0x00000001u;
787 extra_data_hash_.SetNoArena(
788 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
791 inline void MediaInfo_Stream::set_extra_data_hash(
const char* value) {
792 GOOGLE_DCHECK(value !=
nullptr);
793 _has_bits_[0] |= 0x00000001u;
794 extra_data_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
797 inline void MediaInfo_Stream::set_extra_data_hash(
const char* value,
size_t size) {
798 _has_bits_[0] |= 0x00000001u;
799 extra_data_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
800 ::std::string(reinterpret_cast<const char*>(value), size));
803 inline std::string* MediaInfo_Stream::mutable_extra_data_hash() {
804 _has_bits_[0] |= 0x00000001u;
806 return extra_data_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
808 inline std::string* MediaInfo_Stream::release_extra_data_hash() {
810 if (!has_extra_data_hash()) {
813 _has_bits_[0] &= ~0x00000001u;
814 return extra_data_hash_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
816 inline void MediaInfo_Stream::set_allocated_extra_data_hash(std::string* extra_data_hash) {
817 if (extra_data_hash !=
nullptr) {
818 _has_bits_[0] |= 0x00000001u;
820 _has_bits_[0] &= ~0x00000001u;
822 extra_data_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), extra_data_hash);
827 inline bool MediaInfo_Stream::has_sar_num()
const {
828 return (_has_bits_[0] & 0x00000010u) != 0;
830 inline void MediaInfo_Stream::clear_sar_num() {
832 _has_bits_[0] &= ~0x00000010u;
834 inline ::PROTOBUF_NAMESPACE_ID::uint32 MediaInfo_Stream::sar_num()
const {
838 inline void MediaInfo_Stream::set_sar_num(::PROTOBUF_NAMESPACE_ID::uint32 value) {
839 _has_bits_[0] |= 0x00000010u;
845 inline bool MediaInfo_Stream::has_sar_den()
const {
846 return (_has_bits_[0] & 0x00000020u) != 0;
848 inline void MediaInfo_Stream::clear_sar_den() {
850 _has_bits_[0] &= ~0x00000020u;
852 inline ::PROTOBUF_NAMESPACE_ID::uint32 MediaInfo_Stream::sar_den()
const {
856 inline void MediaInfo_Stream::set_sar_den(::PROTOBUF_NAMESPACE_ID::uint32 value) {
857 _has_bits_[0] |= 0x00000020u;
867 inline bool MediaInfo::has_mime()
const {
868 return (_has_bits_[0] & 0x00000001u) != 0;
870 inline void MediaInfo::clear_mime() {
871 mime_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
872 _has_bits_[0] &= ~0x00000001u;
874 inline const std::string& MediaInfo::mime()
const {
876 return mime_.GetNoArena();
878 inline void MediaInfo::set_mime(
const std::string& value) {
879 _has_bits_[0] |= 0x00000001u;
880 mime_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
883 inline void MediaInfo::set_mime(std::string&& value) {
884 _has_bits_[0] |= 0x00000001u;
886 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
889 inline void MediaInfo::set_mime(
const char* value) {
890 GOOGLE_DCHECK(value !=
nullptr);
891 _has_bits_[0] |= 0x00000001u;
892 mime_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
895 inline void MediaInfo::set_mime(
const char* value,
size_t size) {
896 _has_bits_[0] |= 0x00000001u;
897 mime_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
898 ::std::string(reinterpret_cast<const char*>(value), size));
901 inline std::string* MediaInfo::mutable_mime() {
902 _has_bits_[0] |= 0x00000001u;
904 return mime_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
906 inline std::string* MediaInfo::release_mime() {
911 _has_bits_[0] &= ~0x00000001u;
912 return mime_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
914 inline void MediaInfo::set_allocated_mime(std::string* mime) {
915 if (mime !=
nullptr) {
916 _has_bits_[0] |= 0x00000001u;
918 _has_bits_[0] &= ~0x00000001u;
920 mime_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mime);
925 inline int MediaInfo::frames_size()
const {
926 return frames_.size();
928 inline void MediaInfo::clear_frames() {
931 inline ::shaka::proto::MediaInfo_Frame* MediaInfo::mutable_frames(
int index) {
933 return frames_.Mutable(index);
935 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shaka::proto::MediaInfo_Frame >*
936 MediaInfo::mutable_frames() {
942 return frames_.Get(index);
944 inline ::shaka::proto::MediaInfo_Frame* MediaInfo::add_frames() {
946 return frames_.Add();
948 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shaka::proto::MediaInfo_Frame >&
955 inline bool MediaInfo::has_stream()
const {
956 return (_has_bits_[0] & 0x00000002u) != 0;
958 inline void MediaInfo::clear_stream() {
959 if (stream_ !=
nullptr) stream_->Clear();
960 _has_bits_[0] &= ~0x00000002u;
962 inline const ::shaka::proto::MediaInfo_Stream& MediaInfo::stream()
const {
963 const ::shaka::proto::MediaInfo_Stream* p = stream_;
968 inline ::shaka::proto::MediaInfo_Stream* MediaInfo::release_stream() {
970 _has_bits_[0] &= ~0x00000002u;
975 inline ::shaka::proto::MediaInfo_Stream* MediaInfo::mutable_stream() {
976 _has_bits_[0] |= 0x00000002u;
977 if (stream_ ==
nullptr) {
978 auto* p = CreateMaybeMessage<::shaka::proto::MediaInfo_Stream>(GetArenaNoVirtual());
985 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
986 if (message_arena ==
nullptr) {
990 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
nullptr;
991 if (message_arena != submessage_arena) {
992 stream = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
993 message_arena, stream, submessage_arena);
995 _has_bits_[0] |= 0x00000002u;
997 _has_bits_[0] &= ~0x00000002u;
1004 #pragma GCC diagnostic pop 1018 #include <google/protobuf/port_undef.inc> 1019 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto
class shaka::proto::MediaInfo_FrameDefaultTypeInternal _MediaInfo_Frame_default_instance_
std::list< std::shared_ptr< BaseFrame > > frames
class shaka::proto::MediaInfo_StreamDefaultTypeInternal _MediaInfo_Stream_default_instance_
class shaka::proto::MediaInfoDefaultTypeInternal _MediaInfo_default_instance_