| 7 | #include <limits> |
| 8 | #include <string> |
| 9 |
| 10 | #include <google/protobuf/port_def.inc> |
| 11 | #if PROTOBUF_VERSION < 3020000 |
| 12 | #error This file was generated by a newer version of protoc which is |
| 13 | #error incompatible with your Protocol Buffer headers. Please update |
| 14 | #error your headers. |
| 15 | #endif |
| 16 | #if 3020003 < 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. |
| 20 | #endif |
| 21 |
| 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_util.h> |
| 27 | #include <google/protobuf/metadata_lite.h> |
| 28 | #include <google/protobuf/message_lite.h> |
| 29 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
| 30 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
| 31 | #include <google/protobuf/generated_enum_util.h> |
| 32 | // @@protoc_insertion_point(includes) |
| 33 | #include <google/protobuf/port_def.inc> |
| 34 | #define PROTOBUF_INTERNAL_EXPORT_debug_2eproto |
| 35 | PROTOBUF_NAMESPACE_OPEN |
| 36 | namespace internal { |
| 37 | class AnyMetadata; |
| 38 | } // namespace internal |
| 39 | PROTOBUF_NAMESPACE_CLOSE |
| 40 |
| 41 | // Internal implementation detail -- do not use these members. |
| 42 | struct TableStruct_debug_2eproto { |
| 43 | static const uint32_t offsets[]; |
| 44 | }; |
| 45 | namespace webrtc { |
| 46 | namespace audioproc { |
| 47 | class Config; |
| 48 | struct ConfigDefaultTypeInternal; |
| 49 | extern ConfigDefaultTypeInternal _Config_default_instance_; |
| 50 | class Event; |
| 51 | struct EventDefaultTypeInternal; |
| 52 | extern EventDefaultTypeInternal _Event_default_instance_; |
| 53 | class Init; |
| 54 | struct InitDefaultTypeInternal; |
| 55 | extern InitDefaultTypeInternal _Init_default_instance_; |
| 56 | class PlayoutAudioDeviceInfo; |
| 57 | struct PlayoutAudioDeviceInfoDefaultTypeInternal; |
| 58 | extern PlayoutAudioDeviceInfoDefaultTypeInternal _PlayoutAudioDeviceInfo_default_instance_; |
| 59 | class ReverseStream; |
| 60 | struct ReverseStreamDefaultTypeInternal; |
| 61 | extern ReverseStreamDefaultTypeInternal _ReverseStream_default_instance_; |
| 62 | class RuntimeSetting; |
| 63 | struct RuntimeSettingDefaultTypeInternal; |
| 64 | extern RuntimeSettingDefaultTypeInternal _RuntimeSetting_default_instance_; |
| 65 | class Stream; |
| 66 | struct StreamDefaultTypeInternal; |
| 67 | extern StreamDefaultTypeInternal _Stream_default_instance_; |
| 68 | } // namespace audioproc |
| 69 | } // namespace webrtc |
| 70 | PROTOBUF_NAMESPACE_OPEN |
| 71 | template<> ::webrtc::audioproc::Config* Arena::CreateMaybeMessage<::webrtc::audioproc::Config>(Arena*); |
| 72 | template<> ::webrtc::audioproc::Event* Arena::CreateMaybeMessage<::webrtc::audioproc::Event>(Arena*); |
| 73 | template<> ::webrtc::audioproc::Init* Arena::CreateMaybeMessage<::webrtc::audioproc::Init>(Arena*); |
| 74 | template<> ::webrtc::audioproc::PlayoutAudioDeviceInfo* Arena::CreateMaybeMessage<::webrtc::audioproc::PlayoutAudioDeviceInfo>(Arena*); |
| 75 | template<> ::webrtc::audioproc::ReverseStream* Arena::CreateMaybeMessage<::webrtc::audioproc::ReverseStream>(Arena*); |
| 76 | template<> ::webrtc::audioproc::RuntimeSetting* Arena::CreateMaybeMessage<::webrtc::audioproc::RuntimeSetting>(Arena*); |
| 77 | template<> ::webrtc::audioproc::Stream* Arena::CreateMaybeMessage<::webrtc::audioproc::Stream>(Arena*); |
| 78 | PROTOBUF_NAMESPACE_CLOSE |
| 79 | namespace webrtc { |
| 80 | namespace audioproc { |
| 81 |
| 82 | enum Event_Type : int { |
| 83 | Event_Type_INIT = 0, |
| 84 | Event_Type_REVERSE_STREAM = 1, |
| 85 | Event_Type_STREAM = 2, |
| 86 | Event_Type_CONFIG = 3, |
| 87 | Event_Type_UNKNOWN_EVENT = 4, |
| 88 | Event_Type_RUNTIME_SETTING = 5 |
| 89 | }; |
| 90 | bool Event_Type_IsValid(int value); |
| 91 | constexpr Event_Type Event_Type_Type_MIN = Event_Type_INIT; |
| 92 | constexpr Event_Type Event_Type_Type_MAX = Event_Type_RUNTIME_SETTING; |
| 93 | constexpr int Event_Type_Type_ARRAYSIZE = Event_Type_Type_MAX + 1; |
| 94 |
| 95 | const std::string& Event_Type_Name(Event_Type value); |
| 96 | template<typename T> |
| 97 | inline const std::string& Event_Type_Name(T enum_t_value) { |
| 98 | static_assert(::std::is_same<T, Event_Type>::value || |
| 99 | ::std::is_integral<T>::value, |
| 100 | "Incorrect type passed to function Event_Type_Name."); |
| 101 | return Event_Type_Name(static_cast<Event_Type>(enum_t_value)); |
| 102 | } |
| 103 | bool Event_Type_Parse( |
| 104 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Event_Type* value); |
| 105 | // =================================================================== |
| 106 |
| 107 | class Init final : |
| 108 | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:webrtc.audioproc.Init) */ { |
| 109 | public: |
| 110 | inline Init() : Init(nullptr) {} |
| 111 | ~Init() override; |
| 112 | explicit PROTOBUF_CONSTEXPR Init(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 113 |
| 114 | Init(const Init& from); |
| 115 | Init(Init&& from) noexcept |
| 116 | : Init() { |
| 117 | *this = ::std::move(from); |
| 118 | } |
| 119 |
| 120 | inline Init& operator=(const Init& from) { |
| 121 | CopyFrom(from); |
| 122 | return *this; |
| 123 | } |
| 124 | inline Init& operator=(Init&& from) noexcept { |
| 125 | if (this == &from) return *this; |
| 126 | if (GetOwningArena() == from.GetOwningArena() |
| 127 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 128 | && GetOwningArena() != nullptr |
| 129 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 130 | ) { |
| 131 | InternalSwap(&from); |
| 132 | } else { |
| 133 | CopyFrom(from); |
| 134 | } |
| 135 | return *this; |
| 136 | } |
| 137 |
| 138 | inline const std::string& unknown_fields() const { |
| 139 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
| 140 | } |
| 141 | inline std::string* mutable_unknown_fields() { |
| 142 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
| 143 | } |
| 144 |
| 145 | static const Init& default_instance() { |
| 146 | return *internal_default_instance(); |
| 147 | } |
| 148 | static inline const Init* internal_default_instance() { |
| 149 | return reinterpret_cast<const Init*>( |
| 150 | &_Init_default_instance_); |
| 151 | } |
| 152 | static constexpr int kIndexInFileMessages = |
| 153 | 0; |
| 154 |
| 155 | friend void swap(Init& a, Init& b) { |
| 156 | a.Swap(&b); |
| 157 | } |
| 158 | PROTOBUF_NOINLINE void Swap(Init* other) { |
| 159 | if (other == this) return; |
| 160 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 161 | if (GetOwningArena() != nullptr && |
| 162 | GetOwningArena() == other->GetOwningArena()) { |
| 163 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 164 | if (GetOwningArena() == other->GetOwningArena()) { |
| 165 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 166 | InternalSwap(other); |
| 167 | } else { |
| 168 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
| 169 | } |
| 170 | } |
| 171 | void UnsafeArenaSwap(Init* other) { |
| 172 | if (other == this) return; |
| 173 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 174 | InternalSwap(other); |
| 175 | } |
| 176 |
| 177 | // implements Message ---------------------------------------------- |
| 178 |
| 179 | Init* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 180 | return CreateMaybeMessage<Init>(arena); |
| 181 | } |
| 182 | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; |
| 183 | void CopyFrom(const Init& from); |
| 184 | void MergeFrom(const Init& from); |
| 185 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 186 | bool IsInitialized() const final; |
| 187 |
| 188 | size_t ByteSizeLong() const final; |
| 189 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 190 | uint8_t* _InternalSerialize( |
| 191 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 192 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 193 |
| 194 | private: |
| 195 | void SharedCtor(); |
| 196 | void SharedDtor(); |
| 197 | void SetCachedSize(int size) const; |
| 198 | void InternalSwap(Init* other); |
| 199 |
| 200 | private: |
| 201 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 202 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 203 | return "webrtc.audioproc.Init"; |
| 204 | } |
| 205 | protected: |
| 206 | explicit Init(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 207 | bool is_message_owned = false); |
| 208 | public: |
| 209 |
| 210 | std::string GetTypeName() const final; |
| 211 |
| 212 | // nested types ---------------------------------------------------- |
| 213 |
| 214 | // accessors ------------------------------------------------------- |
| 215 |
| 216 | enum : int { |
| 217 | kSampleRateFieldNumber = 1, |
| 218 | kDeviceSampleRateFieldNumber = 2, |
| 219 | kNumInputChannelsFieldNumber = 3, |
| 220 | kNumOutputChannelsFieldNumber = 4, |
| 221 | kNumReverseChannelsFieldNumber = 5, |
| 222 | kReverseSampleRateFieldNumber = 6, |
| 223 | kOutputSampleRateFieldNumber = 7, |
| 224 | kReverseOutputSampleRateFieldNumber = 8, |
| 225 | kTimestampMsFieldNumber = 10, |
| 226 | kNumReverseOutputChannelsFieldNumber = 9, |
| 227 | }; |
| 228 | // optional int32 sample_rate = 1; |
| 229 | bool has_sample_rate() const; |
| 230 | private: |
| 231 | bool _internal_has_sample_rate() const; |
| 232 | public: |
| 233 | void clear_sample_rate(); |
| 234 | int32_t sample_rate() const; |
| 235 | void set_sample_rate(int32_t value); |
| 236 | private: |
| 237 | int32_t _internal_sample_rate() const; |
| 238 | void _internal_set_sample_rate(int32_t value); |
| 239 | public: |
| 240 |
| 241 | // optional int32 device_sample_rate = 2 [deprecated = true]; |
| 242 | PROTOBUF_DEPRECATED bool has_device_sample_rate() const; |
| 243 | private: |
| 244 | bool _internal_has_device_sample_rate() const; |
| 245 | public: |
| 246 | PROTOBUF_DEPRECATED void clear_device_sample_rate(); |
| 247 | PROTOBUF_DEPRECATED int32_t device_sample_rate() const; |
| 248 | PROTOBUF_DEPRECATED void set_device_sample_rate(int32_t value); |
| 249 | private: |
| 250 | int32_t _internal_device_sample_rate() const; |
| 251 | void _internal_set_device_sample_rate(int32_t value); |
| 252 | public: |
| 253 |
| 254 | // optional int32 num_input_channels = 3; |
| 255 | bool has_num_input_channels() const; |
| 256 | private: |
| 257 | bool _internal_has_num_input_channels() const; |
| 258 | public: |
| 259 | void clear_num_input_channels(); |
| 260 | int32_t num_input_channels() const; |
| 261 | void set_num_input_channels(int32_t value); |
| 262 | private: |
| 263 | int32_t _internal_num_input_channels() const; |
| 264 | void _internal_set_num_input_channels(int32_t value); |
| 265 | public: |
| 266 |
| 267 | // optional int32 num_output_channels = 4; |
| 268 | bool has_num_output_channels() const; |
| 269 | private: |
| 270 | bool _internal_has_num_output_channels() const; |
| 271 | public: |
| 272 | void clear_num_output_channels(); |
| 273 | int32_t num_output_channels() const; |
| 274 | void set_num_output_channels(int32_t value); |
| 275 | private: |
| 276 | int32_t _internal_num_output_channels() const; |
| 277 | void _internal_set_num_output_channels(int32_t value); |
| 278 | public: |
| 279 |
| 280 | // optional int32 num_reverse_channels = 5; |
| 281 | bool has_num_reverse_channels() const; |
| 282 | private: |
| 283 | bool _internal_has_num_reverse_channels() const; |
| 284 | public: |
| 285 | void clear_num_reverse_channels(); |
| 286 | int32_t num_reverse_channels() const; |
| 287 | void set_num_reverse_channels(int32_t value); |
| 288 | private: |
| 289 | int32_t _internal_num_reverse_channels() const; |
| 290 | void _internal_set_num_reverse_channels(int32_t value); |
| 291 | public: |
| 292 |
| 293 | // optional int32 reverse_sample_rate = 6; |
| 294 | bool has_reverse_sample_rate() const; |
| 295 | private: |
| 296 | bool _internal_has_reverse_sample_rate() const; |
| 297 | public: |
| 298 | void clear_reverse_sample_rate(); |
| 299 | int32_t reverse_sample_rate() const; |
| 300 | void set_reverse_sample_rate(int32_t value); |
| 301 | private: |
| 302 | int32_t _internal_reverse_sample_rate() const; |
| 303 | void _internal_set_reverse_sample_rate(int32_t value); |
| 304 | public: |
| 305 |
| 306 | // optional int32 output_sample_rate = 7; |
| 307 | bool has_output_sample_rate() const; |
| 308 | private: |
| 309 | bool _internal_has_output_sample_rate() const; |
| 310 | public: |
| 311 | void clear_output_sample_rate(); |
| 312 | int32_t output_sample_rate() const; |
| 313 | void set_output_sample_rate(int32_t value); |
| 314 | private: |
| 315 | int32_t _internal_output_sample_rate() const; |
| 316 | void _internal_set_output_sample_rate(int32_t value); |
| 317 | public: |
| 318 |
| 319 | // optional int32 reverse_output_sample_rate = 8; |
| 320 | bool has_reverse_output_sample_rate() const; |
| 321 | private: |
| 322 | bool _internal_has_reverse_output_sample_rate() const; |
| 323 | public: |
| 324 | void clear_reverse_output_sample_rate(); |
| 325 | int32_t reverse_output_sample_rate() const; |
| 326 | void set_reverse_output_sample_rate(int32_t value); |
| 327 | private: |
| 328 | int32_t _internal_reverse_output_sample_rate() const; |
| 329 | void _internal_set_reverse_output_sample_rate(int32_t value); |
| 330 | public: |
| 331 |
| 332 | // optional int64 timestamp_ms = 10; |
| 333 | bool has_timestamp_ms() const; |
| 334 | private: |
| 335 | bool _internal_has_timestamp_ms() const; |
| 336 | public: |
| 337 | void clear_timestamp_ms(); |
| 338 | int64_t timestamp_ms() const; |
| 339 | void set_timestamp_ms(int64_t value); |
| 340 | private: |
| 341 | int64_t _internal_timestamp_ms() const; |
| 342 | void _internal_set_timestamp_ms(int64_t value); |
| 343 | public: |
| 344 |
| 345 | // optional int32 num_reverse_output_channels = 9; |
| 346 | bool has_num_reverse_output_channels() const; |
| 347 | private: |
| 348 | bool _internal_has_num_reverse_output_channels() const; |
| 349 | public: |
| 350 | void clear_num_reverse_output_channels(); |
| 351 | int32_t num_reverse_output_channels() const; |
| 352 | void set_num_reverse_output_channels(int32_t value); |
| 353 | private: |
| 354 | int32_t _internal_num_reverse_output_channels() const; |
| 355 | void _internal_set_num_reverse_output_channels(int32_t value); |
| 356 | public: |
| 357 |
| 358 | // @@protoc_insertion_point(class_scope:webrtc.audioproc.Init) |
| 359 | private: |
| 360 | class _Internal; |
| 361 |
| 362 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 363 | typedef void InternalArenaConstructable_; |
| 364 | typedef void DestructorSkippable_; |
| 365 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 366 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 367 | int32_t sample_rate_; |
| 368 | int32_t device_sample_rate_; |
| 369 | int32_t num_input_channels_; |
| 370 | int32_t num_output_channels_; |
| 371 | int32_t num_reverse_channels_; |
| 372 | int32_t reverse_sample_rate_; |
| 373 | int32_t output_sample_rate_; |
| 374 | int32_t reverse_output_sample_rate_; |
| 375 | int64_t timestamp_ms_; |
| 376 | int32_t num_reverse_output_channels_; |
| 377 | friend struct ::TableStruct_debug_2eproto; |
| 378 | }; |
| 379 | // ------------------------------------------------------------------- |
| 380 |
| 381 | class ReverseStream final : |
| 382 | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:webrtc.audioproc.ReverseStream) */ { |
| 383 | public: |
| 384 | inline ReverseStream() : ReverseStream(nullptr) {} |
| 385 | ~ReverseStream() override; |
| 386 | explicit PROTOBUF_CONSTEXPR ReverseStream(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 387 |
| 388 | ReverseStream(const ReverseStream& from); |
| 389 | ReverseStream(ReverseStream&& from) noexcept |
| 390 | : ReverseStream() { |
| 391 | *this = ::std::move(from); |
| 392 | } |
| 393 |
| 394 | inline ReverseStream& operator=(const ReverseStream& from) { |
| 395 | CopyFrom(from); |
| 396 | return *this; |
| 397 | } |
| 398 | inline ReverseStream& operator=(ReverseStream&& from) noexcept { |
| 399 | if (this == &from) return *this; |
| 400 | if (GetOwningArena() == from.GetOwningArena() |
| 401 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 402 | && GetOwningArena() != nullptr |
| 403 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 404 | ) { |
| 405 | InternalSwap(&from); |
| 406 | } else { |
| 407 | CopyFrom(from); |
| 408 | } |
| 409 | return *this; |
| 410 | } |
| 411 |
| 412 | inline const std::string& unknown_fields() const { |
| 413 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
| 414 | } |
| 415 | inline std::string* mutable_unknown_fields() { |
| 416 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
| 417 | } |
| 418 |
| 419 | static const ReverseStream& default_instance() { |
| 420 | return *internal_default_instance(); |
| 421 | } |
| 422 | static inline const ReverseStream* internal_default_instance() { |
| 423 | return reinterpret_cast<const ReverseStream*>( |
| 424 | &_ReverseStream_default_instance_); |
| 425 | } |
| 426 | static constexpr int kIndexInFileMessages = |
| 427 | 1; |
| 428 |
| 429 | friend void swap(ReverseStream& a, ReverseStream& b) { |
| 430 | a.Swap(&b); |
| 431 | } |
| 432 | PROTOBUF_NOINLINE void Swap(ReverseStream* other) { |
| 433 | if (other == this) return; |
| 434 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 435 | if (GetOwningArena() != nullptr && |
| 436 | GetOwningArena() == other->GetOwningArena()) { |
| 437 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 438 | if (GetOwningArena() == other->GetOwningArena()) { |
| 439 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 440 | InternalSwap(other); |
| 441 | } else { |
| 442 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
| 443 | } |
| 444 | } |
| 445 | void UnsafeArenaSwap(ReverseStream* other) { |
| 446 | if (other == this) return; |
| 447 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 448 | InternalSwap(other); |
| 449 | } |
| 450 |
| 451 | // implements Message ---------------------------------------------- |
| 452 |
| 453 | ReverseStream* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 454 | return CreateMaybeMessage<ReverseStream>(arena); |
| 455 | } |
| 456 | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; |
| 457 | void CopyFrom(const ReverseStream& from); |
| 458 | void MergeFrom(const ReverseStream& from); |
| 459 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 460 | bool IsInitialized() const final; |
| 461 |
| 462 | size_t ByteSizeLong() const final; |
| 463 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 464 | uint8_t* _InternalSerialize( |
| 465 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 466 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 467 |
| 468 | private: |
| 469 | void SharedCtor(); |
| 470 | void SharedDtor(); |
| 471 | void SetCachedSize(int size) const; |
| 472 | void InternalSwap(ReverseStream* other); |
| 473 |
| 474 | private: |
| 475 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 476 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 477 | return "webrtc.audioproc.ReverseStream"; |
| 478 | } |
| 479 | protected: |
| 480 | explicit ReverseStream(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 481 | bool is_message_owned = false); |
| 482 | public: |
| 483 |
| 484 | std::string GetTypeName() const final; |
| 485 |
| 486 | // nested types ---------------------------------------------------- |
| 487 |
| 488 | // accessors ------------------------------------------------------- |
| 489 |
| 490 | enum : int { |
| 491 | kChannelFieldNumber = 2, |
| 492 | kDataFieldNumber = 1, |
| 493 | }; |
| 494 | // repeated bytes channel = 2; |
| 495 | int channel_size() const; |
| 496 | private: |
| 497 | int _internal_channel_size() const; |
| 498 | public: |
| 499 | void clear_channel(); |
| 500 | const std::string& channel(int index) const; |
| 501 | std::string* mutable_channel(int index); |
| 502 | void set_channel(int index, const std::string& value); |
| 503 | void set_channel(int index, std::string&& value); |
| 504 | void set_channel(int index, const char* value); |
| 505 | void set_channel(int index, const void* value, size_t size); |
| 506 | std::string* add_channel(); |
| 507 | void add_channel(const std::string& value); |
| 508 | void add_channel(std::string&& value); |
| 509 | void add_channel(const char* value); |
| 510 | void add_channel(const void* value, size_t size); |
| 511 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& channel() const; |
| 512 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_channel(); |
| 513 | private: |
| 514 | const std::string& _internal_channel(int index) const; |
| 515 | std::string* _internal_add_channel(); |
| 516 | public: |
| 517 |
| 518 | // optional bytes data = 1; |
| 519 | bool has_data() const; |
| 520 | private: |
| 521 | bool _internal_has_data() const; |
| 522 | public: |
| 523 | void clear_data(); |
| 524 | const std::string& data() const; |
| 525 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 526 | void set_data(ArgT0&& arg0, ArgT... args); |
| 527 | std::string* mutable_data(); |
| 528 | PROTOBUF_NODISCARD std::string* release_data(); |
| 529 | void set_allocated_data(std::string* data); |
| 530 | private: |
| 531 | const std::string& _internal_data() const; |
| 532 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); |
| 533 | std::string* _internal_mutable_data(); |
| 534 | public: |
| 535 |
| 536 | // @@protoc_insertion_point(class_scope:webrtc.audioproc.ReverseStream) |
| 537 | private: |
| 538 | class _Internal; |
| 539 |
| 540 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 541 | typedef void InternalArenaConstructable_; |
| 542 | typedef void DestructorSkippable_; |
| 543 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 544 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 545 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> channel_; |
| 546 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; |
| 547 | friend struct ::TableStruct_debug_2eproto; |
| 548 | }; |
| 549 | // ------------------------------------------------------------------- |
| 550 |
| 551 | class Stream final : |
| 552 | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:webrtc.audioproc.Stream) */ { |
| 553 | public: |
| 554 | inline Stream() : Stream(nullptr) {} |
| 555 | ~Stream() override; |
| 556 | explicit PROTOBUF_CONSTEXPR Stream(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 557 |
| 558 | Stream(const Stream& from); |
| 559 | Stream(Stream&& from) noexcept |
| 560 | : Stream() { |
| 561 | *this = ::std::move(from); |
| 562 | } |
| 563 |
| 564 | inline Stream& operator=(const Stream& from) { |
| 565 | CopyFrom(from); |
| 566 | return *this; |
| 567 | } |
| 568 | inline Stream& operator=(Stream&& from) noexcept { |
| 569 | if (this == &from) return *this; |
| 570 | if (GetOwningArena() == from.GetOwningArena() |
| 571 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 572 | && GetOwningArena() != nullptr |
| 573 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 574 | ) { |
| 575 | InternalSwap(&from); |
| 576 | } else { |
| 577 | CopyFrom(from); |
| 578 | } |
| 579 | return *this; |
| 580 | } |
| 581 |
| 582 | inline const std::string& unknown_fields() const { |
| 583 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
| 584 | } |
| 585 | inline std::string* mutable_unknown_fields() { |
| 586 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
| 587 | } |
| 588 |
| 589 | static const Stream& default_instance() { |
| 590 | return *internal_default_instance(); |
| 591 | } |
| 592 | static inline const Stream* internal_default_instance() { |
| 593 | return reinterpret_cast<const Stream*>( |
| 594 | &_Stream_default_instance_); |
| 595 | } |
| 596 | static constexpr int kIndexInFileMessages = |
| 597 | 2; |
| 598 |
| 599 | friend void swap(Stream& a, Stream& b) { |
| 600 | a.Swap(&b); |
| 601 | } |
| 602 | PROTOBUF_NOINLINE void Swap(Stream* other) { |
| 603 | if (other == this) return; |
| 604 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 605 | if (GetOwningArena() != nullptr && |
| 606 | GetOwningArena() == other->GetOwningArena()) { |
| 607 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 608 | if (GetOwningArena() == other->GetOwningArena()) { |
| 609 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 610 | InternalSwap(other); |
| 611 | } else { |
| 612 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
| 613 | } |
| 614 | } |
| 615 | void UnsafeArenaSwap(Stream* other) { |
| 616 | if (other == this) return; |
| 617 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 618 | InternalSwap(other); |
| 619 | } |
| 620 |
| 621 | // implements Message ---------------------------------------------- |
| 622 |
| 623 | Stream* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 624 | return CreateMaybeMessage<Stream>(arena); |
| 625 | } |
| 626 | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; |
| 627 | void CopyFrom(const Stream& from); |
| 628 | void MergeFrom(const Stream& from); |
| 629 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 630 | bool IsInitialized() const final; |
| 631 |
| 632 | size_t ByteSizeLong() const final; |
| 633 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 634 | uint8_t* _InternalSerialize( |
| 635 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 636 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 637 |
| 638 | private: |
| 639 | void SharedCtor(); |
| 640 | void SharedDtor(); |
| 641 | void SetCachedSize(int size) const; |
| 642 | void InternalSwap(Stream* other); |
| 643 |
| 644 | private: |
| 645 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 646 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 647 | return "webrtc.audioproc.Stream"; |
| 648 | } |
| 649 | protected: |
| 650 | explicit Stream(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 651 | bool is_message_owned = false); |
| 652 | public: |
| 653 |
| 654 | std::string GetTypeName() const final; |
| 655 |
| 656 | // nested types ---------------------------------------------------- |
| 657 |
| 658 | // accessors ------------------------------------------------------- |
| 659 |
| 660 | enum : int { |
| 661 | kInputChannelFieldNumber = 7, |
| 662 | kOutputChannelFieldNumber = 8, |
| 663 | kInputDataFieldNumber = 1, |
| 664 | kOutputDataFieldNumber = 2, |
| 665 | kDelayFieldNumber = 3, |
| 666 | kDriftFieldNumber = 4, |
| 667 | kAppliedInputVolumeFieldNumber = 5, |
| 668 | kKeypressFieldNumber = 6, |
| 669 | }; |
| 670 | // repeated bytes input_channel = 7; |
| 671 | int input_channel_size() const; |
| 672 | private: |
| 673 | int _internal_input_channel_size() const; |
| 674 | public: |
| 675 | void clear_input_channel(); |
| 676 | const std::string& input_channel(int index) const; |
| 677 | std::string* mutable_input_channel(int index); |
| 678 | void set_input_channel(int index, const std::string& value); |
| 679 | void set_input_channel(int index, std::string&& value); |
| 680 | void set_input_channel(int index, const char* value); |
| 681 | void set_input_channel(int index, const void* value, size_t size); |
| 682 | std::string* add_input_channel(); |
| 683 | void add_input_channel(const std::string& value); |
| 684 | void add_input_channel(std::string&& value); |
| 685 | void add_input_channel(const char* value); |
| 686 | void add_input_channel(const void* value, size_t size); |
| 687 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& input_channel() const; |
| 688 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_input_channel(); |
| 689 | private: |
| 690 | const std::string& _internal_input_channel(int index) const; |
| 691 | std::string* _internal_add_input_channel(); |
| 692 | public: |
| 693 |
| 694 | // repeated bytes output_channel = 8; |
| 695 | int output_channel_size() const; |
| 696 | private: |
| 697 | int _internal_output_channel_size() const; |
| 698 | public: |
| 699 | void clear_output_channel(); |
| 700 | const std::string& output_channel(int index) const; |
| 701 | std::string* mutable_output_channel(int index); |
| 702 | void set_output_channel(int index, const std::string& value); |
| 703 | void set_output_channel(int index, std::string&& value); |
| 704 | void set_output_channel(int index, const char* value); |
| 705 | void set_output_channel(int index, const void* value, size_t size); |
| 706 | std::string* add_output_channel(); |
| 707 | void add_output_channel(const std::string& value); |
| 708 | void add_output_channel(std::string&& value); |
| 709 | void add_output_channel(const char* value); |
| 710 | void add_output_channel(const void* value, size_t size); |
| 711 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& output_channel() const; |
| 712 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_output_channel(); |
| 713 | private: |
| 714 | const std::string& _internal_output_channel(int index) const; |
| 715 | std::string* _internal_add_output_channel(); |
| 716 | public: |
| 717 |
| 718 | // optional bytes input_data = 1; |
| 719 | bool has_input_data() const; |
| 720 | private: |
| 721 | bool _internal_has_input_data() const; |
| 722 | public: |
| 723 | void clear_input_data(); |
| 724 | const std::string& input_data() const; |
| 725 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 726 | void set_input_data(ArgT0&& arg0, ArgT... args); |
| 727 | std::string* mutable_input_data(); |
| 728 | PROTOBUF_NODISCARD std::string* release_input_data(); |
| 729 | void set_allocated_input_data(std::string* input_data); |
| 730 | private: |
| 731 | const std::string& _internal_input_data() const; |
| 732 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_data(const std::string& value); |
| 733 | std::string* _internal_mutable_input_data(); |
| 734 | public: |
| 735 |
| 736 | // optional bytes output_data = 2; |
| 737 | bool has_output_data() const; |
| 738 | private: |
| 739 | bool _internal_has_output_data() const; |
| 740 | public: |
| 741 | void clear_output_data(); |
| 742 | const std::string& output_data() const; |
| 743 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 744 | void set_output_data(ArgT0&& arg0, ArgT... args); |
| 745 | std::string* mutable_output_data(); |
| 746 | PROTOBUF_NODISCARD std::string* release_output_data(); |
| 747 | void set_allocated_output_data(std::string* output_data); |
| 748 | private: |
| 749 | const std::string& _internal_output_data() const; |
| 750 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_data(const std::string& value); |
| 751 | std::string* _internal_mutable_output_data(); |
| 752 | public: |
| 753 |
| 754 | // optional int32 delay = 3; |
| 755 | bool has_delay() const; |
| 756 | private: |
| 757 | bool _internal_has_delay() const; |
| 758 | public: |
| 759 | void clear_delay(); |
| 760 | int32_t delay() const; |
| 761 | void set_delay(int32_t value); |
| 762 | private: |
| 763 | int32_t _internal_delay() const; |
| 764 | void _internal_set_delay(int32_t value); |
| 765 | public: |
| 766 |
| 767 | // optional sint32 drift = 4; |
| 768 | bool has_drift() const; |
| 769 | private: |
| 770 | bool _internal_has_drift() const; |
| 771 | public: |
| 772 | void clear_drift(); |
| 773 | int32_t drift() const; |
| 774 | void set_drift(int32_t value); |
| 775 | private: |
| 776 | int32_t _internal_drift() const; |
| 777 | void _internal_set_drift(int32_t value); |
| 778 | public: |
| 779 |
| 780 | // optional int32 applied_input_volume = 5; |
| 781 | bool has_applied_input_volume() const; |
| 782 | private: |
| 783 | bool _internal_has_applied_input_volume() const; |
| 784 | public: |
| 785 | void clear_applied_input_volume(); |
| 786 | int32_t applied_input_volume() const; |
| 787 | void set_applied_input_volume(int32_t value); |
| 788 | private: |
| 789 | int32_t _internal_applied_input_volume() const; |
| 790 | void _internal_set_applied_input_volume(int32_t value); |
| 791 | public: |
| 792 |
| 793 | // optional bool keypress = 6; |
| 794 | bool has_keypress() const; |
| 795 | private: |
| 796 | bool _internal_has_keypress() const; |
| 797 | public: |
| 798 | void clear_keypress(); |
| 799 | bool keypress() const; |
| 800 | void set_keypress(bool value); |
| 801 | private: |
| 802 | bool _internal_keypress() const; |
| 803 | void _internal_set_keypress(bool value); |
| 804 | public: |
| 805 |
| 806 | // @@protoc_insertion_point(class_scope:webrtc.audioproc.Stream) |
| 807 | private: |
| 808 | class _Internal; |
| 809 |
| 810 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 811 | typedef void InternalArenaConstructable_; |
| 812 | typedef void DestructorSkippable_; |
| 813 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 814 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 815 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> input_channel_; |
| 816 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> output_channel_; |
| 817 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr input_data_; |
| 818 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr output_data_; |
| 819 | int32_t delay_; |
| 820 | int32_t drift_; |
| 821 | int32_t applied_input_volume_; |
| 822 | bool keypress_; |
| 823 | friend struct ::TableStruct_debug_2eproto; |
| 824 | }; |
| 825 | // ------------------------------------------------------------------- |
| 826 |
| 827 | class Config final : |
| 828 | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:webrtc.audioproc.Config) */ { |
| 829 | public: |
| 830 | inline Config() : Config(nullptr) {} |
| 831 | ~Config() override; |
| 832 | explicit PROTOBUF_CONSTEXPR Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 833 |
| 834 | Config(const Config& from); |
| 835 | Config(Config&& from) noexcept |
| 836 | : Config() { |
| 837 | *this = ::std::move(from); |
| 838 | } |
| 839 |
| 840 | inline Config& operator=(const Config& from) { |
| 841 | CopyFrom(from); |
| 842 | return *this; |
| 843 | } |
| 844 | inline Config& operator=(Config&& from) noexcept { |
| 845 | if (this == &from) return *this; |
| 846 | if (GetOwningArena() == from.GetOwningArena() |
| 847 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 848 | && GetOwningArena() != nullptr |
| 849 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 850 | ) { |
| 851 | InternalSwap(&from); |
| 852 | } else { |
| 853 | CopyFrom(from); |
| 854 | } |
| 855 | return *this; |
| 856 | } |
| 857 |
| 858 | inline const std::string& unknown_fields() const { |
| 859 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
| 860 | } |
| 861 | inline std::string* mutable_unknown_fields() { |
| 862 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
| 863 | } |
| 864 |
| 865 | static const Config& default_instance() { |
| 866 | return *internal_default_instance(); |
| 867 | } |
| 868 | static inline const Config* internal_default_instance() { |
| 869 | return reinterpret_cast<const Config*>( |
| 870 | &_Config_default_instance_); |
| 871 | } |
| 872 | static constexpr int kIndexInFileMessages = |
| 873 | 3; |
| 874 |
| 875 | friend void swap(Config& a, Config& b) { |
| 876 | a.Swap(&b); |
| 877 | } |
| 878 | PROTOBUF_NOINLINE void Swap(Config* other) { |
| 879 | if (other == this) return; |
| 880 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 881 | if (GetOwningArena() != nullptr && |
| 882 | GetOwningArena() == other->GetOwningArena()) { |
| 883 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 884 | if (GetOwningArena() == other->GetOwningArena()) { |
| 885 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 886 | InternalSwap(other); |
| 887 | } else { |
| 888 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
| 889 | } |
| 890 | } |
| 891 | void UnsafeArenaSwap(Config* other) { |
| 892 | if (other == this) return; |
| 893 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 894 | InternalSwap(other); |
| 895 | } |
| 896 |
| 897 | // implements Message ---------------------------------------------- |
| 898 |
| 899 | Config* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 900 | return CreateMaybeMessage<Config>(arena); |
| 901 | } |
| 902 | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; |
| 903 | void CopyFrom(const Config& from); |
| 904 | void MergeFrom(const Config& from); |
| 905 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 906 | bool IsInitialized() const final; |
| 907 |
| 908 | size_t ByteSizeLong() const final; |
| 909 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 910 | uint8_t* _InternalSerialize( |
| 911 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 912 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 913 |
| 914 | private: |
| 915 | void SharedCtor(); |
| 916 | void SharedDtor(); |
| 917 | void SetCachedSize(int size) const; |
| 918 | void InternalSwap(Config* other); |
| 919 |
| 920 | private: |
| 921 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 922 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 923 | return "webrtc.audioproc.Config"; |
| 924 | } |
| 925 | protected: |
| 926 | explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 927 | bool is_message_owned = false); |
| 928 | public: |
| 929 |
| 930 | std::string GetTypeName() const final; |
| 931 |
| 932 | // nested types ---------------------------------------------------- |
| 933 |
| 934 | // accessors ------------------------------------------------------- |
| 935 |
| 936 | enum : int { |
| 937 | kExperimentsDescriptionFieldNumber = 17, |
| 938 | kAecEnabledFieldNumber = 1, |
| 939 | kAecDelayAgnosticEnabledFieldNumber = 2, |
| 940 | kAecDriftCompensationEnabledFieldNumber = 3, |
| 941 | kAecExtendedFilterEnabledFieldNumber = 4, |
| 942 | kAecSuppressionLevelFieldNumber = 5, |
| 943 | kAecmRoutingModeFieldNumber = 8, |
| 944 | kAecmEnabledFieldNumber = 6, |
| 945 | kAecmComfortNoiseEnabledFieldNumber = 7, |
| 946 | kAgcEnabledFieldNumber = 9, |
| 947 | kAgcLimiterEnabledFieldNumber = 11, |
| 948 | kAgcModeFieldNumber = 10, |
| 949 | kNoiseRobustAgcEnabledFieldNumber = 12, |
| 950 | kHpfEnabledFieldNumber = 13, |
| 951 | kNsEnabledFieldNumber = 14, |
| 952 | kTransientSuppressionEnabledFieldNumber = 16, |
| 953 | kNsLevelFieldNumber = 15, |
| 954 | kPreAmplifierEnabledFieldNumber = 19, |
| 955 | kPreAmplifierFixedGainFactorFieldNumber = 20, |
| 956 | }; |
| 957 | // optional string experiments_description = 17; |
| 958 | bool has_experiments_description() const; |
| 959 | private: |
| 960 | bool _internal_has_experiments_description() const; |
| 961 | public: |
| 962 | void clear_experiments_description(); |
| 963 | const std::string& experiments_description() const; |
| 964 | template <typename ArgT0 = const std::string&, typename... ArgT> |
| 965 | void set_experiments_description(ArgT0&& arg0, ArgT... args); |
| 966 | std::string* mutable_experiments_description(); |
| 967 | PROTOBUF_NODISCARD std::string* release_experiments_description(); |
| 968 | void set_allocated_experiments_description(std::string* experiments_description); |
| 969 | private: |
| 970 | const std::string& _internal_experiments_description() const; |
| 971 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_experiments_description(const std::string& value); |
| 972 | std::string* _internal_mutable_experiments_description(); |
| 973 | public: |
| 974 |
| 975 | // optional bool aec_enabled = 1; |
| 976 | bool has_aec_enabled() const; |
| 977 | private: |
| 978 | bool _internal_has_aec_enabled() const; |
| 979 | public: |
| 980 | void clear_aec_enabled(); |
| 981 | bool aec_enabled() const; |
| 982 | void set_aec_enabled(bool value); |
| 983 | private: |
| 984 | bool _internal_aec_enabled() const; |
| 985 | void _internal_set_aec_enabled(bool value); |
| 986 | public: |
| 987 |
| 988 | // optional bool aec_delay_agnostic_enabled = 2; |
| 989 | bool has_aec_delay_agnostic_enabled() const; |
| 990 | private: |
| 991 | bool _internal_has_aec_delay_agnostic_enabled() const; |
| 992 | public: |
| 993 | void clear_aec_delay_agnostic_enabled(); |
| 994 | bool aec_delay_agnostic_enabled() const; |
| 995 | void set_aec_delay_agnostic_enabled(bool value); |
| 996 | private: |
| 997 | bool _internal_aec_delay_agnostic_enabled() const; |
| 998 | void _internal_set_aec_delay_agnostic_enabled(bool value); |
| 999 | public: |
| 1000 |
| 1001 | // optional bool aec_drift_compensation_enabled = 3; |
| 1002 | bool has_aec_drift_compensation_enabled() const; |
| 1003 | private: |
| 1004 | bool _internal_has_aec_drift_compensation_enabled() const; |
| 1005 | public: |
| 1006 | void clear_aec_drift_compensation_enabled(); |
| 1007 | bool aec_drift_compensation_enabled() const; |
| 1008 | void set_aec_drift_compensation_enabled(bool value); |
| 1009 | private: |
| 1010 | bool _internal_aec_drift_compensation_enabled() const; |
| 1011 | void _internal_set_aec_drift_compensation_enabled(bool value); |
| 1012 | public: |
| 1013 |
| 1014 | // optional bool aec_extended_filter_enabled = 4; |
| 1015 | bool has_aec_extended_filter_enabled() const; |
| 1016 | private: |
| 1017 | bool _internal_has_aec_extended_filter_enabled() const; |
| 1018 | public: |
| 1019 | void clear_aec_extended_filter_enabled(); |
| 1020 | bool aec_extended_filter_enabled() const; |
| 1021 | void set_aec_extended_filter_enabled(bool value); |
| 1022 | private: |
| 1023 | bool _internal_aec_extended_filter_enabled() const; |
| 1024 | void _internal_set_aec_extended_filter_enabled(bool value); |
| 1025 | public: |
| 1026 |
| 1027 | // optional int32 aec_suppression_level = 5; |
| 1028 | bool has_aec_suppression_level() const; |
| 1029 | private: |
| 1030 | bool _internal_has_aec_suppression_level() const; |
| 1031 | public: |
| 1032 | void clear_aec_suppression_level(); |
| 1033 | int32_t aec_suppression_level() const; |
| 1034 | void set_aec_suppression_level(int32_t value); |
| 1035 | private: |
| 1036 | int32_t _internal_aec_suppression_level() const; |
| 1037 | void _internal_set_aec_suppression_level(int32_t value); |
| 1038 | public: |
| 1039 |
| 1040 | // optional int32 aecm_routing_mode = 8 [deprecated = true]; |
| 1041 | PROTOBUF_DEPRECATED bool has_aecm_routing_mode() const; |
| 1042 | private: |
| 1043 | bool _internal_has_aecm_routing_mode() const; |
| 1044 | public: |
| 1045 | PROTOBUF_DEPRECATED void clear_aecm_routing_mode(); |
| 1046 | PROTOBUF_DEPRECATED int32_t aecm_routing_mode() const; |
| 1047 | PROTOBUF_DEPRECATED void set_aecm_routing_mode(int32_t value); |
| 1048 | private: |
| 1049 | int32_t _internal_aecm_routing_mode() const; |
| 1050 | void _internal_set_aecm_routing_mode(int32_t value); |
| 1051 | public: |
| 1052 |
| 1053 | // optional bool aecm_enabled = 6; |
| 1054 | bool has_aecm_enabled() const; |
| 1055 | private: |
| 1056 | bool _internal_has_aecm_enabled() const; |
| 1057 | public: |
| 1058 | void clear_aecm_enabled(); |
| 1059 | bool aecm_enabled() const; |
| 1060 | void set_aecm_enabled(bool value); |
| 1061 | private: |
| 1062 | bool _internal_aecm_enabled() const; |
| 1063 | void _internal_set_aecm_enabled(bool value); |
| 1064 | public: |
| 1065 |
| 1066 | // optional bool aecm_comfort_noise_enabled = 7 [deprecated = true]; |
| 1067 | PROTOBUF_DEPRECATED bool has_aecm_comfort_noise_enabled() const; |
| 1068 | private: |
| 1069 | bool _internal_has_aecm_comfort_noise_enabled() const; |
| 1070 | public: |
| 1071 | PROTOBUF_DEPRECATED void clear_aecm_comfort_noise_enabled(); |
| 1072 | PROTOBUF_DEPRECATED bool aecm_comfort_noise_enabled() const; |
| 1073 | PROTOBUF_DEPRECATED void set_aecm_comfort_noise_enabled(bool value); |
| 1074 | private: |
| 1075 | bool _internal_aecm_comfort_noise_enabled() const; |
| 1076 | void _internal_set_aecm_comfort_noise_enabled(bool value); |
| 1077 | public: |
| 1078 |
| 1079 | // optional bool agc_enabled = 9; |
| 1080 | bool has_agc_enabled() const; |
| 1081 | private: |
| 1082 | bool _internal_has_agc_enabled() const; |
| 1083 | public: |
| 1084 | void clear_agc_enabled(); |
| 1085 | bool agc_enabled() const; |
| 1086 | void set_agc_enabled(bool value); |
| 1087 | private: |
| 1088 | bool _internal_agc_enabled() const; |
| 1089 | void _internal_set_agc_enabled(bool value); |
| 1090 | public: |
| 1091 |
| 1092 | // optional bool agc_limiter_enabled = 11; |
| 1093 | bool has_agc_limiter_enabled() const; |
| 1094 | private: |
| 1095 | bool _internal_has_agc_limiter_enabled() const; |
| 1096 | public: |
| 1097 | void clear_agc_limiter_enabled(); |
| 1098 | bool agc_limiter_enabled() const; |
| 1099 | void set_agc_limiter_enabled(bool value); |
| 1100 | private: |
| 1101 | bool _internal_agc_limiter_enabled() const; |
| 1102 | void _internal_set_agc_limiter_enabled(bool value); |
| 1103 | public: |
| 1104 |
| 1105 | // optional int32 agc_mode = 10; |
| 1106 | bool has_agc_mode() const; |
| 1107 | private: |
| 1108 | bool _internal_has_agc_mode() const; |
| 1109 | public: |
| 1110 | void clear_agc_mode(); |
| 1111 | int32_t agc_mode() const; |
| 1112 | void set_agc_mode(int32_t value); |
| 1113 | private: |
| 1114 | int32_t _internal_agc_mode() const; |
| 1115 | void _internal_set_agc_mode(int32_t value); |
| 1116 | public: |
| 1117 |
| 1118 | // optional bool noise_robust_agc_enabled = 12; |
| 1119 | bool has_noise_robust_agc_enabled() const; |
| 1120 | private: |
| 1121 | bool _internal_has_noise_robust_agc_enabled() const; |
| 1122 | public: |
| 1123 | void clear_noise_robust_agc_enabled(); |
| 1124 | bool noise_robust_agc_enabled() const; |
| 1125 | void set_noise_robust_agc_enabled(bool value); |
| 1126 | private: |
| 1127 | bool _internal_noise_robust_agc_enabled() const; |
| 1128 | void _internal_set_noise_robust_agc_enabled(bool value); |
| 1129 | public: |
| 1130 |
| 1131 | // optional bool hpf_enabled = 13; |
| 1132 | bool has_hpf_enabled() const; |
| 1133 | private: |
| 1134 | bool _internal_has_hpf_enabled() const; |
| 1135 | public: |
| 1136 | void clear_hpf_enabled(); |
| 1137 | bool hpf_enabled() const; |
| 1138 | void set_hpf_enabled(bool value); |
| 1139 | private: |
| 1140 | bool _internal_hpf_enabled() const; |
| 1141 | void _internal_set_hpf_enabled(bool value); |
| 1142 | public: |
| 1143 |
| 1144 | // optional bool ns_enabled = 14; |
| 1145 | bool has_ns_enabled() const; |
| 1146 | private: |
| 1147 | bool _internal_has_ns_enabled() const; |
| 1148 | public: |
| 1149 | void clear_ns_enabled(); |
| 1150 | bool ns_enabled() const; |
| 1151 | void set_ns_enabled(bool value); |
| 1152 | private: |
| 1153 | bool _internal_ns_enabled() const; |
| 1154 | void _internal_set_ns_enabled(bool value); |
| 1155 | public: |
| 1156 |
| 1157 | // optional bool transient_suppression_enabled = 16; |
| 1158 | bool has_transient_suppression_enabled() const; |
| 1159 | private: |
| 1160 | bool _internal_has_transient_suppression_enabled() const; |
| 1161 | public: |
| 1162 | void clear_transient_suppression_enabled(); |
| 1163 | bool transient_suppression_enabled() const; |
| 1164 | void set_transient_suppression_enabled(bool value); |
| 1165 | private: |
| 1166 | bool _internal_transient_suppression_enabled() const; |
| 1167 | void _internal_set_transient_suppression_enabled(bool value); |
| 1168 | public: |
| 1169 |
| 1170 | // optional int32 ns_level = 15; |
| 1171 | bool has_ns_level() const; |
| 1172 | private: |
| 1173 | bool _internal_has_ns_level() const; |
| 1174 | public: |
| 1175 | void clear_ns_level(); |
| 1176 | int32_t ns_level() const; |
| 1177 | void set_ns_level(int32_t value); |
| 1178 | private: |
| 1179 | int32_t _internal_ns_level() const; |
| 1180 | void _internal_set_ns_level(int32_t value); |
| 1181 | public: |
| 1182 |
| 1183 | // optional bool pre_amplifier_enabled = 19; |
| 1184 | bool has_pre_amplifier_enabled() const; |
| 1185 | private: |
| 1186 | bool _internal_has_pre_amplifier_enabled() const; |
| 1187 | public: |
| 1188 | void clear_pre_amplifier_enabled(); |
| 1189 | bool pre_amplifier_enabled() const; |
| 1190 | void set_pre_amplifier_enabled(bool value); |
| 1191 | private: |
| 1192 | bool _internal_pre_amplifier_enabled() const; |
| 1193 | void _internal_set_pre_amplifier_enabled(bool value); |
| 1194 | public: |
| 1195 |
| 1196 | // optional float pre_amplifier_fixed_gain_factor = 20; |
| 1197 | bool has_pre_amplifier_fixed_gain_factor() const; |
| 1198 | private: |
| 1199 | bool _internal_has_pre_amplifier_fixed_gain_factor() const; |
| 1200 | public: |
| 1201 | void clear_pre_amplifier_fixed_gain_factor(); |
| 1202 | float pre_amplifier_fixed_gain_factor() const; |
| 1203 | void set_pre_amplifier_fixed_gain_factor(float value); |
| 1204 | private: |
| 1205 | float _internal_pre_amplifier_fixed_gain_factor() const; |
| 1206 | void _internal_set_pre_amplifier_fixed_gain_factor(float value); |
| 1207 | public: |
| 1208 |
| 1209 | // @@protoc_insertion_point(class_scope:webrtc.audioproc.Config) |
| 1210 | private: |
| 1211 | class _Internal; |
| 1212 |
| 1213 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 1214 | typedef void InternalArenaConstructable_; |
| 1215 | typedef void DestructorSkippable_; |
| 1216 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 1217 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 1218 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr experiments_description_; |
| 1219 | bool aec_enabled_; |
| 1220 | bool aec_delay_agnostic_enabled_; |
| 1221 | bool aec_drift_compensation_enabled_; |
| 1222 | bool aec_extended_filter_enabled_; |
| 1223 | int32_t aec_suppression_level_; |
| 1224 | int32_t aecm_routing_mode_; |
| 1225 | bool aecm_enabled_; |
| 1226 | bool aecm_comfort_noise_enabled_; |
| 1227 | bool agc_enabled_; |
| 1228 | bool agc_limiter_enabled_; |
| 1229 | int32_t agc_mode_; |
| 1230 | bool noise_robust_agc_enabled_; |
| 1231 | bool hpf_enabled_; |
| 1232 | bool ns_enabled_; |
| 1233 | bool transient_suppression_enabled_; |
| 1234 | int32_t ns_level_; |
| 1235 | bool pre_amplifier_enabled_; |
| 1236 | float pre_amplifier_fixed_gain_factor_; |
| 1237 | friend struct ::TableStruct_debug_2eproto; |
| 1238 | }; |
| 1239 | // ------------------------------------------------------------------- |
| 1240 |
| 1241 | class PlayoutAudioDeviceInfo final : |
| 1242 | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:webrtc.audioproc.PlayoutAudioDeviceInfo) */ { |
| 1243 | public: |
| 1244 | inline PlayoutAudioDeviceInfo() : PlayoutAudioDeviceInfo(nullptr) {} |
| 1245 | ~PlayoutAudioDeviceInfo() override; |
| 1246 | explicit PROTOBUF_CONSTEXPR PlayoutAudioDeviceInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 1247 |
| 1248 | PlayoutAudioDeviceInfo(const PlayoutAudioDeviceInfo& from); |
| 1249 | PlayoutAudioDeviceInfo(PlayoutAudioDeviceInfo&& from) noexcept |
| 1250 | : PlayoutAudioDeviceInfo() { |
| 1251 | *this = ::std::move(from); |
| 1252 | } |
| 1253 |
| 1254 | inline PlayoutAudioDeviceInfo& operator=(const PlayoutAudioDeviceInfo& from) { |
| 1255 | CopyFrom(from); |
| 1256 | return *this; |
| 1257 | } |
| 1258 | inline PlayoutAudioDeviceInfo& operator=(PlayoutAudioDeviceInfo&& from) noexcept { |
| 1259 | if (this == &from) return *this; |
| 1260 | if (GetOwningArena() == from.GetOwningArena() |
| 1261 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 1262 | && GetOwningArena() != nullptr |
| 1263 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 1264 | ) { |
| 1265 | InternalSwap(&from); |
| 1266 | } else { |
| 1267 | CopyFrom(from); |
| 1268 | } |
| 1269 | return *this; |
| 1270 | } |
| 1271 |
| 1272 | inline const std::string& unknown_fields() const { |
| 1273 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
| 1274 | } |
| 1275 | inline std::string* mutable_unknown_fields() { |
| 1276 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
| 1277 | } |
| 1278 |
| 1279 | static const PlayoutAudioDeviceInfo& default_instance() { |
| 1280 | return *internal_default_instance(); |
| 1281 | } |
| 1282 | static inline const PlayoutAudioDeviceInfo* internal_default_instance() { |
| 1283 | return reinterpret_cast<const PlayoutAudioDeviceInfo*>( |
| 1284 | &_PlayoutAudioDeviceInfo_default_instance_); |
| 1285 | } |
| 1286 | static constexpr int kIndexInFileMessages = |
| 1287 | 4; |
| 1288 |
| 1289 | friend void swap(PlayoutAudioDeviceInfo& a, PlayoutAudioDeviceInfo& b) { |
| 1290 | a.Swap(&b); |
| 1291 | } |
| 1292 | PROTOBUF_NOINLINE void Swap(PlayoutAudioDeviceInfo* other) { |
| 1293 | if (other == this) return; |
| 1294 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 1295 | if (GetOwningArena() != nullptr && |
| 1296 | GetOwningArena() == other->GetOwningArena()) { |
| 1297 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 1298 | if (GetOwningArena() == other->GetOwningArena()) { |
| 1299 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 1300 | InternalSwap(other); |
| 1301 | } else { |
| 1302 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
| 1303 | } |
| 1304 | } |
| 1305 | void UnsafeArenaSwap(PlayoutAudioDeviceInfo* other) { |
| 1306 | if (other == this) return; |
| 1307 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 1308 | InternalSwap(other); |
| 1309 | } |
| 1310 |
| 1311 | // implements Message ---------------------------------------------- |
| 1312 |
| 1313 | PlayoutAudioDeviceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 1314 | return CreateMaybeMessage<PlayoutAudioDeviceInfo>(arena); |
| 1315 | } |
| 1316 | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; |
| 1317 | void CopyFrom(const PlayoutAudioDeviceInfo& from); |
| 1318 | void MergeFrom(const PlayoutAudioDeviceInfo& from); |
| 1319 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1320 | bool IsInitialized() const final; |
| 1321 |
| 1322 | size_t ByteSizeLong() const final; |
| 1323 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 1324 | uint8_t* _InternalSerialize( |
| 1325 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 1326 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1327 |
| 1328 | private: |
| 1329 | void SharedCtor(); |
| 1330 | void SharedDtor(); |
| 1331 | void SetCachedSize(int size) const; |
| 1332 | void InternalSwap(PlayoutAudioDeviceInfo* other); |
| 1333 |
| 1334 | private: |
| 1335 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 1336 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 1337 | return "webrtc.audioproc.PlayoutAudioDeviceInfo"; |
| 1338 | } |
| 1339 | protected: |
| 1340 | explicit PlayoutAudioDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 1341 | bool is_message_owned = false); |
| 1342 | public: |
| 1343 |
| 1344 | std::string GetTypeName() const final; |
| 1345 |
| 1346 | // nested types ---------------------------------------------------- |
| 1347 |
| 1348 | // accessors ------------------------------------------------------- |
| 1349 |
| 1350 | enum : int { |
| 1351 | kIdFieldNumber = 1, |
| 1352 | kMaxVolumeFieldNumber = 2, |
| 1353 | }; |
| 1354 | // optional int32 id = 1; |
| 1355 | bool has_id() const; |
| 1356 | private: |
| 1357 | bool _internal_has_id() const; |
| 1358 | public: |
| 1359 | void clear_id(); |
| 1360 | int32_t id() const; |
| 1361 | void set_id(int32_t value); |
| 1362 | private: |
| 1363 | int32_t _internal_id() const; |
| 1364 | void _internal_set_id(int32_t value); |
| 1365 | public: |
| 1366 |
| 1367 | // optional int32 max_volume = 2; |
| 1368 | bool has_max_volume() const; |
| 1369 | private: |
| 1370 | bool _internal_has_max_volume() const; |
| 1371 | public: |
| 1372 | void clear_max_volume(); |
| 1373 | int32_t max_volume() const; |
| 1374 | void set_max_volume(int32_t value); |
| 1375 | private: |
| 1376 | int32_t _internal_max_volume() const; |
| 1377 | void _internal_set_max_volume(int32_t value); |
| 1378 | public: |
| 1379 |
| 1380 | // @@protoc_insertion_point(class_scope:webrtc.audioproc.PlayoutAudioDeviceInfo) |
| 1381 | private: |
| 1382 | class _Internal; |
| 1383 |
| 1384 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 1385 | typedef void InternalArenaConstructable_; |
| 1386 | typedef void DestructorSkippable_; |
| 1387 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 1388 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 1389 | int32_t id_; |
| 1390 | int32_t max_volume_; |
| 1391 | friend struct ::TableStruct_debug_2eproto; |
| 1392 | }; |
| 1393 | // ------------------------------------------------------------------- |
| 1394 |
| 1395 | class RuntimeSetting final : |
| 1396 | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:webrtc.audioproc.RuntimeSetting) */ { |
| 1397 | public: |
| 1398 | inline RuntimeSetting() : RuntimeSetting(nullptr) {} |
| 1399 | ~RuntimeSetting() override; |
| 1400 | explicit PROTOBUF_CONSTEXPR RuntimeSetting(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 1401 |
| 1402 | RuntimeSetting(const RuntimeSetting& from); |
| 1403 | RuntimeSetting(RuntimeSetting&& from) noexcept |
| 1404 | : RuntimeSetting() { |
| 1405 | *this = ::std::move(from); |
| 1406 | } |
| 1407 |
| 1408 | inline RuntimeSetting& operator=(const RuntimeSetting& from) { |
| 1409 | CopyFrom(from); |
| 1410 | return *this; |
| 1411 | } |
| 1412 | inline RuntimeSetting& operator=(RuntimeSetting&& from) noexcept { |
| 1413 | if (this == &from) return *this; |
| 1414 | if (GetOwningArena() == from.GetOwningArena() |
| 1415 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 1416 | && GetOwningArena() != nullptr |
| 1417 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 1418 | ) { |
| 1419 | InternalSwap(&from); |
| 1420 | } else { |
| 1421 | CopyFrom(from); |
| 1422 | } |
| 1423 | return *this; |
| 1424 | } |
| 1425 |
| 1426 | inline const std::string& unknown_fields() const { |
| 1427 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
| 1428 | } |
| 1429 | inline std::string* mutable_unknown_fields() { |
| 1430 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
| 1431 | } |
| 1432 |
| 1433 | static const RuntimeSetting& default_instance() { |
| 1434 | return *internal_default_instance(); |
| 1435 | } |
| 1436 | static inline const RuntimeSetting* internal_default_instance() { |
| 1437 | return reinterpret_cast<const RuntimeSetting*>( |
| 1438 | &_RuntimeSetting_default_instance_); |
| 1439 | } |
| 1440 | static constexpr int kIndexInFileMessages = |
| 1441 | 5; |
| 1442 |
| 1443 | friend void swap(RuntimeSetting& a, RuntimeSetting& b) { |
| 1444 | a.Swap(&b); |
| 1445 | } |
| 1446 | PROTOBUF_NOINLINE void Swap(RuntimeSetting* other) { |
| 1447 | if (other == this) return; |
| 1448 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 1449 | if (GetOwningArena() != nullptr && |
| 1450 | GetOwningArena() == other->GetOwningArena()) { |
| 1451 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 1452 | if (GetOwningArena() == other->GetOwningArena()) { |
| 1453 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 1454 | InternalSwap(other); |
| 1455 | } else { |
| 1456 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
| 1457 | } |
| 1458 | } |
| 1459 | void UnsafeArenaSwap(RuntimeSetting* other) { |
| 1460 | if (other == this) return; |
| 1461 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 1462 | InternalSwap(other); |
| 1463 | } |
| 1464 |
| 1465 | // implements Message ---------------------------------------------- |
| 1466 |
| 1467 | RuntimeSetting* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 1468 | return CreateMaybeMessage<RuntimeSetting>(arena); |
| 1469 | } |
| 1470 | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; |
| 1471 | void CopyFrom(const RuntimeSetting& from); |
| 1472 | void MergeFrom(const RuntimeSetting& from); |
| 1473 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1474 | bool IsInitialized() const final; |
| 1475 |
| 1476 | size_t ByteSizeLong() const final; |
| 1477 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 1478 | uint8_t* _InternalSerialize( |
| 1479 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 1480 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1481 |
| 1482 | private: |
| 1483 | void SharedCtor(); |
| 1484 | void SharedDtor(); |
| 1485 | void SetCachedSize(int size) const; |
| 1486 | void InternalSwap(RuntimeSetting* other); |
| 1487 |
| 1488 | private: |
| 1489 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 1490 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 1491 | return "webrtc.audioproc.RuntimeSetting"; |
| 1492 | } |
| 1493 | protected: |
| 1494 | explicit RuntimeSetting(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 1495 | bool is_message_owned = false); |
| 1496 | public: |
| 1497 |
| 1498 | std::string GetTypeName() const final; |
| 1499 |
| 1500 | // nested types ---------------------------------------------------- |
| 1501 |
| 1502 | // accessors ------------------------------------------------------- |
| 1503 |
| 1504 | enum : int { |
| 1505 | kPlayoutAudioDeviceChangeFieldNumber = 5, |
| 1506 | kCapturePreGainFieldNumber = 1, |
| 1507 | kCustomRenderProcessingSettingFieldNumber = 2, |
| 1508 | kCaptureFixedPostGainFieldNumber = 3, |
| 1509 | kPlayoutVolumeChangeFieldNumber = 4, |
| 1510 | kCaptureOutputUsedFieldNumber = 6, |
| 1511 | kCapturePostGainFieldNumber = 7, |
| 1512 | }; |
| 1513 | // optional .webrtc.audioproc.PlayoutAudioDeviceInfo playout_audio_device_change = 5; |
| 1514 | bool has_playout_audio_device_change() const; |
| 1515 | private: |
| 1516 | bool _internal_has_playout_audio_device_change() const; |
| 1517 | public: |
| 1518 | void clear_playout_audio_device_change(); |
| 1519 | const ::webrtc::audioproc::PlayoutAudioDeviceInfo& playout_audio_device_change() const; |
| 1520 | PROTOBUF_NODISCARD ::webrtc::audioproc::PlayoutAudioDeviceInfo* release_playout_audio_device_change(); |
| 1521 | ::webrtc::audioproc::PlayoutAudioDeviceInfo* mutable_playout_audio_device_change(); |
| 1522 | void set_allocated_playout_audio_device_change(::webrtc::audioproc::PlayoutAudioDeviceInfo* playout_audio_device_change); |
| 1523 | private: |
| 1524 | const ::webrtc::audioproc::PlayoutAudioDeviceInfo& _internal_playout_audio_device_change() const; |
| 1525 | ::webrtc::audioproc::PlayoutAudioDeviceInfo* _internal_mutable_playout_audio_device_change(); |
| 1526 | public: |
| 1527 | void unsafe_arena_set_allocated_playout_audio_device_change( |
| 1528 | ::webrtc::audioproc::PlayoutAudioDeviceInfo* playout_audio_device_change); |
| 1529 | ::webrtc::audioproc::PlayoutAudioDeviceInfo* unsafe_arena_release_playout_audio_device_change(); |
| 1530 |
| 1531 | // optional float capture_pre_gain = 1; |
| 1532 | bool has_capture_pre_gain() const; |
| 1533 | private: |
| 1534 | bool _internal_has_capture_pre_gain() const; |
| 1535 | public: |
| 1536 | void clear_capture_pre_gain(); |
| 1537 | float capture_pre_gain() const; |
| 1538 | void set_capture_pre_gain(float value); |
| 1539 | private: |
| 1540 | float _internal_capture_pre_gain() const; |
| 1541 | void _internal_set_capture_pre_gain(float value); |
| 1542 | public: |
| 1543 |
| 1544 | // optional float custom_render_processing_setting = 2; |
| 1545 | bool has_custom_render_processing_setting() const; |
| 1546 | private: |
| 1547 | bool _internal_has_custom_render_processing_setting() const; |
| 1548 | public: |
| 1549 | void clear_custom_render_processing_setting(); |
| 1550 | float custom_render_processing_setting() const; |
| 1551 | void set_custom_render_processing_setting(float value); |
| 1552 | private: |
| 1553 | float _internal_custom_render_processing_setting() const; |
| 1554 | void _internal_set_custom_render_processing_setting(float value); |
| 1555 | public: |
| 1556 |
| 1557 | // optional float capture_fixed_post_gain = 3; |
| 1558 | bool has_capture_fixed_post_gain() const; |
| 1559 | private: |
| 1560 | bool _internal_has_capture_fixed_post_gain() const; |
| 1561 | public: |
| 1562 | void clear_capture_fixed_post_gain(); |
| 1563 | float capture_fixed_post_gain() const; |
| 1564 | void set_capture_fixed_post_gain(float value); |
| 1565 | private: |
| 1566 | float _internal_capture_fixed_post_gain() const; |
| 1567 | void _internal_set_capture_fixed_post_gain(float value); |
| 1568 | public: |
| 1569 |
| 1570 | // optional int32 playout_volume_change = 4; |
| 1571 | bool has_playout_volume_change() const; |
| 1572 | private: |
| 1573 | bool _internal_has_playout_volume_change() const; |
| 1574 | public: |
| 1575 | void clear_playout_volume_change(); |
| 1576 | int32_t playout_volume_change() const; |
| 1577 | void set_playout_volume_change(int32_t value); |
| 1578 | private: |
| 1579 | int32_t _internal_playout_volume_change() const; |
| 1580 | void _internal_set_playout_volume_change(int32_t value); |
| 1581 | public: |
| 1582 |
| 1583 | // optional bool capture_output_used = 6; |
| 1584 | bool has_capture_output_used() const; |
| 1585 | private: |
| 1586 | bool _internal_has_capture_output_used() const; |
| 1587 | public: |
| 1588 | void clear_capture_output_used(); |
| 1589 | bool capture_output_used() const; |
| 1590 | void set_capture_output_used(bool value); |
| 1591 | private: |
| 1592 | bool _internal_capture_output_used() const; |
| 1593 | void _internal_set_capture_output_used(bool value); |
| 1594 | public: |
| 1595 |
| 1596 | // optional float capture_post_gain = 7; |
| 1597 | bool has_capture_post_gain() const; |
| 1598 | private: |
| 1599 | bool _internal_has_capture_post_gain() const; |
| 1600 | public: |
| 1601 | void clear_capture_post_gain(); |
| 1602 | float capture_post_gain() const; |
| 1603 | void set_capture_post_gain(float value); |
| 1604 | private: |
| 1605 | float _internal_capture_post_gain() const; |
| 1606 | void _internal_set_capture_post_gain(float value); |
| 1607 | public: |
| 1608 |
| 1609 | // @@protoc_insertion_point(class_scope:webrtc.audioproc.RuntimeSetting) |
| 1610 | private: |
| 1611 | class _Internal; |
| 1612 |
| 1613 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 1614 | typedef void InternalArenaConstructable_; |
| 1615 | typedef void DestructorSkippable_; |
| 1616 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 1617 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 1618 | ::webrtc::audioproc::PlayoutAudioDeviceInfo* playout_audio_device_change_; |
| 1619 | float capture_pre_gain_; |
| 1620 | float custom_render_processing_setting_; |
| 1621 | float capture_fixed_post_gain_; |
| 1622 | int32_t playout_volume_change_; |
| 1623 | bool capture_output_used_; |
| 1624 | float capture_post_gain_; |
| 1625 | friend struct ::TableStruct_debug_2eproto; |
| 1626 | }; |
| 1627 | // ------------------------------------------------------------------- |
| 1628 |
| 1629 | class Event final : |
| 1630 | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:webrtc.audioproc.Event) */ { |
| 1631 | public: |
| 1632 | inline Event() : Event(nullptr) {} |
| 1633 | ~Event() override; |
| 1634 | explicit PROTOBUF_CONSTEXPR Event(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
| 1635 |
| 1636 | Event(const Event& from); |
| 1637 | Event(Event&& from) noexcept |
| 1638 | : Event() { |
| 1639 | *this = ::std::move(from); |
| 1640 | } |
| 1641 |
| 1642 | inline Event& operator=(const Event& from) { |
| 1643 | CopyFrom(from); |
| 1644 | return *this; |
| 1645 | } |
| 1646 | inline Event& operator=(Event&& from) noexcept { |
| 1647 | if (this == &from) return *this; |
| 1648 | if (GetOwningArena() == from.GetOwningArena() |
| 1649 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
| 1650 | && GetOwningArena() != nullptr |
| 1651 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
| 1652 | ) { |
| 1653 | InternalSwap(&from); |
| 1654 | } else { |
| 1655 | CopyFrom(from); |
| 1656 | } |
| 1657 | return *this; |
| 1658 | } |
| 1659 |
| 1660 | inline const std::string& unknown_fields() const { |
| 1661 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
| 1662 | } |
| 1663 | inline std::string* mutable_unknown_fields() { |
| 1664 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
| 1665 | } |
| 1666 |
| 1667 | static const Event& default_instance() { |
| 1668 | return *internal_default_instance(); |
| 1669 | } |
| 1670 | static inline const Event* internal_default_instance() { |
| 1671 | return reinterpret_cast<const Event*>( |
| 1672 | &_Event_default_instance_); |
| 1673 | } |
| 1674 | static constexpr int kIndexInFileMessages = |
| 1675 | 6; |
| 1676 |
| 1677 | friend void swap(Event& a, Event& b) { |
| 1678 | a.Swap(&b); |
| 1679 | } |
| 1680 | PROTOBUF_NOINLINE void Swap(Event* other) { |
| 1681 | if (other == this) return; |
| 1682 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
| 1683 | if (GetOwningArena() != nullptr && |
| 1684 | GetOwningArena() == other->GetOwningArena()) { |
| 1685 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
| 1686 | if (GetOwningArena() == other->GetOwningArena()) { |
| 1687 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
| 1688 | InternalSwap(other); |
| 1689 | } else { |
| 1690 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
| 1691 | } |
| 1692 | } |
| 1693 | void UnsafeArenaSwap(Event* other) { |
| 1694 | if (other == this) return; |
| 1695 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
| 1696 | InternalSwap(other); |
| 1697 | } |
| 1698 |
| 1699 | // implements Message ---------------------------------------------- |
| 1700 |
| 1701 | Event* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
| 1702 | return CreateMaybeMessage<Event>(arena); |
| 1703 | } |
| 1704 | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; |
| 1705 | void CopyFrom(const Event& from); |
| 1706 | void MergeFrom(const Event& from); |
| 1707 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1708 | bool IsInitialized() const final; |
| 1709 |
| 1710 | size_t ByteSizeLong() const final; |
| 1711 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| 1712 | uint8_t* _InternalSerialize( |
| 1713 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
| 1714 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1715 |
| 1716 | private: |
| 1717 | void SharedCtor(); |
| 1718 | void SharedDtor(); |
| 1719 | void SetCachedSize(int size) const; |
| 1720 | void InternalSwap(Event* other); |
| 1721 |
| 1722 | private: |
| 1723 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| 1724 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| 1725 | return "webrtc.audioproc.Event"; |
| 1726 | } |
| 1727 | protected: |
| 1728 | explicit Event(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
| 1729 | bool is_message_owned = false); |
| 1730 | public: |
| 1731 |
| 1732 | std::string GetTypeName() const final; |
| 1733 |
| 1734 | // nested types ---------------------------------------------------- |
| 1735 |
| 1736 | typedef Event_Type Type; |
| 1737 | static constexpr Type INIT = |
| 1738 | Event_Type_INIT; |
| 1739 | static constexpr Type REVERSE_STREAM = |
| 1740 | Event_Type_REVERSE_STREAM; |
| 1741 | static constexpr Type STREAM = |
| 1742 | Event_Type_STREAM; |
| 1743 | static constexpr Type CONFIG = |
| 1744 | Event_Type_CONFIG; |
| 1745 | static constexpr Type UNKNOWN_EVENT = |
| 1746 | Event_Type_UNKNOWN_EVENT; |
| 1747 | static constexpr Type RUNTIME_SETTING = |
| 1748 | Event_Type_RUNTIME_SETTING; |
| 1749 | static inline bool Type_IsValid(int value) { |
| 1750 | return Event_Type_IsValid(value); |
| 1751 | } |
| 1752 | static constexpr Type Type_MIN = |
| 1753 | Event_Type_Type_MIN; |
| 1754 | static constexpr Type Type_MAX = |
| 1755 | Event_Type_Type_MAX; |
| 1756 | static constexpr int Type_ARRAYSIZE = |
| 1757 | Event_Type_Type_ARRAYSIZE; |
| 1758 | template<typename T> |
| 1759 | static inline const std::string& Type_Name(T enum_t_value) { |
| 1760 | static_assert(::std::is_same<T, Type>::value || |
| 1761 | ::std::is_integral<T>::value, |
| 1762 | "Incorrect type passed to function Type_Name."); |
| 1763 | return Event_Type_Name(enum_t_value); |
| 1764 | } |
| 1765 | static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, |
| 1766 | Type* value) { |
| 1767 | return Event_Type_Parse(name, value); |
| 1768 | } |
| 1769 |
| 1770 | // accessors ------------------------------------------------------- |
| 1771 |
| 1772 | enum : int { |
| 1773 | kInitFieldNumber = 2, |
| 1774 | kReverseStreamFieldNumber = 3, |
| 1775 | kStreamFieldNumber = 4, |
| 1776 | kConfigFieldNumber = 5, |
| 1777 | kRuntimeSettingFieldNumber = 6, |
| 1778 | kTypeFieldNumber = 1, |
| 1779 | }; |
| 1780 | // optional .webrtc.audioproc.Init init = 2; |
| 1781 | bool has_init() const; |
| 1782 | private: |
| 1783 | bool _internal_has_init() const; |
| 1784 | public: |
| 1785 | void clear_init(); |
| 1786 | const ::webrtc::audioproc::Init& init() const; |
| 1787 | PROTOBUF_NODISCARD ::webrtc::audioproc::Init* release_init(); |
| 1788 | ::webrtc::audioproc::Init* mutable_init(); |
| 1789 | void set_allocated_init(::webrtc::audioproc::Init* init); |
| 1790 | private: |
| 1791 | const ::webrtc::audioproc::Init& _internal_init() const; |
| 1792 | ::webrtc::audioproc::Init* _internal_mutable_init(); |
| 1793 | public: |
| 1794 | void unsafe_arena_set_allocated_init( |
| 1795 | ::webrtc::audioproc::Init* init); |
| 1796 | ::webrtc::audioproc::Init* unsafe_arena_release_init(); |
| 1797 |
| 1798 | // optional .webrtc.audioproc.ReverseStream reverse_stream = 3; |
| 1799 | bool has_reverse_stream() const; |
| 1800 | private: |
| 1801 | bool _internal_has_reverse_stream() const; |
| 1802 | public: |
| 1803 | void clear_reverse_stream(); |
| 1804 | const ::webrtc::audioproc::ReverseStream& reverse_stream() const; |
| 1805 | PROTOBUF_NODISCARD ::webrtc::audioproc::ReverseStream* release_reverse_stream(); |
| 1806 | ::webrtc::audioproc::ReverseStream* mutable_reverse_stream(); |
| 1807 | void set_allocated_reverse_stream(::webrtc::audioproc::ReverseStream* reverse_stream); |
| 1808 | private: |
| 1809 | const ::webrtc::audioproc::ReverseStream& _internal_reverse_stream() const; |
| 1810 | ::webrtc::audioproc::ReverseStream* _internal_mutable_reverse_stream(); |
| 1811 | public: |
| 1812 | void unsafe_arena_set_allocated_reverse_stream( |
| 1813 | ::webrtc::audioproc::ReverseStream* reverse_stream); |
| 1814 | ::webrtc::audioproc::ReverseStream* unsafe_arena_release_reverse_stream(); |
| 1815 |
| 1816 | // optional .webrtc.audioproc.Stream stream = 4; |
| 1817 | bool has_stream() const; |
| 1818 | private: |
| 1819 | bool _internal_has_stream() const; |
| 1820 | public: |
| 1821 | void clear_stream(); |
| 1822 | const ::webrtc::audioproc::Stream& stream() const; |
| 1823 | PROTOBUF_NODISCARD ::webrtc::audioproc::Stream* release_stream(); |
| 1824 | ::webrtc::audioproc::Stream* mutable_stream(); |
| 1825 | void set_allocated_stream(::webrtc::audioproc::Stream* stream); |
| 1826 | private: |
| 1827 | const ::webrtc::audioproc::Stream& _internal_stream() const; |
| 1828 | ::webrtc::audioproc::Stream* _internal_mutable_stream(); |
| 1829 | public: |
| 1830 | void unsafe_arena_set_allocated_stream( |
| 1831 | ::webrtc::audioproc::Stream* stream); |
| 1832 | ::webrtc::audioproc::Stream* unsafe_arena_release_stream(); |
| 1833 |
| 1834 | // optional .webrtc.audioproc.Config config = 5; |
| 1835 | bool has_config() const; |
| 1836 | private: |
| 1837 | bool _internal_has_config() const; |
| 1838 | public: |
| 1839 | void clear_config(); |
| 1840 | const ::webrtc::audioproc::Config& config() const; |
| 1841 | PROTOBUF_NODISCARD ::webrtc::audioproc::Config* release_config(); |
| 1842 | ::webrtc::audioproc::Config* mutable_config(); |
| 1843 | void set_allocated_config(::webrtc::audioproc::Config* config); |
| 1844 | private: |
| 1845 | const ::webrtc::audioproc::Config& _internal_config() const; |
| 1846 | ::webrtc::audioproc::Config* _internal_mutable_config(); |
| 1847 | public: |
| 1848 | void unsafe_arena_set_allocated_config( |
| 1849 | ::webrtc::audioproc::Config* config); |
| 1850 | ::webrtc::audioproc::Config* unsafe_arena_release_config(); |
| 1851 |
| 1852 | // optional .webrtc.audioproc.RuntimeSetting runtime_setting = 6; |
| 1853 | bool has_runtime_setting() const; |
| 1854 | private: |
| 1855 | bool _internal_has_runtime_setting() const; |
| 1856 | public: |
| 1857 | void clear_runtime_setting(); |
| 1858 | const ::webrtc::audioproc::RuntimeSetting& runtime_setting() const; |
| 1859 | PROTOBUF_NODISCARD ::webrtc::audioproc::RuntimeSetting* release_runtime_setting(); |
| 1860 | ::webrtc::audioproc::RuntimeSetting* mutable_runtime_setting(); |
| 1861 | void set_allocated_runtime_setting(::webrtc::audioproc::RuntimeSetting* runtime_setting); |
| 1862 | private: |
| 1863 | const ::webrtc::audioproc::RuntimeSetting& _internal_runtime_setting() const; |
| 1864 | ::webrtc::audioproc::RuntimeSetting* _internal_mutable_runtime_setting(); |
| 1865 | public: |
| 1866 | void unsafe_arena_set_allocated_runtime_setting( |
| 1867 | ::webrtc::audioproc::RuntimeSetting* runtime_setting); |
| 1868 | ::webrtc::audioproc::RuntimeSetting* unsafe_arena_release_runtime_setting(); |
| 1869 |
| 1870 | // required .webrtc.audioproc.Event.Type type = 1; |
| 1871 | bool has_type() const; |
| 1872 | private: |
| 1873 | bool _internal_has_type() const; |
| 1874 | public: |
| 1875 | void clear_type(); |
| 1876 | ::webrtc::audioproc::Event_Type type() const; |
| 1877 | void set_type(::webrtc::audioproc::Event_Type value); |
| 1878 | private: |
| 1879 | ::webrtc::audioproc::Event_Type _internal_type() const; |
| 1880 | void _internal_set_type(::webrtc::audioproc::Event_Type value); |
| 1881 | public: |
| 1882 |
| 1883 | // @@protoc_insertion_point(class_scope:webrtc.audioproc.Event) |
| 1884 | private: |
| 1885 | class _Internal; |
| 1886 |
| 1887 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
| 1888 | typedef void InternalArenaConstructable_; |
| 1889 | typedef void DestructorSkippable_; |
| 1890 | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| 1891 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| 1892 | ::webrtc::audioproc::Init* init_; |
| 1893 | ::webrtc::audioproc::ReverseStream* reverse_stream_; |
| 1894 | ::webrtc::audioproc::Stream* stream_; |
| 1895 | ::webrtc::audioproc::Config* config_; |
| 1896 | ::webrtc::audioproc::RuntimeSetting* runtime_setting_; |
| 1897 | int type_; |
| 1898 | friend struct ::TableStruct_debug_2eproto; |
| 1899 | }; |
| 1900 | // =================================================================== |
| 1901 |
| 1902 |
| 1903 | // =================================================================== |
| 1904 |
| 1905 | #ifdef __GNUC__ |
| 1906 | #pragma GCC diagnostic push |
| 1907 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
| 1908 | #endif // __GNUC__ |
| 1909 | // Init |
| 1910 |
| 1911 | // optional int32 sample_rate = 1; |
| 1912 | inline bool Init::_internal_has_sample_rate() const { |
| 1913 | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
| 1914 | return value; |
| 1915 | } |
| 1916 | inline bool Init::has_sample_rate() const { |
| 1917 | return _internal_has_sample_rate(); |
| 1918 | } |
| 1919 | inline void Init::clear_sample_rate() { |
| 1920 | sample_rate_ = 0; |
| 1921 | _has_bits_[0] &= ~0x00000001u; |
| 1922 | } |
| 1923 | inline int32_t Init::_internal_sample_rate() const { |
| 1924 | return sample_rate_; |
| 1925 | } |
| 1926 | inline int32_t Init::sample_rate() const { |
| 1927 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.sample_rate) |
| 1928 | return _internal_sample_rate(); |
| 1929 | } |
| 1930 | inline void Init::_internal_set_sample_rate(int32_t value) { |
| 1931 | _has_bits_[0] |= 0x00000001u; |
| 1932 | sample_rate_ = value; |
| 1933 | } |
| 1934 | inline void Init::set_sample_rate(int32_t value) { |
| 1935 | _internal_set_sample_rate(value); |
| 1936 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.sample_rate) |
| 1937 | } |
| 1938 |
| 1939 | // optional int32 device_sample_rate = 2 [deprecated = true]; |
| 1940 | inline bool Init::_internal_has_device_sample_rate() const { |
| 1941 | bool value = (_has_bits_[0] & 0x00000002u) != 0; |
| 1942 | return value; |
| 1943 | } |
| 1944 | inline bool Init::has_device_sample_rate() const { |
| 1945 | return _internal_has_device_sample_rate(); |
| 1946 | } |
| 1947 | inline void Init::clear_device_sample_rate() { |
| 1948 | device_sample_rate_ = 0; |
| 1949 | _has_bits_[0] &= ~0x00000002u; |
| 1950 | } |
| 1951 | inline int32_t Init::_internal_device_sample_rate() const { |
| 1952 | return device_sample_rate_; |
| 1953 | } |
| 1954 | inline int32_t Init::device_sample_rate() const { |
| 1955 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.device_sample_rate) |
| 1956 | return _internal_device_sample_rate(); |
| 1957 | } |
| 1958 | inline void Init::_internal_set_device_sample_rate(int32_t value) { |
| 1959 | _has_bits_[0] |= 0x00000002u; |
| 1960 | device_sample_rate_ = value; |
| 1961 | } |
| 1962 | inline void Init::set_device_sample_rate(int32_t value) { |
| 1963 | _internal_set_device_sample_rate(value); |
| 1964 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.device_sample_rate) |
| 1965 | } |
| 1966 |
| 1967 | // optional int32 num_input_channels = 3; |
| 1968 | inline bool Init::_internal_has_num_input_channels() const { |
| 1969 | bool value = (_has_bits_[0] & 0x00000004u) != 0; |
| 1970 | return value; |
| 1971 | } |
| 1972 | inline bool Init::has_num_input_channels() const { |
| 1973 | return _internal_has_num_input_channels(); |
| 1974 | } |
| 1975 | inline void Init::clear_num_input_channels() { |
| 1976 | num_input_channels_ = 0; |
| 1977 | _has_bits_[0] &= ~0x00000004u; |
| 1978 | } |
| 1979 | inline int32_t Init::_internal_num_input_channels() const { |
| 1980 | return num_input_channels_; |
| 1981 | } |
| 1982 | inline int32_t Init::num_input_channels() const { |
| 1983 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.num_input_channels) |
| 1984 | return _internal_num_input_channels(); |
| 1985 | } |
| 1986 | inline void Init::_internal_set_num_input_channels(int32_t value) { |
| 1987 | _has_bits_[0] |= 0x00000004u; |
| 1988 | num_input_channels_ = value; |
| 1989 | } |
| 1990 | inline void Init::set_num_input_channels(int32_t value) { |
| 1991 | _internal_set_num_input_channels(value); |
| 1992 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.num_input_channels) |
| 1993 | } |
| 1994 |
| 1995 | // optional int32 num_output_channels = 4; |
| 1996 | inline bool Init::_internal_has_num_output_channels() const { |
| 1997 | bool value = (_has_bits_[0] & 0x00000008u) != 0; |
| 1998 | return value; |
| 1999 | } |
| 2000 | inline bool Init::has_num_output_channels() const { |
| 2001 | return _internal_has_num_output_channels(); |
| 2002 | } |
| 2003 | inline void Init::clear_num_output_channels() { |
| 2004 | num_output_channels_ = 0; |
| 2005 | _has_bits_[0] &= ~0x00000008u; |
| 2006 | } |
| 2007 | inline int32_t Init::_internal_num_output_channels() const { |
| 2008 | return num_output_channels_; |
| 2009 | } |
| 2010 | inline int32_t Init::num_output_channels() const { |
| 2011 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.num_output_channels) |
| 2012 | return _internal_num_output_channels(); |
| 2013 | } |
| 2014 | inline void Init::_internal_set_num_output_channels(int32_t value) { |
| 2015 | _has_bits_[0] |= 0x00000008u; |
| 2016 | num_output_channels_ = value; |
| 2017 | } |
| 2018 | inline void Init::set_num_output_channels(int32_t value) { |
| 2019 | _internal_set_num_output_channels(value); |
| 2020 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.num_output_channels) |
| 2021 | } |
| 2022 |
| 2023 | // optional int32 num_reverse_channels = 5; |
| 2024 | inline bool Init::_internal_has_num_reverse_channels() const { |
| 2025 | bool value = (_has_bits_[0] & 0x00000010u) != 0; |
| 2026 | return value; |
| 2027 | } |
| 2028 | inline bool Init::has_num_reverse_channels() const { |
| 2029 | return _internal_has_num_reverse_channels(); |
| 2030 | } |
| 2031 | inline void Init::clear_num_reverse_channels() { |
| 2032 | num_reverse_channels_ = 0; |
| 2033 | _has_bits_[0] &= ~0x00000010u; |
| 2034 | } |
| 2035 | inline int32_t Init::_internal_num_reverse_channels() const { |
| 2036 | return num_reverse_channels_; |
| 2037 | } |
| 2038 | inline int32_t Init::num_reverse_channels() const { |
| 2039 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.num_reverse_channels) |
| 2040 | return _internal_num_reverse_channels(); |
| 2041 | } |
| 2042 | inline void Init::_internal_set_num_reverse_channels(int32_t value) { |
| 2043 | _has_bits_[0] |= 0x00000010u; |
| 2044 | num_reverse_channels_ = value; |
| 2045 | } |
| 2046 | inline void Init::set_num_reverse_channels(int32_t value) { |
| 2047 | _internal_set_num_reverse_channels(value); |
| 2048 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.num_reverse_channels) |
| 2049 | } |
| 2050 |
| 2051 | // optional int32 reverse_sample_rate = 6; |
| 2052 | inline bool Init::_internal_has_reverse_sample_rate() const { |
| 2053 | bool value = (_has_bits_[0] & 0x00000020u) != 0; |
| 2054 | return value; |
| 2055 | } |
| 2056 | inline bool Init::has_reverse_sample_rate() const { |
| 2057 | return _internal_has_reverse_sample_rate(); |
| 2058 | } |
| 2059 | inline void Init::clear_reverse_sample_rate() { |
| 2060 | reverse_sample_rate_ = 0; |
| 2061 | _has_bits_[0] &= ~0x00000020u; |
| 2062 | } |
| 2063 | inline int32_t Init::_internal_reverse_sample_rate() const { |
| 2064 | return reverse_sample_rate_; |
| 2065 | } |
| 2066 | inline int32_t Init::reverse_sample_rate() const { |
| 2067 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.reverse_sample_rate) |
| 2068 | return _internal_reverse_sample_rate(); |
| 2069 | } |
| 2070 | inline void Init::_internal_set_reverse_sample_rate(int32_t value) { |
| 2071 | _has_bits_[0] |= 0x00000020u; |
| 2072 | reverse_sample_rate_ = value; |
| 2073 | } |
| 2074 | inline void Init::set_reverse_sample_rate(int32_t value) { |
| 2075 | _internal_set_reverse_sample_rate(value); |
| 2076 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.reverse_sample_rate) |
| 2077 | } |
| 2078 |
| 2079 | // optional int32 output_sample_rate = 7; |
| 2080 | inline bool Init::_internal_has_output_sample_rate() const { |
| 2081 | bool value = (_has_bits_[0] & 0x00000040u) != 0; |
| 2082 | return value; |
| 2083 | } |
| 2084 | inline bool Init::has_output_sample_rate() const { |
| 2085 | return _internal_has_output_sample_rate(); |
| 2086 | } |
| 2087 | inline void Init::clear_output_sample_rate() { |
| 2088 | output_sample_rate_ = 0; |
| 2089 | _has_bits_[0] &= ~0x00000040u; |
| 2090 | } |
| 2091 | inline int32_t Init::_internal_output_sample_rate() const { |
| 2092 | return output_sample_rate_; |
| 2093 | } |
| 2094 | inline int32_t Init::output_sample_rate() const { |
| 2095 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.output_sample_rate) |
| 2096 | return _internal_output_sample_rate(); |
| 2097 | } |
| 2098 | inline void Init::_internal_set_output_sample_rate(int32_t value) { |
| 2099 | _has_bits_[0] |= 0x00000040u; |
| 2100 | output_sample_rate_ = value; |
| 2101 | } |
| 2102 | inline void Init::set_output_sample_rate(int32_t value) { |
| 2103 | _internal_set_output_sample_rate(value); |
| 2104 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.output_sample_rate) |
| 2105 | } |
| 2106 |
| 2107 | // optional int32 reverse_output_sample_rate = 8; |
| 2108 | inline bool Init::_internal_has_reverse_output_sample_rate() const { |
| 2109 | bool value = (_has_bits_[0] & 0x00000080u) != 0; |
| 2110 | return value; |
| 2111 | } |
| 2112 | inline bool Init::has_reverse_output_sample_rate() const { |
| 2113 | return _internal_has_reverse_output_sample_rate(); |
| 2114 | } |
| 2115 | inline void Init::clear_reverse_output_sample_rate() { |
| 2116 | reverse_output_sample_rate_ = 0; |
| 2117 | _has_bits_[0] &= ~0x00000080u; |
| 2118 | } |
| 2119 | inline int32_t Init::_internal_reverse_output_sample_rate() const { |
| 2120 | return reverse_output_sample_rate_; |
| 2121 | } |
| 2122 | inline int32_t Init::reverse_output_sample_rate() const { |
| 2123 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.reverse_output_sample_rate) |
| 2124 | return _internal_reverse_output_sample_rate(); |
| 2125 | } |
| 2126 | inline void Init::_internal_set_reverse_output_sample_rate(int32_t value) { |
| 2127 | _has_bits_[0] |= 0x00000080u; |
| 2128 | reverse_output_sample_rate_ = value; |
| 2129 | } |
| 2130 | inline void Init::set_reverse_output_sample_rate(int32_t value) { |
| 2131 | _internal_set_reverse_output_sample_rate(value); |
| 2132 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.reverse_output_sample_rate) |
| 2133 | } |
| 2134 |
| 2135 | // optional int32 num_reverse_output_channels = 9; |
| 2136 | inline bool Init::_internal_has_num_reverse_output_channels() const { |
| 2137 | bool value = (_has_bits_[0] & 0x00000200u) != 0; |
| 2138 | return value; |
| 2139 | } |
| 2140 | inline bool Init::has_num_reverse_output_channels() const { |
| 2141 | return _internal_has_num_reverse_output_channels(); |
| 2142 | } |
| 2143 | inline void Init::clear_num_reverse_output_channels() { |
| 2144 | num_reverse_output_channels_ = 0; |
| 2145 | _has_bits_[0] &= ~0x00000200u; |
| 2146 | } |
| 2147 | inline int32_t Init::_internal_num_reverse_output_channels() const { |
| 2148 | return num_reverse_output_channels_; |
| 2149 | } |
| 2150 | inline int32_t Init::num_reverse_output_channels() const { |
| 2151 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.num_reverse_output_channels) |
| 2152 | return _internal_num_reverse_output_channels(); |
| 2153 | } |
| 2154 | inline void Init::_internal_set_num_reverse_output_channels(int32_t value) { |
| 2155 | _has_bits_[0] |= 0x00000200u; |
| 2156 | num_reverse_output_channels_ = value; |
| 2157 | } |
| 2158 | inline void Init::set_num_reverse_output_channels(int32_t value) { |
| 2159 | _internal_set_num_reverse_output_channels(value); |
| 2160 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.num_reverse_output_channels) |
| 2161 | } |
| 2162 |
| 2163 | // optional int64 timestamp_ms = 10; |
| 2164 | inline bool Init::_internal_has_timestamp_ms() const { |
| 2165 | bool value = (_has_bits_[0] & 0x00000100u) != 0; |
| 2166 | return value; |
| 2167 | } |
| 2168 | inline bool Init::has_timestamp_ms() const { |
| 2169 | return _internal_has_timestamp_ms(); |
| 2170 | } |
| 2171 | inline void Init::clear_timestamp_ms() { |
| 2172 | timestamp_ms_ = int64_t{0}; |
| 2173 | _has_bits_[0] &= ~0x00000100u; |
| 2174 | } |
| 2175 | inline int64_t Init::_internal_timestamp_ms() const { |
| 2176 | return timestamp_ms_; |
| 2177 | } |
| 2178 | inline int64_t Init::timestamp_ms() const { |
| 2179 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Init.timestamp_ms) |
| 2180 | return _internal_timestamp_ms(); |
| 2181 | } |
| 2182 | inline void Init::_internal_set_timestamp_ms(int64_t value) { |
| 2183 | _has_bits_[0] |= 0x00000100u; |
| 2184 | timestamp_ms_ = value; |
| 2185 | } |
| 2186 | inline void Init::set_timestamp_ms(int64_t value) { |
| 2187 | _internal_set_timestamp_ms(value); |
| 2188 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Init.timestamp_ms) |
| 2189 | } |
| 2190 |
| 2191 | // ------------------------------------------------------------------- |
| 2192 |
| 2193 | // ReverseStream |
| 2194 |
| 2195 | // optional bytes data = 1; |
| 2196 | inline bool ReverseStream::_internal_has_data() const { |
| 2197 | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
| 2198 | return value; |
| 2199 | } |
| 2200 | inline bool ReverseStream::has_data() const { |
| 2201 | return _internal_has_data(); |
| 2202 | } |
| 2203 | inline void ReverseStream::clear_data() { |
| 2204 | data_.ClearToEmpty(); |
| 2205 | _has_bits_[0] &= ~0x00000001u; |
| 2206 | } |
| 2207 | inline const std::string& ReverseStream::data() const { |
| 2208 | // @@protoc_insertion_point(field_get:webrtc.audioproc.ReverseStream.data) |
| 2209 | return _internal_data(); |
| 2210 | } |
| 2211 | template <typename ArgT0, typename... ArgT> |
| 2212 | inline PROTOBUF_ALWAYS_INLINE |
| 2213 | void ReverseStream::set_data(ArgT0&& arg0, ArgT... args) { |
| 2214 | _has_bits_[0] |= 0x00000001u; |
| 2215 | data_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 2216 | // @@protoc_insertion_point(field_set:webrtc.audioproc.ReverseStream.data) |
| 2217 | } |
| 2218 | inline std::string* ReverseStream::mutable_data() { |
| 2219 | std::string* _s = _internal_mutable_data(); |
| 2220 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.ReverseStream.data) |
| 2221 | return _s; |
| 2222 | } |
| 2223 | inline const std::string& ReverseStream::_internal_data() const { |
| 2224 | return data_.Get(); |
| 2225 | } |
| 2226 | inline void ReverseStream::_internal_set_data(const std::string& value) { |
| 2227 | _has_bits_[0] |= 0x00000001u; |
| 2228 | data_.Set(value, GetArenaForAllocation()); |
| 2229 | } |
| 2230 | inline std::string* ReverseStream::_internal_mutable_data() { |
| 2231 | _has_bits_[0] |= 0x00000001u; |
| 2232 | return data_.Mutable(GetArenaForAllocation()); |
| 2233 | } |
| 2234 | inline std::string* ReverseStream::release_data() { |
| 2235 | // @@protoc_insertion_point(field_release:webrtc.audioproc.ReverseStream.data) |
| 2236 | if (!_internal_has_data()) { |
| 2237 | return nullptr; |
| 2238 | } |
| 2239 | _has_bits_[0] &= ~0x00000001u; |
| 2240 | auto* p = data_.Release(); |
| 2241 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2242 | if (data_.IsDefault()) { |
| 2243 | data_.Set("", GetArenaForAllocation()); |
| 2244 | } |
| 2245 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2246 | return p; |
| 2247 | } |
| 2248 | inline void ReverseStream::set_allocated_data(std::string* data) { |
| 2249 | if (data != nullptr) { |
| 2250 | _has_bits_[0] |= 0x00000001u; |
| 2251 | } else { |
| 2252 | _has_bits_[0] &= ~0x00000001u; |
| 2253 | } |
| 2254 | data_.SetAllocated(data, GetArenaForAllocation()); |
| 2255 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2256 | if (data_.IsDefault()) { |
| 2257 | data_.Set("", GetArenaForAllocation()); |
| 2258 | } |
| 2259 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2260 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.ReverseStream.data) |
| 2261 | } |
| 2262 |
| 2263 | // repeated bytes channel = 2; |
| 2264 | inline int ReverseStream::_internal_channel_size() const { |
| 2265 | return channel_.size(); |
| 2266 | } |
| 2267 | inline int ReverseStream::channel_size() const { |
| 2268 | return _internal_channel_size(); |
| 2269 | } |
| 2270 | inline void ReverseStream::clear_channel() { |
| 2271 | channel_.Clear(); |
| 2272 | } |
| 2273 | inline std::string* ReverseStream::add_channel() { |
| 2274 | std::string* _s = _internal_add_channel(); |
| 2275 | // @@protoc_insertion_point(field_add_mutable:webrtc.audioproc.ReverseStream.channel) |
| 2276 | return _s; |
| 2277 | } |
| 2278 | inline const std::string& ReverseStream::_internal_channel(int index) const { |
| 2279 | return channel_.Get(index); |
| 2280 | } |
| 2281 | inline const std::string& ReverseStream::channel(int index) const { |
| 2282 | // @@protoc_insertion_point(field_get:webrtc.audioproc.ReverseStream.channel) |
| 2283 | return _internal_channel(index); |
| 2284 | } |
| 2285 | inline std::string* ReverseStream::mutable_channel(int index) { |
| 2286 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.ReverseStream.channel) |
| 2287 | return channel_.Mutable(index); |
| 2288 | } |
| 2289 | inline void ReverseStream::set_channel(int index, const std::string& value) { |
| 2290 | channel_.Mutable(index)->assign(value); |
| 2291 | // @@protoc_insertion_point(field_set:webrtc.audioproc.ReverseStream.channel) |
| 2292 | } |
| 2293 | inline void ReverseStream::set_channel(int index, std::string&& value) { |
| 2294 | channel_.Mutable(index)->assign(std::move(value)); |
| 2295 | // @@protoc_insertion_point(field_set:webrtc.audioproc.ReverseStream.channel) |
| 2296 | } |
| 2297 | inline void ReverseStream::set_channel(int index, const char* value) { |
| 2298 | GOOGLE_DCHECK(value != nullptr); |
| 2299 | channel_.Mutable(index)->assign(value); |
| 2300 | // @@protoc_insertion_point(field_set_char:webrtc.audioproc.ReverseStream.channel) |
| 2301 | } |
| 2302 | inline void ReverseStream::set_channel(int index, const void* value, size_t size) { |
| 2303 | channel_.Mutable(index)->assign( |
| 2304 | reinterpret_cast<const char*>(value), size); |
| 2305 | // @@protoc_insertion_point(field_set_pointer:webrtc.audioproc.ReverseStream.channel) |
| 2306 | } |
| 2307 | inline std::string* ReverseStream::_internal_add_channel() { |
| 2308 | return channel_.Add(); |
| 2309 | } |
| 2310 | inline void ReverseStream::add_channel(const std::string& value) { |
| 2311 | channel_.Add()->assign(value); |
| 2312 | // @@protoc_insertion_point(field_add:webrtc.audioproc.ReverseStream.channel) |
| 2313 | } |
| 2314 | inline void ReverseStream::add_channel(std::string&& value) { |
| 2315 | channel_.Add(std::move(value)); |
| 2316 | // @@protoc_insertion_point(field_add:webrtc.audioproc.ReverseStream.channel) |
| 2317 | } |
| 2318 | inline void ReverseStream::add_channel(const char* value) { |
| 2319 | GOOGLE_DCHECK(value != nullptr); |
| 2320 | channel_.Add()->assign(value); |
| 2321 | // @@protoc_insertion_point(field_add_char:webrtc.audioproc.ReverseStream.channel) |
| 2322 | } |
| 2323 | inline void ReverseStream::add_channel(const void* value, size_t size) { |
| 2324 | channel_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 2325 | // @@protoc_insertion_point(field_add_pointer:webrtc.audioproc.ReverseStream.channel) |
| 2326 | } |
| 2327 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
| 2328 | ReverseStream::channel() const { |
| 2329 | // @@protoc_insertion_point(field_list:webrtc.audioproc.ReverseStream.channel) |
| 2330 | return channel_; |
| 2331 | } |
| 2332 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
| 2333 | ReverseStream::mutable_channel() { |
| 2334 | // @@protoc_insertion_point(field_mutable_list:webrtc.audioproc.ReverseStream.channel) |
| 2335 | return &channel_; |
| 2336 | } |
| 2337 |
| 2338 | // ------------------------------------------------------------------- |
| 2339 |
| 2340 | // Stream |
| 2341 |
| 2342 | // optional bytes input_data = 1; |
| 2343 | inline bool Stream::_internal_has_input_data() const { |
| 2344 | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
| 2345 | return value; |
| 2346 | } |
| 2347 | inline bool Stream::has_input_data() const { |
| 2348 | return _internal_has_input_data(); |
| 2349 | } |
| 2350 | inline void Stream::clear_input_data() { |
| 2351 | input_data_.ClearToEmpty(); |
| 2352 | _has_bits_[0] &= ~0x00000001u; |
| 2353 | } |
| 2354 | inline const std::string& Stream::input_data() const { |
| 2355 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Stream.input_data) |
| 2356 | return _internal_input_data(); |
| 2357 | } |
| 2358 | template <typename ArgT0, typename... ArgT> |
| 2359 | inline PROTOBUF_ALWAYS_INLINE |
| 2360 | void Stream::set_input_data(ArgT0&& arg0, ArgT... args) { |
| 2361 | _has_bits_[0] |= 0x00000001u; |
| 2362 | input_data_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 2363 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.input_data) |
| 2364 | } |
| 2365 | inline std::string* Stream::mutable_input_data() { |
| 2366 | std::string* _s = _internal_mutable_input_data(); |
| 2367 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Stream.input_data) |
| 2368 | return _s; |
| 2369 | } |
| 2370 | inline const std::string& Stream::_internal_input_data() const { |
| 2371 | return input_data_.Get(); |
| 2372 | } |
| 2373 | inline void Stream::_internal_set_input_data(const std::string& value) { |
| 2374 | _has_bits_[0] |= 0x00000001u; |
| 2375 | input_data_.Set(value, GetArenaForAllocation()); |
| 2376 | } |
| 2377 | inline std::string* Stream::_internal_mutable_input_data() { |
| 2378 | _has_bits_[0] |= 0x00000001u; |
| 2379 | return input_data_.Mutable(GetArenaForAllocation()); |
| 2380 | } |
| 2381 | inline std::string* Stream::release_input_data() { |
| 2382 | // @@protoc_insertion_point(field_release:webrtc.audioproc.Stream.input_data) |
| 2383 | if (!_internal_has_input_data()) { |
| 2384 | return nullptr; |
| 2385 | } |
| 2386 | _has_bits_[0] &= ~0x00000001u; |
| 2387 | auto* p = input_data_.Release(); |
| 2388 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2389 | if (input_data_.IsDefault()) { |
| 2390 | input_data_.Set("", GetArenaForAllocation()); |
| 2391 | } |
| 2392 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2393 | return p; |
| 2394 | } |
| 2395 | inline void Stream::set_allocated_input_data(std::string* input_data) { |
| 2396 | if (input_data != nullptr) { |
| 2397 | _has_bits_[0] |= 0x00000001u; |
| 2398 | } else { |
| 2399 | _has_bits_[0] &= ~0x00000001u; |
| 2400 | } |
| 2401 | input_data_.SetAllocated(input_data, GetArenaForAllocation()); |
| 2402 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2403 | if (input_data_.IsDefault()) { |
| 2404 | input_data_.Set("", GetArenaForAllocation()); |
| 2405 | } |
| 2406 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2407 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.Stream.input_data) |
| 2408 | } |
| 2409 |
| 2410 | // optional bytes output_data = 2; |
| 2411 | inline bool Stream::_internal_has_output_data() const { |
| 2412 | bool value = (_has_bits_[0] & 0x00000002u) != 0; |
| 2413 | return value; |
| 2414 | } |
| 2415 | inline bool Stream::has_output_data() const { |
| 2416 | return _internal_has_output_data(); |
| 2417 | } |
| 2418 | inline void Stream::clear_output_data() { |
| 2419 | output_data_.ClearToEmpty(); |
| 2420 | _has_bits_[0] &= ~0x00000002u; |
| 2421 | } |
| 2422 | inline const std::string& Stream::output_data() const { |
| 2423 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Stream.output_data) |
| 2424 | return _internal_output_data(); |
| 2425 | } |
| 2426 | template <typename ArgT0, typename... ArgT> |
| 2427 | inline PROTOBUF_ALWAYS_INLINE |
| 2428 | void Stream::set_output_data(ArgT0&& arg0, ArgT... args) { |
| 2429 | _has_bits_[0] |= 0x00000002u; |
| 2430 | output_data_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 2431 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.output_data) |
| 2432 | } |
| 2433 | inline std::string* Stream::mutable_output_data() { |
| 2434 | std::string* _s = _internal_mutable_output_data(); |
| 2435 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Stream.output_data) |
| 2436 | return _s; |
| 2437 | } |
| 2438 | inline const std::string& Stream::_internal_output_data() const { |
| 2439 | return output_data_.Get(); |
| 2440 | } |
| 2441 | inline void Stream::_internal_set_output_data(const std::string& value) { |
| 2442 | _has_bits_[0] |= 0x00000002u; |
| 2443 | output_data_.Set(value, GetArenaForAllocation()); |
| 2444 | } |
| 2445 | inline std::string* Stream::_internal_mutable_output_data() { |
| 2446 | _has_bits_[0] |= 0x00000002u; |
| 2447 | return output_data_.Mutable(GetArenaForAllocation()); |
| 2448 | } |
| 2449 | inline std::string* Stream::release_output_data() { |
| 2450 | // @@protoc_insertion_point(field_release:webrtc.audioproc.Stream.output_data) |
| 2451 | if (!_internal_has_output_data()) { |
| 2452 | return nullptr; |
| 2453 | } |
| 2454 | _has_bits_[0] &= ~0x00000002u; |
| 2455 | auto* p = output_data_.Release(); |
| 2456 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2457 | if (output_data_.IsDefault()) { |
| 2458 | output_data_.Set("", GetArenaForAllocation()); |
| 2459 | } |
| 2460 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2461 | return p; |
| 2462 | } |
| 2463 | inline void Stream::set_allocated_output_data(std::string* output_data) { |
| 2464 | if (output_data != nullptr) { |
| 2465 | _has_bits_[0] |= 0x00000002u; |
| 2466 | } else { |
| 2467 | _has_bits_[0] &= ~0x00000002u; |
| 2468 | } |
| 2469 | output_data_.SetAllocated(output_data, GetArenaForAllocation()); |
| 2470 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2471 | if (output_data_.IsDefault()) { |
| 2472 | output_data_.Set("", GetArenaForAllocation()); |
| 2473 | } |
| 2474 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 2475 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.Stream.output_data) |
| 2476 | } |
| 2477 |
| 2478 | // optional int32 delay = 3; |
| 2479 | inline bool Stream::_internal_has_delay() const { |
| 2480 | bool value = (_has_bits_[0] & 0x00000004u) != 0; |
| 2481 | return value; |
| 2482 | } |
| 2483 | inline bool Stream::has_delay() const { |
| 2484 | return _internal_has_delay(); |
| 2485 | } |
| 2486 | inline void Stream::clear_delay() { |
| 2487 | delay_ = 0; |
| 2488 | _has_bits_[0] &= ~0x00000004u; |
| 2489 | } |
| 2490 | inline int32_t Stream::_internal_delay() const { |
| 2491 | return delay_; |
| 2492 | } |
| 2493 | inline int32_t Stream::delay() const { |
| 2494 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Stream.delay) |
| 2495 | return _internal_delay(); |
| 2496 | } |
| 2497 | inline void Stream::_internal_set_delay(int32_t value) { |
| 2498 | _has_bits_[0] |= 0x00000004u; |
| 2499 | delay_ = value; |
| 2500 | } |
| 2501 | inline void Stream::set_delay(int32_t value) { |
| 2502 | _internal_set_delay(value); |
| 2503 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.delay) |
| 2504 | } |
| 2505 |
| 2506 | // optional sint32 drift = 4; |
| 2507 | inline bool Stream::_internal_has_drift() const { |
| 2508 | bool value = (_has_bits_[0] & 0x00000008u) != 0; |
| 2509 | return value; |
| 2510 | } |
| 2511 | inline bool Stream::has_drift() const { |
| 2512 | return _internal_has_drift(); |
| 2513 | } |
| 2514 | inline void Stream::clear_drift() { |
| 2515 | drift_ = 0; |
| 2516 | _has_bits_[0] &= ~0x00000008u; |
| 2517 | } |
| 2518 | inline int32_t Stream::_internal_drift() const { |
| 2519 | return drift_; |
| 2520 | } |
| 2521 | inline int32_t Stream::drift() const { |
| 2522 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Stream.drift) |
| 2523 | return _internal_drift(); |
| 2524 | } |
| 2525 | inline void Stream::_internal_set_drift(int32_t value) { |
| 2526 | _has_bits_[0] |= 0x00000008u; |
| 2527 | drift_ = value; |
| 2528 | } |
| 2529 | inline void Stream::set_drift(int32_t value) { |
| 2530 | _internal_set_drift(value); |
| 2531 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.drift) |
| 2532 | } |
| 2533 |
| 2534 | // optional int32 applied_input_volume = 5; |
| 2535 | inline bool Stream::_internal_has_applied_input_volume() const { |
| 2536 | bool value = (_has_bits_[0] & 0x00000010u) != 0; |
| 2537 | return value; |
| 2538 | } |
| 2539 | inline bool Stream::has_applied_input_volume() const { |
| 2540 | return _internal_has_applied_input_volume(); |
| 2541 | } |
| 2542 | inline void Stream::clear_applied_input_volume() { |
| 2543 | applied_input_volume_ = 0; |
| 2544 | _has_bits_[0] &= ~0x00000010u; |
| 2545 | } |
| 2546 | inline int32_t Stream::_internal_applied_input_volume() const { |
| 2547 | return applied_input_volume_; |
| 2548 | } |
| 2549 | inline int32_t Stream::applied_input_volume() const { |
| 2550 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Stream.applied_input_volume) |
| 2551 | return _internal_applied_input_volume(); |
| 2552 | } |
| 2553 | inline void Stream::_internal_set_applied_input_volume(int32_t value) { |
| 2554 | _has_bits_[0] |= 0x00000010u; |
| 2555 | applied_input_volume_ = value; |
| 2556 | } |
| 2557 | inline void Stream::set_applied_input_volume(int32_t value) { |
| 2558 | _internal_set_applied_input_volume(value); |
| 2559 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.applied_input_volume) |
| 2560 | } |
| 2561 |
| 2562 | // optional bool keypress = 6; |
| 2563 | inline bool Stream::_internal_has_keypress() const { |
| 2564 | bool value = (_has_bits_[0] & 0x00000020u) != 0; |
| 2565 | return value; |
| 2566 | } |
| 2567 | inline bool Stream::has_keypress() const { |
| 2568 | return _internal_has_keypress(); |
| 2569 | } |
| 2570 | inline void Stream::clear_keypress() { |
| 2571 | keypress_ = false; |
| 2572 | _has_bits_[0] &= ~0x00000020u; |
| 2573 | } |
| 2574 | inline bool Stream::_internal_keypress() const { |
| 2575 | return keypress_; |
| 2576 | } |
| 2577 | inline bool Stream::keypress() const { |
| 2578 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Stream.keypress) |
| 2579 | return _internal_keypress(); |
| 2580 | } |
| 2581 | inline void Stream::_internal_set_keypress(bool value) { |
| 2582 | _has_bits_[0] |= 0x00000020u; |
| 2583 | keypress_ = value; |
| 2584 | } |
| 2585 | inline void Stream::set_keypress(bool value) { |
| 2586 | _internal_set_keypress(value); |
| 2587 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.keypress) |
| 2588 | } |
| 2589 |
| 2590 | // repeated bytes input_channel = 7; |
| 2591 | inline int Stream::_internal_input_channel_size() const { |
| 2592 | return input_channel_.size(); |
| 2593 | } |
| 2594 | inline int Stream::input_channel_size() const { |
| 2595 | return _internal_input_channel_size(); |
| 2596 | } |
| 2597 | inline void Stream::clear_input_channel() { |
| 2598 | input_channel_.Clear(); |
| 2599 | } |
| 2600 | inline std::string* Stream::add_input_channel() { |
| 2601 | std::string* _s = _internal_add_input_channel(); |
| 2602 | // @@protoc_insertion_point(field_add_mutable:webrtc.audioproc.Stream.input_channel) |
| 2603 | return _s; |
| 2604 | } |
| 2605 | inline const std::string& Stream::_internal_input_channel(int index) const { |
| 2606 | return input_channel_.Get(index); |
| 2607 | } |
| 2608 | inline const std::string& Stream::input_channel(int index) const { |
| 2609 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Stream.input_channel) |
| 2610 | return _internal_input_channel(index); |
| 2611 | } |
| 2612 | inline std::string* Stream::mutable_input_channel(int index) { |
| 2613 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Stream.input_channel) |
| 2614 | return input_channel_.Mutable(index); |
| 2615 | } |
| 2616 | inline void Stream::set_input_channel(int index, const std::string& value) { |
| 2617 | input_channel_.Mutable(index)->assign(value); |
| 2618 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.input_channel) |
| 2619 | } |
| 2620 | inline void Stream::set_input_channel(int index, std::string&& value) { |
| 2621 | input_channel_.Mutable(index)->assign(std::move(value)); |
| 2622 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.input_channel) |
| 2623 | } |
| 2624 | inline void Stream::set_input_channel(int index, const char* value) { |
| 2625 | GOOGLE_DCHECK(value != nullptr); |
| 2626 | input_channel_.Mutable(index)->assign(value); |
| 2627 | // @@protoc_insertion_point(field_set_char:webrtc.audioproc.Stream.input_channel) |
| 2628 | } |
| 2629 | inline void Stream::set_input_channel(int index, const void* value, size_t size) { |
| 2630 | input_channel_.Mutable(index)->assign( |
| 2631 | reinterpret_cast<const char*>(value), size); |
| 2632 | // @@protoc_insertion_point(field_set_pointer:webrtc.audioproc.Stream.input_channel) |
| 2633 | } |
| 2634 | inline std::string* Stream::_internal_add_input_channel() { |
| 2635 | return input_channel_.Add(); |
| 2636 | } |
| 2637 | inline void Stream::add_input_channel(const std::string& value) { |
| 2638 | input_channel_.Add()->assign(value); |
| 2639 | // @@protoc_insertion_point(field_add:webrtc.audioproc.Stream.input_channel) |
| 2640 | } |
| 2641 | inline void Stream::add_input_channel(std::string&& value) { |
| 2642 | input_channel_.Add(std::move(value)); |
| 2643 | // @@protoc_insertion_point(field_add:webrtc.audioproc.Stream.input_channel) |
| 2644 | } |
| 2645 | inline void Stream::add_input_channel(const char* value) { |
| 2646 | GOOGLE_DCHECK(value != nullptr); |
| 2647 | input_channel_.Add()->assign(value); |
| 2648 | // @@protoc_insertion_point(field_add_char:webrtc.audioproc.Stream.input_channel) |
| 2649 | } |
| 2650 | inline void Stream::add_input_channel(const void* value, size_t size) { |
| 2651 | input_channel_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 2652 | // @@protoc_insertion_point(field_add_pointer:webrtc.audioproc.Stream.input_channel) |
| 2653 | } |
| 2654 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
| 2655 | Stream::input_channel() const { |
| 2656 | // @@protoc_insertion_point(field_list:webrtc.audioproc.Stream.input_channel) |
| 2657 | return input_channel_; |
| 2658 | } |
| 2659 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
| 2660 | Stream::mutable_input_channel() { |
| 2661 | // @@protoc_insertion_point(field_mutable_list:webrtc.audioproc.Stream.input_channel) |
| 2662 | return &input_channel_; |
| 2663 | } |
| 2664 |
| 2665 | // repeated bytes output_channel = 8; |
| 2666 | inline int Stream::_internal_output_channel_size() const { |
| 2667 | return output_channel_.size(); |
| 2668 | } |
| 2669 | inline int Stream::output_channel_size() const { |
| 2670 | return _internal_output_channel_size(); |
| 2671 | } |
| 2672 | inline void Stream::clear_output_channel() { |
| 2673 | output_channel_.Clear(); |
| 2674 | } |
| 2675 | inline std::string* Stream::add_output_channel() { |
| 2676 | std::string* _s = _internal_add_output_channel(); |
| 2677 | // @@protoc_insertion_point(field_add_mutable:webrtc.audioproc.Stream.output_channel) |
| 2678 | return _s; |
| 2679 | } |
| 2680 | inline const std::string& Stream::_internal_output_channel(int index) const { |
| 2681 | return output_channel_.Get(index); |
| 2682 | } |
| 2683 | inline const std::string& Stream::output_channel(int index) const { |
| 2684 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Stream.output_channel) |
| 2685 | return _internal_output_channel(index); |
| 2686 | } |
| 2687 | inline std::string* Stream::mutable_output_channel(int index) { |
| 2688 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Stream.output_channel) |
| 2689 | return output_channel_.Mutable(index); |
| 2690 | } |
| 2691 | inline void Stream::set_output_channel(int index, const std::string& value) { |
| 2692 | output_channel_.Mutable(index)->assign(value); |
| 2693 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.output_channel) |
| 2694 | } |
| 2695 | inline void Stream::set_output_channel(int index, std::string&& value) { |
| 2696 | output_channel_.Mutable(index)->assign(std::move(value)); |
| 2697 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Stream.output_channel) |
| 2698 | } |
| 2699 | inline void Stream::set_output_channel(int index, const char* value) { |
| 2700 | GOOGLE_DCHECK(value != nullptr); |
| 2701 | output_channel_.Mutable(index)->assign(value); |
| 2702 | // @@protoc_insertion_point(field_set_char:webrtc.audioproc.Stream.output_channel) |
| 2703 | } |
| 2704 | inline void Stream::set_output_channel(int index, const void* value, size_t size) { |
| 2705 | output_channel_.Mutable(index)->assign( |
| 2706 | reinterpret_cast<const char*>(value), size); |
| 2707 | // @@protoc_insertion_point(field_set_pointer:webrtc.audioproc.Stream.output_channel) |
| 2708 | } |
| 2709 | inline std::string* Stream::_internal_add_output_channel() { |
| 2710 | return output_channel_.Add(); |
| 2711 | } |
| 2712 | inline void Stream::add_output_channel(const std::string& value) { |
| 2713 | output_channel_.Add()->assign(value); |
| 2714 | // @@protoc_insertion_point(field_add:webrtc.audioproc.Stream.output_channel) |
| 2715 | } |
| 2716 | inline void Stream::add_output_channel(std::string&& value) { |
| 2717 | output_channel_.Add(std::move(value)); |
| 2718 | // @@protoc_insertion_point(field_add:webrtc.audioproc.Stream.output_channel) |
| 2719 | } |
| 2720 | inline void Stream::add_output_channel(const char* value) { |
| 2721 | GOOGLE_DCHECK(value != nullptr); |
| 2722 | output_channel_.Add()->assign(value); |
| 2723 | // @@protoc_insertion_point(field_add_char:webrtc.audioproc.Stream.output_channel) |
| 2724 | } |
| 2725 | inline void Stream::add_output_channel(const void* value, size_t size) { |
| 2726 | output_channel_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 2727 | // @@protoc_insertion_point(field_add_pointer:webrtc.audioproc.Stream.output_channel) |
| 2728 | } |
| 2729 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
| 2730 | Stream::output_channel() const { |
| 2731 | // @@protoc_insertion_point(field_list:webrtc.audioproc.Stream.output_channel) |
| 2732 | return output_channel_; |
| 2733 | } |
| 2734 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
| 2735 | Stream::mutable_output_channel() { |
| 2736 | // @@protoc_insertion_point(field_mutable_list:webrtc.audioproc.Stream.output_channel) |
| 2737 | return &output_channel_; |
| 2738 | } |
| 2739 |
| 2740 | // ------------------------------------------------------------------- |
| 2741 |
| 2742 | // Config |
| 2743 |
| 2744 | // optional bool aec_enabled = 1; |
| 2745 | inline bool Config::_internal_has_aec_enabled() const { |
| 2746 | bool value = (_has_bits_[0] & 0x00000002u) != 0; |
| 2747 | return value; |
| 2748 | } |
| 2749 | inline bool Config::has_aec_enabled() const { |
| 2750 | return _internal_has_aec_enabled(); |
| 2751 | } |
| 2752 | inline void Config::clear_aec_enabled() { |
| 2753 | aec_enabled_ = false; |
| 2754 | _has_bits_[0] &= ~0x00000002u; |
| 2755 | } |
| 2756 | inline bool Config::_internal_aec_enabled() const { |
| 2757 | return aec_enabled_; |
| 2758 | } |
| 2759 | inline bool Config::aec_enabled() const { |
| 2760 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.aec_enabled) |
| 2761 | return _internal_aec_enabled(); |
| 2762 | } |
| 2763 | inline void Config::_internal_set_aec_enabled(bool value) { |
| 2764 | _has_bits_[0] |= 0x00000002u; |
| 2765 | aec_enabled_ = value; |
| 2766 | } |
| 2767 | inline void Config::set_aec_enabled(bool value) { |
| 2768 | _internal_set_aec_enabled(value); |
| 2769 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.aec_enabled) |
| 2770 | } |
| 2771 |
| 2772 | // optional bool aec_delay_agnostic_enabled = 2; |
| 2773 | inline bool Config::_internal_has_aec_delay_agnostic_enabled() const { |
| 2774 | bool value = (_has_bits_[0] & 0x00000004u) != 0; |
| 2775 | return value; |
| 2776 | } |
| 2777 | inline bool Config::has_aec_delay_agnostic_enabled() const { |
| 2778 | return _internal_has_aec_delay_agnostic_enabled(); |
| 2779 | } |
| 2780 | inline void Config::clear_aec_delay_agnostic_enabled() { |
| 2781 | aec_delay_agnostic_enabled_ = false; |
| 2782 | _has_bits_[0] &= ~0x00000004u; |
| 2783 | } |
| 2784 | inline bool Config::_internal_aec_delay_agnostic_enabled() const { |
| 2785 | return aec_delay_agnostic_enabled_; |
| 2786 | } |
| 2787 | inline bool Config::aec_delay_agnostic_enabled() const { |
| 2788 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.aec_delay_agnostic_enabled) |
| 2789 | return _internal_aec_delay_agnostic_enabled(); |
| 2790 | } |
| 2791 | inline void Config::_internal_set_aec_delay_agnostic_enabled(bool value) { |
| 2792 | _has_bits_[0] |= 0x00000004u; |
| 2793 | aec_delay_agnostic_enabled_ = value; |
| 2794 | } |
| 2795 | inline void Config::set_aec_delay_agnostic_enabled(bool value) { |
| 2796 | _internal_set_aec_delay_agnostic_enabled(value); |
| 2797 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.aec_delay_agnostic_enabled) |
| 2798 | } |
| 2799 |
| 2800 | // optional bool aec_drift_compensation_enabled = 3; |
| 2801 | inline bool Config::_internal_has_aec_drift_compensation_enabled() const { |
| 2802 | bool value = (_has_bits_[0] & 0x00000008u) != 0; |
| 2803 | return value; |
| 2804 | } |
| 2805 | inline bool Config::has_aec_drift_compensation_enabled() const { |
| 2806 | return _internal_has_aec_drift_compensation_enabled(); |
| 2807 | } |
| 2808 | inline void Config::clear_aec_drift_compensation_enabled() { |
| 2809 | aec_drift_compensation_enabled_ = false; |
| 2810 | _has_bits_[0] &= ~0x00000008u; |
| 2811 | } |
| 2812 | inline bool Config::_internal_aec_drift_compensation_enabled() const { |
| 2813 | return aec_drift_compensation_enabled_; |
| 2814 | } |
| 2815 | inline bool Config::aec_drift_compensation_enabled() const { |
| 2816 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.aec_drift_compensation_enabled) |
| 2817 | return _internal_aec_drift_compensation_enabled(); |
| 2818 | } |
| 2819 | inline void Config::_internal_set_aec_drift_compensation_enabled(bool value) { |
| 2820 | _has_bits_[0] |= 0x00000008u; |
| 2821 | aec_drift_compensation_enabled_ = value; |
| 2822 | } |
| 2823 | inline void Config::set_aec_drift_compensation_enabled(bool value) { |
| 2824 | _internal_set_aec_drift_compensation_enabled(value); |
| 2825 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.aec_drift_compensation_enabled) |
| 2826 | } |
| 2827 |
| 2828 | // optional bool aec_extended_filter_enabled = 4; |
| 2829 | inline bool Config::_internal_has_aec_extended_filter_enabled() const { |
| 2830 | bool value = (_has_bits_[0] & 0x00000010u) != 0; |
| 2831 | return value; |
| 2832 | } |
| 2833 | inline bool Config::has_aec_extended_filter_enabled() const { |
| 2834 | return _internal_has_aec_extended_filter_enabled(); |
| 2835 | } |
| 2836 | inline void Config::clear_aec_extended_filter_enabled() { |
| 2837 | aec_extended_filter_enabled_ = false; |
| 2838 | _has_bits_[0] &= ~0x00000010u; |
| 2839 | } |
| 2840 | inline bool Config::_internal_aec_extended_filter_enabled() const { |
| 2841 | return aec_extended_filter_enabled_; |
| 2842 | } |
| 2843 | inline bool Config::aec_extended_filter_enabled() const { |
| 2844 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.aec_extended_filter_enabled) |
| 2845 | return _internal_aec_extended_filter_enabled(); |
| 2846 | } |
| 2847 | inline void Config::_internal_set_aec_extended_filter_enabled(bool value) { |
| 2848 | _has_bits_[0] |= 0x00000010u; |
| 2849 | aec_extended_filter_enabled_ = value; |
| 2850 | } |
| 2851 | inline void Config::set_aec_extended_filter_enabled(bool value) { |
| 2852 | _internal_set_aec_extended_filter_enabled(value); |
| 2853 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.aec_extended_filter_enabled) |
| 2854 | } |
| 2855 |
| 2856 | // optional int32 aec_suppression_level = 5; |
| 2857 | inline bool Config::_internal_has_aec_suppression_level() const { |
| 2858 | bool value = (_has_bits_[0] & 0x00000020u) != 0; |
| 2859 | return value; |
| 2860 | } |
| 2861 | inline bool Config::has_aec_suppression_level() const { |
| 2862 | return _internal_has_aec_suppression_level(); |
| 2863 | } |
| 2864 | inline void Config::clear_aec_suppression_level() { |
| 2865 | aec_suppression_level_ = 0; |
| 2866 | _has_bits_[0] &= ~0x00000020u; |
| 2867 | } |
| 2868 | inline int32_t Config::_internal_aec_suppression_level() const { |
| 2869 | return aec_suppression_level_; |
| 2870 | } |
| 2871 | inline int32_t Config::aec_suppression_level() const { |
| 2872 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.aec_suppression_level) |
| 2873 | return _internal_aec_suppression_level(); |
| 2874 | } |
| 2875 | inline void Config::_internal_set_aec_suppression_level(int32_t value) { |
| 2876 | _has_bits_[0] |= 0x00000020u; |
| 2877 | aec_suppression_level_ = value; |
| 2878 | } |
| 2879 | inline void Config::set_aec_suppression_level(int32_t value) { |
| 2880 | _internal_set_aec_suppression_level(value); |
| 2881 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.aec_suppression_level) |
| 2882 | } |
| 2883 |
| 2884 | // optional bool aecm_enabled = 6; |
| 2885 | inline bool Config::_internal_has_aecm_enabled() const { |
| 2886 | bool value = (_has_bits_[0] & 0x00000080u) != 0; |
| 2887 | return value; |
| 2888 | } |
| 2889 | inline bool Config::has_aecm_enabled() const { |
| 2890 | return _internal_has_aecm_enabled(); |
| 2891 | } |
| 2892 | inline void Config::clear_aecm_enabled() { |
| 2893 | aecm_enabled_ = false; |
| 2894 | _has_bits_[0] &= ~0x00000080u; |
| 2895 | } |
| 2896 | inline bool Config::_internal_aecm_enabled() const { |
| 2897 | return aecm_enabled_; |
| 2898 | } |
| 2899 | inline bool Config::aecm_enabled() const { |
| 2900 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.aecm_enabled) |
| 2901 | return _internal_aecm_enabled(); |
| 2902 | } |
| 2903 | inline void Config::_internal_set_aecm_enabled(bool value) { |
| 2904 | _has_bits_[0] |= 0x00000080u; |
| 2905 | aecm_enabled_ = value; |
| 2906 | } |
| 2907 | inline void Config::set_aecm_enabled(bool value) { |
| 2908 | _internal_set_aecm_enabled(value); |
| 2909 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.aecm_enabled) |
| 2910 | } |
| 2911 |
| 2912 | // optional bool aecm_comfort_noise_enabled = 7 [deprecated = true]; |
| 2913 | inline bool Config::_internal_has_aecm_comfort_noise_enabled() const { |
| 2914 | bool value = (_has_bits_[0] & 0x00000100u) != 0; |
| 2915 | return value; |
| 2916 | } |
| 2917 | inline bool Config::has_aecm_comfort_noise_enabled() const { |
| 2918 | return _internal_has_aecm_comfort_noise_enabled(); |
| 2919 | } |
| 2920 | inline void Config::clear_aecm_comfort_noise_enabled() { |
| 2921 | aecm_comfort_noise_enabled_ = false; |
| 2922 | _has_bits_[0] &= ~0x00000100u; |
| 2923 | } |
| 2924 | inline bool Config::_internal_aecm_comfort_noise_enabled() const { |
| 2925 | return aecm_comfort_noise_enabled_; |
| 2926 | } |
| 2927 | inline bool Config::aecm_comfort_noise_enabled() const { |
| 2928 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.aecm_comfort_noise_enabled) |
| 2929 | return _internal_aecm_comfort_noise_enabled(); |
| 2930 | } |
| 2931 | inline void Config::_internal_set_aecm_comfort_noise_enabled(bool value) { |
| 2932 | _has_bits_[0] |= 0x00000100u; |
| 2933 | aecm_comfort_noise_enabled_ = value; |
| 2934 | } |
| 2935 | inline void Config::set_aecm_comfort_noise_enabled(bool value) { |
| 2936 | _internal_set_aecm_comfort_noise_enabled(value); |
| 2937 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.aecm_comfort_noise_enabled) |
| 2938 | } |
| 2939 |
| 2940 | // optional int32 aecm_routing_mode = 8 [deprecated = true]; |
| 2941 | inline bool Config::_internal_has_aecm_routing_mode() const { |
| 2942 | bool value = (_has_bits_[0] & 0x00000040u) != 0; |
| 2943 | return value; |
| 2944 | } |
| 2945 | inline bool Config::has_aecm_routing_mode() const { |
| 2946 | return _internal_has_aecm_routing_mode(); |
| 2947 | } |
| 2948 | inline void Config::clear_aecm_routing_mode() { |
| 2949 | aecm_routing_mode_ = 0; |
| 2950 | _has_bits_[0] &= ~0x00000040u; |
| 2951 | } |
| 2952 | inline int32_t Config::_internal_aecm_routing_mode() const { |
| 2953 | return aecm_routing_mode_; |
| 2954 | } |
| 2955 | inline int32_t Config::aecm_routing_mode() const { |
| 2956 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.aecm_routing_mode) |
| 2957 | return _internal_aecm_routing_mode(); |
| 2958 | } |
| 2959 | inline void Config::_internal_set_aecm_routing_mode(int32_t value) { |
| 2960 | _has_bits_[0] |= 0x00000040u; |
| 2961 | aecm_routing_mode_ = value; |
| 2962 | } |
| 2963 | inline void Config::set_aecm_routing_mode(int32_t value) { |
| 2964 | _internal_set_aecm_routing_mode(value); |
| 2965 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.aecm_routing_mode) |
| 2966 | } |
| 2967 |
| 2968 | // optional bool agc_enabled = 9; |
| 2969 | inline bool Config::_internal_has_agc_enabled() const { |
| 2970 | bool value = (_has_bits_[0] & 0x00000200u) != 0; |
| 2971 | return value; |
| 2972 | } |
| 2973 | inline bool Config::has_agc_enabled() const { |
| 2974 | return _internal_has_agc_enabled(); |
| 2975 | } |
| 2976 | inline void Config::clear_agc_enabled() { |
| 2977 | agc_enabled_ = false; |
| 2978 | _has_bits_[0] &= ~0x00000200u; |
| 2979 | } |
| 2980 | inline bool Config::_internal_agc_enabled() const { |
| 2981 | return agc_enabled_; |
| 2982 | } |
| 2983 | inline bool Config::agc_enabled() const { |
| 2984 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.agc_enabled) |
| 2985 | return _internal_agc_enabled(); |
| 2986 | } |
| 2987 | inline void Config::_internal_set_agc_enabled(bool value) { |
| 2988 | _has_bits_[0] |= 0x00000200u; |
| 2989 | agc_enabled_ = value; |
| 2990 | } |
| 2991 | inline void Config::set_agc_enabled(bool value) { |
| 2992 | _internal_set_agc_enabled(value); |
| 2993 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.agc_enabled) |
| 2994 | } |
| 2995 |
| 2996 | // optional int32 agc_mode = 10; |
| 2997 | inline bool Config::_internal_has_agc_mode() const { |
| 2998 | bool value = (_has_bits_[0] & 0x00000800u) != 0; |
| 2999 | return value; |
| 3000 | } |
| 3001 | inline bool Config::has_agc_mode() const { |
| 3002 | return _internal_has_agc_mode(); |
| 3003 | } |
| 3004 | inline void Config::clear_agc_mode() { |
| 3005 | agc_mode_ = 0; |
| 3006 | _has_bits_[0] &= ~0x00000800u; |
| 3007 | } |
| 3008 | inline int32_t Config::_internal_agc_mode() const { |
| 3009 | return agc_mode_; |
| 3010 | } |
| 3011 | inline int32_t Config::agc_mode() const { |
| 3012 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.agc_mode) |
| 3013 | return _internal_agc_mode(); |
| 3014 | } |
| 3015 | inline void Config::_internal_set_agc_mode(int32_t value) { |
| 3016 | _has_bits_[0] |= 0x00000800u; |
| 3017 | agc_mode_ = value; |
| 3018 | } |
| 3019 | inline void Config::set_agc_mode(int32_t value) { |
| 3020 | _internal_set_agc_mode(value); |
| 3021 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.agc_mode) |
| 3022 | } |
| 3023 |
| 3024 | // optional bool agc_limiter_enabled = 11; |
| 3025 | inline bool Config::_internal_has_agc_limiter_enabled() const { |
| 3026 | bool value = (_has_bits_[0] & 0x00000400u) != 0; |
| 3027 | return value; |
| 3028 | } |
| 3029 | inline bool Config::has_agc_limiter_enabled() const { |
| 3030 | return _internal_has_agc_limiter_enabled(); |
| 3031 | } |
| 3032 | inline void Config::clear_agc_limiter_enabled() { |
| 3033 | agc_limiter_enabled_ = false; |
| 3034 | _has_bits_[0] &= ~0x00000400u; |
| 3035 | } |
| 3036 | inline bool Config::_internal_agc_limiter_enabled() const { |
| 3037 | return agc_limiter_enabled_; |
| 3038 | } |
| 3039 | inline bool Config::agc_limiter_enabled() const { |
| 3040 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.agc_limiter_enabled) |
| 3041 | return _internal_agc_limiter_enabled(); |
| 3042 | } |
| 3043 | inline void Config::_internal_set_agc_limiter_enabled(bool value) { |
| 3044 | _has_bits_[0] |= 0x00000400u; |
| 3045 | agc_limiter_enabled_ = value; |
| 3046 | } |
| 3047 | inline void Config::set_agc_limiter_enabled(bool value) { |
| 3048 | _internal_set_agc_limiter_enabled(value); |
| 3049 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.agc_limiter_enabled) |
| 3050 | } |
| 3051 |
| 3052 | // optional bool noise_robust_agc_enabled = 12; |
| 3053 | inline bool Config::_internal_has_noise_robust_agc_enabled() const { |
| 3054 | bool value = (_has_bits_[0] & 0x00001000u) != 0; |
| 3055 | return value; |
| 3056 | } |
| 3057 | inline bool Config::has_noise_robust_agc_enabled() const { |
| 3058 | return _internal_has_noise_robust_agc_enabled(); |
| 3059 | } |
| 3060 | inline void Config::clear_noise_robust_agc_enabled() { |
| 3061 | noise_robust_agc_enabled_ = false; |
| 3062 | _has_bits_[0] &= ~0x00001000u; |
| 3063 | } |
| 3064 | inline bool Config::_internal_noise_robust_agc_enabled() const { |
| 3065 | return noise_robust_agc_enabled_; |
| 3066 | } |
| 3067 | inline bool Config::noise_robust_agc_enabled() const { |
| 3068 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.noise_robust_agc_enabled) |
| 3069 | return _internal_noise_robust_agc_enabled(); |
| 3070 | } |
| 3071 | inline void Config::_internal_set_noise_robust_agc_enabled(bool value) { |
| 3072 | _has_bits_[0] |= 0x00001000u; |
| 3073 | noise_robust_agc_enabled_ = value; |
| 3074 | } |
| 3075 | inline void Config::set_noise_robust_agc_enabled(bool value) { |
| 3076 | _internal_set_noise_robust_agc_enabled(value); |
| 3077 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.noise_robust_agc_enabled) |
| 3078 | } |
| 3079 |
| 3080 | // optional bool hpf_enabled = 13; |
| 3081 | inline bool Config::_internal_has_hpf_enabled() const { |
| 3082 | bool value = (_has_bits_[0] & 0x00002000u) != 0; |
| 3083 | return value; |
| 3084 | } |
| 3085 | inline bool Config::has_hpf_enabled() const { |
| 3086 | return _internal_has_hpf_enabled(); |
| 3087 | } |
| 3088 | inline void Config::clear_hpf_enabled() { |
| 3089 | hpf_enabled_ = false; |
| 3090 | _has_bits_[0] &= ~0x00002000u; |
| 3091 | } |
| 3092 | inline bool Config::_internal_hpf_enabled() const { |
| 3093 | return hpf_enabled_; |
| 3094 | } |
| 3095 | inline bool Config::hpf_enabled() const { |
| 3096 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.hpf_enabled) |
| 3097 | return _internal_hpf_enabled(); |
| 3098 | } |
| 3099 | inline void Config::_internal_set_hpf_enabled(bool value) { |
| 3100 | _has_bits_[0] |= 0x00002000u; |
| 3101 | hpf_enabled_ = value; |
| 3102 | } |
| 3103 | inline void Config::set_hpf_enabled(bool value) { |
| 3104 | _internal_set_hpf_enabled(value); |
| 3105 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.hpf_enabled) |
| 3106 | } |
| 3107 |
| 3108 | // optional bool ns_enabled = 14; |
| 3109 | inline bool Config::_internal_has_ns_enabled() const { |
| 3110 | bool value = (_has_bits_[0] & 0x00004000u) != 0; |
| 3111 | return value; |
| 3112 | } |
| 3113 | inline bool Config::has_ns_enabled() const { |
| 3114 | return _internal_has_ns_enabled(); |
| 3115 | } |
| 3116 | inline void Config::clear_ns_enabled() { |
| 3117 | ns_enabled_ = false; |
| 3118 | _has_bits_[0] &= ~0x00004000u; |
| 3119 | } |
| 3120 | inline bool Config::_internal_ns_enabled() const { |
| 3121 | return ns_enabled_; |
| 3122 | } |
| 3123 | inline bool Config::ns_enabled() const { |
| 3124 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.ns_enabled) |
| 3125 | return _internal_ns_enabled(); |
| 3126 | } |
| 3127 | inline void Config::_internal_set_ns_enabled(bool value) { |
| 3128 | _has_bits_[0] |= 0x00004000u; |
| 3129 | ns_enabled_ = value; |
| 3130 | } |
| 3131 | inline void Config::set_ns_enabled(bool value) { |
| 3132 | _internal_set_ns_enabled(value); |
| 3133 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.ns_enabled) |
| 3134 | } |
| 3135 |
| 3136 | // optional int32 ns_level = 15; |
| 3137 | inline bool Config::_internal_has_ns_level() const { |
| 3138 | bool value = (_has_bits_[0] & 0x00010000u) != 0; |
| 3139 | return value; |
| 3140 | } |
| 3141 | inline bool Config::has_ns_level() const { |
| 3142 | return _internal_has_ns_level(); |
| 3143 | } |
| 3144 | inline void Config::clear_ns_level() { |
| 3145 | ns_level_ = 0; |
| 3146 | _has_bits_[0] &= ~0x00010000u; |
| 3147 | } |
| 3148 | inline int32_t Config::_internal_ns_level() const { |
| 3149 | return ns_level_; |
| 3150 | } |
| 3151 | inline int32_t Config::ns_level() const { |
| 3152 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.ns_level) |
| 3153 | return _internal_ns_level(); |
| 3154 | } |
| 3155 | inline void Config::_internal_set_ns_level(int32_t value) { |
| 3156 | _has_bits_[0] |= 0x00010000u; |
| 3157 | ns_level_ = value; |
| 3158 | } |
| 3159 | inline void Config::set_ns_level(int32_t value) { |
| 3160 | _internal_set_ns_level(value); |
| 3161 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.ns_level) |
| 3162 | } |
| 3163 |
| 3164 | // optional bool transient_suppression_enabled = 16; |
| 3165 | inline bool Config::_internal_has_transient_suppression_enabled() const { |
| 3166 | bool value = (_has_bits_[0] & 0x00008000u) != 0; |
| 3167 | return value; |
| 3168 | } |
| 3169 | inline bool Config::has_transient_suppression_enabled() const { |
| 3170 | return _internal_has_transient_suppression_enabled(); |
| 3171 | } |
| 3172 | inline void Config::clear_transient_suppression_enabled() { |
| 3173 | transient_suppression_enabled_ = false; |
| 3174 | _has_bits_[0] &= ~0x00008000u; |
| 3175 | } |
| 3176 | inline bool Config::_internal_transient_suppression_enabled() const { |
| 3177 | return transient_suppression_enabled_; |
| 3178 | } |
| 3179 | inline bool Config::transient_suppression_enabled() const { |
| 3180 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.transient_suppression_enabled) |
| 3181 | return _internal_transient_suppression_enabled(); |
| 3182 | } |
| 3183 | inline void Config::_internal_set_transient_suppression_enabled(bool value) { |
| 3184 | _has_bits_[0] |= 0x00008000u; |
| 3185 | transient_suppression_enabled_ = value; |
| 3186 | } |
| 3187 | inline void Config::set_transient_suppression_enabled(bool value) { |
| 3188 | _internal_set_transient_suppression_enabled(value); |
| 3189 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.transient_suppression_enabled) |
| 3190 | } |
| 3191 |
| 3192 | // optional string experiments_description = 17; |
| 3193 | inline bool Config::_internal_has_experiments_description() const { |
| 3194 | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
| 3195 | return value; |
| 3196 | } |
| 3197 | inline bool Config::has_experiments_description() const { |
| 3198 | return _internal_has_experiments_description(); |
| 3199 | } |
| 3200 | inline void Config::clear_experiments_description() { |
| 3201 | experiments_description_.ClearToEmpty(); |
| 3202 | _has_bits_[0] &= ~0x00000001u; |
| 3203 | } |
| 3204 | inline const std::string& Config::experiments_description() const { |
| 3205 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.experiments_description) |
| 3206 | return _internal_experiments_description(); |
| 3207 | } |
| 3208 | template <typename ArgT0, typename... ArgT> |
| 3209 | inline PROTOBUF_ALWAYS_INLINE |
| 3210 | void Config::set_experiments_description(ArgT0&& arg0, ArgT... args) { |
| 3211 | _has_bits_[0] |= 0x00000001u; |
| 3212 | experiments_description_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
| 3213 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.experiments_description) |
| 3214 | } |
| 3215 | inline std::string* Config::mutable_experiments_description() { |
| 3216 | std::string* _s = _internal_mutable_experiments_description(); |
| 3217 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Config.experiments_description) |
| 3218 | return _s; |
| 3219 | } |
| 3220 | inline const std::string& Config::_internal_experiments_description() const { |
| 3221 | return experiments_description_.Get(); |
| 3222 | } |
| 3223 | inline void Config::_internal_set_experiments_description(const std::string& value) { |
| 3224 | _has_bits_[0] |= 0x00000001u; |
| 3225 | experiments_description_.Set(value, GetArenaForAllocation()); |
| 3226 | } |
| 3227 | inline std::string* Config::_internal_mutable_experiments_description() { |
| 3228 | _has_bits_[0] |= 0x00000001u; |
| 3229 | return experiments_description_.Mutable(GetArenaForAllocation()); |
| 3230 | } |
| 3231 | inline std::string* Config::release_experiments_description() { |
| 3232 | // @@protoc_insertion_point(field_release:webrtc.audioproc.Config.experiments_description) |
| 3233 | if (!_internal_has_experiments_description()) { |
| 3234 | return nullptr; |
| 3235 | } |
| 3236 | _has_bits_[0] &= ~0x00000001u; |
| 3237 | auto* p = experiments_description_.Release(); |
| 3238 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 3239 | if (experiments_description_.IsDefault()) { |
| 3240 | experiments_description_.Set("", GetArenaForAllocation()); |
| 3241 | } |
| 3242 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 3243 | return p; |
| 3244 | } |
| 3245 | inline void Config::set_allocated_experiments_description(std::string* experiments_description) { |
| 3246 | if (experiments_description != nullptr) { |
| 3247 | _has_bits_[0] |= 0x00000001u; |
| 3248 | } else { |
| 3249 | _has_bits_[0] &= ~0x00000001u; |
| 3250 | } |
| 3251 | experiments_description_.SetAllocated(experiments_description, GetArenaForAllocation()); |
| 3252 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 3253 | if (experiments_description_.IsDefault()) { |
| 3254 | experiments_description_.Set("", GetArenaForAllocation()); |
| 3255 | } |
| 3256 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
| 3257 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.Config.experiments_description) |
| 3258 | } |
| 3259 |
| 3260 | // optional bool pre_amplifier_enabled = 19; |
| 3261 | inline bool Config::_internal_has_pre_amplifier_enabled() const { |
| 3262 | bool value = (_has_bits_[0] & 0x00020000u) != 0; |
| 3263 | return value; |
| 3264 | } |
| 3265 | inline bool Config::has_pre_amplifier_enabled() const { |
| 3266 | return _internal_has_pre_amplifier_enabled(); |
| 3267 | } |
| 3268 | inline void Config::clear_pre_amplifier_enabled() { |
| 3269 | pre_amplifier_enabled_ = false; |
| 3270 | _has_bits_[0] &= ~0x00020000u; |
| 3271 | } |
| 3272 | inline bool Config::_internal_pre_amplifier_enabled() const { |
| 3273 | return pre_amplifier_enabled_; |
| 3274 | } |
| 3275 | inline bool Config::pre_amplifier_enabled() const { |
| 3276 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.pre_amplifier_enabled) |
| 3277 | return _internal_pre_amplifier_enabled(); |
| 3278 | } |
| 3279 | inline void Config::_internal_set_pre_amplifier_enabled(bool value) { |
| 3280 | _has_bits_[0] |= 0x00020000u; |
| 3281 | pre_amplifier_enabled_ = value; |
| 3282 | } |
| 3283 | inline void Config::set_pre_amplifier_enabled(bool value) { |
| 3284 | _internal_set_pre_amplifier_enabled(value); |
| 3285 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.pre_amplifier_enabled) |
| 3286 | } |
| 3287 |
| 3288 | // optional float pre_amplifier_fixed_gain_factor = 20; |
| 3289 | inline bool Config::_internal_has_pre_amplifier_fixed_gain_factor() const { |
| 3290 | bool value = (_has_bits_[0] & 0x00040000u) != 0; |
| 3291 | return value; |
| 3292 | } |
| 3293 | inline bool Config::has_pre_amplifier_fixed_gain_factor() const { |
| 3294 | return _internal_has_pre_amplifier_fixed_gain_factor(); |
| 3295 | } |
| 3296 | inline void Config::clear_pre_amplifier_fixed_gain_factor() { |
| 3297 | pre_amplifier_fixed_gain_factor_ = 0; |
| 3298 | _has_bits_[0] &= ~0x00040000u; |
| 3299 | } |
| 3300 | inline float Config::_internal_pre_amplifier_fixed_gain_factor() const { |
| 3301 | return pre_amplifier_fixed_gain_factor_; |
| 3302 | } |
| 3303 | inline float Config::pre_amplifier_fixed_gain_factor() const { |
| 3304 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Config.pre_amplifier_fixed_gain_factor) |
| 3305 | return _internal_pre_amplifier_fixed_gain_factor(); |
| 3306 | } |
| 3307 | inline void Config::_internal_set_pre_amplifier_fixed_gain_factor(float value) { |
| 3308 | _has_bits_[0] |= 0x00040000u; |
| 3309 | pre_amplifier_fixed_gain_factor_ = value; |
| 3310 | } |
| 3311 | inline void Config::set_pre_amplifier_fixed_gain_factor(float value) { |
| 3312 | _internal_set_pre_amplifier_fixed_gain_factor(value); |
| 3313 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Config.pre_amplifier_fixed_gain_factor) |
| 3314 | } |
| 3315 |
| 3316 | // ------------------------------------------------------------------- |
| 3317 |
| 3318 | // PlayoutAudioDeviceInfo |
| 3319 |
| 3320 | // optional int32 id = 1; |
| 3321 | inline bool PlayoutAudioDeviceInfo::_internal_has_id() const { |
| 3322 | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
| 3323 | return value; |
| 3324 | } |
| 3325 | inline bool PlayoutAudioDeviceInfo::has_id() const { |
| 3326 | return _internal_has_id(); |
| 3327 | } |
| 3328 | inline void PlayoutAudioDeviceInfo::clear_id() { |
| 3329 | id_ = 0; |
| 3330 | _has_bits_[0] &= ~0x00000001u; |
| 3331 | } |
| 3332 | inline int32_t PlayoutAudioDeviceInfo::_internal_id() const { |
| 3333 | return id_; |
| 3334 | } |
| 3335 | inline int32_t PlayoutAudioDeviceInfo::id() const { |
| 3336 | // @@protoc_insertion_point(field_get:webrtc.audioproc.PlayoutAudioDeviceInfo.id) |
| 3337 | return _internal_id(); |
| 3338 | } |
| 3339 | inline void PlayoutAudioDeviceInfo::_internal_set_id(int32_t value) { |
| 3340 | _has_bits_[0] |= 0x00000001u; |
| 3341 | id_ = value; |
| 3342 | } |
| 3343 | inline void PlayoutAudioDeviceInfo::set_id(int32_t value) { |
| 3344 | _internal_set_id(value); |
| 3345 | // @@protoc_insertion_point(field_set:webrtc.audioproc.PlayoutAudioDeviceInfo.id) |
| 3346 | } |
| 3347 |
| 3348 | // optional int32 max_volume = 2; |
| 3349 | inline bool PlayoutAudioDeviceInfo::_internal_has_max_volume() const { |
| 3350 | bool value = (_has_bits_[0] & 0x00000002u) != 0; |
| 3351 | return value; |
| 3352 | } |
| 3353 | inline bool PlayoutAudioDeviceInfo::has_max_volume() const { |
| 3354 | return _internal_has_max_volume(); |
| 3355 | } |
| 3356 | inline void PlayoutAudioDeviceInfo::clear_max_volume() { |
| 3357 | max_volume_ = 0; |
| 3358 | _has_bits_[0] &= ~0x00000002u; |
| 3359 | } |
| 3360 | inline int32_t PlayoutAudioDeviceInfo::_internal_max_volume() const { |
| 3361 | return max_volume_; |
| 3362 | } |
| 3363 | inline int32_t PlayoutAudioDeviceInfo::max_volume() const { |
| 3364 | // @@protoc_insertion_point(field_get:webrtc.audioproc.PlayoutAudioDeviceInfo.max_volume) |
| 3365 | return _internal_max_volume(); |
| 3366 | } |
| 3367 | inline void PlayoutAudioDeviceInfo::_internal_set_max_volume(int32_t value) { |
| 3368 | _has_bits_[0] |= 0x00000002u; |
| 3369 | max_volume_ = value; |
| 3370 | } |
| 3371 | inline void PlayoutAudioDeviceInfo::set_max_volume(int32_t value) { |
| 3372 | _internal_set_max_volume(value); |
| 3373 | // @@protoc_insertion_point(field_set:webrtc.audioproc.PlayoutAudioDeviceInfo.max_volume) |
| 3374 | } |
| 3375 |
| 3376 | // ------------------------------------------------------------------- |
| 3377 |
| 3378 | // RuntimeSetting |
| 3379 |
| 3380 | // optional float capture_pre_gain = 1; |
| 3381 | inline bool RuntimeSetting::_internal_has_capture_pre_gain() const { |
| 3382 | bool value = (_has_bits_[0] & 0x00000002u) != 0; |
| 3383 | return value; |
| 3384 | } |
| 3385 | inline bool RuntimeSetting::has_capture_pre_gain() const { |
| 3386 | return _internal_has_capture_pre_gain(); |
| 3387 | } |
| 3388 | inline void RuntimeSetting::clear_capture_pre_gain() { |
| 3389 | capture_pre_gain_ = 0; |
| 3390 | _has_bits_[0] &= ~0x00000002u; |
| 3391 | } |
| 3392 | inline float RuntimeSetting::_internal_capture_pre_gain() const { |
| 3393 | return capture_pre_gain_; |
| 3394 | } |
| 3395 | inline float RuntimeSetting::capture_pre_gain() const { |
| 3396 | // @@protoc_insertion_point(field_get:webrtc.audioproc.RuntimeSetting.capture_pre_gain) |
| 3397 | return _internal_capture_pre_gain(); |
| 3398 | } |
| 3399 | inline void RuntimeSetting::_internal_set_capture_pre_gain(float value) { |
| 3400 | _has_bits_[0] |= 0x00000002u; |
| 3401 | capture_pre_gain_ = value; |
| 3402 | } |
| 3403 | inline void RuntimeSetting::set_capture_pre_gain(float value) { |
| 3404 | _internal_set_capture_pre_gain(value); |
| 3405 | // @@protoc_insertion_point(field_set:webrtc.audioproc.RuntimeSetting.capture_pre_gain) |
| 3406 | } |
| 3407 |
| 3408 | // optional float custom_render_processing_setting = 2; |
| 3409 | inline bool RuntimeSetting::_internal_has_custom_render_processing_setting() const { |
| 3410 | bool value = (_has_bits_[0] & 0x00000004u) != 0; |
| 3411 | return value; |
| 3412 | } |
| 3413 | inline bool RuntimeSetting::has_custom_render_processing_setting() const { |
| 3414 | return _internal_has_custom_render_processing_setting(); |
| 3415 | } |
| 3416 | inline void RuntimeSetting::clear_custom_render_processing_setting() { |
| 3417 | custom_render_processing_setting_ = 0; |
| 3418 | _has_bits_[0] &= ~0x00000004u; |
| 3419 | } |
| 3420 | inline float RuntimeSetting::_internal_custom_render_processing_setting() const { |
| 3421 | return custom_render_processing_setting_; |
| 3422 | } |
| 3423 | inline float RuntimeSetting::custom_render_processing_setting() const { |
| 3424 | // @@protoc_insertion_point(field_get:webrtc.audioproc.RuntimeSetting.custom_render_processing_setting) |
| 3425 | return _internal_custom_render_processing_setting(); |
| 3426 | } |
| 3427 | inline void RuntimeSetting::_internal_set_custom_render_processing_setting(float value) { |
| 3428 | _has_bits_[0] |= 0x00000004u; |
| 3429 | custom_render_processing_setting_ = value; |
| 3430 | } |
| 3431 | inline void RuntimeSetting::set_custom_render_processing_setting(float value) { |
| 3432 | _internal_set_custom_render_processing_setting(value); |
| 3433 | // @@protoc_insertion_point(field_set:webrtc.audioproc.RuntimeSetting.custom_render_processing_setting) |
| 3434 | } |
| 3435 |
| 3436 | // optional float capture_fixed_post_gain = 3; |
| 3437 | inline bool RuntimeSetting::_internal_has_capture_fixed_post_gain() const { |
| 3438 | bool value = (_has_bits_[0] & 0x00000008u) != 0; |
| 3439 | return value; |
| 3440 | } |
| 3441 | inline bool RuntimeSetting::has_capture_fixed_post_gain() const { |
| 3442 | return _internal_has_capture_fixed_post_gain(); |
| 3443 | } |
| 3444 | inline void RuntimeSetting::clear_capture_fixed_post_gain() { |
| 3445 | capture_fixed_post_gain_ = 0; |
| 3446 | _has_bits_[0] &= ~0x00000008u; |
| 3447 | } |
| 3448 | inline float RuntimeSetting::_internal_capture_fixed_post_gain() const { |
| 3449 | return capture_fixed_post_gain_; |
| 3450 | } |
| 3451 | inline float RuntimeSetting::capture_fixed_post_gain() const { |
| 3452 | // @@protoc_insertion_point(field_get:webrtc.audioproc.RuntimeSetting.capture_fixed_post_gain) |
| 3453 | return _internal_capture_fixed_post_gain(); |
| 3454 | } |
| 3455 | inline void RuntimeSetting::_internal_set_capture_fixed_post_gain(float value) { |
| 3456 | _has_bits_[0] |= 0x00000008u; |
| 3457 | capture_fixed_post_gain_ = value; |
| 3458 | } |
| 3459 | inline void RuntimeSetting::set_capture_fixed_post_gain(float value) { |
| 3460 | _internal_set_capture_fixed_post_gain(value); |
| 3461 | // @@protoc_insertion_point(field_set:webrtc.audioproc.RuntimeSetting.capture_fixed_post_gain) |
| 3462 | } |
| 3463 |
| 3464 | // optional int32 playout_volume_change = 4; |
| 3465 | inline bool RuntimeSetting::_internal_has_playout_volume_change() const { |
| 3466 | bool value = (_has_bits_[0] & 0x00000010u) != 0; |
| 3467 | return value; |
| 3468 | } |
| 3469 | inline bool RuntimeSetting::has_playout_volume_change() const { |
| 3470 | return _internal_has_playout_volume_change(); |
| 3471 | } |
| 3472 | inline void RuntimeSetting::clear_playout_volume_change() { |
| 3473 | playout_volume_change_ = 0; |
| 3474 | _has_bits_[0] &= ~0x00000010u; |
| 3475 | } |
| 3476 | inline int32_t RuntimeSetting::_internal_playout_volume_change() const { |
| 3477 | return playout_volume_change_; |
| 3478 | } |
| 3479 | inline int32_t RuntimeSetting::playout_volume_change() const { |
| 3480 | // @@protoc_insertion_point(field_get:webrtc.audioproc.RuntimeSetting.playout_volume_change) |
| 3481 | return _internal_playout_volume_change(); |
| 3482 | } |
| 3483 | inline void RuntimeSetting::_internal_set_playout_volume_change(int32_t value) { |
| 3484 | _has_bits_[0] |= 0x00000010u; |
| 3485 | playout_volume_change_ = value; |
| 3486 | } |
| 3487 | inline void RuntimeSetting::set_playout_volume_change(int32_t value) { |
| 3488 | _internal_set_playout_volume_change(value); |
| 3489 | // @@protoc_insertion_point(field_set:webrtc.audioproc.RuntimeSetting.playout_volume_change) |
| 3490 | } |
| 3491 |
| 3492 | // optional .webrtc.audioproc.PlayoutAudioDeviceInfo playout_audio_device_change = 5; |
| 3493 | inline bool RuntimeSetting::_internal_has_playout_audio_device_change() const { |
| 3494 | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
| 3495 | PROTOBUF_ASSUME(!value || playout_audio_device_change_ != nullptr); |
| 3496 | return value; |
| 3497 | } |
| 3498 | inline bool RuntimeSetting::has_playout_audio_device_change() const { |
| 3499 | return _internal_has_playout_audio_device_change(); |
| 3500 | } |
| 3501 | inline void RuntimeSetting::clear_playout_audio_device_change() { |
| 3502 | if (playout_audio_device_change_ != nullptr) playout_audio_device_change_->Clear(); |
| 3503 | _has_bits_[0] &= ~0x00000001u; |
| 3504 | } |
| 3505 | inline const ::webrtc::audioproc::PlayoutAudioDeviceInfo& RuntimeSetting::_internal_playout_audio_device_change() const { |
| 3506 | const ::webrtc::audioproc::PlayoutAudioDeviceInfo* p = playout_audio_device_change_; |
| 3507 | return p != nullptr ? *p : reinterpret_cast<const ::webrtc::audioproc::PlayoutAudioDeviceInfo&>( |
| 3508 | ::webrtc::audioproc::_PlayoutAudioDeviceInfo_default_instance_); |
| 3509 | } |
| 3510 | inline const ::webrtc::audioproc::PlayoutAudioDeviceInfo& RuntimeSetting::playout_audio_device_change() const { |
| 3511 | // @@protoc_insertion_point(field_get:webrtc.audioproc.RuntimeSetting.playout_audio_device_change) |
| 3512 | return _internal_playout_audio_device_change(); |
| 3513 | } |
| 3514 | inline void RuntimeSetting::unsafe_arena_set_allocated_playout_audio_device_change( |
| 3515 | ::webrtc::audioproc::PlayoutAudioDeviceInfo* playout_audio_device_change) { |
| 3516 | if (GetArenaForAllocation() == nullptr) { |
| 3517 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(playout_audio_device_change_); |
| 3518 | } |
| 3519 | playout_audio_device_change_ = playout_audio_device_change; |
| 3520 | if (playout_audio_device_change) { |
| 3521 | _has_bits_[0] |= 0x00000001u; |
| 3522 | } else { |
| 3523 | _has_bits_[0] &= ~0x00000001u; |
| 3524 | } |
| 3525 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:webrtc.audioproc.RuntimeSetting.playout_audio_device_change) |
| 3526 | } |
| 3527 | inline ::webrtc::audioproc::PlayoutAudioDeviceInfo* RuntimeSetting::release_playout_audio_device_change() { |
| 3528 | _has_bits_[0] &= ~0x00000001u; |
| 3529 | ::webrtc::audioproc::PlayoutAudioDeviceInfo* temp = playout_audio_device_change_; |
| 3530 | playout_audio_device_change_ = nullptr; |
| 3531 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3532 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
| 3533 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3534 | if (GetArenaForAllocation() == nullptr) { delete old; } |
| 3535 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3536 | if (GetArenaForAllocation() != nullptr) { |
| 3537 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3538 | } |
| 3539 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3540 | return temp; |
| 3541 | } |
| 3542 | inline ::webrtc::audioproc::PlayoutAudioDeviceInfo* RuntimeSetting::unsafe_arena_release_playout_audio_device_change() { |
| 3543 | // @@protoc_insertion_point(field_release:webrtc.audioproc.RuntimeSetting.playout_audio_device_change) |
| 3544 | _has_bits_[0] &= ~0x00000001u; |
| 3545 | ::webrtc::audioproc::PlayoutAudioDeviceInfo* temp = playout_audio_device_change_; |
| 3546 | playout_audio_device_change_ = nullptr; |
| 3547 | return temp; |
| 3548 | } |
| 3549 | inline ::webrtc::audioproc::PlayoutAudioDeviceInfo* RuntimeSetting::_internal_mutable_playout_audio_device_change() { |
| 3550 | _has_bits_[0] |= 0x00000001u; |
| 3551 | if (playout_audio_device_change_ == nullptr) { |
| 3552 | auto* p = CreateMaybeMessage<::webrtc::audioproc::PlayoutAudioDeviceInfo>(GetArenaForAllocation()); |
| 3553 | playout_audio_device_change_ = p; |
| 3554 | } |
| 3555 | return playout_audio_device_change_; |
| 3556 | } |
| 3557 | inline ::webrtc::audioproc::PlayoutAudioDeviceInfo* RuntimeSetting::mutable_playout_audio_device_change() { |
| 3558 | ::webrtc::audioproc::PlayoutAudioDeviceInfo* _msg = _internal_mutable_playout_audio_device_change(); |
| 3559 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.RuntimeSetting.playout_audio_device_change) |
| 3560 | return _msg; |
| 3561 | } |
| 3562 | inline void RuntimeSetting::set_allocated_playout_audio_device_change(::webrtc::audioproc::PlayoutAudioDeviceInfo* playout_audio_device_change) { |
| 3563 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
| 3564 | if (message_arena == nullptr) { |
| 3565 | delete playout_audio_device_change_; |
| 3566 | } |
| 3567 | if (playout_audio_device_change) { |
| 3568 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
| 3569 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(playout_audio_device_change); |
| 3570 | if (message_arena != submessage_arena) { |
| 3571 | playout_audio_device_change = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| 3572 | message_arena, playout_audio_device_change, submessage_arena); |
| 3573 | } |
| 3574 | _has_bits_[0] |= 0x00000001u; |
| 3575 | } else { |
| 3576 | _has_bits_[0] &= ~0x00000001u; |
| 3577 | } |
| 3578 | playout_audio_device_change_ = playout_audio_device_change; |
| 3579 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.RuntimeSetting.playout_audio_device_change) |
| 3580 | } |
| 3581 |
| 3582 | // optional bool capture_output_used = 6; |
| 3583 | inline bool RuntimeSetting::_internal_has_capture_output_used() const { |
| 3584 | bool value = (_has_bits_[0] & 0x00000020u) != 0; |
| 3585 | return value; |
| 3586 | } |
| 3587 | inline bool RuntimeSetting::has_capture_output_used() const { |
| 3588 | return _internal_has_capture_output_used(); |
| 3589 | } |
| 3590 | inline void RuntimeSetting::clear_capture_output_used() { |
| 3591 | capture_output_used_ = false; |
| 3592 | _has_bits_[0] &= ~0x00000020u; |
| 3593 | } |
| 3594 | inline bool RuntimeSetting::_internal_capture_output_used() const { |
| 3595 | return capture_output_used_; |
| 3596 | } |
| 3597 | inline bool RuntimeSetting::capture_output_used() const { |
| 3598 | // @@protoc_insertion_point(field_get:webrtc.audioproc.RuntimeSetting.capture_output_used) |
| 3599 | return _internal_capture_output_used(); |
| 3600 | } |
| 3601 | inline void RuntimeSetting::_internal_set_capture_output_used(bool value) { |
| 3602 | _has_bits_[0] |= 0x00000020u; |
| 3603 | capture_output_used_ = value; |
| 3604 | } |
| 3605 | inline void RuntimeSetting::set_capture_output_used(bool value) { |
| 3606 | _internal_set_capture_output_used(value); |
| 3607 | // @@protoc_insertion_point(field_set:webrtc.audioproc.RuntimeSetting.capture_output_used) |
| 3608 | } |
| 3609 |
| 3610 | // optional float capture_post_gain = 7; |
| 3611 | inline bool RuntimeSetting::_internal_has_capture_post_gain() const { |
| 3612 | bool value = (_has_bits_[0] & 0x00000040u) != 0; |
| 3613 | return value; |
| 3614 | } |
| 3615 | inline bool RuntimeSetting::has_capture_post_gain() const { |
| 3616 | return _internal_has_capture_post_gain(); |
| 3617 | } |
| 3618 | inline void RuntimeSetting::clear_capture_post_gain() { |
| 3619 | capture_post_gain_ = 0; |
| 3620 | _has_bits_[0] &= ~0x00000040u; |
| 3621 | } |
| 3622 | inline float RuntimeSetting::_internal_capture_post_gain() const { |
| 3623 | return capture_post_gain_; |
| 3624 | } |
| 3625 | inline float RuntimeSetting::capture_post_gain() const { |
| 3626 | // @@protoc_insertion_point(field_get:webrtc.audioproc.RuntimeSetting.capture_post_gain) |
| 3627 | return _internal_capture_post_gain(); |
| 3628 | } |
| 3629 | inline void RuntimeSetting::_internal_set_capture_post_gain(float value) { |
| 3630 | _has_bits_[0] |= 0x00000040u; |
| 3631 | capture_post_gain_ = value; |
| 3632 | } |
| 3633 | inline void RuntimeSetting::set_capture_post_gain(float value) { |
| 3634 | _internal_set_capture_post_gain(value); |
| 3635 | // @@protoc_insertion_point(field_set:webrtc.audioproc.RuntimeSetting.capture_post_gain) |
| 3636 | } |
| 3637 |
| 3638 | // ------------------------------------------------------------------- |
| 3639 |
| 3640 | // Event |
| 3641 |
| 3642 | // required .webrtc.audioproc.Event.Type type = 1; |
| 3643 | inline bool Event::_internal_has_type() const { |
| 3644 | bool value = (_has_bits_[0] & 0x00000020u) != 0; |
| 3645 | return value; |
| 3646 | } |
| 3647 | inline bool Event::has_type() const { |
| 3648 | return _internal_has_type(); |
| 3649 | } |
| 3650 | inline void Event::clear_type() { |
| 3651 | type_ = 0; |
| 3652 | _has_bits_[0] &= ~0x00000020u; |
| 3653 | } |
| 3654 | inline ::webrtc::audioproc::Event_Type Event::_internal_type() const { |
| 3655 | return static_cast< ::webrtc::audioproc::Event_Type >(type_); |
| 3656 | } |
| 3657 | inline ::webrtc::audioproc::Event_Type Event::type() const { |
| 3658 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Event.type) |
| 3659 | return _internal_type(); |
| 3660 | } |
| 3661 | inline void Event::_internal_set_type(::webrtc::audioproc::Event_Type value) { |
| 3662 | assert(::webrtc::audioproc::Event_Type_IsValid(value)); |
| 3663 | _has_bits_[0] |= 0x00000020u; |
| 3664 | type_ = value; |
| 3665 | } |
| 3666 | inline void Event::set_type(::webrtc::audioproc::Event_Type value) { |
| 3667 | _internal_set_type(value); |
| 3668 | // @@protoc_insertion_point(field_set:webrtc.audioproc.Event.type) |
| 3669 | } |
| 3670 |
| 3671 | // optional .webrtc.audioproc.Init init = 2; |
| 3672 | inline bool Event::_internal_has_init() const { |
| 3673 | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
| 3674 | PROTOBUF_ASSUME(!value || init_ != nullptr); |
| 3675 | return value; |
| 3676 | } |
| 3677 | inline bool Event::has_init() const { |
| 3678 | return _internal_has_init(); |
| 3679 | } |
| 3680 | inline void Event::clear_init() { |
| 3681 | if (init_ != nullptr) init_->Clear(); |
| 3682 | _has_bits_[0] &= ~0x00000001u; |
| 3683 | } |
| 3684 | inline const ::webrtc::audioproc::Init& Event::_internal_init() const { |
| 3685 | const ::webrtc::audioproc::Init* p = init_; |
| 3686 | return p != nullptr ? *p : reinterpret_cast<const ::webrtc::audioproc::Init&>( |
| 3687 | ::webrtc::audioproc::_Init_default_instance_); |
| 3688 | } |
| 3689 | inline const ::webrtc::audioproc::Init& Event::init() const { |
| 3690 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Event.init) |
| 3691 | return _internal_init(); |
| 3692 | } |
| 3693 | inline void Event::unsafe_arena_set_allocated_init( |
| 3694 | ::webrtc::audioproc::Init* init) { |
| 3695 | if (GetArenaForAllocation() == nullptr) { |
| 3696 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(init_); |
| 3697 | } |
| 3698 | init_ = init; |
| 3699 | if (init) { |
| 3700 | _has_bits_[0] |= 0x00000001u; |
| 3701 | } else { |
| 3702 | _has_bits_[0] &= ~0x00000001u; |
| 3703 | } |
| 3704 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:webrtc.audioproc.Event.init) |
| 3705 | } |
| 3706 | inline ::webrtc::audioproc::Init* Event::release_init() { |
| 3707 | _has_bits_[0] &= ~0x00000001u; |
| 3708 | ::webrtc::audioproc::Init* temp = init_; |
| 3709 | init_ = nullptr; |
| 3710 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3711 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
| 3712 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3713 | if (GetArenaForAllocation() == nullptr) { delete old; } |
| 3714 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3715 | if (GetArenaForAllocation() != nullptr) { |
| 3716 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3717 | } |
| 3718 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3719 | return temp; |
| 3720 | } |
| 3721 | inline ::webrtc::audioproc::Init* Event::unsafe_arena_release_init() { |
| 3722 | // @@protoc_insertion_point(field_release:webrtc.audioproc.Event.init) |
| 3723 | _has_bits_[0] &= ~0x00000001u; |
| 3724 | ::webrtc::audioproc::Init* temp = init_; |
| 3725 | init_ = nullptr; |
| 3726 | return temp; |
| 3727 | } |
| 3728 | inline ::webrtc::audioproc::Init* Event::_internal_mutable_init() { |
| 3729 | _has_bits_[0] |= 0x00000001u; |
| 3730 | if (init_ == nullptr) { |
| 3731 | auto* p = CreateMaybeMessage<::webrtc::audioproc::Init>(GetArenaForAllocation()); |
| 3732 | init_ = p; |
| 3733 | } |
| 3734 | return init_; |
| 3735 | } |
| 3736 | inline ::webrtc::audioproc::Init* Event::mutable_init() { |
| 3737 | ::webrtc::audioproc::Init* _msg = _internal_mutable_init(); |
| 3738 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Event.init) |
| 3739 | return _msg; |
| 3740 | } |
| 3741 | inline void Event::set_allocated_init(::webrtc::audioproc::Init* init) { |
| 3742 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
| 3743 | if (message_arena == nullptr) { |
| 3744 | delete init_; |
| 3745 | } |
| 3746 | if (init) { |
| 3747 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
| 3748 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(init); |
| 3749 | if (message_arena != submessage_arena) { |
| 3750 | init = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| 3751 | message_arena, init, submessage_arena); |
| 3752 | } |
| 3753 | _has_bits_[0] |= 0x00000001u; |
| 3754 | } else { |
| 3755 | _has_bits_[0] &= ~0x00000001u; |
| 3756 | } |
| 3757 | init_ = init; |
| 3758 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.Event.init) |
| 3759 | } |
| 3760 |
| 3761 | // optional .webrtc.audioproc.ReverseStream reverse_stream = 3; |
| 3762 | inline bool Event::_internal_has_reverse_stream() const { |
| 3763 | bool value = (_has_bits_[0] & 0x00000002u) != 0; |
| 3764 | PROTOBUF_ASSUME(!value || reverse_stream_ != nullptr); |
| 3765 | return value; |
| 3766 | } |
| 3767 | inline bool Event::has_reverse_stream() const { |
| 3768 | return _internal_has_reverse_stream(); |
| 3769 | } |
| 3770 | inline void Event::clear_reverse_stream() { |
| 3771 | if (reverse_stream_ != nullptr) reverse_stream_->Clear(); |
| 3772 | _has_bits_[0] &= ~0x00000002u; |
| 3773 | } |
| 3774 | inline const ::webrtc::audioproc::ReverseStream& Event::_internal_reverse_stream() const { |
| 3775 | const ::webrtc::audioproc::ReverseStream* p = reverse_stream_; |
| 3776 | return p != nullptr ? *p : reinterpret_cast<const ::webrtc::audioproc::ReverseStream&>( |
| 3777 | ::webrtc::audioproc::_ReverseStream_default_instance_); |
| 3778 | } |
| 3779 | inline const ::webrtc::audioproc::ReverseStream& Event::reverse_stream() const { |
| 3780 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Event.reverse_stream) |
| 3781 | return _internal_reverse_stream(); |
| 3782 | } |
| 3783 | inline void Event::unsafe_arena_set_allocated_reverse_stream( |
| 3784 | ::webrtc::audioproc::ReverseStream* reverse_stream) { |
| 3785 | if (GetArenaForAllocation() == nullptr) { |
| 3786 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reverse_stream_); |
| 3787 | } |
| 3788 | reverse_stream_ = reverse_stream; |
| 3789 | if (reverse_stream) { |
| 3790 | _has_bits_[0] |= 0x00000002u; |
| 3791 | } else { |
| 3792 | _has_bits_[0] &= ~0x00000002u; |
| 3793 | } |
| 3794 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:webrtc.audioproc.Event.reverse_stream) |
| 3795 | } |
| 3796 | inline ::webrtc::audioproc::ReverseStream* Event::release_reverse_stream() { |
| 3797 | _has_bits_[0] &= ~0x00000002u; |
| 3798 | ::webrtc::audioproc::ReverseStream* temp = reverse_stream_; |
| 3799 | reverse_stream_ = nullptr; |
| 3800 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3801 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
| 3802 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3803 | if (GetArenaForAllocation() == nullptr) { delete old; } |
| 3804 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3805 | if (GetArenaForAllocation() != nullptr) { |
| 3806 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3807 | } |
| 3808 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3809 | return temp; |
| 3810 | } |
| 3811 | inline ::webrtc::audioproc::ReverseStream* Event::unsafe_arena_release_reverse_stream() { |
| 3812 | // @@protoc_insertion_point(field_release:webrtc.audioproc.Event.reverse_stream) |
| 3813 | _has_bits_[0] &= ~0x00000002u; |
| 3814 | ::webrtc::audioproc::ReverseStream* temp = reverse_stream_; |
| 3815 | reverse_stream_ = nullptr; |
| 3816 | return temp; |
| 3817 | } |
| 3818 | inline ::webrtc::audioproc::ReverseStream* Event::_internal_mutable_reverse_stream() { |
| 3819 | _has_bits_[0] |= 0x00000002u; |
| 3820 | if (reverse_stream_ == nullptr) { |
| 3821 | auto* p = CreateMaybeMessage<::webrtc::audioproc::ReverseStream>(GetArenaForAllocation()); |
| 3822 | reverse_stream_ = p; |
| 3823 | } |
| 3824 | return reverse_stream_; |
| 3825 | } |
| 3826 | inline ::webrtc::audioproc::ReverseStream* Event::mutable_reverse_stream() { |
| 3827 | ::webrtc::audioproc::ReverseStream* _msg = _internal_mutable_reverse_stream(); |
| 3828 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Event.reverse_stream) |
| 3829 | return _msg; |
| 3830 | } |
| 3831 | inline void Event::set_allocated_reverse_stream(::webrtc::audioproc::ReverseStream* reverse_stream) { |
| 3832 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
| 3833 | if (message_arena == nullptr) { |
| 3834 | delete reverse_stream_; |
| 3835 | } |
| 3836 | if (reverse_stream) { |
| 3837 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
| 3838 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(reverse_stream); |
| 3839 | if (message_arena != submessage_arena) { |
| 3840 | reverse_stream = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| 3841 | message_arena, reverse_stream, submessage_arena); |
| 3842 | } |
| 3843 | _has_bits_[0] |= 0x00000002u; |
| 3844 | } else { |
| 3845 | _has_bits_[0] &= ~0x00000002u; |
| 3846 | } |
| 3847 | reverse_stream_ = reverse_stream; |
| 3848 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.Event.reverse_stream) |
| 3849 | } |
| 3850 |
| 3851 | // optional .webrtc.audioproc.Stream stream = 4; |
| 3852 | inline bool Event::_internal_has_stream() const { |
| 3853 | bool value = (_has_bits_[0] & 0x00000004u) != 0; |
| 3854 | PROTOBUF_ASSUME(!value || stream_ != nullptr); |
| 3855 | return value; |
| 3856 | } |
| 3857 | inline bool Event::has_stream() const { |
| 3858 | return _internal_has_stream(); |
| 3859 | } |
| 3860 | inline void Event::clear_stream() { |
| 3861 | if (stream_ != nullptr) stream_->Clear(); |
| 3862 | _has_bits_[0] &= ~0x00000004u; |
| 3863 | } |
| 3864 | inline const ::webrtc::audioproc::Stream& Event::_internal_stream() const { |
| 3865 | const ::webrtc::audioproc::Stream* p = stream_; |
| 3866 | return p != nullptr ? *p : reinterpret_cast<const ::webrtc::audioproc::Stream&>( |
| 3867 | ::webrtc::audioproc::_Stream_default_instance_); |
| 3868 | } |
| 3869 | inline const ::webrtc::audioproc::Stream& Event::stream() const { |
| 3870 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Event.stream) |
| 3871 | return _internal_stream(); |
| 3872 | } |
| 3873 | inline void Event::unsafe_arena_set_allocated_stream( |
| 3874 | ::webrtc::audioproc::Stream* stream) { |
| 3875 | if (GetArenaForAllocation() == nullptr) { |
| 3876 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stream_); |
| 3877 | } |
| 3878 | stream_ = stream; |
| 3879 | if (stream) { |
| 3880 | _has_bits_[0] |= 0x00000004u; |
| 3881 | } else { |
| 3882 | _has_bits_[0] &= ~0x00000004u; |
| 3883 | } |
| 3884 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:webrtc.audioproc.Event.stream) |
| 3885 | } |
| 3886 | inline ::webrtc::audioproc::Stream* Event::release_stream() { |
| 3887 | _has_bits_[0] &= ~0x00000004u; |
| 3888 | ::webrtc::audioproc::Stream* temp = stream_; |
| 3889 | stream_ = nullptr; |
| 3890 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3891 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
| 3892 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3893 | if (GetArenaForAllocation() == nullptr) { delete old; } |
| 3894 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3895 | if (GetArenaForAllocation() != nullptr) { |
| 3896 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3897 | } |
| 3898 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3899 | return temp; |
| 3900 | } |
| 3901 | inline ::webrtc::audioproc::Stream* Event::unsafe_arena_release_stream() { |
| 3902 | // @@protoc_insertion_point(field_release:webrtc.audioproc.Event.stream) |
| 3903 | _has_bits_[0] &= ~0x00000004u; |
| 3904 | ::webrtc::audioproc::Stream* temp = stream_; |
| 3905 | stream_ = nullptr; |
| 3906 | return temp; |
| 3907 | } |
| 3908 | inline ::webrtc::audioproc::Stream* Event::_internal_mutable_stream() { |
| 3909 | _has_bits_[0] |= 0x00000004u; |
| 3910 | if (stream_ == nullptr) { |
| 3911 | auto* p = CreateMaybeMessage<::webrtc::audioproc::Stream>(GetArenaForAllocation()); |
| 3912 | stream_ = p; |
| 3913 | } |
| 3914 | return stream_; |
| 3915 | } |
| 3916 | inline ::webrtc::audioproc::Stream* Event::mutable_stream() { |
| 3917 | ::webrtc::audioproc::Stream* _msg = _internal_mutable_stream(); |
| 3918 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Event.stream) |
| 3919 | return _msg; |
| 3920 | } |
| 3921 | inline void Event::set_allocated_stream(::webrtc::audioproc::Stream* stream) { |
| 3922 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
| 3923 | if (message_arena == nullptr) { |
| 3924 | delete stream_; |
| 3925 | } |
| 3926 | if (stream) { |
| 3927 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
| 3928 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stream); |
| 3929 | if (message_arena != submessage_arena) { |
| 3930 | stream = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| 3931 | message_arena, stream, submessage_arena); |
| 3932 | } |
| 3933 | _has_bits_[0] |= 0x00000004u; |
| 3934 | } else { |
| 3935 | _has_bits_[0] &= ~0x00000004u; |
| 3936 | } |
| 3937 | stream_ = stream; |
| 3938 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.Event.stream) |
| 3939 | } |
| 3940 |
| 3941 | // optional .webrtc.audioproc.Config config = 5; |
| 3942 | inline bool Event::_internal_has_config() const { |
| 3943 | bool value = (_has_bits_[0] & 0x00000008u) != 0; |
| 3944 | PROTOBUF_ASSUME(!value || config_ != nullptr); |
| 3945 | return value; |
| 3946 | } |
| 3947 | inline bool Event::has_config() const { |
| 3948 | return _internal_has_config(); |
| 3949 | } |
| 3950 | inline void Event::clear_config() { |
| 3951 | if (config_ != nullptr) config_->Clear(); |
| 3952 | _has_bits_[0] &= ~0x00000008u; |
| 3953 | } |
| 3954 | inline const ::webrtc::audioproc::Config& Event::_internal_config() const { |
| 3955 | const ::webrtc::audioproc::Config* p = config_; |
| 3956 | return p != nullptr ? *p : reinterpret_cast<const ::webrtc::audioproc::Config&>( |
| 3957 | ::webrtc::audioproc::_Config_default_instance_); |
| 3958 | } |
| 3959 | inline const ::webrtc::audioproc::Config& Event::config() const { |
| 3960 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Event.config) |
| 3961 | return _internal_config(); |
| 3962 | } |
| 3963 | inline void Event::unsafe_arena_set_allocated_config( |
| 3964 | ::webrtc::audioproc::Config* config) { |
| 3965 | if (GetArenaForAllocation() == nullptr) { |
| 3966 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(config_); |
| 3967 | } |
| 3968 | config_ = config; |
| 3969 | if (config) { |
| 3970 | _has_bits_[0] |= 0x00000008u; |
| 3971 | } else { |
| 3972 | _has_bits_[0] &= ~0x00000008u; |
| 3973 | } |
| 3974 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:webrtc.audioproc.Event.config) |
| 3975 | } |
| 3976 | inline ::webrtc::audioproc::Config* Event::release_config() { |
| 3977 | _has_bits_[0] &= ~0x00000008u; |
| 3978 | ::webrtc::audioproc::Config* temp = config_; |
| 3979 | config_ = nullptr; |
| 3980 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3981 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
| 3982 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3983 | if (GetArenaForAllocation() == nullptr) { delete old; } |
| 3984 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3985 | if (GetArenaForAllocation() != nullptr) { |
| 3986 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 3987 | } |
| 3988 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
| 3989 | return temp; |
| 3990 | } |
| 3991 | inline ::webrtc::audioproc::Config* Event::unsafe_arena_release_config() { |
| 3992 | // @@protoc_insertion_point(field_release:webrtc.audioproc.Event.config) |
| 3993 | _has_bits_[0] &= ~0x00000008u; |
| 3994 | ::webrtc::audioproc::Config* temp = config_; |
| 3995 | config_ = nullptr; |
| 3996 | return temp; |
| 3997 | } |
| 3998 | inline ::webrtc::audioproc::Config* Event::_internal_mutable_config() { |
| 3999 | _has_bits_[0] |= 0x00000008u; |
| 4000 | if (config_ == nullptr) { |
| 4001 | auto* p = CreateMaybeMessage<::webrtc::audioproc::Config>(GetArenaForAllocation()); |
| 4002 | config_ = p; |
| 4003 | } |
| 4004 | return config_; |
| 4005 | } |
| 4006 | inline ::webrtc::audioproc::Config* Event::mutable_config() { |
| 4007 | ::webrtc::audioproc::Config* _msg = _internal_mutable_config(); |
| 4008 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Event.config) |
| 4009 | return _msg; |
| 4010 | } |
| 4011 | inline void Event::set_allocated_config(::webrtc::audioproc::Config* config) { |
| 4012 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
| 4013 | if (message_arena == nullptr) { |
| 4014 | delete config_; |
| 4015 | } |
| 4016 | if (config) { |
| 4017 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
| 4018 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(config); |
| 4019 | if (message_arena != submessage_arena) { |
| 4020 | config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| 4021 | message_arena, config, submessage_arena); |
| 4022 | } |
| 4023 | _has_bits_[0] |= 0x00000008u; |
| 4024 | } else { |
| 4025 | _has_bits_[0] &= ~0x00000008u; |
| 4026 | } |
| 4027 | config_ = config; |
| 4028 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.Event.config) |
| 4029 | } |
| 4030 |
| 4031 | // optional .webrtc.audioproc.RuntimeSetting runtime_setting = 6; |
| 4032 | inline bool Event::_internal_has_runtime_setting() const { |
| 4033 | bool value = (_has_bits_[0] & 0x00000010u) != 0; |
| 4034 | PROTOBUF_ASSUME(!value || runtime_setting_ != nullptr); |
| 4035 | return value; |
| 4036 | } |
| 4037 | inline bool Event::has_runtime_setting() const { |
| 4038 | return _internal_has_runtime_setting(); |
| 4039 | } |
| 4040 | inline void Event::clear_runtime_setting() { |
| 4041 | if (runtime_setting_ != nullptr) runtime_setting_->Clear(); |
| 4042 | _has_bits_[0] &= ~0x00000010u; |
| 4043 | } |
| 4044 | inline const ::webrtc::audioproc::RuntimeSetting& Event::_internal_runtime_setting() const { |
| 4045 | const ::webrtc::audioproc::RuntimeSetting* p = runtime_setting_; |
| 4046 | return p != nullptr ? *p : reinterpret_cast<const ::webrtc::audioproc::RuntimeSetting&>( |
| 4047 | ::webrtc::audioproc::_RuntimeSetting_default_instance_); |
| 4048 | } |
| 4049 | inline const ::webrtc::audioproc::RuntimeSetting& Event::runtime_setting() const { |
| 4050 | // @@protoc_insertion_point(field_get:webrtc.audioproc.Event.runtime_setting) |
| 4051 | return _internal_runtime_setting(); |
| 4052 | } |
| 4053 | inline void Event::unsafe_arena_set_allocated_runtime_setting( |
| 4054 | ::webrtc::audioproc::RuntimeSetting* runtime_setting) { |
| 4055 | if (GetArenaForAllocation() == nullptr) { |
| 4056 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(runtime_setting_); |
| 4057 | } |
| 4058 | runtime_setting_ = runtime_setting; |
| 4059 | if (runtime_setting) { |
| 4060 | _has_bits_[0] |= 0x00000010u; |
| 4061 | } else { |
| 4062 | _has_bits_[0] &= ~0x00000010u; |
| 4063 | } |
| 4064 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:webrtc.audioproc.Event.runtime_setting) |
| 4065 | } |
| 4066 | inline ::webrtc::audioproc::RuntimeSetting* Event::release_runtime_setting() { |
| 4067 | _has_bits_[0] &= ~0x00000010u; |
| 4068 | ::webrtc::audioproc::RuntimeSetting* temp = runtime_setting_; |
| 4069 | runtime_setting_ = nullptr; |
| 4070 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
| 4071 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
| 4072 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 4073 | if (GetArenaForAllocation() == nullptr) { delete old; } |
| 4074 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
| 4075 | if (GetArenaForAllocation() != nullptr) { |
| 4076 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
| 4077 | } |
| 4078 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
| 4079 | return temp; |
| 4080 | } |
| 4081 | inline ::webrtc::audioproc::RuntimeSetting* Event::unsafe_arena_release_runtime_setting() { |
| 4082 | // @@protoc_insertion_point(field_release:webrtc.audioproc.Event.runtime_setting) |
| 4083 | _has_bits_[0] &= ~0x00000010u; |
| 4084 | ::webrtc::audioproc::RuntimeSetting* temp = runtime_setting_; |
| 4085 | runtime_setting_ = nullptr; |
| 4086 | return temp; |
| 4087 | } |
| 4088 | inline ::webrtc::audioproc::RuntimeSetting* Event::_internal_mutable_runtime_setting() { |
| 4089 | _has_bits_[0] |= 0x00000010u; |
| 4090 | if (runtime_setting_ == nullptr) { |
| 4091 | auto* p = CreateMaybeMessage<::webrtc::audioproc::RuntimeSetting>(GetArenaForAllocation()); |
| 4092 | runtime_setting_ = p; |
| 4093 | } |
| 4094 | return runtime_setting_; |
| 4095 | } |
| 4096 | inline ::webrtc::audioproc::RuntimeSetting* Event::mutable_runtime_setting() { |
| 4097 | ::webrtc::audioproc::RuntimeSetting* _msg = _internal_mutable_runtime_setting(); |
| 4098 | // @@protoc_insertion_point(field_mutable:webrtc.audioproc.Event.runtime_setting) |
| 4099 | return _msg; |
| 4100 | } |
| 4101 | inline void Event::set_allocated_runtime_setting(::webrtc::audioproc::RuntimeSetting* runtime_setting) { |
| 4102 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
| 4103 | if (message_arena == nullptr) { |
| 4104 | delete runtime_setting_; |
| 4105 | } |
| 4106 | if (runtime_setting) { |
| 4107 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
| 4108 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(runtime_setting); |
| 4109 | if (message_arena != submessage_arena) { |
| 4110 | runtime_setting = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| 4111 | message_arena, runtime_setting, submessage_arena); |
| 4112 | } |
| 4113 | _has_bits_[0] |= 0x00000010u; |
| 4114 | } else { |
| 4115 | _has_bits_[0] &= ~0x00000010u; |
| 4116 | } |
| 4117 | runtime_setting_ = runtime_setting; |
| 4118 | // @@protoc_insertion_point(field_set_allocated:webrtc.audioproc.Event.runtime_setting) |
| 4119 | } |
| 4120 |
| 4121 | #ifdef __GNUC__ |
| 4122 | #pragma GCC diagnostic pop |
| 4123 | #endif // __GNUC__ |
| 4124 | // ------------------------------------------------------------------- |
| 4125 |
| 4126 | // ------------------------------------------------------------------- |
| 4127 |
| 4128 | // ------------------------------------------------------------------- |
| 4129 |
| 4130 | // ------------------------------------------------------------------- |
| 4131 |
| 4132 | // ------------------------------------------------------------------- |
| 4133 |
| 4134 | // ------------------------------------------------------------------- |
| 4135 |
| 4136 |
| 4137 | // @@protoc_insertion_point(namespace_scope) |
| 4138 |
| 4139 | } // namespace audioproc |
| 4140 | } // namespace webrtc |
| 4141 |
| 4142 | PROTOBUF_NAMESPACE_OPEN |
| 4143 |
| 4144 | template <> struct is_proto_enum< ::webrtc::audioproc::Event_Type> : ::std::true_type {}; |
| 4145 |
| 4146 | PROTOBUF_NAMESPACE_CLOSE |
| 4147 |
| 4148 | // @@protoc_insertion_point(global_scope) |
| 4149 |
| 4150 | #include <google/protobuf/port_undef.inc> |
| 4151 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_debug_2eproto |
| 4152 |