diff --git a/CHANGELOG.md b/CHANGELOG.md index db9993c1..306b503d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.8.1 +* add write without available + ## 0.8.0 * Migrate the plugin to null safety. diff --git a/android/src/main/java/com/pauldemarco/flutter_blue/FlutterBluePlugin.java b/android/src/main/java/com/pauldemarco/flutter_blue/FlutterBluePlugin.java index f3ffbdb9..8f811d6f 100644 --- a/android/src/main/java/com/pauldemarco/flutter_blue/FlutterBluePlugin.java +++ b/android/src/main/java/com/pauldemarco/flutter_blue/FlutterBluePlugin.java @@ -891,10 +891,17 @@ public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristi request.setRemoteId(gatt.getDevice().getAddress()); request.setCharacteristicUuid(characteristic.getUuid().toString()); request.setServiceUuid(characteristic.getService().getUuid().toString()); - Protos.WriteCharacteristicResponse.Builder p = Protos.WriteCharacteristicResponse.newBuilder(); - p.setRequest(request); - p.setSuccess(status == BluetoothGatt.GATT_SUCCESS); - invokeMethodUIThread("WriteCharacteristicResponse", p.build().toByteArray()); + log(LogLevel.DEBUG, "[onCharacteristicWrite] writeType: " + characteristic.getWriteType()); + if (characteristic.getWriteType() == BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE){ + Protos.IsReadyToSendWriteWithoutResponse.Builder p = Protos.IsReadyToSendWriteWithoutResponse.newBuilder(); + p.setRemoteId(gatt.getDevice().getAddress()); + invokeMethodUIThread("IsReadyToSendWriteWithoutResponse", p.build().toByteArray()); + }else { + Protos.WriteCharacteristicResponse.Builder p = Protos.WriteCharacteristicResponse.newBuilder(); + p.setRequest(request); + p.setSuccess(status == BluetoothGatt.GATT_SUCCESS); + invokeMethodUIThread("WriteCharacteristicResponse", p.build().toByteArray()); + } } @Override diff --git a/example/android/app/src/main/kotlin/com/pauldemarco/example/MainActivity.kt b/example/android/app/src/main/kotlin/com/pauldemarco/example/MainActivity.kt new file mode 100644 index 00000000..2dfb60eb --- /dev/null +++ b/example/android/app/src/main/kotlin/com/pauldemarco/example/MainActivity.kt @@ -0,0 +1,6 @@ +package com.pauldemarco.example + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist index 6b4c0f78..9367d483 100644 --- a/example/ios/Flutter/AppFrameworkInfo.plist +++ b/example/ios/Flutter/AppFrameworkInfo.plist @@ -3,7 +3,7 @@ CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) + en CFBundleExecutable App CFBundleIdentifier diff --git a/example/ios/Flutter/Debug.xcconfig b/example/ios/Flutter/Debug.xcconfig index e8efba11..ec97fc6f 100644 --- a/example/ios/Flutter/Debug.xcconfig +++ b/example/ios/Flutter/Debug.xcconfig @@ -1,2 +1,2 @@ -#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" #include "Generated.xcconfig" diff --git a/example/ios/Flutter/Release.xcconfig b/example/ios/Flutter/Release.xcconfig index 399e9340..c4855bfe 100644 --- a/example/ios/Flutter/Release.xcconfig +++ b/example/ios/Flutter/Release.xcconfig @@ -1,2 +1,2 @@ -#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" #include "Generated.xcconfig" diff --git a/example/ios/Podfile b/example/ios/Podfile index 98a90b8a..1e8c3c90 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -10,78 +10,32 @@ project 'Runner', { 'Release' => :release, } -def parse_KV_file(file, separator='=') - file_abs_path = File.expand_path(file) - if !File.exists? file_abs_path - return []; +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end - generated_key_values = {} - skip_line_start_symbols = ["#", "/"] - File.foreach(file_abs_path) do |line| - next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } - plugin = line.split(pattern=separator) - if plugin.length == 2 - podname = plugin[0].strip() - path = plugin[1].strip() - podpath = File.expand_path("#{path}", file_abs_path) - generated_key_values[podname] = podpath - else - puts "Invalid plugin specification: #{line}" - end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches end - generated_key_values + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end -target 'Runner' do - # Flutter Pod - - copied_flutter_dir = File.join(__dir__, 'Flutter') - copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework') - copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec') - unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path) - # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet. - # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration. - # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig') - unless File.exist?(generated_xcode_build_settings_path) - raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first" - end - generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path) - cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR']; - - unless File.exist?(copied_framework_path) - FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir) - end - unless File.exist?(copied_podspec_path) - FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir) - end - end +flutter_ios_podfile_setup - # Keep pod path relative so it can be checked into Podfile.lock. - pod 'Flutter', :path => 'Flutter' - - # Plugin Pods +target 'Runner' do + use_frameworks! + use_modular_headers! - # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock - # referring to absolute paths on developers' machines. - system('rm -rf .symlinks') - system('mkdir -p .symlinks/plugins') - plugin_pods = parse_KV_file('../.flutter-plugins') - plugin_pods.each do |name, path| - symlink = File.join('.symlinks', 'plugins', name) - File.symlink(path, symlink) - pod name, :path => File.join(symlink, 'ios') - end + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end -# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. -install! 'cocoapods', :disable_input_output_paths => true - post_install do |installer| installer.pods_project.targets.each do |target| - target.build_configurations.each do |config| - config.build_settings['ENABLE_BITCODE'] = 'NO' - end + flutter_additional_ios_build_settings(target) end end diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 0fb4b650..392af89f 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,6 +1,4 @@ PODS: - - e2e (0.0.1): - - Flutter - Flutter (1.0.0) - flutter_blue (0.0.1): - Flutter @@ -11,7 +9,6 @@ PODS: - Protobuf (3.11.4) DEPENDENCIES: - - e2e (from `.symlinks/plugins/e2e/ios`) - Flutter (from `Flutter`) - flutter_blue (from `.symlinks/plugins/flutter_blue/ios`) @@ -20,19 +17,16 @@ SPEC REPOS: - Protobuf EXTERNAL SOURCES: - e2e: - :path: ".symlinks/plugins/e2e/ios" Flutter: :path: Flutter flutter_blue: :path: ".symlinks/plugins/flutter_blue/ios" SPEC CHECKSUMS: - e2e: 967b9b1fc533b7636a3b7a719f840c27f301fe1f - Flutter: 0e3d915762c693b495b44d77113d4970485de6ec + Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c flutter_blue: eeb381dc4727a0954dede73515f683865494b370 Protobuf: 176220c526ad8bd09ab1fb40a978eac3fef665f7 -PODFILE CHECKSUM: 3dbe063e9c90a5d7c9e4e76e70a821b9e2c1d271 +PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c -COCOAPODS: 1.9.1 +COCOAPODS: 1.10.0 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 8fc5bbc7..541bfb91 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -3,22 +3,17 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 51; objects = { /* Begin PBXBuildFile section */ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; - 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 44275D28EA4E0577CBA8D06F /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1E3CF866062FD8EEF1931FF5 /* Pods_Runner.framework */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; - BC840DD82826110B54BA6046 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 037D6201B3317D19077DBE1C /* libPods-Runner.a */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -28,8 +23,6 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -37,26 +30,23 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 037D6201B3317D19077DBE1C /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 03F90B064E5989CDFA6AE40B /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 1E3CF866062FD8EEF1931FF5 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; - 5FD1D91DB4DD22B46C0A30FB /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 782C3414748C2019C34D995E /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; - 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 90D362CFC65AB38900749923 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; - 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + C8D29EB14B5B3334B6B3E65B /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + DCA332147EA8321A1464085F /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -64,21 +54,35 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, - BC840DD82826110B54BA6046 /* libPods-Runner.a in Frameworks */, + 44275D28EA4E0577CBA8D06F /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 3CF2AE87A0F54253CAD248CA /* Pods */ = { + isa = PBXGroup; + children = ( + 782C3414748C2019C34D995E /* Pods-Runner.debug.xcconfig */, + C8D29EB14B5B3334B6B3E65B /* Pods-Runner.release.xcconfig */, + DCA332147EA8321A1464085F /* Pods-Runner.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + 7DD1CCCEA6B5CC01567B4CA7 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1E3CF866062FD8EEF1931FF5 /* Pods_Runner.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( - 3B80C3931E831B6300D905FE /* App.framework */, 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, - 9740EEBA1CF902C7004384FC /* Flutter.framework */, 9740EEB21CF90195004384FC /* Debug.xcconfig */, 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 9740EEB31CF90195004384FC /* Generated.xcconfig */, @@ -92,8 +96,8 @@ 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, - 9FA2C22F3442E6B32D987688 /* Pods */, - FE7C0B0D97F9B20AF18716C5 /* Frameworks */, + 3CF2AE87A0F54253CAD248CA /* Pods */, + 7DD1CCCEA6B5CC01567B4CA7 /* Frameworks */, ); sourceTree = ""; }; @@ -108,46 +112,18 @@ 97C146F01CF9000F007C117D /* Runner */ = { isa = PBXGroup; children = ( - 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, - 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 97C146FA1CF9000F007C117D /* Main.storyboard */, 97C146FD1CF9000F007C117D /* Assets.xcassets */, 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 97C147021CF9000F007C117D /* Info.plist */, - 97C146F11CF9000F007C117D /* Supporting Files */, 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, ); path = Runner; sourceTree = ""; }; - 97C146F11CF9000F007C117D /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 97C146F21CF9000F007C117D /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 9FA2C22F3442E6B32D987688 /* Pods */ = { - isa = PBXGroup; - children = ( - 03F90B064E5989CDFA6AE40B /* Pods-Runner.debug.xcconfig */, - 90D362CFC65AB38900749923 /* Pods-Runner.release.xcconfig */, - 5FD1D91DB4DD22B46C0A30FB /* Pods-Runner.profile.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; - FE7C0B0D97F9B20AF18716C5 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 037D6201B3317D19077DBE1C /* libPods-Runner.a */, - ); - name = Frameworks; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -155,14 +131,14 @@ isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( - F70296DE928E36AB7322BF47 /* [CP] Check Pods Manifest.lock */, + D1D457F3023AD1337DE8E274 /* [CP] Check Pods Manifest.lock */, 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - 25F30DD022E5D3EED9183A8A /* [CP] Embed Pods Frameworks */, + 3179D45610EFD4A030DE07E3 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -180,15 +156,16 @@ isa = PBXProject; attributes = { LastUpgradeCheck = 1020; - ORGANIZATIONNAME = "The Chromium Authors"; + ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; }; }; }; buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 3.2"; + compatibilityVersion = "Xcode 9.3"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( @@ -220,15 +197,17 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 25F30DD022E5D3EED9183A8A /* [CP] Embed Pods Frameworks */ = { + 3179D45610EFD4A030DE07E3 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); - inputPaths = ( + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); name = "[CP] Embed Pods Frameworks"; - outputPaths = ( + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; @@ -247,7 +226,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; @@ -263,7 +242,7 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; }; - F70296DE928E36AB7322BF47 /* [CP] Check Pods Manifest.lock */ = { + D1D457F3023AD1337DE8E274 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -292,8 +271,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, - 97C146F31CF9000F007C117D /* main.m in Sources */, + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -322,7 +300,6 @@ /* Begin XCBuildConfiguration section */ 249021D3217E4FDB00AE95B9 /* Profile */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -362,7 +339,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -376,27 +353,25 @@ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = S4JD8QVPVY; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( + LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", - "$(PROJECT_DIR)/Flutter", + "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.pauldemarco.flutterBlueExample; + PRODUCT_BUNDLE_IDENTIFIER = com.pauldemarco.example; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Profile; }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -442,7 +417,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -452,7 +427,6 @@ }; 97C147041CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -492,10 +466,12 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; @@ -506,20 +482,20 @@ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = S4JD8QVPVY; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( + LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", - "$(PROJECT_DIR)/Flutter", + "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.pauldemarco.flutterBlueExample; + PRODUCT_BUNDLE_IDENTIFIER = com.pauldemarco.example; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; @@ -529,20 +505,19 @@ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = S4JD8QVPVY; ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( + LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", - "$(PROJECT_DIR)/Flutter", + "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.pauldemarco.flutterBlueExample; + PRODUCT_BUNDLE_IDENTIFIER = com.pauldemarco.example; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 1d526a16..919434a6 100644 --- a/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:"> diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..f9b0d7c5 --- /dev/null +++ b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..f9b0d7c5 --- /dev/null +++ b/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/example/ios/Runner/AppDelegate.h b/example/ios/Runner/AppDelegate.h deleted file mode 100644 index 36e21bbf..00000000 --- a/example/ios/Runner/AppDelegate.h +++ /dev/null @@ -1,6 +0,0 @@ -#import -#import - -@interface AppDelegate : FlutterAppDelegate - -@end diff --git a/example/ios/Runner/AppDelegate.m b/example/ios/Runner/AppDelegate.m deleted file mode 100644 index 70e83933..00000000 --- a/example/ios/Runner/AppDelegate.m +++ /dev/null @@ -1,13 +0,0 @@ -#import "AppDelegate.h" -#import "GeneratedPluginRegistrant.h" - -@implementation AppDelegate - -- (BOOL)application:(UIApplication *)application - didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - [GeneratedPluginRegistrant registerWithRegistry:self]; - // Override point for customization after application launch. - return [super application:application didFinishLaunchingWithOptions:launchOptions]; -} - -@end diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift new file mode 100644 index 00000000..70693e4a --- /dev/null +++ b/example/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist index ef2d1602..b9de25bf 100644 --- a/example/ios/Runner/Info.plist +++ b/example/ios/Runner/Info.plist @@ -11,7 +11,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - flutter_blue_example + example CFBundlePackageType APPL CFBundleShortVersionString @@ -39,11 +39,11 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - NSBluetoothAlwaysUsageDescription - We need BT access because it's a BT App. - NSBluetoothPeripheralUsageDescription - We need BT access because it's a BT App. UIViewControllerBasedStatusBarAppearance + NSBluetoothAlwaysUsageDescription + 需要使用蓝牙,用来跟智能设备进行通讯 + NSBluetoothPeripheralUsageDescription + App需要您的同意,才能访问蓝牙,用来跟智能设备进行通讯 diff --git a/example/ios/Runner/Runner-Bridging-Header.h b/example/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 00000000..308a2a56 --- /dev/null +++ b/example/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/example/ios/Runner/main.m b/example/ios/Runner/main.m deleted file mode 100644 index dff6597e..00000000 --- a/example/ios/Runner/main.m +++ /dev/null @@ -1,9 +0,0 @@ -#import -#import -#import "AppDelegate.h" - -int main(int argc, char* argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git a/example/web/favicon.png b/example/web/favicon.png new file mode 100644 index 00000000..8aaa46ac Binary files /dev/null and b/example/web/favicon.png differ diff --git a/example/web/icons/Icon-192.png b/example/web/icons/Icon-192.png new file mode 100644 index 00000000..b749bfef Binary files /dev/null and b/example/web/icons/Icon-192.png differ diff --git a/example/web/icons/Icon-512.png b/example/web/icons/Icon-512.png new file mode 100644 index 00000000..88cfd48d Binary files /dev/null and b/example/web/icons/Icon-512.png differ diff --git a/example/web/index.html b/example/web/index.html new file mode 100644 index 00000000..1460b5e9 --- /dev/null +++ b/example/web/index.html @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + example + + + + + + + + diff --git a/example/web/manifest.json b/example/web/manifest.json new file mode 100644 index 00000000..8c012917 --- /dev/null +++ b/example/web/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "example", + "short_name": "example", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/ios/Classes/FlutterBluePlugin.m b/ios/Classes/FlutterBluePlugin.m index 65a73b6d..78508902 100644 --- a/ios/Classes/FlutterBluePlugin.m +++ b/ios/Classes/FlutterBluePlugin.m @@ -538,6 +538,12 @@ - (void)peripheral:(CBPeripheral *)peripheral didWriteValueForDescriptor:(CBDesc [_channel invokeMethod:@"WriteDescriptorResponse" arguments:[self toFlutterData:result]]; } +- (void)peripheralIsReadyToSendWriteWithoutResponse:(CBPeripheral *)peripheral { + ProtosIsReadyToSendWriteWithoutResponse *result = [[ProtosIsReadyToSendWriteWithoutResponse alloc] init]; + [result setRemoteId:[peripheral.identifier UUIDString]]; + [_channel invokeMethod:@"IsReadyToSendWriteWithoutResponse" arguments:[self toFlutterData:result]]; +} + // // Proto Helper methods // diff --git a/ios/gen/Flutterblue.pbobjc.h b/ios/gen/Flutterblue.pbobjc.h index 747d17a9..b9532ae5 100644 --- a/ios/gen/Flutterblue.pbobjc.h +++ b/ios/gen/Flutterblue.pbobjc.h @@ -777,6 +777,18 @@ typedef GPB_ENUM(ProtosMtuSizeResponse_FieldNumber) { @end +#pragma mark - ProtosIsReadyToSendWriteWithoutResponse + +typedef GPB_ENUM(ProtosIsReadyToSendWriteWithoutResponse_FieldNumber) { + ProtosIsReadyToSendWriteWithoutResponse_FieldNumber_RemoteId = 1, +}; + +@interface ProtosIsReadyToSendWriteWithoutResponse : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@end + NS_ASSUME_NONNULL_END CF_EXTERN_C_END diff --git a/ios/gen/Flutterblue.pbobjc.m b/ios/gen/Flutterblue.pbobjc.m index 4f9622d0..d2c35307 100644 --- a/ios/gen/Flutterblue.pbobjc.m +++ b/ios/gen/Flutterblue.pbobjc.m @@ -2197,6 +2197,51 @@ + (GPBDescriptor *)descriptor { @end +#pragma mark - ProtosIsReadyToSendWriteWithoutResponse + +@implementation ProtosIsReadyToSendWriteWithoutResponse + +@dynamic remoteId; + +typedef struct ProtosIsReadyToSendWriteWithoutResponse__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; +} ProtosIsReadyToSendWriteWithoutResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosIsReadyToSendWriteWithoutResponse_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosIsReadyToSendWriteWithoutResponse__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosIsReadyToSendWriteWithoutResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosIsReadyToSendWriteWithoutResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + #pragma clang diagnostic pop diff --git a/lib/gen/flutterblue.pb.dart b/lib/gen/flutterblue.pb.dart index ec4a022a..b43d0e8d 100644 --- a/lib/gen/flutterblue.pb.dart +++ b/lib/gen/flutterblue.pb.dart @@ -2186,3 +2186,50 @@ class MtuSizeResponse extends $pb.GeneratedMessage { void clearMtu() => clearField(2); } +class IsReadyToSendWriteWithoutResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'IsReadyToSendWriteWithoutResponse', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..hasRequiredFields = false + ; + + IsReadyToSendWriteWithoutResponse._() : super(); + factory IsReadyToSendWriteWithoutResponse({ + $core.String? remoteId, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + return _result; + } + factory IsReadyToSendWriteWithoutResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory IsReadyToSendWriteWithoutResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + IsReadyToSendWriteWithoutResponse clone() => IsReadyToSendWriteWithoutResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + IsReadyToSendWriteWithoutResponse copyWith(void Function(IsReadyToSendWriteWithoutResponse) updates) => super.copyWith((message) => updates(message as IsReadyToSendWriteWithoutResponse)) as IsReadyToSendWriteWithoutResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static IsReadyToSendWriteWithoutResponse create() => IsReadyToSendWriteWithoutResponse._(); + IsReadyToSendWriteWithoutResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static IsReadyToSendWriteWithoutResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static IsReadyToSendWriteWithoutResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); +} + diff --git a/lib/gen/flutterblue.pbjson.dart b/lib/gen/flutterblue.pbjson.dart index cd5ed708..d2df57f9 100644 --- a/lib/gen/flutterblue.pbjson.dart +++ b/lib/gen/flutterblue.pbjson.dart @@ -415,3 +415,13 @@ const MtuSizeResponse$json = const { /// Descriptor for `MtuSizeResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List mtuSizeResponseDescriptor = $convert.base64Decode('Cg9NdHVTaXplUmVzcG9uc2USGwoJcmVtb3RlX2lkGAEgASgJUghyZW1vdGVJZBIQCgNtdHUYAiABKA1SA210dQ=='); +@$core.Deprecated('Use isReadyToSendWriteWithoutResponseDescriptor instead') +const IsReadyToSendWriteWithoutResponse$json = const { + '1': 'IsReadyToSendWriteWithoutResponse', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + ], +}; + +/// Descriptor for `IsReadyToSendWriteWithoutResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List isReadyToSendWriteWithoutResponseDescriptor = $convert.base64Decode('CiFJc1JlYWR5VG9TZW5kV3JpdGVXaXRob3V0UmVzcG9uc2USGwoJcmVtb3RlX2lkGAEgASgJUghyZW1vdGVJZA=='); diff --git a/lib/src/bluetooth_characteristic.dart b/lib/src/bluetooth_characteristic.dart index 9ed197a1..4c6ff225 100644 --- a/lib/src/bluetooth_characteristic.dart +++ b/lib/src/bluetooth_characteristic.dart @@ -121,24 +121,37 @@ class BluetoothCharacteristic { .invokeMethod('writeCharacteristic', request.writeToBuffer()); if (type == CharacteristicWriteType.withoutResponse) { - return result; + return FlutterBlue.instance._methodStream + .where((m) => m.method == "IsReadyToSendWriteWithoutResponse") + .map((m) => m.arguments) + .map((buffer) => + new protos.IsReadyToSendWriteWithoutResponse.fromBuffer(buffer)) + .where((p) => + (p.remoteId == request.remoteId)) + .first + .then((w) => result==null) + .then((success) => (!success) + ? throw new Exception('Failed to write the characteristic') + : null) + .then((_) => null); + } else { + return FlutterBlue.instance._methodStream + .where((m) => m.method == "WriteCharacteristicResponse") + .map((m) => m.arguments) + .map((buffer) => + new protos.WriteCharacteristicResponse.fromBuffer(buffer)) + .where((p) => + (p.request.remoteId == request.remoteId) && + (p.request.characteristicUuid == request.characteristicUuid) && + (p.request.serviceUuid == request.serviceUuid)) + .first + .then((w) => w.success) + .then((success) => (!success) + ? throw new Exception('Failed to write the characteristic') + : null) + .then((_) => null); } - return FlutterBlue.instance._methodStream - .where((m) => m.method == "WriteCharacteristicResponse") - .map((m) => m.arguments) - .map((buffer) => - new protos.WriteCharacteristicResponse.fromBuffer(buffer)) - .where((p) => - (p.request.remoteId == request.remoteId) && - (p.request.characteristicUuid == request.characteristicUuid) && - (p.request.serviceUuid == request.serviceUuid)) - .first - .then((w) => w.success) - .then((success) => (!success) - ? throw new Exception('Failed to write the characteristic') - : null) - .then((_) => null); } /// Sets notifications or indications for the value of a specified characteristic diff --git a/protos/Flutterblue.pbobjc.h b/protos/Flutterblue.pbobjc.h new file mode 100644 index 00000000..b9532ae5 --- /dev/null +++ b/protos/Flutterblue.pbobjc.h @@ -0,0 +1,798 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flutterblue.proto + +// This CPP symbol can be defined to use imports that match up to the framework +// imports needed when using CocoaPods. +#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) + #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0 +#endif + +#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS + #import +#else + #import "GPBProtocolBuffers.h" +#endif + +#if GOOGLE_PROTOBUF_OBJC_VERSION < 30002 +#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources. +#endif +#if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION +#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources. +#endif + +// @@protoc_insertion_point(imports) + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + +CF_EXTERN_C_BEGIN + +@class ProtosAdvertisementData; +@class ProtosBluetoothCharacteristic; +@class ProtosBluetoothDescriptor; +@class ProtosBluetoothDevice; +@class ProtosBluetoothService; +@class ProtosCharacteristicProperties; +@class ProtosInt32Value; +@class ProtosReadDescriptorRequest; +@class ProtosWriteCharacteristicRequest; +@class ProtosWriteDescriptorRequest; + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - Enum ProtosBluetoothState_State + +typedef GPB_ENUM(ProtosBluetoothState_State) { + /** + * Value used if any message's field encounters a value that is not defined + * by this enum. The message will also have C functions to get/set the rawValue + * of the field. + **/ + ProtosBluetoothState_State_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, + ProtosBluetoothState_State_Unknown = 0, + ProtosBluetoothState_State_Unavailable = 1, + ProtosBluetoothState_State_Unauthorized = 2, + ProtosBluetoothState_State_TurningOn = 3, + ProtosBluetoothState_State_On = 4, + ProtosBluetoothState_State_TurningOff = 5, + ProtosBluetoothState_State_Off = 6, +}; + +GPBEnumDescriptor *ProtosBluetoothState_State_EnumDescriptor(void); + +/** + * Checks to see if the given value is defined by the enum or was not known at + * the time this source was generated. + **/ +BOOL ProtosBluetoothState_State_IsValidValue(int32_t value); + +#pragma mark - Enum ProtosBluetoothDevice_Type + +typedef GPB_ENUM(ProtosBluetoothDevice_Type) { + /** + * Value used if any message's field encounters a value that is not defined + * by this enum. The message will also have C functions to get/set the rawValue + * of the field. + **/ + ProtosBluetoothDevice_Type_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, + ProtosBluetoothDevice_Type_Unknown = 0, + ProtosBluetoothDevice_Type_Classic = 1, + ProtosBluetoothDevice_Type_Le = 2, + ProtosBluetoothDevice_Type_Dual = 3, +}; + +GPBEnumDescriptor *ProtosBluetoothDevice_Type_EnumDescriptor(void); + +/** + * Checks to see if the given value is defined by the enum or was not known at + * the time this source was generated. + **/ +BOOL ProtosBluetoothDevice_Type_IsValidValue(int32_t value); + +#pragma mark - Enum ProtosWriteCharacteristicRequest_WriteType + +typedef GPB_ENUM(ProtosWriteCharacteristicRequest_WriteType) { + /** + * Value used if any message's field encounters a value that is not defined + * by this enum. The message will also have C functions to get/set the rawValue + * of the field. + **/ + ProtosWriteCharacteristicRequest_WriteType_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, + ProtosWriteCharacteristicRequest_WriteType_WithResponse = 0, + ProtosWriteCharacteristicRequest_WriteType_WithoutResponse = 1, +}; + +GPBEnumDescriptor *ProtosWriteCharacteristicRequest_WriteType_EnumDescriptor(void); + +/** + * Checks to see if the given value is defined by the enum or was not known at + * the time this source was generated. + **/ +BOOL ProtosWriteCharacteristicRequest_WriteType_IsValidValue(int32_t value); + +#pragma mark - Enum ProtosDeviceStateResponse_BluetoothDeviceState + +typedef GPB_ENUM(ProtosDeviceStateResponse_BluetoothDeviceState) { + /** + * Value used if any message's field encounters a value that is not defined + * by this enum. The message will also have C functions to get/set the rawValue + * of the field. + **/ + ProtosDeviceStateResponse_BluetoothDeviceState_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, + ProtosDeviceStateResponse_BluetoothDeviceState_Disconnected = 0, + ProtosDeviceStateResponse_BluetoothDeviceState_Connecting = 1, + ProtosDeviceStateResponse_BluetoothDeviceState_Connected = 2, + ProtosDeviceStateResponse_BluetoothDeviceState_Disconnecting = 3, +}; + +GPBEnumDescriptor *ProtosDeviceStateResponse_BluetoothDeviceState_EnumDescriptor(void); + +/** + * Checks to see if the given value is defined by the enum or was not known at + * the time this source was generated. + **/ +BOOL ProtosDeviceStateResponse_BluetoothDeviceState_IsValidValue(int32_t value); + +#pragma mark - ProtosFlutterblueRoot + +/** + * Exposes the extension registry for this file. + * + * The base class provides: + * @code + * + (GPBExtensionRegistry *)extensionRegistry; + * @endcode + * which is a @c GPBExtensionRegistry that includes all the extensions defined by + * this file and all files that it depends on. + **/ +@interface ProtosFlutterblueRoot : GPBRootObject +@end + +#pragma mark - ProtosInt32Value + +typedef GPB_ENUM(ProtosInt32Value_FieldNumber) { + ProtosInt32Value_FieldNumber_Value = 1, +}; + +/** + * Wrapper message for `int32`. + * + * Allows for nullability of fields in messages + **/ +@interface ProtosInt32Value : GPBMessage + +/** The int32 value. */ +@property(nonatomic, readwrite) int32_t value; + +@end + +#pragma mark - ProtosBluetoothState + +typedef GPB_ENUM(ProtosBluetoothState_FieldNumber) { + ProtosBluetoothState_FieldNumber_State = 1, +}; + +@interface ProtosBluetoothState : GPBMessage + +@property(nonatomic, readwrite) ProtosBluetoothState_State state; + +@end + +/** + * Fetches the raw value of a @c ProtosBluetoothState's @c state property, even + * if the value was not defined by the enum at the time the code was generated. + **/ +int32_t ProtosBluetoothState_State_RawValue(ProtosBluetoothState *message); +/** + * Sets the raw value of an @c ProtosBluetoothState's @c state property, allowing + * it to be set to a value that was not defined by the enum at the time the code + * was generated. + **/ +void SetProtosBluetoothState_State_RawValue(ProtosBluetoothState *message, int32_t value); + +#pragma mark - ProtosAdvertisementData + +typedef GPB_ENUM(ProtosAdvertisementData_FieldNumber) { + ProtosAdvertisementData_FieldNumber_LocalName = 1, + ProtosAdvertisementData_FieldNumber_TxPowerLevel = 2, + ProtosAdvertisementData_FieldNumber_Connectable = 3, + ProtosAdvertisementData_FieldNumber_ManufacturerData = 4, + ProtosAdvertisementData_FieldNumber_ServiceData = 5, + ProtosAdvertisementData_FieldNumber_ServiceUuidsArray = 6, +}; + +@interface ProtosAdvertisementData : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *localName; + +@property(nonatomic, readwrite, strong, null_resettable) ProtosInt32Value *txPowerLevel; +/** Test to see if @c txPowerLevel has been set. */ +@property(nonatomic, readwrite) BOOL hasTxPowerLevel; + +@property(nonatomic, readwrite) BOOL connectable; + +/** Map of manufacturers to their data */ +@property(nonatomic, readwrite, strong, null_resettable) GPBInt32ObjectDictionary *manufacturerData; +/** The number of items in @c manufacturerData without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger manufacturerData_Count; + +/** Map of service UUIDs to their data. */ +@property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary *serviceData; +/** The number of items in @c serviceData without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger serviceData_Count; + +@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *serviceUuidsArray; +/** The number of items in @c serviceUuidsArray without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger serviceUuidsArray_Count; + +@end + +#pragma mark - ProtosScanSettings + +typedef GPB_ENUM(ProtosScanSettings_FieldNumber) { + ProtosScanSettings_FieldNumber_AndroidScanMode = 1, + ProtosScanSettings_FieldNumber_ServiceUuidsArray = 2, + ProtosScanSettings_FieldNumber_AllowDuplicates = 3, +}; + +@interface ProtosScanSettings : GPBMessage + +@property(nonatomic, readwrite) int32_t androidScanMode; + +@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *serviceUuidsArray; +/** The number of items in @c serviceUuidsArray without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger serviceUuidsArray_Count; + +@property(nonatomic, readwrite) BOOL allowDuplicates; + +@end + +#pragma mark - ProtosScanResult + +typedef GPB_ENUM(ProtosScanResult_FieldNumber) { + ProtosScanResult_FieldNumber_Device = 1, + ProtosScanResult_FieldNumber_AdvertisementData = 2, + ProtosScanResult_FieldNumber_Rssi = 3, +}; + +@interface ProtosScanResult : GPBMessage + +/** The received peer's ID. */ +@property(nonatomic, readwrite, strong, null_resettable) ProtosBluetoothDevice *device; +/** Test to see if @c device has been set. */ +@property(nonatomic, readwrite) BOOL hasDevice; + +@property(nonatomic, readwrite, strong, null_resettable) ProtosAdvertisementData *advertisementData; +/** Test to see if @c advertisementData has been set. */ +@property(nonatomic, readwrite) BOOL hasAdvertisementData; + +@property(nonatomic, readwrite) int32_t rssi; + +@end + +#pragma mark - ProtosConnectRequest + +typedef GPB_ENUM(ProtosConnectRequest_FieldNumber) { + ProtosConnectRequest_FieldNumber_RemoteId = 1, + ProtosConnectRequest_FieldNumber_AndroidAutoConnect = 2, +}; + +@interface ProtosConnectRequest : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite) BOOL androidAutoConnect; + +@end + +#pragma mark - ProtosBluetoothDevice + +typedef GPB_ENUM(ProtosBluetoothDevice_FieldNumber) { + ProtosBluetoothDevice_FieldNumber_RemoteId = 1, + ProtosBluetoothDevice_FieldNumber_Name = 2, + ProtosBluetoothDevice_FieldNumber_Type = 3, +}; + +@interface ProtosBluetoothDevice : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *name; + +@property(nonatomic, readwrite) ProtosBluetoothDevice_Type type; + +@end + +/** + * Fetches the raw value of a @c ProtosBluetoothDevice's @c type property, even + * if the value was not defined by the enum at the time the code was generated. + **/ +int32_t ProtosBluetoothDevice_Type_RawValue(ProtosBluetoothDevice *message); +/** + * Sets the raw value of an @c ProtosBluetoothDevice's @c type property, allowing + * it to be set to a value that was not defined by the enum at the time the code + * was generated. + **/ +void SetProtosBluetoothDevice_Type_RawValue(ProtosBluetoothDevice *message, int32_t value); + +#pragma mark - ProtosBluetoothService + +typedef GPB_ENUM(ProtosBluetoothService_FieldNumber) { + ProtosBluetoothService_FieldNumber_Uuid = 1, + ProtosBluetoothService_FieldNumber_RemoteId = 2, + ProtosBluetoothService_FieldNumber_IsPrimary = 3, + ProtosBluetoothService_FieldNumber_CharacteristicsArray = 4, + ProtosBluetoothService_FieldNumber_IncludedServicesArray = 5, +}; + +@interface ProtosBluetoothService : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *uuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +/** Indicates whether the type of service is primary or secondary. */ +@property(nonatomic, readwrite) BOOL isPrimary; + +/** A list of characteristics that have been discovered in this service. */ +@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *characteristicsArray; +/** The number of items in @c characteristicsArray without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger characteristicsArray_Count; + +/** A list of included services that have been discovered in this service. */ +@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *includedServicesArray; +/** The number of items in @c includedServicesArray without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger includedServicesArray_Count; + +@end + +#pragma mark - ProtosBluetoothCharacteristic + +typedef GPB_ENUM(ProtosBluetoothCharacteristic_FieldNumber) { + ProtosBluetoothCharacteristic_FieldNumber_Uuid = 1, + ProtosBluetoothCharacteristic_FieldNumber_RemoteId = 2, + ProtosBluetoothCharacteristic_FieldNumber_ServiceUuid = 3, + ProtosBluetoothCharacteristic_FieldNumber_SecondaryServiceUuid = 4, + ProtosBluetoothCharacteristic_FieldNumber_DescriptorsArray = 5, + ProtosBluetoothCharacteristic_FieldNumber_Properties = 6, + ProtosBluetoothCharacteristic_FieldNumber_Value = 7, +}; + +@interface ProtosBluetoothCharacteristic : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *uuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +/** The service that this characteristic belongs to. */ +@property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid; + +/** The secondary service if nested */ +@property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid; + +/** A list of descriptors that have been discovered in this characteristic. */ +@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *descriptorsArray; +/** The number of items in @c descriptorsArray without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger descriptorsArray_Count; + +/** The properties of the characteristic. */ +@property(nonatomic, readwrite, strong, null_resettable) ProtosCharacteristicProperties *properties; +/** Test to see if @c properties has been set. */ +@property(nonatomic, readwrite) BOOL hasProperties; + +@property(nonatomic, readwrite, copy, null_resettable) NSData *value; + +@end + +#pragma mark - ProtosBluetoothDescriptor + +typedef GPB_ENUM(ProtosBluetoothDescriptor_FieldNumber) { + ProtosBluetoothDescriptor_FieldNumber_Uuid = 1, + ProtosBluetoothDescriptor_FieldNumber_RemoteId = 2, + ProtosBluetoothDescriptor_FieldNumber_ServiceUuid = 3, + ProtosBluetoothDescriptor_FieldNumber_CharacteristicUuid = 4, + ProtosBluetoothDescriptor_FieldNumber_Value = 5, +}; + +@interface ProtosBluetoothDescriptor : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *uuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +/** The service that this descriptor belongs to. */ +@property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid; + +/** The characteristic that this descriptor belongs to. */ +@property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSData *value; + +@end + +#pragma mark - ProtosCharacteristicProperties + +typedef GPB_ENUM(ProtosCharacteristicProperties_FieldNumber) { + ProtosCharacteristicProperties_FieldNumber_Broadcast = 1, + ProtosCharacteristicProperties_FieldNumber_Read = 2, + ProtosCharacteristicProperties_FieldNumber_WriteWithoutResponse = 3, + ProtosCharacteristicProperties_FieldNumber_Write = 4, + ProtosCharacteristicProperties_FieldNumber_Notify = 5, + ProtosCharacteristicProperties_FieldNumber_Indicate = 6, + ProtosCharacteristicProperties_FieldNumber_AuthenticatedSignedWrites = 7, + ProtosCharacteristicProperties_FieldNumber_ExtendedProperties = 8, + ProtosCharacteristicProperties_FieldNumber_NotifyEncryptionRequired = 9, + ProtosCharacteristicProperties_FieldNumber_IndicateEncryptionRequired = 10, +}; + +@interface ProtosCharacteristicProperties : GPBMessage + +@property(nonatomic, readwrite) BOOL broadcast; + +@property(nonatomic, readwrite) BOOL read; + +@property(nonatomic, readwrite) BOOL writeWithoutResponse; + +@property(nonatomic, readwrite) BOOL write; + +@property(nonatomic, readwrite) BOOL notify; + +@property(nonatomic, readwrite) BOOL indicate; + +@property(nonatomic, readwrite) BOOL authenticatedSignedWrites; + +@property(nonatomic, readwrite) BOOL extendedProperties; + +@property(nonatomic, readwrite) BOOL notifyEncryptionRequired; + +@property(nonatomic, readwrite) BOOL indicateEncryptionRequired; + +@end + +#pragma mark - ProtosDiscoverServicesResult + +typedef GPB_ENUM(ProtosDiscoverServicesResult_FieldNumber) { + ProtosDiscoverServicesResult_FieldNumber_RemoteId = 1, + ProtosDiscoverServicesResult_FieldNumber_ServicesArray = 2, +}; + +@interface ProtosDiscoverServicesResult : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *servicesArray; +/** The number of items in @c servicesArray without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger servicesArray_Count; + +@end + +#pragma mark - ProtosReadCharacteristicRequest + +typedef GPB_ENUM(ProtosReadCharacteristicRequest_FieldNumber) { + ProtosReadCharacteristicRequest_FieldNumber_RemoteId = 1, + ProtosReadCharacteristicRequest_FieldNumber_CharacteristicUuid = 2, + ProtosReadCharacteristicRequest_FieldNumber_ServiceUuid = 3, + ProtosReadCharacteristicRequest_FieldNumber_SecondaryServiceUuid = 4, +}; + +@interface ProtosReadCharacteristicRequest : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid; + +@end + +#pragma mark - ProtosReadCharacteristicResponse + +typedef GPB_ENUM(ProtosReadCharacteristicResponse_FieldNumber) { + ProtosReadCharacteristicResponse_FieldNumber_RemoteId = 1, + ProtosReadCharacteristicResponse_FieldNumber_Characteristic = 2, +}; + +@interface ProtosReadCharacteristicResponse : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, strong, null_resettable) ProtosBluetoothCharacteristic *characteristic; +/** Test to see if @c characteristic has been set. */ +@property(nonatomic, readwrite) BOOL hasCharacteristic; + +@end + +#pragma mark - ProtosReadDescriptorRequest + +typedef GPB_ENUM(ProtosReadDescriptorRequest_FieldNumber) { + ProtosReadDescriptorRequest_FieldNumber_RemoteId = 1, + ProtosReadDescriptorRequest_FieldNumber_DescriptorUuid = 2, + ProtosReadDescriptorRequest_FieldNumber_ServiceUuid = 3, + ProtosReadDescriptorRequest_FieldNumber_SecondaryServiceUuid = 4, + ProtosReadDescriptorRequest_FieldNumber_CharacteristicUuid = 5, +}; + +@interface ProtosReadDescriptorRequest : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *descriptorUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid; + +@end + +#pragma mark - ProtosReadDescriptorResponse + +typedef GPB_ENUM(ProtosReadDescriptorResponse_FieldNumber) { + ProtosReadDescriptorResponse_FieldNumber_Request = 1, + ProtosReadDescriptorResponse_FieldNumber_Value = 2, +}; + +@interface ProtosReadDescriptorResponse : GPBMessage + +@property(nonatomic, readwrite, strong, null_resettable) ProtosReadDescriptorRequest *request; +/** Test to see if @c request has been set. */ +@property(nonatomic, readwrite) BOOL hasRequest; + +@property(nonatomic, readwrite, copy, null_resettable) NSData *value; + +@end + +#pragma mark - ProtosWriteCharacteristicRequest + +typedef GPB_ENUM(ProtosWriteCharacteristicRequest_FieldNumber) { + ProtosWriteCharacteristicRequest_FieldNumber_RemoteId = 1, + ProtosWriteCharacteristicRequest_FieldNumber_CharacteristicUuid = 2, + ProtosWriteCharacteristicRequest_FieldNumber_ServiceUuid = 3, + ProtosWriteCharacteristicRequest_FieldNumber_SecondaryServiceUuid = 4, + ProtosWriteCharacteristicRequest_FieldNumber_WriteType = 5, + ProtosWriteCharacteristicRequest_FieldNumber_Value = 6, +}; + +@interface ProtosWriteCharacteristicRequest : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid; + +@property(nonatomic, readwrite) ProtosWriteCharacteristicRequest_WriteType writeType; + +@property(nonatomic, readwrite, copy, null_resettable) NSData *value; + +@end + +/** + * Fetches the raw value of a @c ProtosWriteCharacteristicRequest's @c writeType property, even + * if the value was not defined by the enum at the time the code was generated. + **/ +int32_t ProtosWriteCharacteristicRequest_WriteType_RawValue(ProtosWriteCharacteristicRequest *message); +/** + * Sets the raw value of an @c ProtosWriteCharacteristicRequest's @c writeType property, allowing + * it to be set to a value that was not defined by the enum at the time the code + * was generated. + **/ +void SetProtosWriteCharacteristicRequest_WriteType_RawValue(ProtosWriteCharacteristicRequest *message, int32_t value); + +#pragma mark - ProtosWriteCharacteristicResponse + +typedef GPB_ENUM(ProtosWriteCharacteristicResponse_FieldNumber) { + ProtosWriteCharacteristicResponse_FieldNumber_Request = 1, + ProtosWriteCharacteristicResponse_FieldNumber_Success = 2, +}; + +@interface ProtosWriteCharacteristicResponse : GPBMessage + +@property(nonatomic, readwrite, strong, null_resettable) ProtosWriteCharacteristicRequest *request; +/** Test to see if @c request has been set. */ +@property(nonatomic, readwrite) BOOL hasRequest; + +@property(nonatomic, readwrite) BOOL success; + +@end + +#pragma mark - ProtosWriteDescriptorRequest + +typedef GPB_ENUM(ProtosWriteDescriptorRequest_FieldNumber) { + ProtosWriteDescriptorRequest_FieldNumber_RemoteId = 1, + ProtosWriteDescriptorRequest_FieldNumber_DescriptorUuid = 2, + ProtosWriteDescriptorRequest_FieldNumber_ServiceUuid = 3, + ProtosWriteDescriptorRequest_FieldNumber_SecondaryServiceUuid = 4, + ProtosWriteDescriptorRequest_FieldNumber_CharacteristicUuid = 5, + ProtosWriteDescriptorRequest_FieldNumber_Value = 6, +}; + +@interface ProtosWriteDescriptorRequest : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *descriptorUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSData *value; + +@end + +#pragma mark - ProtosWriteDescriptorResponse + +typedef GPB_ENUM(ProtosWriteDescriptorResponse_FieldNumber) { + ProtosWriteDescriptorResponse_FieldNumber_Request = 1, + ProtosWriteDescriptorResponse_FieldNumber_Success = 2, +}; + +@interface ProtosWriteDescriptorResponse : GPBMessage + +@property(nonatomic, readwrite, strong, null_resettable) ProtosWriteDescriptorRequest *request; +/** Test to see if @c request has been set. */ +@property(nonatomic, readwrite) BOOL hasRequest; + +@property(nonatomic, readwrite) BOOL success; + +@end + +#pragma mark - ProtosSetNotificationRequest + +typedef GPB_ENUM(ProtosSetNotificationRequest_FieldNumber) { + ProtosSetNotificationRequest_FieldNumber_RemoteId = 1, + ProtosSetNotificationRequest_FieldNumber_ServiceUuid = 2, + ProtosSetNotificationRequest_FieldNumber_SecondaryServiceUuid = 3, + ProtosSetNotificationRequest_FieldNumber_CharacteristicUuid = 4, + ProtosSetNotificationRequest_FieldNumber_Enable = 5, +}; + +@interface ProtosSetNotificationRequest : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *serviceUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *secondaryServiceUuid; + +@property(nonatomic, readwrite, copy, null_resettable) NSString *characteristicUuid; + +@property(nonatomic, readwrite) BOOL enable; + +@end + +#pragma mark - ProtosSetNotificationResponse + +typedef GPB_ENUM(ProtosSetNotificationResponse_FieldNumber) { + ProtosSetNotificationResponse_FieldNumber_RemoteId = 1, + ProtosSetNotificationResponse_FieldNumber_Characteristic = 2, + ProtosSetNotificationResponse_FieldNumber_Success = 3, +}; + +@interface ProtosSetNotificationResponse : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, strong, null_resettable) ProtosBluetoothCharacteristic *characteristic; +/** Test to see if @c characteristic has been set. */ +@property(nonatomic, readwrite) BOOL hasCharacteristic; + +@property(nonatomic, readwrite) BOOL success; + +@end + +#pragma mark - ProtosOnCharacteristicChanged + +typedef GPB_ENUM(ProtosOnCharacteristicChanged_FieldNumber) { + ProtosOnCharacteristicChanged_FieldNumber_RemoteId = 1, + ProtosOnCharacteristicChanged_FieldNumber_Characteristic = 2, +}; + +@interface ProtosOnCharacteristicChanged : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite, strong, null_resettable) ProtosBluetoothCharacteristic *characteristic; +/** Test to see if @c characteristic has been set. */ +@property(nonatomic, readwrite) BOOL hasCharacteristic; + +@end + +#pragma mark - ProtosDeviceStateResponse + +typedef GPB_ENUM(ProtosDeviceStateResponse_FieldNumber) { + ProtosDeviceStateResponse_FieldNumber_RemoteId = 1, + ProtosDeviceStateResponse_FieldNumber_State = 2, +}; + +@interface ProtosDeviceStateResponse : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite) ProtosDeviceStateResponse_BluetoothDeviceState state; + +@end + +/** + * Fetches the raw value of a @c ProtosDeviceStateResponse's @c state property, even + * if the value was not defined by the enum at the time the code was generated. + **/ +int32_t ProtosDeviceStateResponse_State_RawValue(ProtosDeviceStateResponse *message); +/** + * Sets the raw value of an @c ProtosDeviceStateResponse's @c state property, allowing + * it to be set to a value that was not defined by the enum at the time the code + * was generated. + **/ +void SetProtosDeviceStateResponse_State_RawValue(ProtosDeviceStateResponse *message, int32_t value); + +#pragma mark - ProtosConnectedDevicesResponse + +typedef GPB_ENUM(ProtosConnectedDevicesResponse_FieldNumber) { + ProtosConnectedDevicesResponse_FieldNumber_DevicesArray = 1, +}; + +@interface ProtosConnectedDevicesResponse : GPBMessage + +@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *devicesArray; +/** The number of items in @c devicesArray without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger devicesArray_Count; + +@end + +#pragma mark - ProtosMtuSizeRequest + +typedef GPB_ENUM(ProtosMtuSizeRequest_FieldNumber) { + ProtosMtuSizeRequest_FieldNumber_RemoteId = 1, + ProtosMtuSizeRequest_FieldNumber_Mtu = 2, +}; + +@interface ProtosMtuSizeRequest : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite) uint32_t mtu; + +@end + +#pragma mark - ProtosMtuSizeResponse + +typedef GPB_ENUM(ProtosMtuSizeResponse_FieldNumber) { + ProtosMtuSizeResponse_FieldNumber_RemoteId = 1, + ProtosMtuSizeResponse_FieldNumber_Mtu = 2, +}; + +@interface ProtosMtuSizeResponse : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@property(nonatomic, readwrite) uint32_t mtu; + +@end + +#pragma mark - ProtosIsReadyToSendWriteWithoutResponse + +typedef GPB_ENUM(ProtosIsReadyToSendWriteWithoutResponse_FieldNumber) { + ProtosIsReadyToSendWriteWithoutResponse_FieldNumber_RemoteId = 1, +}; + +@interface ProtosIsReadyToSendWriteWithoutResponse : GPBMessage + +@property(nonatomic, readwrite, copy, null_resettable) NSString *remoteId; + +@end + +NS_ASSUME_NONNULL_END + +CF_EXTERN_C_END + +#pragma clang diagnostic pop + +// @@protoc_insertion_point(global_scope) diff --git a/protos/Flutterblue.pbobjc.m b/protos/Flutterblue.pbobjc.m new file mode 100644 index 00000000..d2c35307 --- /dev/null +++ b/protos/Flutterblue.pbobjc.m @@ -0,0 +1,2248 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flutterblue.proto + +// This CPP symbol can be defined to use imports that match up to the framework +// imports needed when using CocoaPods. +#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) + #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0 +#endif + +#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS + #import +#else + #import "GPBProtocolBuffers_RuntimeSupport.h" +#endif + +#import + +#import "Flutterblue.pbobjc.h" +// @@protoc_insertion_point(imports) + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + +#pragma mark - ProtosFlutterblueRoot + +@implementation ProtosFlutterblueRoot + +// No extensions in the file and no imports, so no need to generate +// +extensionRegistry. + +@end + +#pragma mark - ProtosFlutterblueRoot_FileDescriptor + +static GPBFileDescriptor *ProtosFlutterblueRoot_FileDescriptor(void) { + // This is called by +initialize so there is no need to worry + // about thread safety of the singleton. + static GPBFileDescriptor *descriptor = NULL; + if (!descriptor) { + GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); + descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"" + objcPrefix:@"Protos" + syntax:GPBFileSyntaxProto3]; + } + return descriptor; +} + +#pragma mark - ProtosInt32Value + +@implementation ProtosInt32Value + +@dynamic value; + +typedef struct ProtosInt32Value__storage_ { + uint32_t _has_storage_[1]; + int32_t value; +} ProtosInt32Value__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "value", + .dataTypeSpecific.className = NULL, + .number = ProtosInt32Value_FieldNumber_Value, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosInt32Value__storage_, value), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeInt32, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosInt32Value class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosInt32Value__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosBluetoothState + +@implementation ProtosBluetoothState + +@dynamic state; + +typedef struct ProtosBluetoothState__storage_ { + uint32_t _has_storage_[1]; + ProtosBluetoothState_State state; +} ProtosBluetoothState__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "state", + .dataTypeSpecific.enumDescFunc = ProtosBluetoothState_State_EnumDescriptor, + .number = ProtosBluetoothState_FieldNumber_State, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosBluetoothState__storage_, state), + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor), + .dataType = GPBDataTypeEnum, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosBluetoothState class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosBluetoothState__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +int32_t ProtosBluetoothState_State_RawValue(ProtosBluetoothState *message) { + GPBDescriptor *descriptor = [ProtosBluetoothState descriptor]; + GPBFieldDescriptor *field = [descriptor fieldWithNumber:ProtosBluetoothState_FieldNumber_State]; + return GPBGetMessageInt32Field(message, field); +} + +void SetProtosBluetoothState_State_RawValue(ProtosBluetoothState *message, int32_t value) { + GPBDescriptor *descriptor = [ProtosBluetoothState descriptor]; + GPBFieldDescriptor *field = [descriptor fieldWithNumber:ProtosBluetoothState_FieldNumber_State]; + GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax); +} + +#pragma mark - Enum ProtosBluetoothState_State + +GPBEnumDescriptor *ProtosBluetoothState_State_EnumDescriptor(void) { + static _Atomic(GPBEnumDescriptor*) descriptor = nil; + if (!descriptor) { + static const char *valueNames = + "Unknown\000Unavailable\000Unauthorized\000Turning" + "On\000On\000TurningOff\000Off\000"; + static const int32_t values[] = { + ProtosBluetoothState_State_Unknown, + ProtosBluetoothState_State_Unavailable, + ProtosBluetoothState_State_Unauthorized, + ProtosBluetoothState_State_TurningOn, + ProtosBluetoothState_State_On, + ProtosBluetoothState_State_TurningOff, + ProtosBluetoothState_State_Off, + }; + GPBEnumDescriptor *worker = + [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(ProtosBluetoothState_State) + valueNames:valueNames + values:values + count:(uint32_t)(sizeof(values) / sizeof(int32_t)) + enumVerifier:ProtosBluetoothState_State_IsValidValue]; + GPBEnumDescriptor *expected = nil; + if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + [worker release]; + } + } + return descriptor; +} + +BOOL ProtosBluetoothState_State_IsValidValue(int32_t value__) { + switch (value__) { + case ProtosBluetoothState_State_Unknown: + case ProtosBluetoothState_State_Unavailable: + case ProtosBluetoothState_State_Unauthorized: + case ProtosBluetoothState_State_TurningOn: + case ProtosBluetoothState_State_On: + case ProtosBluetoothState_State_TurningOff: + case ProtosBluetoothState_State_Off: + return YES; + default: + return NO; + } +} + +#pragma mark - ProtosAdvertisementData + +@implementation ProtosAdvertisementData + +@dynamic localName; +@dynamic hasTxPowerLevel, txPowerLevel; +@dynamic connectable; +@dynamic manufacturerData, manufacturerData_Count; +@dynamic serviceData, serviceData_Count; +@dynamic serviceUuidsArray, serviceUuidsArray_Count; + +typedef struct ProtosAdvertisementData__storage_ { + uint32_t _has_storage_[1]; + NSString *localName; + ProtosInt32Value *txPowerLevel; + GPBInt32ObjectDictionary *manufacturerData; + NSMutableDictionary *serviceData; + NSMutableArray *serviceUuidsArray; +} ProtosAdvertisementData__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "localName", + .dataTypeSpecific.className = NULL, + .number = ProtosAdvertisementData_FieldNumber_LocalName, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosAdvertisementData__storage_, localName), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "txPowerLevel", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosInt32Value), + .number = ProtosAdvertisementData_FieldNumber_TxPowerLevel, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosAdvertisementData__storage_, txPowerLevel), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + { + .name = "connectable", + .dataTypeSpecific.className = NULL, + .number = ProtosAdvertisementData_FieldNumber_Connectable, + .hasIndex = 2, + .offset = 3, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "manufacturerData", + .dataTypeSpecific.className = NULL, + .number = ProtosAdvertisementData_FieldNumber_ManufacturerData, + .hasIndex = GPBNoHasBit, + .offset = (uint32_t)offsetof(ProtosAdvertisementData__storage_, manufacturerData), + .flags = GPBFieldMapKeyInt32, + .dataType = GPBDataTypeBytes, + }, + { + .name = "serviceData", + .dataTypeSpecific.className = NULL, + .number = ProtosAdvertisementData_FieldNumber_ServiceData, + .hasIndex = GPBNoHasBit, + .offset = (uint32_t)offsetof(ProtosAdvertisementData__storage_, serviceData), + .flags = GPBFieldMapKeyString, + .dataType = GPBDataTypeBytes, + }, + { + .name = "serviceUuidsArray", + .dataTypeSpecific.className = NULL, + .number = ProtosAdvertisementData_FieldNumber_ServiceUuidsArray, + .hasIndex = GPBNoHasBit, + .offset = (uint32_t)offsetof(ProtosAdvertisementData__storage_, serviceUuidsArray), + .flags = GPBFieldRepeated, + .dataType = GPBDataTypeString, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosAdvertisementData class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosAdvertisementData__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosScanSettings + +@implementation ProtosScanSettings + +@dynamic androidScanMode; +@dynamic serviceUuidsArray, serviceUuidsArray_Count; +@dynamic allowDuplicates; + +typedef struct ProtosScanSettings__storage_ { + uint32_t _has_storage_[1]; + int32_t androidScanMode; + NSMutableArray *serviceUuidsArray; +} ProtosScanSettings__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "androidScanMode", + .dataTypeSpecific.className = NULL, + .number = ProtosScanSettings_FieldNumber_AndroidScanMode, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosScanSettings__storage_, androidScanMode), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeInt32, + }, + { + .name = "serviceUuidsArray", + .dataTypeSpecific.className = NULL, + .number = ProtosScanSettings_FieldNumber_ServiceUuidsArray, + .hasIndex = GPBNoHasBit, + .offset = (uint32_t)offsetof(ProtosScanSettings__storage_, serviceUuidsArray), + .flags = GPBFieldRepeated, + .dataType = GPBDataTypeString, + }, + { + .name = "allowDuplicates", + .dataTypeSpecific.className = NULL, + .number = ProtosScanSettings_FieldNumber_AllowDuplicates, + .hasIndex = 1, + .offset = 2, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosScanSettings class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosScanSettings__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosScanResult + +@implementation ProtosScanResult + +@dynamic hasDevice, device; +@dynamic hasAdvertisementData, advertisementData; +@dynamic rssi; + +typedef struct ProtosScanResult__storage_ { + uint32_t _has_storage_[1]; + int32_t rssi; + ProtosBluetoothDevice *device; + ProtosAdvertisementData *advertisementData; +} ProtosScanResult__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "device", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosBluetoothDevice), + .number = ProtosScanResult_FieldNumber_Device, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosScanResult__storage_, device), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + { + .name = "advertisementData", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosAdvertisementData), + .number = ProtosScanResult_FieldNumber_AdvertisementData, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosScanResult__storage_, advertisementData), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + { + .name = "rssi", + .dataTypeSpecific.className = NULL, + .number = ProtosScanResult_FieldNumber_Rssi, + .hasIndex = 2, + .offset = (uint32_t)offsetof(ProtosScanResult__storage_, rssi), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeInt32, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosScanResult class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosScanResult__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosConnectRequest + +@implementation ProtosConnectRequest + +@dynamic remoteId; +@dynamic androidAutoConnect; + +typedef struct ProtosConnectRequest__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; +} ProtosConnectRequest__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosConnectRequest_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosConnectRequest__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "androidAutoConnect", + .dataTypeSpecific.className = NULL, + .number = ProtosConnectRequest_FieldNumber_AndroidAutoConnect, + .hasIndex = 1, + .offset = 2, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosConnectRequest class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosConnectRequest__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosBluetoothDevice + +@implementation ProtosBluetoothDevice + +@dynamic remoteId; +@dynamic name; +@dynamic type; + +typedef struct ProtosBluetoothDevice__storage_ { + uint32_t _has_storage_[1]; + ProtosBluetoothDevice_Type type; + NSString *remoteId; + NSString *name; +} ProtosBluetoothDevice__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothDevice_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosBluetoothDevice__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "name", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothDevice_FieldNumber_Name, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosBluetoothDevice__storage_, name), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "type", + .dataTypeSpecific.enumDescFunc = ProtosBluetoothDevice_Type_EnumDescriptor, + .number = ProtosBluetoothDevice_FieldNumber_Type, + .hasIndex = 2, + .offset = (uint32_t)offsetof(ProtosBluetoothDevice__storage_, type), + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor), + .dataType = GPBDataTypeEnum, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosBluetoothDevice class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosBluetoothDevice__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +int32_t ProtosBluetoothDevice_Type_RawValue(ProtosBluetoothDevice *message) { + GPBDescriptor *descriptor = [ProtosBluetoothDevice descriptor]; + GPBFieldDescriptor *field = [descriptor fieldWithNumber:ProtosBluetoothDevice_FieldNumber_Type]; + return GPBGetMessageInt32Field(message, field); +} + +void SetProtosBluetoothDevice_Type_RawValue(ProtosBluetoothDevice *message, int32_t value) { + GPBDescriptor *descriptor = [ProtosBluetoothDevice descriptor]; + GPBFieldDescriptor *field = [descriptor fieldWithNumber:ProtosBluetoothDevice_FieldNumber_Type]; + GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax); +} + +#pragma mark - Enum ProtosBluetoothDevice_Type + +GPBEnumDescriptor *ProtosBluetoothDevice_Type_EnumDescriptor(void) { + static _Atomic(GPBEnumDescriptor*) descriptor = nil; + if (!descriptor) { + static const char *valueNames = + "Unknown\000Classic\000Le\000Dual\000"; + static const int32_t values[] = { + ProtosBluetoothDevice_Type_Unknown, + ProtosBluetoothDevice_Type_Classic, + ProtosBluetoothDevice_Type_Le, + ProtosBluetoothDevice_Type_Dual, + }; + GPBEnumDescriptor *worker = + [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(ProtosBluetoothDevice_Type) + valueNames:valueNames + values:values + count:(uint32_t)(sizeof(values) / sizeof(int32_t)) + enumVerifier:ProtosBluetoothDevice_Type_IsValidValue]; + GPBEnumDescriptor *expected = nil; + if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + [worker release]; + } + } + return descriptor; +} + +BOOL ProtosBluetoothDevice_Type_IsValidValue(int32_t value__) { + switch (value__) { + case ProtosBluetoothDevice_Type_Unknown: + case ProtosBluetoothDevice_Type_Classic: + case ProtosBluetoothDevice_Type_Le: + case ProtosBluetoothDevice_Type_Dual: + return YES; + default: + return NO; + } +} + +#pragma mark - ProtosBluetoothService + +@implementation ProtosBluetoothService + +@dynamic uuid; +@dynamic remoteId; +@dynamic isPrimary; +@dynamic characteristicsArray, characteristicsArray_Count; +@dynamic includedServicesArray, includedServicesArray_Count; + +typedef struct ProtosBluetoothService__storage_ { + uint32_t _has_storage_[1]; + NSString *uuid; + NSString *remoteId; + NSMutableArray *characteristicsArray; + NSMutableArray *includedServicesArray; +} ProtosBluetoothService__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "uuid", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothService_FieldNumber_Uuid, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosBluetoothService__storage_, uuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothService_FieldNumber_RemoteId, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosBluetoothService__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "isPrimary", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothService_FieldNumber_IsPrimary, + .hasIndex = 2, + .offset = 3, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "characteristicsArray", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosBluetoothCharacteristic), + .number = ProtosBluetoothService_FieldNumber_CharacteristicsArray, + .hasIndex = GPBNoHasBit, + .offset = (uint32_t)offsetof(ProtosBluetoothService__storage_, characteristicsArray), + .flags = GPBFieldRepeated, + .dataType = GPBDataTypeMessage, + }, + { + .name = "includedServicesArray", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosBluetoothService), + .number = ProtosBluetoothService_FieldNumber_IncludedServicesArray, + .hasIndex = GPBNoHasBit, + .offset = (uint32_t)offsetof(ProtosBluetoothService__storage_, includedServicesArray), + .flags = GPBFieldRepeated, + .dataType = GPBDataTypeMessage, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosBluetoothService class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosBluetoothService__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosBluetoothCharacteristic + +@implementation ProtosBluetoothCharacteristic + +@dynamic uuid; +@dynamic remoteId; +@dynamic serviceUuid; +@dynamic secondaryServiceUuid; +@dynamic descriptorsArray, descriptorsArray_Count; +@dynamic hasProperties, properties; +@dynamic value; + +typedef struct ProtosBluetoothCharacteristic__storage_ { + uint32_t _has_storage_[1]; + NSString *uuid; + NSString *remoteId; + NSString *serviceUuid; + NSString *secondaryServiceUuid; + NSMutableArray *descriptorsArray; + ProtosCharacteristicProperties *properties; + NSData *value; +} ProtosBluetoothCharacteristic__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "uuid", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothCharacteristic_FieldNumber_Uuid, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosBluetoothCharacteristic__storage_, uuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothCharacteristic_FieldNumber_RemoteId, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosBluetoothCharacteristic__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "serviceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothCharacteristic_FieldNumber_ServiceUuid, + .hasIndex = 2, + .offset = (uint32_t)offsetof(ProtosBluetoothCharacteristic__storage_, serviceUuid), + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom), + .dataType = GPBDataTypeString, + }, + { + .name = "secondaryServiceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothCharacteristic_FieldNumber_SecondaryServiceUuid, + .hasIndex = 3, + .offset = (uint32_t)offsetof(ProtosBluetoothCharacteristic__storage_, secondaryServiceUuid), + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom), + .dataType = GPBDataTypeString, + }, + { + .name = "descriptorsArray", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosBluetoothDescriptor), + .number = ProtosBluetoothCharacteristic_FieldNumber_DescriptorsArray, + .hasIndex = GPBNoHasBit, + .offset = (uint32_t)offsetof(ProtosBluetoothCharacteristic__storage_, descriptorsArray), + .flags = GPBFieldRepeated, + .dataType = GPBDataTypeMessage, + }, + { + .name = "properties", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosCharacteristicProperties), + .number = ProtosBluetoothCharacteristic_FieldNumber_Properties, + .hasIndex = 4, + .offset = (uint32_t)offsetof(ProtosBluetoothCharacteristic__storage_, properties), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + { + .name = "value", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothCharacteristic_FieldNumber_Value, + .hasIndex = 5, + .offset = (uint32_t)offsetof(ProtosBluetoothCharacteristic__storage_, value), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBytes, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosBluetoothCharacteristic class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosBluetoothCharacteristic__storage_) + flags:GPBDescriptorInitializationFlag_None]; +#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS + static const char *extraTextFormatInfo = + "\002\003\013\000\004\024\000"; + [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; +#endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosBluetoothDescriptor + +@implementation ProtosBluetoothDescriptor + +@dynamic uuid; +@dynamic remoteId; +@dynamic serviceUuid; +@dynamic characteristicUuid; +@dynamic value; + +typedef struct ProtosBluetoothDescriptor__storage_ { + uint32_t _has_storage_[1]; + NSString *uuid; + NSString *remoteId; + NSString *serviceUuid; + NSString *characteristicUuid; + NSData *value; +} ProtosBluetoothDescriptor__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "uuid", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothDescriptor_FieldNumber_Uuid, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosBluetoothDescriptor__storage_, uuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothDescriptor_FieldNumber_RemoteId, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosBluetoothDescriptor__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "serviceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothDescriptor_FieldNumber_ServiceUuid, + .hasIndex = 2, + .offset = (uint32_t)offsetof(ProtosBluetoothDescriptor__storage_, serviceUuid), + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom), + .dataType = GPBDataTypeString, + }, + { + .name = "characteristicUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothDescriptor_FieldNumber_CharacteristicUuid, + .hasIndex = 3, + .offset = (uint32_t)offsetof(ProtosBluetoothDescriptor__storage_, characteristicUuid), + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom), + .dataType = GPBDataTypeString, + }, + { + .name = "value", + .dataTypeSpecific.className = NULL, + .number = ProtosBluetoothDescriptor_FieldNumber_Value, + .hasIndex = 4, + .offset = (uint32_t)offsetof(ProtosBluetoothDescriptor__storage_, value), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBytes, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosBluetoothDescriptor class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosBluetoothDescriptor__storage_) + flags:GPBDescriptorInitializationFlag_None]; +#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS + static const char *extraTextFormatInfo = + "\002\003\013\000\004\022\000"; + [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; +#endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosCharacteristicProperties + +@implementation ProtosCharacteristicProperties + +@dynamic broadcast; +@dynamic read; +@dynamic writeWithoutResponse; +@dynamic write; +@dynamic notify; +@dynamic indicate; +@dynamic authenticatedSignedWrites; +@dynamic extendedProperties; +@dynamic notifyEncryptionRequired; +@dynamic indicateEncryptionRequired; + +typedef struct ProtosCharacteristicProperties__storage_ { + uint32_t _has_storage_[1]; +} ProtosCharacteristicProperties__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "broadcast", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_Broadcast, + .hasIndex = 0, + .offset = 1, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "read", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_Read, + .hasIndex = 2, + .offset = 3, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "writeWithoutResponse", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_WriteWithoutResponse, + .hasIndex = 4, + .offset = 5, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "write", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_Write, + .hasIndex = 6, + .offset = 7, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "notify", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_Notify, + .hasIndex = 8, + .offset = 9, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "indicate", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_Indicate, + .hasIndex = 10, + .offset = 11, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "authenticatedSignedWrites", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_AuthenticatedSignedWrites, + .hasIndex = 12, + .offset = 13, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "extendedProperties", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_ExtendedProperties, + .hasIndex = 14, + .offset = 15, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "notifyEncryptionRequired", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_NotifyEncryptionRequired, + .hasIndex = 16, + .offset = 17, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + { + .name = "indicateEncryptionRequired", + .dataTypeSpecific.className = NULL, + .number = ProtosCharacteristicProperties_FieldNumber_IndicateEncryptionRequired, + .hasIndex = 18, + .offset = 19, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosCharacteristicProperties class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosCharacteristicProperties__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosDiscoverServicesResult + +@implementation ProtosDiscoverServicesResult + +@dynamic remoteId; +@dynamic servicesArray, servicesArray_Count; + +typedef struct ProtosDiscoverServicesResult__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; + NSMutableArray *servicesArray; +} ProtosDiscoverServicesResult__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosDiscoverServicesResult_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosDiscoverServicesResult__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "servicesArray", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosBluetoothService), + .number = ProtosDiscoverServicesResult_FieldNumber_ServicesArray, + .hasIndex = GPBNoHasBit, + .offset = (uint32_t)offsetof(ProtosDiscoverServicesResult__storage_, servicesArray), + .flags = GPBFieldRepeated, + .dataType = GPBDataTypeMessage, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosDiscoverServicesResult class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosDiscoverServicesResult__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosReadCharacteristicRequest + +@implementation ProtosReadCharacteristicRequest + +@dynamic remoteId; +@dynamic characteristicUuid; +@dynamic serviceUuid; +@dynamic secondaryServiceUuid; + +typedef struct ProtosReadCharacteristicRequest__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; + NSString *characteristicUuid; + NSString *serviceUuid; + NSString *secondaryServiceUuid; +} ProtosReadCharacteristicRequest__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosReadCharacteristicRequest_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosReadCharacteristicRequest__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "characteristicUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosReadCharacteristicRequest_FieldNumber_CharacteristicUuid, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosReadCharacteristicRequest__storage_, characteristicUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "serviceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosReadCharacteristicRequest_FieldNumber_ServiceUuid, + .hasIndex = 2, + .offset = (uint32_t)offsetof(ProtosReadCharacteristicRequest__storage_, serviceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "secondaryServiceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosReadCharacteristicRequest_FieldNumber_SecondaryServiceUuid, + .hasIndex = 3, + .offset = (uint32_t)offsetof(ProtosReadCharacteristicRequest__storage_, secondaryServiceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosReadCharacteristicRequest class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosReadCharacteristicRequest__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosReadCharacteristicResponse + +@implementation ProtosReadCharacteristicResponse + +@dynamic remoteId; +@dynamic hasCharacteristic, characteristic; + +typedef struct ProtosReadCharacteristicResponse__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; + ProtosBluetoothCharacteristic *characteristic; +} ProtosReadCharacteristicResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosReadCharacteristicResponse_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosReadCharacteristicResponse__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "characteristic", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosBluetoothCharacteristic), + .number = ProtosReadCharacteristicResponse_FieldNumber_Characteristic, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosReadCharacteristicResponse__storage_, characteristic), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosReadCharacteristicResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosReadCharacteristicResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosReadDescriptorRequest + +@implementation ProtosReadDescriptorRequest + +@dynamic remoteId; +@dynamic descriptorUuid; +@dynamic serviceUuid; +@dynamic secondaryServiceUuid; +@dynamic characteristicUuid; + +typedef struct ProtosReadDescriptorRequest__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; + NSString *descriptorUuid; + NSString *serviceUuid; + NSString *secondaryServiceUuid; + NSString *characteristicUuid; +} ProtosReadDescriptorRequest__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosReadDescriptorRequest_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosReadDescriptorRequest__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "descriptorUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosReadDescriptorRequest_FieldNumber_DescriptorUuid, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosReadDescriptorRequest__storage_, descriptorUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "serviceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosReadDescriptorRequest_FieldNumber_ServiceUuid, + .hasIndex = 2, + .offset = (uint32_t)offsetof(ProtosReadDescriptorRequest__storage_, serviceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "secondaryServiceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosReadDescriptorRequest_FieldNumber_SecondaryServiceUuid, + .hasIndex = 3, + .offset = (uint32_t)offsetof(ProtosReadDescriptorRequest__storage_, secondaryServiceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "characteristicUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosReadDescriptorRequest_FieldNumber_CharacteristicUuid, + .hasIndex = 4, + .offset = (uint32_t)offsetof(ProtosReadDescriptorRequest__storage_, characteristicUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosReadDescriptorRequest class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosReadDescriptorRequest__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosReadDescriptorResponse + +@implementation ProtosReadDescriptorResponse + +@dynamic hasRequest, request; +@dynamic value; + +typedef struct ProtosReadDescriptorResponse__storage_ { + uint32_t _has_storage_[1]; + ProtosReadDescriptorRequest *request; + NSData *value; +} ProtosReadDescriptorResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "request", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosReadDescriptorRequest), + .number = ProtosReadDescriptorResponse_FieldNumber_Request, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosReadDescriptorResponse__storage_, request), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + { + .name = "value", + .dataTypeSpecific.className = NULL, + .number = ProtosReadDescriptorResponse_FieldNumber_Value, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosReadDescriptorResponse__storage_, value), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBytes, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosReadDescriptorResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosReadDescriptorResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosWriteCharacteristicRequest + +@implementation ProtosWriteCharacteristicRequest + +@dynamic remoteId; +@dynamic characteristicUuid; +@dynamic serviceUuid; +@dynamic secondaryServiceUuid; +@dynamic writeType; +@dynamic value; + +typedef struct ProtosWriteCharacteristicRequest__storage_ { + uint32_t _has_storage_[1]; + ProtosWriteCharacteristicRequest_WriteType writeType; + NSString *remoteId; + NSString *characteristicUuid; + NSString *serviceUuid; + NSString *secondaryServiceUuid; + NSData *value; +} ProtosWriteCharacteristicRequest__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteCharacteristicRequest_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosWriteCharacteristicRequest__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "characteristicUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteCharacteristicRequest_FieldNumber_CharacteristicUuid, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosWriteCharacteristicRequest__storage_, characteristicUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "serviceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteCharacteristicRequest_FieldNumber_ServiceUuid, + .hasIndex = 2, + .offset = (uint32_t)offsetof(ProtosWriteCharacteristicRequest__storage_, serviceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "secondaryServiceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteCharacteristicRequest_FieldNumber_SecondaryServiceUuid, + .hasIndex = 3, + .offset = (uint32_t)offsetof(ProtosWriteCharacteristicRequest__storage_, secondaryServiceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "writeType", + .dataTypeSpecific.enumDescFunc = ProtosWriteCharacteristicRequest_WriteType_EnumDescriptor, + .number = ProtosWriteCharacteristicRequest_FieldNumber_WriteType, + .hasIndex = 4, + .offset = (uint32_t)offsetof(ProtosWriteCharacteristicRequest__storage_, writeType), + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor), + .dataType = GPBDataTypeEnum, + }, + { + .name = "value", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteCharacteristicRequest_FieldNumber_Value, + .hasIndex = 5, + .offset = (uint32_t)offsetof(ProtosWriteCharacteristicRequest__storage_, value), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBytes, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosWriteCharacteristicRequest class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosWriteCharacteristicRequest__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +int32_t ProtosWriteCharacteristicRequest_WriteType_RawValue(ProtosWriteCharacteristicRequest *message) { + GPBDescriptor *descriptor = [ProtosWriteCharacteristicRequest descriptor]; + GPBFieldDescriptor *field = [descriptor fieldWithNumber:ProtosWriteCharacteristicRequest_FieldNumber_WriteType]; + return GPBGetMessageInt32Field(message, field); +} + +void SetProtosWriteCharacteristicRequest_WriteType_RawValue(ProtosWriteCharacteristicRequest *message, int32_t value) { + GPBDescriptor *descriptor = [ProtosWriteCharacteristicRequest descriptor]; + GPBFieldDescriptor *field = [descriptor fieldWithNumber:ProtosWriteCharacteristicRequest_FieldNumber_WriteType]; + GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax); +} + +#pragma mark - Enum ProtosWriteCharacteristicRequest_WriteType + +GPBEnumDescriptor *ProtosWriteCharacteristicRequest_WriteType_EnumDescriptor(void) { + static _Atomic(GPBEnumDescriptor*) descriptor = nil; + if (!descriptor) { + static const char *valueNames = + "WithResponse\000WithoutResponse\000"; + static const int32_t values[] = { + ProtosWriteCharacteristicRequest_WriteType_WithResponse, + ProtosWriteCharacteristicRequest_WriteType_WithoutResponse, + }; + GPBEnumDescriptor *worker = + [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(ProtosWriteCharacteristicRequest_WriteType) + valueNames:valueNames + values:values + count:(uint32_t)(sizeof(values) / sizeof(int32_t)) + enumVerifier:ProtosWriteCharacteristicRequest_WriteType_IsValidValue]; + GPBEnumDescriptor *expected = nil; + if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + [worker release]; + } + } + return descriptor; +} + +BOOL ProtosWriteCharacteristicRequest_WriteType_IsValidValue(int32_t value__) { + switch (value__) { + case ProtosWriteCharacteristicRequest_WriteType_WithResponse: + case ProtosWriteCharacteristicRequest_WriteType_WithoutResponse: + return YES; + default: + return NO; + } +} + +#pragma mark - ProtosWriteCharacteristicResponse + +@implementation ProtosWriteCharacteristicResponse + +@dynamic hasRequest, request; +@dynamic success; + +typedef struct ProtosWriteCharacteristicResponse__storage_ { + uint32_t _has_storage_[1]; + ProtosWriteCharacteristicRequest *request; +} ProtosWriteCharacteristicResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "request", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosWriteCharacteristicRequest), + .number = ProtosWriteCharacteristicResponse_FieldNumber_Request, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosWriteCharacteristicResponse__storage_, request), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + { + .name = "success", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteCharacteristicResponse_FieldNumber_Success, + .hasIndex = 1, + .offset = 2, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosWriteCharacteristicResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosWriteCharacteristicResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosWriteDescriptorRequest + +@implementation ProtosWriteDescriptorRequest + +@dynamic remoteId; +@dynamic descriptorUuid; +@dynamic serviceUuid; +@dynamic secondaryServiceUuid; +@dynamic characteristicUuid; +@dynamic value; + +typedef struct ProtosWriteDescriptorRequest__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; + NSString *descriptorUuid; + NSString *serviceUuid; + NSString *secondaryServiceUuid; + NSString *characteristicUuid; + NSData *value; +} ProtosWriteDescriptorRequest__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteDescriptorRequest_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosWriteDescriptorRequest__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "descriptorUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteDescriptorRequest_FieldNumber_DescriptorUuid, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosWriteDescriptorRequest__storage_, descriptorUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "serviceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteDescriptorRequest_FieldNumber_ServiceUuid, + .hasIndex = 2, + .offset = (uint32_t)offsetof(ProtosWriteDescriptorRequest__storage_, serviceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "secondaryServiceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteDescriptorRequest_FieldNumber_SecondaryServiceUuid, + .hasIndex = 3, + .offset = (uint32_t)offsetof(ProtosWriteDescriptorRequest__storage_, secondaryServiceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "characteristicUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteDescriptorRequest_FieldNumber_CharacteristicUuid, + .hasIndex = 4, + .offset = (uint32_t)offsetof(ProtosWriteDescriptorRequest__storage_, characteristicUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "value", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteDescriptorRequest_FieldNumber_Value, + .hasIndex = 5, + .offset = (uint32_t)offsetof(ProtosWriteDescriptorRequest__storage_, value), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBytes, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosWriteDescriptorRequest class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosWriteDescriptorRequest__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosWriteDescriptorResponse + +@implementation ProtosWriteDescriptorResponse + +@dynamic hasRequest, request; +@dynamic success; + +typedef struct ProtosWriteDescriptorResponse__storage_ { + uint32_t _has_storage_[1]; + ProtosWriteDescriptorRequest *request; +} ProtosWriteDescriptorResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "request", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosWriteDescriptorRequest), + .number = ProtosWriteDescriptorResponse_FieldNumber_Request, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosWriteDescriptorResponse__storage_, request), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + { + .name = "success", + .dataTypeSpecific.className = NULL, + .number = ProtosWriteDescriptorResponse_FieldNumber_Success, + .hasIndex = 1, + .offset = 2, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosWriteDescriptorResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosWriteDescriptorResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosSetNotificationRequest + +@implementation ProtosSetNotificationRequest + +@dynamic remoteId; +@dynamic serviceUuid; +@dynamic secondaryServiceUuid; +@dynamic characteristicUuid; +@dynamic enable; + +typedef struct ProtosSetNotificationRequest__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; + NSString *serviceUuid; + NSString *secondaryServiceUuid; + NSString *characteristicUuid; +} ProtosSetNotificationRequest__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosSetNotificationRequest_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosSetNotificationRequest__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "serviceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosSetNotificationRequest_FieldNumber_ServiceUuid, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosSetNotificationRequest__storage_, serviceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "secondaryServiceUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosSetNotificationRequest_FieldNumber_SecondaryServiceUuid, + .hasIndex = 2, + .offset = (uint32_t)offsetof(ProtosSetNotificationRequest__storage_, secondaryServiceUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "characteristicUuid", + .dataTypeSpecific.className = NULL, + .number = ProtosSetNotificationRequest_FieldNumber_CharacteristicUuid, + .hasIndex = 3, + .offset = (uint32_t)offsetof(ProtosSetNotificationRequest__storage_, characteristicUuid), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "enable", + .dataTypeSpecific.className = NULL, + .number = ProtosSetNotificationRequest_FieldNumber_Enable, + .hasIndex = 4, + .offset = 5, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosSetNotificationRequest class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosSetNotificationRequest__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosSetNotificationResponse + +@implementation ProtosSetNotificationResponse + +@dynamic remoteId; +@dynamic hasCharacteristic, characteristic; +@dynamic success; + +typedef struct ProtosSetNotificationResponse__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; + ProtosBluetoothCharacteristic *characteristic; +} ProtosSetNotificationResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosSetNotificationResponse_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosSetNotificationResponse__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "characteristic", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosBluetoothCharacteristic), + .number = ProtosSetNotificationResponse_FieldNumber_Characteristic, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosSetNotificationResponse__storage_, characteristic), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + { + .name = "success", + .dataTypeSpecific.className = NULL, + .number = ProtosSetNotificationResponse_FieldNumber_Success, + .hasIndex = 2, + .offset = 3, // Stored in _has_storage_ to save space. + .flags = GPBFieldOptional, + .dataType = GPBDataTypeBool, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosSetNotificationResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosSetNotificationResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosOnCharacteristicChanged + +@implementation ProtosOnCharacteristicChanged + +@dynamic remoteId; +@dynamic hasCharacteristic, characteristic; + +typedef struct ProtosOnCharacteristicChanged__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; + ProtosBluetoothCharacteristic *characteristic; +} ProtosOnCharacteristicChanged__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosOnCharacteristicChanged_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosOnCharacteristicChanged__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "characteristic", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosBluetoothCharacteristic), + .number = ProtosOnCharacteristicChanged_FieldNumber_Characteristic, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosOnCharacteristicChanged__storage_, characteristic), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeMessage, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosOnCharacteristicChanged class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosOnCharacteristicChanged__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosDeviceStateResponse + +@implementation ProtosDeviceStateResponse + +@dynamic remoteId; +@dynamic state; + +typedef struct ProtosDeviceStateResponse__storage_ { + uint32_t _has_storage_[1]; + ProtosDeviceStateResponse_BluetoothDeviceState state; + NSString *remoteId; +} ProtosDeviceStateResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosDeviceStateResponse_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosDeviceStateResponse__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "state", + .dataTypeSpecific.enumDescFunc = ProtosDeviceStateResponse_BluetoothDeviceState_EnumDescriptor, + .number = ProtosDeviceStateResponse_FieldNumber_State, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosDeviceStateResponse__storage_, state), + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor), + .dataType = GPBDataTypeEnum, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosDeviceStateResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosDeviceStateResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +int32_t ProtosDeviceStateResponse_State_RawValue(ProtosDeviceStateResponse *message) { + GPBDescriptor *descriptor = [ProtosDeviceStateResponse descriptor]; + GPBFieldDescriptor *field = [descriptor fieldWithNumber:ProtosDeviceStateResponse_FieldNumber_State]; + return GPBGetMessageInt32Field(message, field); +} + +void SetProtosDeviceStateResponse_State_RawValue(ProtosDeviceStateResponse *message, int32_t value) { + GPBDescriptor *descriptor = [ProtosDeviceStateResponse descriptor]; + GPBFieldDescriptor *field = [descriptor fieldWithNumber:ProtosDeviceStateResponse_FieldNumber_State]; + GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax); +} + +#pragma mark - Enum ProtosDeviceStateResponse_BluetoothDeviceState + +GPBEnumDescriptor *ProtosDeviceStateResponse_BluetoothDeviceState_EnumDescriptor(void) { + static _Atomic(GPBEnumDescriptor*) descriptor = nil; + if (!descriptor) { + static const char *valueNames = + "Disconnected\000Connecting\000Connected\000Discon" + "necting\000"; + static const int32_t values[] = { + ProtosDeviceStateResponse_BluetoothDeviceState_Disconnected, + ProtosDeviceStateResponse_BluetoothDeviceState_Connecting, + ProtosDeviceStateResponse_BluetoothDeviceState_Connected, + ProtosDeviceStateResponse_BluetoothDeviceState_Disconnecting, + }; + GPBEnumDescriptor *worker = + [GPBEnumDescriptor allocDescriptorForName:GPBNSStringifySymbol(ProtosDeviceStateResponse_BluetoothDeviceState) + valueNames:valueNames + values:values + count:(uint32_t)(sizeof(values) / sizeof(int32_t)) + enumVerifier:ProtosDeviceStateResponse_BluetoothDeviceState_IsValidValue]; + GPBEnumDescriptor *expected = nil; + if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + [worker release]; + } + } + return descriptor; +} + +BOOL ProtosDeviceStateResponse_BluetoothDeviceState_IsValidValue(int32_t value__) { + switch (value__) { + case ProtosDeviceStateResponse_BluetoothDeviceState_Disconnected: + case ProtosDeviceStateResponse_BluetoothDeviceState_Connecting: + case ProtosDeviceStateResponse_BluetoothDeviceState_Connected: + case ProtosDeviceStateResponse_BluetoothDeviceState_Disconnecting: + return YES; + default: + return NO; + } +} + +#pragma mark - ProtosConnectedDevicesResponse + +@implementation ProtosConnectedDevicesResponse + +@dynamic devicesArray, devicesArray_Count; + +typedef struct ProtosConnectedDevicesResponse__storage_ { + uint32_t _has_storage_[1]; + NSMutableArray *devicesArray; +} ProtosConnectedDevicesResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "devicesArray", + .dataTypeSpecific.className = GPBStringifySymbol(ProtosBluetoothDevice), + .number = ProtosConnectedDevicesResponse_FieldNumber_DevicesArray, + .hasIndex = GPBNoHasBit, + .offset = (uint32_t)offsetof(ProtosConnectedDevicesResponse__storage_, devicesArray), + .flags = GPBFieldRepeated, + .dataType = GPBDataTypeMessage, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosConnectedDevicesResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosConnectedDevicesResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosMtuSizeRequest + +@implementation ProtosMtuSizeRequest + +@dynamic remoteId; +@dynamic mtu; + +typedef struct ProtosMtuSizeRequest__storage_ { + uint32_t _has_storage_[1]; + uint32_t mtu; + NSString *remoteId; +} ProtosMtuSizeRequest__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosMtuSizeRequest_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosMtuSizeRequest__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "mtu", + .dataTypeSpecific.className = NULL, + .number = ProtosMtuSizeRequest_FieldNumber_Mtu, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosMtuSizeRequest__storage_, mtu), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeUInt32, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosMtuSizeRequest class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosMtuSizeRequest__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosMtuSizeResponse + +@implementation ProtosMtuSizeResponse + +@dynamic remoteId; +@dynamic mtu; + +typedef struct ProtosMtuSizeResponse__storage_ { + uint32_t _has_storage_[1]; + uint32_t mtu; + NSString *remoteId; +} ProtosMtuSizeResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosMtuSizeResponse_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosMtuSizeResponse__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + { + .name = "mtu", + .dataTypeSpecific.className = NULL, + .number = ProtosMtuSizeResponse_FieldNumber_Mtu, + .hasIndex = 1, + .offset = (uint32_t)offsetof(ProtosMtuSizeResponse__storage_, mtu), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeUInt32, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosMtuSizeResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosMtuSizeResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + +#pragma mark - ProtosIsReadyToSendWriteWithoutResponse + +@implementation ProtosIsReadyToSendWriteWithoutResponse + +@dynamic remoteId; + +typedef struct ProtosIsReadyToSendWriteWithoutResponse__storage_ { + uint32_t _has_storage_[1]; + NSString *remoteId; +} ProtosIsReadyToSendWriteWithoutResponse__storage_; + +// This method is threadsafe because it is initially called +// in +initialize for each subclass. ++ (GPBDescriptor *)descriptor { + static GPBDescriptor *descriptor = nil; + if (!descriptor) { + static GPBMessageFieldDescription fields[] = { + { + .name = "remoteId", + .dataTypeSpecific.className = NULL, + .number = ProtosIsReadyToSendWriteWithoutResponse_FieldNumber_RemoteId, + .hasIndex = 0, + .offset = (uint32_t)offsetof(ProtosIsReadyToSendWriteWithoutResponse__storage_, remoteId), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeString, + }, + }; + GPBDescriptor *localDescriptor = + [GPBDescriptor allocDescriptorForClass:[ProtosIsReadyToSendWriteWithoutResponse class] + rootClass:[ProtosFlutterblueRoot class] + file:ProtosFlutterblueRoot_FileDescriptor() + fields:fields + fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) + storageSize:sizeof(ProtosIsReadyToSendWriteWithoutResponse__storage_) + flags:GPBDescriptorInitializationFlag_None]; + #if defined(DEBUG) && DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); + #endif // DEBUG + descriptor = localDescriptor; + } + return descriptor; +} + +@end + + +#pragma clang diagnostic pop + +// @@protoc_insertion_point(global_scope) diff --git a/protos/com/pauldemarco/flutter_blue/Protos.java b/protos/com/pauldemarco/flutter_blue/Protos.java new file mode 100644 index 00000000..c7c37d9e --- /dev/null +++ b/protos/com/pauldemarco/flutter_blue/Protos.java @@ -0,0 +1,27184 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flutterblue.proto + +package com.pauldemarco.flutter_blue; + +public final class Protos { + private Protos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface Int32ValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:Int32Value) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The int32 value.
+     * 
+ * + * int32 value = 1; + * @return The value. + */ + int getValue(); + } + /** + *
+   * Wrapper message for `int32`.
+   * Allows for nullability of fields in messages
+   * 
+ * + * Protobuf type {@code Int32Value} + */ + public static final class Int32Value extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Int32Value) + Int32ValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use Int32Value.newBuilder() to construct. + private Int32Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Int32Value() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Int32Value(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Int32Value( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + value_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_Int32Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_Int32Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.Int32Value.class, com.pauldemarco.flutter_blue.Protos.Int32Value.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private int value_; + /** + *
+     * The int32 value.
+     * 
+ * + * int32 value = 1; + * @return The value. + */ + public int getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (value_ != 0) { + output.writeInt32(1, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.Int32Value)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.Int32Value other = (com.pauldemarco.flutter_blue.Protos.Int32Value) obj; + + if (getValue() + != other.getValue()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.Int32Value prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Wrapper message for `int32`.
+     * Allows for nullability of fields in messages
+     * 
+ * + * Protobuf type {@code Int32Value} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Int32Value) + com.pauldemarco.flutter_blue.Protos.Int32ValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_Int32Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_Int32Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.Int32Value.class, com.pauldemarco.flutter_blue.Protos.Int32Value.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.Int32Value.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_Int32Value_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.Int32Value getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.Int32Value.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.Int32Value build() { + com.pauldemarco.flutter_blue.Protos.Int32Value result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.Int32Value buildPartial() { + com.pauldemarco.flutter_blue.Protos.Int32Value result = new com.pauldemarco.flutter_blue.Protos.Int32Value(this); + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.Int32Value) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.Int32Value)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.Int32Value other) { + if (other == com.pauldemarco.flutter_blue.Protos.Int32Value.getDefaultInstance()) return this; + if (other.getValue() != 0) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.Int32Value parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.Int32Value) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int value_ ; + /** + *
+       * The int32 value.
+       * 
+ * + * int32 value = 1; + * @return The value. + */ + public int getValue() { + return value_; + } + /** + *
+       * The int32 value.
+       * 
+ * + * int32 value = 1; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(int value) { + + value_ = value; + onChanged(); + return this; + } + /** + *
+       * The int32 value.
+       * 
+ * + * int32 value = 1; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Int32Value) + } + + // @@protoc_insertion_point(class_scope:Int32Value) + private static final com.pauldemarco.flutter_blue.Protos.Int32Value DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.Int32Value(); + } + + public static com.pauldemarco.flutter_blue.Protos.Int32Value getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Int32Value parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Int32Value(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.Int32Value getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BluetoothStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:BluetoothState) + com.google.protobuf.MessageOrBuilder { + + /** + * .BluetoothState.State state = 1; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .BluetoothState.State state = 1; + * @return The state. + */ + com.pauldemarco.flutter_blue.Protos.BluetoothState.State getState(); + } + /** + * Protobuf type {@code BluetoothState} + */ + public static final class BluetoothState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BluetoothState) + BluetoothStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use BluetoothState.newBuilder() to construct. + private BluetoothState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BluetoothState() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BluetoothState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BluetoothState( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothState.class, com.pauldemarco.flutter_blue.Protos.BluetoothState.Builder.class); + } + + /** + * Protobuf enum {@code BluetoothState.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * UNAVAILABLE = 1; + */ + UNAVAILABLE(1), + /** + * UNAUTHORIZED = 2; + */ + UNAUTHORIZED(2), + /** + * TURNING_ON = 3; + */ + TURNING_ON(3), + /** + * ON = 4; + */ + ON(4), + /** + * TURNING_OFF = 5; + */ + TURNING_OFF(5), + /** + * OFF = 6; + */ + OFF(6), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * UNAVAILABLE = 1; + */ + public static final int UNAVAILABLE_VALUE = 1; + /** + * UNAUTHORIZED = 2; + */ + public static final int UNAUTHORIZED_VALUE = 2; + /** + * TURNING_ON = 3; + */ + public static final int TURNING_ON_VALUE = 3; + /** + * ON = 4; + */ + public static final int ON_VALUE = 4; + /** + * TURNING_OFF = 5; + */ + public static final int TURNING_OFF_VALUE = 5; + /** + * OFF = 6; + */ + public static final int OFF_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return UNAVAILABLE; + case 2: return UNAUTHORIZED; + case 3: return TURNING_ON; + case 4: return ON; + case 5: return TURNING_OFF; + case 6: return OFF; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.BluetoothState.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:BluetoothState.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + * .BluetoothState.State state = 1; + * @return The enum numeric value on the wire for state. + */ + public int getStateValue() { + return state_; + } + /** + * .BluetoothState.State state = 1; + * @return The state. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothState.State getState() { + @SuppressWarnings("deprecation") + com.pauldemarco.flutter_blue.Protos.BluetoothState.State result = com.pauldemarco.flutter_blue.Protos.BluetoothState.State.valueOf(state_); + return result == null ? com.pauldemarco.flutter_blue.Protos.BluetoothState.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.pauldemarco.flutter_blue.Protos.BluetoothState.State.UNKNOWN.getNumber()) { + output.writeEnum(1, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != com.pauldemarco.flutter_blue.Protos.BluetoothState.State.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.BluetoothState)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.BluetoothState other = (com.pauldemarco.flutter_blue.Protos.BluetoothState) obj; + + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code BluetoothState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BluetoothState) + com.pauldemarco.flutter_blue.Protos.BluetoothStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothState.class, com.pauldemarco.flutter_blue.Protos.BluetoothState.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothState_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothState getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.BluetoothState.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothState build() { + com.pauldemarco.flutter_blue.Protos.BluetoothState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothState buildPartial() { + com.pauldemarco.flutter_blue.Protos.BluetoothState result = new com.pauldemarco.flutter_blue.Protos.BluetoothState(this); + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.BluetoothState) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.BluetoothState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.BluetoothState other) { + if (other == com.pauldemarco.flutter_blue.Protos.BluetoothState.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.BluetoothState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.BluetoothState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + * .BluetoothState.State state = 1; + * @return The enum numeric value on the wire for state. + */ + public int getStateValue() { + return state_; + } + /** + * .BluetoothState.State state = 1; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * .BluetoothState.State state = 1; + * @return The state. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothState.State getState() { + @SuppressWarnings("deprecation") + com.pauldemarco.flutter_blue.Protos.BluetoothState.State result = com.pauldemarco.flutter_blue.Protos.BluetoothState.State.valueOf(state_); + return result == null ? com.pauldemarco.flutter_blue.Protos.BluetoothState.State.UNRECOGNIZED : result; + } + /** + * .BluetoothState.State state = 1; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.pauldemarco.flutter_blue.Protos.BluetoothState.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .BluetoothState.State state = 1; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:BluetoothState) + } + + // @@protoc_insertion_point(class_scope:BluetoothState) + private static final com.pauldemarco.flutter_blue.Protos.BluetoothState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.BluetoothState(); + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BluetoothState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BluetoothState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AdvertisementDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:AdvertisementData) + com.google.protobuf.MessageOrBuilder { + + /** + * string local_name = 1; + * @return The localName. + */ + java.lang.String getLocalName(); + /** + * string local_name = 1; + * @return The bytes for localName. + */ + com.google.protobuf.ByteString + getLocalNameBytes(); + + /** + * .Int32Value tx_power_level = 2; + * @return Whether the txPowerLevel field is set. + */ + boolean hasTxPowerLevel(); + /** + * .Int32Value tx_power_level = 2; + * @return The txPowerLevel. + */ + com.pauldemarco.flutter_blue.Protos.Int32Value getTxPowerLevel(); + /** + * .Int32Value tx_power_level = 2; + */ + com.pauldemarco.flutter_blue.Protos.Int32ValueOrBuilder getTxPowerLevelOrBuilder(); + + /** + * bool connectable = 3; + * @return The connectable. + */ + boolean getConnectable(); + + /** + *
+     * Map of manufacturers to their data
+     * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + int getManufacturerDataCount(); + /** + *
+     * Map of manufacturers to their data
+     * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + boolean containsManufacturerData( + int key); + /** + * Use {@link #getManufacturerDataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getManufacturerData(); + /** + *
+     * Map of manufacturers to their data
+     * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + java.util.Map + getManufacturerDataMap(); + /** + *
+     * Map of manufacturers to their data
+     * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + com.google.protobuf.ByteString getManufacturerDataOrDefault( + int key, + com.google.protobuf.ByteString defaultValue); + /** + *
+     * Map of manufacturers to their data
+     * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + com.google.protobuf.ByteString getManufacturerDataOrThrow( + int key); + + /** + *
+     * Map of service UUIDs to their data.
+     * 
+ * + * map<string, bytes> service_data = 5; + */ + int getServiceDataCount(); + /** + *
+     * Map of service UUIDs to their data.
+     * 
+ * + * map<string, bytes> service_data = 5; + */ + boolean containsServiceData( + java.lang.String key); + /** + * Use {@link #getServiceDataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getServiceData(); + /** + *
+     * Map of service UUIDs to their data.
+     * 
+ * + * map<string, bytes> service_data = 5; + */ + java.util.Map + getServiceDataMap(); + /** + *
+     * Map of service UUIDs to their data.
+     * 
+ * + * map<string, bytes> service_data = 5; + */ + + com.google.protobuf.ByteString getServiceDataOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue); + /** + *
+     * Map of service UUIDs to their data.
+     * 
+ * + * map<string, bytes> service_data = 5; + */ + + com.google.protobuf.ByteString getServiceDataOrThrow( + java.lang.String key); + + /** + * repeated string service_uuids = 6; + * @return A list containing the serviceUuids. + */ + java.util.List + getServiceUuidsList(); + /** + * repeated string service_uuids = 6; + * @return The count of serviceUuids. + */ + int getServiceUuidsCount(); + /** + * repeated string service_uuids = 6; + * @param index The index of the element to return. + * @return The serviceUuids at the given index. + */ + java.lang.String getServiceUuids(int index); + /** + * repeated string service_uuids = 6; + * @param index The index of the value to return. + * @return The bytes of the serviceUuids at the given index. + */ + com.google.protobuf.ByteString + getServiceUuidsBytes(int index); + } + /** + * Protobuf type {@code AdvertisementData} + */ + public static final class AdvertisementData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AdvertisementData) + AdvertisementDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdvertisementData.newBuilder() to construct. + private AdvertisementData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdvertisementData() { + localName_ = ""; + serviceUuids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdvertisementData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AdvertisementData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + localName_ = s; + break; + } + case 18: { + com.pauldemarco.flutter_blue.Protos.Int32Value.Builder subBuilder = null; + if (txPowerLevel_ != null) { + subBuilder = txPowerLevel_.toBuilder(); + } + txPowerLevel_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(txPowerLevel_); + txPowerLevel_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + connectable_ = input.readBool(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + manufacturerData_ = com.google.protobuf.MapField.newMapField( + ManufacturerDataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + manufacturerData__ = input.readMessage( + ManufacturerDataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + manufacturerData_.getMutableMap().put( + manufacturerData__.getKey(), manufacturerData__.getValue()); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + serviceData_ = com.google.protobuf.MapField.newMapField( + ServiceDataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + serviceData__ = input.readMessage( + ServiceDataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + serviceData_.getMutableMap().put( + serviceData__.getKey(), serviceData__.getValue()); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + serviceUuids_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + serviceUuids_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + serviceUuids_ = serviceUuids_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_AdvertisementData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetManufacturerData(); + case 5: + return internalGetServiceData(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_AdvertisementData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.AdvertisementData.class, com.pauldemarco.flutter_blue.Protos.AdvertisementData.Builder.class); + } + + public static final int LOCAL_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object localName_; + /** + * string local_name = 1; + * @return The localName. + */ + public java.lang.String getLocalName() { + java.lang.Object ref = localName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localName_ = s; + return s; + } + } + /** + * string local_name = 1; + * @return The bytes for localName. + */ + public com.google.protobuf.ByteString + getLocalNameBytes() { + java.lang.Object ref = localName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + localName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TX_POWER_LEVEL_FIELD_NUMBER = 2; + private com.pauldemarco.flutter_blue.Protos.Int32Value txPowerLevel_; + /** + * .Int32Value tx_power_level = 2; + * @return Whether the txPowerLevel field is set. + */ + public boolean hasTxPowerLevel() { + return txPowerLevel_ != null; + } + /** + * .Int32Value tx_power_level = 2; + * @return The txPowerLevel. + */ + public com.pauldemarco.flutter_blue.Protos.Int32Value getTxPowerLevel() { + return txPowerLevel_ == null ? com.pauldemarco.flutter_blue.Protos.Int32Value.getDefaultInstance() : txPowerLevel_; + } + /** + * .Int32Value tx_power_level = 2; + */ + public com.pauldemarco.flutter_blue.Protos.Int32ValueOrBuilder getTxPowerLevelOrBuilder() { + return getTxPowerLevel(); + } + + public static final int CONNECTABLE_FIELD_NUMBER = 3; + private boolean connectable_; + /** + * bool connectable = 3; + * @return The connectable. + */ + public boolean getConnectable() { + return connectable_; + } + + public static final int MANUFACTURER_DATA_FIELD_NUMBER = 4; + private static final class ManufacturerDataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, com.google.protobuf.ByteString> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.pauldemarco.flutter_blue.Protos.internal_static_AdvertisementData_ManufacturerDataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); + } + private com.google.protobuf.MapField< + java.lang.Integer, com.google.protobuf.ByteString> manufacturerData_; + private com.google.protobuf.MapField + internalGetManufacturerData() { + if (manufacturerData_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ManufacturerDataDefaultEntryHolder.defaultEntry); + } + return manufacturerData_; + } + + public int getManufacturerDataCount() { + return internalGetManufacturerData().getMap().size(); + } + /** + *
+     * Map of manufacturers to their data
+     * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public boolean containsManufacturerData( + int key) { + + return internalGetManufacturerData().getMap().containsKey(key); + } + /** + * Use {@link #getManufacturerDataMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getManufacturerData() { + return getManufacturerDataMap(); + } + /** + *
+     * Map of manufacturers to their data
+     * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public java.util.Map getManufacturerDataMap() { + return internalGetManufacturerData().getMap(); + } + /** + *
+     * Map of manufacturers to their data
+     * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public com.google.protobuf.ByteString getManufacturerDataOrDefault( + int key, + com.google.protobuf.ByteString defaultValue) { + + java.util.Map map = + internalGetManufacturerData().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of manufacturers to their data
+     * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public com.google.protobuf.ByteString getManufacturerDataOrThrow( + int key) { + + java.util.Map map = + internalGetManufacturerData().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SERVICE_DATA_FIELD_NUMBER = 5; + private static final class ServiceDataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.ByteString> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.pauldemarco.flutter_blue.Protos.internal_static_AdvertisementData_ServiceDataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ByteString> serviceData_; + private com.google.protobuf.MapField + internalGetServiceData() { + if (serviceData_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ServiceDataDefaultEntryHolder.defaultEntry); + } + return serviceData_; + } + + public int getServiceDataCount() { + return internalGetServiceData().getMap().size(); + } + /** + *
+     * Map of service UUIDs to their data.
+     * 
+ * + * map<string, bytes> service_data = 5; + */ + + public boolean containsServiceData( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetServiceData().getMap().containsKey(key); + } + /** + * Use {@link #getServiceDataMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getServiceData() { + return getServiceDataMap(); + } + /** + *
+     * Map of service UUIDs to their data.
+     * 
+ * + * map<string, bytes> service_data = 5; + */ + + public java.util.Map getServiceDataMap() { + return internalGetServiceData().getMap(); + } + /** + *
+     * Map of service UUIDs to their data.
+     * 
+ * + * map<string, bytes> service_data = 5; + */ + + public com.google.protobuf.ByteString getServiceDataOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetServiceData().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of service UUIDs to their data.
+     * 
+ * + * map<string, bytes> service_data = 5; + */ + + public com.google.protobuf.ByteString getServiceDataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetServiceData().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SERVICE_UUIDS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList serviceUuids_; + /** + * repeated string service_uuids = 6; + * @return A list containing the serviceUuids. + */ + public com.google.protobuf.ProtocolStringList + getServiceUuidsList() { + return serviceUuids_; + } + /** + * repeated string service_uuids = 6; + * @return The count of serviceUuids. + */ + public int getServiceUuidsCount() { + return serviceUuids_.size(); + } + /** + * repeated string service_uuids = 6; + * @param index The index of the element to return. + * @return The serviceUuids at the given index. + */ + public java.lang.String getServiceUuids(int index) { + return serviceUuids_.get(index); + } + /** + * repeated string service_uuids = 6; + * @param index The index of the value to return. + * @return The bytes of the serviceUuids at the given index. + */ + public com.google.protobuf.ByteString + getServiceUuidsBytes(int index) { + return serviceUuids_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getLocalNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, localName_); + } + if (txPowerLevel_ != null) { + output.writeMessage(2, getTxPowerLevel()); + } + if (connectable_ != false) { + output.writeBool(3, connectable_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetManufacturerData(), + ManufacturerDataDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetServiceData(), + ServiceDataDefaultEntryHolder.defaultEntry, + 5); + for (int i = 0; i < serviceUuids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceUuids_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getLocalNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, localName_); + } + if (txPowerLevel_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTxPowerLevel()); + } + if (connectable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, connectable_); + } + for (java.util.Map.Entry entry + : internalGetManufacturerData().getMap().entrySet()) { + com.google.protobuf.MapEntry + manufacturerData__ = ManufacturerDataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, manufacturerData__); + } + for (java.util.Map.Entry entry + : internalGetServiceData().getMap().entrySet()) { + com.google.protobuf.MapEntry + serviceData__ = ServiceDataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, serviceData__); + } + { + int dataSize = 0; + for (int i = 0; i < serviceUuids_.size(); i++) { + dataSize += computeStringSizeNoTag(serviceUuids_.getRaw(i)); + } + size += dataSize; + size += 1 * getServiceUuidsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.AdvertisementData)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.AdvertisementData other = (com.pauldemarco.flutter_blue.Protos.AdvertisementData) obj; + + if (!getLocalName() + .equals(other.getLocalName())) return false; + if (hasTxPowerLevel() != other.hasTxPowerLevel()) return false; + if (hasTxPowerLevel()) { + if (!getTxPowerLevel() + .equals(other.getTxPowerLevel())) return false; + } + if (getConnectable() + != other.getConnectable()) return false; + if (!internalGetManufacturerData().equals( + other.internalGetManufacturerData())) return false; + if (!internalGetServiceData().equals( + other.internalGetServiceData())) return false; + if (!getServiceUuidsList() + .equals(other.getServiceUuidsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCAL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLocalName().hashCode(); + if (hasTxPowerLevel()) { + hash = (37 * hash) + TX_POWER_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getTxPowerLevel().hashCode(); + } + hash = (37 * hash) + CONNECTABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getConnectable()); + if (!internalGetManufacturerData().getMap().isEmpty()) { + hash = (37 * hash) + MANUFACTURER_DATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetManufacturerData().hashCode(); + } + if (!internalGetServiceData().getMap().isEmpty()) { + hash = (37 * hash) + SERVICE_DATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetServiceData().hashCode(); + } + if (getServiceUuidsCount() > 0) { + hash = (37 * hash) + SERVICE_UUIDS_FIELD_NUMBER; + hash = (53 * hash) + getServiceUuidsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.AdvertisementData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code AdvertisementData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AdvertisementData) + com.pauldemarco.flutter_blue.Protos.AdvertisementDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_AdvertisementData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetManufacturerData(); + case 5: + return internalGetServiceData(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableManufacturerData(); + case 5: + return internalGetMutableServiceData(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_AdvertisementData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.AdvertisementData.class, com.pauldemarco.flutter_blue.Protos.AdvertisementData.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.AdvertisementData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + localName_ = ""; + + if (txPowerLevelBuilder_ == null) { + txPowerLevel_ = null; + } else { + txPowerLevel_ = null; + txPowerLevelBuilder_ = null; + } + connectable_ = false; + + internalGetMutableManufacturerData().clear(); + internalGetMutableServiceData().clear(); + serviceUuids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_AdvertisementData_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.AdvertisementData getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.AdvertisementData.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.AdvertisementData build() { + com.pauldemarco.flutter_blue.Protos.AdvertisementData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.AdvertisementData buildPartial() { + com.pauldemarco.flutter_blue.Protos.AdvertisementData result = new com.pauldemarco.flutter_blue.Protos.AdvertisementData(this); + int from_bitField0_ = bitField0_; + result.localName_ = localName_; + if (txPowerLevelBuilder_ == null) { + result.txPowerLevel_ = txPowerLevel_; + } else { + result.txPowerLevel_ = txPowerLevelBuilder_.build(); + } + result.connectable_ = connectable_; + result.manufacturerData_ = internalGetManufacturerData(); + result.manufacturerData_.makeImmutable(); + result.serviceData_ = internalGetServiceData(); + result.serviceData_.makeImmutable(); + if (((bitField0_ & 0x00000004) != 0)) { + serviceUuids_ = serviceUuids_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.serviceUuids_ = serviceUuids_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.AdvertisementData) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.AdvertisementData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.AdvertisementData other) { + if (other == com.pauldemarco.flutter_blue.Protos.AdvertisementData.getDefaultInstance()) return this; + if (!other.getLocalName().isEmpty()) { + localName_ = other.localName_; + onChanged(); + } + if (other.hasTxPowerLevel()) { + mergeTxPowerLevel(other.getTxPowerLevel()); + } + if (other.getConnectable() != false) { + setConnectable(other.getConnectable()); + } + internalGetMutableManufacturerData().mergeFrom( + other.internalGetManufacturerData()); + internalGetMutableServiceData().mergeFrom( + other.internalGetServiceData()); + if (!other.serviceUuids_.isEmpty()) { + if (serviceUuids_.isEmpty()) { + serviceUuids_ = other.serviceUuids_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureServiceUuidsIsMutable(); + serviceUuids_.addAll(other.serviceUuids_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.AdvertisementData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.AdvertisementData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object localName_ = ""; + /** + * string local_name = 1; + * @return The localName. + */ + public java.lang.String getLocalName() { + java.lang.Object ref = localName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string local_name = 1; + * @return The bytes for localName. + */ + public com.google.protobuf.ByteString + getLocalNameBytes() { + java.lang.Object ref = localName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + localName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string local_name = 1; + * @param value The localName to set. + * @return This builder for chaining. + */ + public Builder setLocalName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + localName_ = value; + onChanged(); + return this; + } + /** + * string local_name = 1; + * @return This builder for chaining. + */ + public Builder clearLocalName() { + + localName_ = getDefaultInstance().getLocalName(); + onChanged(); + return this; + } + /** + * string local_name = 1; + * @param value The bytes for localName to set. + * @return This builder for chaining. + */ + public Builder setLocalNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + localName_ = value; + onChanged(); + return this; + } + + private com.pauldemarco.flutter_blue.Protos.Int32Value txPowerLevel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.Int32Value, com.pauldemarco.flutter_blue.Protos.Int32Value.Builder, com.pauldemarco.flutter_blue.Protos.Int32ValueOrBuilder> txPowerLevelBuilder_; + /** + * .Int32Value tx_power_level = 2; + * @return Whether the txPowerLevel field is set. + */ + public boolean hasTxPowerLevel() { + return txPowerLevelBuilder_ != null || txPowerLevel_ != null; + } + /** + * .Int32Value tx_power_level = 2; + * @return The txPowerLevel. + */ + public com.pauldemarco.flutter_blue.Protos.Int32Value getTxPowerLevel() { + if (txPowerLevelBuilder_ == null) { + return txPowerLevel_ == null ? com.pauldemarco.flutter_blue.Protos.Int32Value.getDefaultInstance() : txPowerLevel_; + } else { + return txPowerLevelBuilder_.getMessage(); + } + } + /** + * .Int32Value tx_power_level = 2; + */ + public Builder setTxPowerLevel(com.pauldemarco.flutter_blue.Protos.Int32Value value) { + if (txPowerLevelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + txPowerLevel_ = value; + onChanged(); + } else { + txPowerLevelBuilder_.setMessage(value); + } + + return this; + } + /** + * .Int32Value tx_power_level = 2; + */ + public Builder setTxPowerLevel( + com.pauldemarco.flutter_blue.Protos.Int32Value.Builder builderForValue) { + if (txPowerLevelBuilder_ == null) { + txPowerLevel_ = builderForValue.build(); + onChanged(); + } else { + txPowerLevelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Int32Value tx_power_level = 2; + */ + public Builder mergeTxPowerLevel(com.pauldemarco.flutter_blue.Protos.Int32Value value) { + if (txPowerLevelBuilder_ == null) { + if (txPowerLevel_ != null) { + txPowerLevel_ = + com.pauldemarco.flutter_blue.Protos.Int32Value.newBuilder(txPowerLevel_).mergeFrom(value).buildPartial(); + } else { + txPowerLevel_ = value; + } + onChanged(); + } else { + txPowerLevelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Int32Value tx_power_level = 2; + */ + public Builder clearTxPowerLevel() { + if (txPowerLevelBuilder_ == null) { + txPowerLevel_ = null; + onChanged(); + } else { + txPowerLevel_ = null; + txPowerLevelBuilder_ = null; + } + + return this; + } + /** + * .Int32Value tx_power_level = 2; + */ + public com.pauldemarco.flutter_blue.Protos.Int32Value.Builder getTxPowerLevelBuilder() { + + onChanged(); + return getTxPowerLevelFieldBuilder().getBuilder(); + } + /** + * .Int32Value tx_power_level = 2; + */ + public com.pauldemarco.flutter_blue.Protos.Int32ValueOrBuilder getTxPowerLevelOrBuilder() { + if (txPowerLevelBuilder_ != null) { + return txPowerLevelBuilder_.getMessageOrBuilder(); + } else { + return txPowerLevel_ == null ? + com.pauldemarco.flutter_blue.Protos.Int32Value.getDefaultInstance() : txPowerLevel_; + } + } + /** + * .Int32Value tx_power_level = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.Int32Value, com.pauldemarco.flutter_blue.Protos.Int32Value.Builder, com.pauldemarco.flutter_blue.Protos.Int32ValueOrBuilder> + getTxPowerLevelFieldBuilder() { + if (txPowerLevelBuilder_ == null) { + txPowerLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.Int32Value, com.pauldemarco.flutter_blue.Protos.Int32Value.Builder, com.pauldemarco.flutter_blue.Protos.Int32ValueOrBuilder>( + getTxPowerLevel(), + getParentForChildren(), + isClean()); + txPowerLevel_ = null; + } + return txPowerLevelBuilder_; + } + + private boolean connectable_ ; + /** + * bool connectable = 3; + * @return The connectable. + */ + public boolean getConnectable() { + return connectable_; + } + /** + * bool connectable = 3; + * @param value The connectable to set. + * @return This builder for chaining. + */ + public Builder setConnectable(boolean value) { + + connectable_ = value; + onChanged(); + return this; + } + /** + * bool connectable = 3; + * @return This builder for chaining. + */ + public Builder clearConnectable() { + + connectable_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, com.google.protobuf.ByteString> manufacturerData_; + private com.google.protobuf.MapField + internalGetManufacturerData() { + if (manufacturerData_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ManufacturerDataDefaultEntryHolder.defaultEntry); + } + return manufacturerData_; + } + private com.google.protobuf.MapField + internalGetMutableManufacturerData() { + onChanged();; + if (manufacturerData_ == null) { + manufacturerData_ = com.google.protobuf.MapField.newMapField( + ManufacturerDataDefaultEntryHolder.defaultEntry); + } + if (!manufacturerData_.isMutable()) { + manufacturerData_ = manufacturerData_.copy(); + } + return manufacturerData_; + } + + public int getManufacturerDataCount() { + return internalGetManufacturerData().getMap().size(); + } + /** + *
+       * Map of manufacturers to their data
+       * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public boolean containsManufacturerData( + int key) { + + return internalGetManufacturerData().getMap().containsKey(key); + } + /** + * Use {@link #getManufacturerDataMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getManufacturerData() { + return getManufacturerDataMap(); + } + /** + *
+       * Map of manufacturers to their data
+       * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public java.util.Map getManufacturerDataMap() { + return internalGetManufacturerData().getMap(); + } + /** + *
+       * Map of manufacturers to their data
+       * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public com.google.protobuf.ByteString getManufacturerDataOrDefault( + int key, + com.google.protobuf.ByteString defaultValue) { + + java.util.Map map = + internalGetManufacturerData().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of manufacturers to their data
+       * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public com.google.protobuf.ByteString getManufacturerDataOrThrow( + int key) { + + java.util.Map map = + internalGetManufacturerData().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearManufacturerData() { + internalGetMutableManufacturerData().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of manufacturers to their data
+       * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public Builder removeManufacturerData( + int key) { + + internalGetMutableManufacturerData().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableManufacturerData() { + return internalGetMutableManufacturerData().getMutableMap(); + } + /** + *
+       * Map of manufacturers to their data
+       * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + public Builder putManufacturerData( + int key, + com.google.protobuf.ByteString value) { + + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableManufacturerData().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of manufacturers to their data
+       * 
+ * + * map<int32, bytes> manufacturer_data = 4; + */ + + public Builder putAllManufacturerData( + java.util.Map values) { + internalGetMutableManufacturerData().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ByteString> serviceData_; + private com.google.protobuf.MapField + internalGetServiceData() { + if (serviceData_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ServiceDataDefaultEntryHolder.defaultEntry); + } + return serviceData_; + } + private com.google.protobuf.MapField + internalGetMutableServiceData() { + onChanged();; + if (serviceData_ == null) { + serviceData_ = com.google.protobuf.MapField.newMapField( + ServiceDataDefaultEntryHolder.defaultEntry); + } + if (!serviceData_.isMutable()) { + serviceData_ = serviceData_.copy(); + } + return serviceData_; + } + + public int getServiceDataCount() { + return internalGetServiceData().getMap().size(); + } + /** + *
+       * Map of service UUIDs to their data.
+       * 
+ * + * map<string, bytes> service_data = 5; + */ + + public boolean containsServiceData( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetServiceData().getMap().containsKey(key); + } + /** + * Use {@link #getServiceDataMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getServiceData() { + return getServiceDataMap(); + } + /** + *
+       * Map of service UUIDs to their data.
+       * 
+ * + * map<string, bytes> service_data = 5; + */ + + public java.util.Map getServiceDataMap() { + return internalGetServiceData().getMap(); + } + /** + *
+       * Map of service UUIDs to their data.
+       * 
+ * + * map<string, bytes> service_data = 5; + */ + + public com.google.protobuf.ByteString getServiceDataOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetServiceData().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of service UUIDs to their data.
+       * 
+ * + * map<string, bytes> service_data = 5; + */ + + public com.google.protobuf.ByteString getServiceDataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetServiceData().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearServiceData() { + internalGetMutableServiceData().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of service UUIDs to their data.
+       * 
+ * + * map<string, bytes> service_data = 5; + */ + + public Builder removeServiceData( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableServiceData().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableServiceData() { + return internalGetMutableServiceData().getMutableMap(); + } + /** + *
+       * Map of service UUIDs to their data.
+       * 
+ * + * map<string, bytes> service_data = 5; + */ + public Builder putServiceData( + java.lang.String key, + com.google.protobuf.ByteString value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableServiceData().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of service UUIDs to their data.
+       * 
+ * + * map<string, bytes> service_data = 5; + */ + + public Builder putAllServiceData( + java.util.Map values) { + internalGetMutableServiceData().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.LazyStringList serviceUuids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServiceUuidsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + serviceUuids_ = new com.google.protobuf.LazyStringArrayList(serviceUuids_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated string service_uuids = 6; + * @return A list containing the serviceUuids. + */ + public com.google.protobuf.ProtocolStringList + getServiceUuidsList() { + return serviceUuids_.getUnmodifiableView(); + } + /** + * repeated string service_uuids = 6; + * @return The count of serviceUuids. + */ + public int getServiceUuidsCount() { + return serviceUuids_.size(); + } + /** + * repeated string service_uuids = 6; + * @param index The index of the element to return. + * @return The serviceUuids at the given index. + */ + public java.lang.String getServiceUuids(int index) { + return serviceUuids_.get(index); + } + /** + * repeated string service_uuids = 6; + * @param index The index of the value to return. + * @return The bytes of the serviceUuids at the given index. + */ + public com.google.protobuf.ByteString + getServiceUuidsBytes(int index) { + return serviceUuids_.getByteString(index); + } + /** + * repeated string service_uuids = 6; + * @param index The index to set the value at. + * @param value The serviceUuids to set. + * @return This builder for chaining. + */ + public Builder setServiceUuids( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceUuidsIsMutable(); + serviceUuids_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string service_uuids = 6; + * @param value The serviceUuids to add. + * @return This builder for chaining. + */ + public Builder addServiceUuids( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceUuidsIsMutable(); + serviceUuids_.add(value); + onChanged(); + return this; + } + /** + * repeated string service_uuids = 6; + * @param values The serviceUuids to add. + * @return This builder for chaining. + */ + public Builder addAllServiceUuids( + java.lang.Iterable values) { + ensureServiceUuidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceUuids_); + onChanged(); + return this; + } + /** + * repeated string service_uuids = 6; + * @return This builder for chaining. + */ + public Builder clearServiceUuids() { + serviceUuids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * repeated string service_uuids = 6; + * @param value The bytes of the serviceUuids to add. + * @return This builder for chaining. + */ + public Builder addServiceUuidsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureServiceUuidsIsMutable(); + serviceUuids_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:AdvertisementData) + } + + // @@protoc_insertion_point(class_scope:AdvertisementData) + private static final com.pauldemarco.flutter_blue.Protos.AdvertisementData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.AdvertisementData(); + } + + public static com.pauldemarco.flutter_blue.Protos.AdvertisementData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvertisementData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdvertisementData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.AdvertisementData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScanSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:ScanSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 android_scan_mode = 1; + * @return The androidScanMode. + */ + int getAndroidScanMode(); + + /** + * repeated string service_uuids = 2; + * @return A list containing the serviceUuids. + */ + java.util.List + getServiceUuidsList(); + /** + * repeated string service_uuids = 2; + * @return The count of serviceUuids. + */ + int getServiceUuidsCount(); + /** + * repeated string service_uuids = 2; + * @param index The index of the element to return. + * @return The serviceUuids at the given index. + */ + java.lang.String getServiceUuids(int index); + /** + * repeated string service_uuids = 2; + * @param index The index of the value to return. + * @return The bytes of the serviceUuids at the given index. + */ + com.google.protobuf.ByteString + getServiceUuidsBytes(int index); + + /** + * bool allow_duplicates = 3; + * @return The allowDuplicates. + */ + boolean getAllowDuplicates(); + } + /** + * Protobuf type {@code ScanSettings} + */ + public static final class ScanSettings extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ScanSettings) + ScanSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ScanSettings.newBuilder() to construct. + private ScanSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ScanSettings() { + serviceUuids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ScanSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ScanSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + androidScanMode_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + serviceUuids_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + serviceUuids_.add(s); + break; + } + case 24: { + + allowDuplicates_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + serviceUuids_ = serviceUuids_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ScanSettings.class, com.pauldemarco.flutter_blue.Protos.ScanSettings.Builder.class); + } + + public static final int ANDROID_SCAN_MODE_FIELD_NUMBER = 1; + private int androidScanMode_; + /** + * int32 android_scan_mode = 1; + * @return The androidScanMode. + */ + public int getAndroidScanMode() { + return androidScanMode_; + } + + public static final int SERVICE_UUIDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList serviceUuids_; + /** + * repeated string service_uuids = 2; + * @return A list containing the serviceUuids. + */ + public com.google.protobuf.ProtocolStringList + getServiceUuidsList() { + return serviceUuids_; + } + /** + * repeated string service_uuids = 2; + * @return The count of serviceUuids. + */ + public int getServiceUuidsCount() { + return serviceUuids_.size(); + } + /** + * repeated string service_uuids = 2; + * @param index The index of the element to return. + * @return The serviceUuids at the given index. + */ + public java.lang.String getServiceUuids(int index) { + return serviceUuids_.get(index); + } + /** + * repeated string service_uuids = 2; + * @param index The index of the value to return. + * @return The bytes of the serviceUuids at the given index. + */ + public com.google.protobuf.ByteString + getServiceUuidsBytes(int index) { + return serviceUuids_.getByteString(index); + } + + public static final int ALLOW_DUPLICATES_FIELD_NUMBER = 3; + private boolean allowDuplicates_; + /** + * bool allow_duplicates = 3; + * @return The allowDuplicates. + */ + public boolean getAllowDuplicates() { + return allowDuplicates_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (androidScanMode_ != 0) { + output.writeInt32(1, androidScanMode_); + } + for (int i = 0; i < serviceUuids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceUuids_.getRaw(i)); + } + if (allowDuplicates_ != false) { + output.writeBool(3, allowDuplicates_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (androidScanMode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, androidScanMode_); + } + { + int dataSize = 0; + for (int i = 0; i < serviceUuids_.size(); i++) { + dataSize += computeStringSizeNoTag(serviceUuids_.getRaw(i)); + } + size += dataSize; + size += 1 * getServiceUuidsList().size(); + } + if (allowDuplicates_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, allowDuplicates_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ScanSettings)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.ScanSettings other = (com.pauldemarco.flutter_blue.Protos.ScanSettings) obj; + + if (getAndroidScanMode() + != other.getAndroidScanMode()) return false; + if (!getServiceUuidsList() + .equals(other.getServiceUuidsList())) return false; + if (getAllowDuplicates() + != other.getAllowDuplicates()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ANDROID_SCAN_MODE_FIELD_NUMBER; + hash = (53 * hash) + getAndroidScanMode(); + if (getServiceUuidsCount() > 0) { + hash = (37 * hash) + SERVICE_UUIDS_FIELD_NUMBER; + hash = (53 * hash) + getServiceUuidsList().hashCode(); + } + hash = (37 * hash) + ALLOW_DUPLICATES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowDuplicates()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ScanSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ScanSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ScanSettings) + com.pauldemarco.flutter_blue.Protos.ScanSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ScanSettings.class, com.pauldemarco.flutter_blue.Protos.ScanSettings.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.ScanSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + androidScanMode_ = 0; + + serviceUuids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + allowDuplicates_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanSettings_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ScanSettings getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.ScanSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ScanSettings build() { + com.pauldemarco.flutter_blue.Protos.ScanSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ScanSettings buildPartial() { + com.pauldemarco.flutter_blue.Protos.ScanSettings result = new com.pauldemarco.flutter_blue.Protos.ScanSettings(this); + int from_bitField0_ = bitField0_; + result.androidScanMode_ = androidScanMode_; + if (((bitField0_ & 0x00000001) != 0)) { + serviceUuids_ = serviceUuids_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.serviceUuids_ = serviceUuids_; + result.allowDuplicates_ = allowDuplicates_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.ScanSettings) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.ScanSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ScanSettings other) { + if (other == com.pauldemarco.flutter_blue.Protos.ScanSettings.getDefaultInstance()) return this; + if (other.getAndroidScanMode() != 0) { + setAndroidScanMode(other.getAndroidScanMode()); + } + if (!other.serviceUuids_.isEmpty()) { + if (serviceUuids_.isEmpty()) { + serviceUuids_ = other.serviceUuids_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureServiceUuidsIsMutable(); + serviceUuids_.addAll(other.serviceUuids_); + } + onChanged(); + } + if (other.getAllowDuplicates() != false) { + setAllowDuplicates(other.getAllowDuplicates()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.ScanSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.ScanSettings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int androidScanMode_ ; + /** + * int32 android_scan_mode = 1; + * @return The androidScanMode. + */ + public int getAndroidScanMode() { + return androidScanMode_; + } + /** + * int32 android_scan_mode = 1; + * @param value The androidScanMode to set. + * @return This builder for chaining. + */ + public Builder setAndroidScanMode(int value) { + + androidScanMode_ = value; + onChanged(); + return this; + } + /** + * int32 android_scan_mode = 1; + * @return This builder for chaining. + */ + public Builder clearAndroidScanMode() { + + androidScanMode_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList serviceUuids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServiceUuidsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + serviceUuids_ = new com.google.protobuf.LazyStringArrayList(serviceUuids_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string service_uuids = 2; + * @return A list containing the serviceUuids. + */ + public com.google.protobuf.ProtocolStringList + getServiceUuidsList() { + return serviceUuids_.getUnmodifiableView(); + } + /** + * repeated string service_uuids = 2; + * @return The count of serviceUuids. + */ + public int getServiceUuidsCount() { + return serviceUuids_.size(); + } + /** + * repeated string service_uuids = 2; + * @param index The index of the element to return. + * @return The serviceUuids at the given index. + */ + public java.lang.String getServiceUuids(int index) { + return serviceUuids_.get(index); + } + /** + * repeated string service_uuids = 2; + * @param index The index of the value to return. + * @return The bytes of the serviceUuids at the given index. + */ + public com.google.protobuf.ByteString + getServiceUuidsBytes(int index) { + return serviceUuids_.getByteString(index); + } + /** + * repeated string service_uuids = 2; + * @param index The index to set the value at. + * @param value The serviceUuids to set. + * @return This builder for chaining. + */ + public Builder setServiceUuids( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceUuidsIsMutable(); + serviceUuids_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string service_uuids = 2; + * @param value The serviceUuids to add. + * @return This builder for chaining. + */ + public Builder addServiceUuids( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceUuidsIsMutable(); + serviceUuids_.add(value); + onChanged(); + return this; + } + /** + * repeated string service_uuids = 2; + * @param values The serviceUuids to add. + * @return This builder for chaining. + */ + public Builder addAllServiceUuids( + java.lang.Iterable values) { + ensureServiceUuidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceUuids_); + onChanged(); + return this; + } + /** + * repeated string service_uuids = 2; + * @return This builder for chaining. + */ + public Builder clearServiceUuids() { + serviceUuids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string service_uuids = 2; + * @param value The bytes of the serviceUuids to add. + * @return This builder for chaining. + */ + public Builder addServiceUuidsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureServiceUuidsIsMutable(); + serviceUuids_.add(value); + onChanged(); + return this; + } + + private boolean allowDuplicates_ ; + /** + * bool allow_duplicates = 3; + * @return The allowDuplicates. + */ + public boolean getAllowDuplicates() { + return allowDuplicates_; + } + /** + * bool allow_duplicates = 3; + * @param value The allowDuplicates to set. + * @return This builder for chaining. + */ + public Builder setAllowDuplicates(boolean value) { + + allowDuplicates_ = value; + onChanged(); + return this; + } + /** + * bool allow_duplicates = 3; + * @return This builder for chaining. + */ + public Builder clearAllowDuplicates() { + + allowDuplicates_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ScanSettings) + } + + // @@protoc_insertion_point(class_scope:ScanSettings) + private static final com.pauldemarco.flutter_blue.Protos.ScanSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ScanSettings(); + } + + public static com.pauldemarco.flutter_blue.Protos.ScanSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanSettings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ScanSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScanResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:ScanResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The received peer's ID.
+     * 
+ * + * .BluetoothDevice device = 1; + * @return Whether the device field is set. + */ + boolean hasDevice(); + /** + *
+     * The received peer's ID.
+     * 
+ * + * .BluetoothDevice device = 1; + * @return The device. + */ + com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevice(); + /** + *
+     * The received peer's ID.
+     * 
+ * + * .BluetoothDevice device = 1; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder getDeviceOrBuilder(); + + /** + * .AdvertisementData advertisement_data = 2; + * @return Whether the advertisementData field is set. + */ + boolean hasAdvertisementData(); + /** + * .AdvertisementData advertisement_data = 2; + * @return The advertisementData. + */ + com.pauldemarco.flutter_blue.Protos.AdvertisementData getAdvertisementData(); + /** + * .AdvertisementData advertisement_data = 2; + */ + com.pauldemarco.flutter_blue.Protos.AdvertisementDataOrBuilder getAdvertisementDataOrBuilder(); + + /** + * int32 rssi = 3; + * @return The rssi. + */ + int getRssi(); + } + /** + * Protobuf type {@code ScanResult} + */ + public static final class ScanResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ScanResult) + ScanResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use ScanResult.newBuilder() to construct. + private ScanResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ScanResult() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ScanResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ScanResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder subBuilder = null; + if (device_ != null) { + subBuilder = device_.toBuilder(); + } + device_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothDevice.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(device_); + device_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.pauldemarco.flutter_blue.Protos.AdvertisementData.Builder subBuilder = null; + if (advertisementData_ != null) { + subBuilder = advertisementData_.toBuilder(); + } + advertisementData_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.AdvertisementData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(advertisementData_); + advertisementData_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + rssi_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ScanResult.class, com.pauldemarco.flutter_blue.Protos.ScanResult.Builder.class); + } + + public static final int DEVICE_FIELD_NUMBER = 1; + private com.pauldemarco.flutter_blue.Protos.BluetoothDevice device_; + /** + *
+     * The received peer's ID.
+     * 
+ * + * .BluetoothDevice device = 1; + * @return Whether the device field is set. + */ + public boolean hasDevice() { + return device_ != null; + } + /** + *
+     * The received peer's ID.
+     * 
+ * + * .BluetoothDevice device = 1; + * @return The device. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevice() { + return device_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance() : device_; + } + /** + *
+     * The received peer's ID.
+     * 
+ * + * .BluetoothDevice device = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder getDeviceOrBuilder() { + return getDevice(); + } + + public static final int ADVERTISEMENT_DATA_FIELD_NUMBER = 2; + private com.pauldemarco.flutter_blue.Protos.AdvertisementData advertisementData_; + /** + * .AdvertisementData advertisement_data = 2; + * @return Whether the advertisementData field is set. + */ + public boolean hasAdvertisementData() { + return advertisementData_ != null; + } + /** + * .AdvertisementData advertisement_data = 2; + * @return The advertisementData. + */ + public com.pauldemarco.flutter_blue.Protos.AdvertisementData getAdvertisementData() { + return advertisementData_ == null ? com.pauldemarco.flutter_blue.Protos.AdvertisementData.getDefaultInstance() : advertisementData_; + } + /** + * .AdvertisementData advertisement_data = 2; + */ + public com.pauldemarco.flutter_blue.Protos.AdvertisementDataOrBuilder getAdvertisementDataOrBuilder() { + return getAdvertisementData(); + } + + public static final int RSSI_FIELD_NUMBER = 3; + private int rssi_; + /** + * int32 rssi = 3; + * @return The rssi. + */ + public int getRssi() { + return rssi_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (device_ != null) { + output.writeMessage(1, getDevice()); + } + if (advertisementData_ != null) { + output.writeMessage(2, getAdvertisementData()); + } + if (rssi_ != 0) { + output.writeInt32(3, rssi_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (device_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDevice()); + } + if (advertisementData_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAdvertisementData()); + } + if (rssi_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, rssi_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ScanResult)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.ScanResult other = (com.pauldemarco.flutter_blue.Protos.ScanResult) obj; + + if (hasDevice() != other.hasDevice()) return false; + if (hasDevice()) { + if (!getDevice() + .equals(other.getDevice())) return false; + } + if (hasAdvertisementData() != other.hasAdvertisementData()) return false; + if (hasAdvertisementData()) { + if (!getAdvertisementData() + .equals(other.getAdvertisementData())) return false; + } + if (getRssi() + != other.getRssi()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDevice()) { + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getDevice().hashCode(); + } + if (hasAdvertisementData()) { + hash = (37 * hash) + ADVERTISEMENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAdvertisementData().hashCode(); + } + hash = (37 * hash) + RSSI_FIELD_NUMBER; + hash = (53 * hash) + getRssi(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ScanResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ScanResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ScanResult) + com.pauldemarco.flutter_blue.Protos.ScanResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ScanResult.class, com.pauldemarco.flutter_blue.Protos.ScanResult.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.ScanResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (deviceBuilder_ == null) { + device_ = null; + } else { + device_ = null; + deviceBuilder_ = null; + } + if (advertisementDataBuilder_ == null) { + advertisementData_ = null; + } else { + advertisementData_ = null; + advertisementDataBuilder_ = null; + } + rssi_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ScanResult_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ScanResult getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.ScanResult.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ScanResult build() { + com.pauldemarco.flutter_blue.Protos.ScanResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ScanResult buildPartial() { + com.pauldemarco.flutter_blue.Protos.ScanResult result = new com.pauldemarco.flutter_blue.Protos.ScanResult(this); + if (deviceBuilder_ == null) { + result.device_ = device_; + } else { + result.device_ = deviceBuilder_.build(); + } + if (advertisementDataBuilder_ == null) { + result.advertisementData_ = advertisementData_; + } else { + result.advertisementData_ = advertisementDataBuilder_.build(); + } + result.rssi_ = rssi_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.ScanResult) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.ScanResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ScanResult other) { + if (other == com.pauldemarco.flutter_blue.Protos.ScanResult.getDefaultInstance()) return this; + if (other.hasDevice()) { + mergeDevice(other.getDevice()); + } + if (other.hasAdvertisementData()) { + mergeAdvertisementData(other.getAdvertisementData()); + } + if (other.getRssi() != 0) { + setRssi(other.getRssi()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.ScanResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.ScanResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.pauldemarco.flutter_blue.Protos.BluetoothDevice device_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothDevice, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder> deviceBuilder_; + /** + *
+       * The received peer's ID.
+       * 
+ * + * .BluetoothDevice device = 1; + * @return Whether the device field is set. + */ + public boolean hasDevice() { + return deviceBuilder_ != null || device_ != null; + } + /** + *
+       * The received peer's ID.
+       * 
+ * + * .BluetoothDevice device = 1; + * @return The device. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevice() { + if (deviceBuilder_ == null) { + return device_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance() : device_; + } else { + return deviceBuilder_.getMessage(); + } + } + /** + *
+       * The received peer's ID.
+       * 
+ * + * .BluetoothDevice device = 1; + */ + public Builder setDevice(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) { + if (deviceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + device_ = value; + onChanged(); + } else { + deviceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The received peer's ID.
+       * 
+ * + * .BluetoothDevice device = 1; + */ + public Builder setDevice( + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) { + if (deviceBuilder_ == null) { + device_ = builderForValue.build(); + onChanged(); + } else { + deviceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The received peer's ID.
+       * 
+ * + * .BluetoothDevice device = 1; + */ + public Builder mergeDevice(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) { + if (deviceBuilder_ == null) { + if (device_ != null) { + device_ = + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.newBuilder(device_).mergeFrom(value).buildPartial(); + } else { + device_ = value; + } + onChanged(); + } else { + deviceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The received peer's ID.
+       * 
+ * + * .BluetoothDevice device = 1; + */ + public Builder clearDevice() { + if (deviceBuilder_ == null) { + device_ = null; + onChanged(); + } else { + device_ = null; + deviceBuilder_ = null; + } + + return this; + } + /** + *
+       * The received peer's ID.
+       * 
+ * + * .BluetoothDevice device = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder getDeviceBuilder() { + + onChanged(); + return getDeviceFieldBuilder().getBuilder(); + } + /** + *
+       * The received peer's ID.
+       * 
+ * + * .BluetoothDevice device = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder getDeviceOrBuilder() { + if (deviceBuilder_ != null) { + return deviceBuilder_.getMessageOrBuilder(); + } else { + return device_ == null ? + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance() : device_; + } + } + /** + *
+       * The received peer's ID.
+       * 
+ * + * .BluetoothDevice device = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothDevice, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder> + getDeviceFieldBuilder() { + if (deviceBuilder_ == null) { + deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothDevice, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder>( + getDevice(), + getParentForChildren(), + isClean()); + device_ = null; + } + return deviceBuilder_; + } + + private com.pauldemarco.flutter_blue.Protos.AdvertisementData advertisementData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.AdvertisementData, com.pauldemarco.flutter_blue.Protos.AdvertisementData.Builder, com.pauldemarco.flutter_blue.Protos.AdvertisementDataOrBuilder> advertisementDataBuilder_; + /** + * .AdvertisementData advertisement_data = 2; + * @return Whether the advertisementData field is set. + */ + public boolean hasAdvertisementData() { + return advertisementDataBuilder_ != null || advertisementData_ != null; + } + /** + * .AdvertisementData advertisement_data = 2; + * @return The advertisementData. + */ + public com.pauldemarco.flutter_blue.Protos.AdvertisementData getAdvertisementData() { + if (advertisementDataBuilder_ == null) { + return advertisementData_ == null ? com.pauldemarco.flutter_blue.Protos.AdvertisementData.getDefaultInstance() : advertisementData_; + } else { + return advertisementDataBuilder_.getMessage(); + } + } + /** + * .AdvertisementData advertisement_data = 2; + */ + public Builder setAdvertisementData(com.pauldemarco.flutter_blue.Protos.AdvertisementData value) { + if (advertisementDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advertisementData_ = value; + onChanged(); + } else { + advertisementDataBuilder_.setMessage(value); + } + + return this; + } + /** + * .AdvertisementData advertisement_data = 2; + */ + public Builder setAdvertisementData( + com.pauldemarco.flutter_blue.Protos.AdvertisementData.Builder builderForValue) { + if (advertisementDataBuilder_ == null) { + advertisementData_ = builderForValue.build(); + onChanged(); + } else { + advertisementDataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .AdvertisementData advertisement_data = 2; + */ + public Builder mergeAdvertisementData(com.pauldemarco.flutter_blue.Protos.AdvertisementData value) { + if (advertisementDataBuilder_ == null) { + if (advertisementData_ != null) { + advertisementData_ = + com.pauldemarco.flutter_blue.Protos.AdvertisementData.newBuilder(advertisementData_).mergeFrom(value).buildPartial(); + } else { + advertisementData_ = value; + } + onChanged(); + } else { + advertisementDataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .AdvertisementData advertisement_data = 2; + */ + public Builder clearAdvertisementData() { + if (advertisementDataBuilder_ == null) { + advertisementData_ = null; + onChanged(); + } else { + advertisementData_ = null; + advertisementDataBuilder_ = null; + } + + return this; + } + /** + * .AdvertisementData advertisement_data = 2; + */ + public com.pauldemarco.flutter_blue.Protos.AdvertisementData.Builder getAdvertisementDataBuilder() { + + onChanged(); + return getAdvertisementDataFieldBuilder().getBuilder(); + } + /** + * .AdvertisementData advertisement_data = 2; + */ + public com.pauldemarco.flutter_blue.Protos.AdvertisementDataOrBuilder getAdvertisementDataOrBuilder() { + if (advertisementDataBuilder_ != null) { + return advertisementDataBuilder_.getMessageOrBuilder(); + } else { + return advertisementData_ == null ? + com.pauldemarco.flutter_blue.Protos.AdvertisementData.getDefaultInstance() : advertisementData_; + } + } + /** + * .AdvertisementData advertisement_data = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.AdvertisementData, com.pauldemarco.flutter_blue.Protos.AdvertisementData.Builder, com.pauldemarco.flutter_blue.Protos.AdvertisementDataOrBuilder> + getAdvertisementDataFieldBuilder() { + if (advertisementDataBuilder_ == null) { + advertisementDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.AdvertisementData, com.pauldemarco.flutter_blue.Protos.AdvertisementData.Builder, com.pauldemarco.flutter_blue.Protos.AdvertisementDataOrBuilder>( + getAdvertisementData(), + getParentForChildren(), + isClean()); + advertisementData_ = null; + } + return advertisementDataBuilder_; + } + + private int rssi_ ; + /** + * int32 rssi = 3; + * @return The rssi. + */ + public int getRssi() { + return rssi_; + } + /** + * int32 rssi = 3; + * @param value The rssi to set. + * @return This builder for chaining. + */ + public Builder setRssi(int value) { + + rssi_ = value; + onChanged(); + return this; + } + /** + * int32 rssi = 3; + * @return This builder for chaining. + */ + public Builder clearRssi() { + + rssi_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ScanResult) + } + + // @@protoc_insertion_point(class_scope:ScanResult) + private static final com.pauldemarco.flutter_blue.Protos.ScanResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ScanResult(); + } + + public static com.pauldemarco.flutter_blue.Protos.ScanResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ScanResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConnectRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:ConnectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * bool android_auto_connect = 2; + * @return The androidAutoConnect. + */ + boolean getAndroidAutoConnect(); + } + /** + * Protobuf type {@code ConnectRequest} + */ + public static final class ConnectRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ConnectRequest) + ConnectRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectRequest.newBuilder() to construct. + private ConnectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectRequest() { + remoteId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 16: { + + androidAutoConnect_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ConnectRequest.class, com.pauldemarco.flutter_blue.Protos.ConnectRequest.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANDROID_AUTO_CONNECT_FIELD_NUMBER = 2; + private boolean androidAutoConnect_; + /** + * bool android_auto_connect = 2; + * @return The androidAutoConnect. + */ + public boolean getAndroidAutoConnect() { + return androidAutoConnect_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (androidAutoConnect_ != false) { + output.writeBool(2, androidAutoConnect_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (androidAutoConnect_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, androidAutoConnect_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ConnectRequest)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.ConnectRequest other = (com.pauldemarco.flutter_blue.Protos.ConnectRequest) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (getAndroidAutoConnect() + != other.getAndroidAutoConnect()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + ANDROID_AUTO_CONNECT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAndroidAutoConnect()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ConnectRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ConnectRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ConnectRequest) + com.pauldemarco.flutter_blue.Protos.ConnectRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ConnectRequest.class, com.pauldemarco.flutter_blue.Protos.ConnectRequest.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.ConnectRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + androidAutoConnect_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectRequest_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ConnectRequest getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.ConnectRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ConnectRequest build() { + com.pauldemarco.flutter_blue.Protos.ConnectRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ConnectRequest buildPartial() { + com.pauldemarco.flutter_blue.Protos.ConnectRequest result = new com.pauldemarco.flutter_blue.Protos.ConnectRequest(this); + result.remoteId_ = remoteId_; + result.androidAutoConnect_ = androidAutoConnect_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.ConnectRequest) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.ConnectRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ConnectRequest other) { + if (other == com.pauldemarco.flutter_blue.Protos.ConnectRequest.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (other.getAndroidAutoConnect() != false) { + setAndroidAutoConnect(other.getAndroidAutoConnect()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.ConnectRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.ConnectRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private boolean androidAutoConnect_ ; + /** + * bool android_auto_connect = 2; + * @return The androidAutoConnect. + */ + public boolean getAndroidAutoConnect() { + return androidAutoConnect_; + } + /** + * bool android_auto_connect = 2; + * @param value The androidAutoConnect to set. + * @return This builder for chaining. + */ + public Builder setAndroidAutoConnect(boolean value) { + + androidAutoConnect_ = value; + onChanged(); + return this; + } + /** + * bool android_auto_connect = 2; + * @return This builder for chaining. + */ + public Builder clearAndroidAutoConnect() { + + androidAutoConnect_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ConnectRequest) + } + + // @@protoc_insertion_point(class_scope:ConnectRequest) + private static final com.pauldemarco.flutter_blue.Protos.ConnectRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ConnectRequest(); + } + + public static com.pauldemarco.flutter_blue.Protos.ConnectRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ConnectRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BluetoothDeviceOrBuilder extends + // @@protoc_insertion_point(interface_extends:BluetoothDevice) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .BluetoothDevice.Type type = 3; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * .BluetoothDevice.Type type = 3; + * @return The type. + */ + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type getType(); + } + /** + * Protobuf type {@code BluetoothDevice} + */ + public static final class BluetoothDevice extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BluetoothDevice) + BluetoothDeviceOrBuilder { + private static final long serialVersionUID = 0L; + // Use BluetoothDevice.newBuilder() to construct. + private BluetoothDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BluetoothDevice() { + remoteId_ = ""; + name_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BluetoothDevice(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BluetoothDevice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.class, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder.class); + } + + /** + * Protobuf enum {@code BluetoothDevice.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * CLASSIC = 1; + */ + CLASSIC(1), + /** + * LE = 2; + */ + LE(2), + /** + * DUAL = 3; + */ + DUAL(3), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CLASSIC = 1; + */ + public static final int CLASSIC_VALUE = 1; + /** + * LE = 2; + */ + public static final int LE_VALUE = 2; + /** + * DUAL = 3; + */ + public static final int DUAL_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CLASSIC; + case 2: return LE; + case 3: return DUAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:BluetoothDevice.Type) + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_; + /** + * .BluetoothDevice.Type type = 3; + * @return The enum numeric value on the wire for type. + */ + public int getTypeValue() { + return type_; + } + /** + * .BluetoothDevice.Type type = 3; + * @return The type. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type getType() { + @SuppressWarnings("deprecation") + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type result = com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type.valueOf(type_); + return result == null ? com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (type_ != com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type.UNKNOWN.getNumber()) { + output.writeEnum(3, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (type_ != com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.BluetoothDevice)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.BluetoothDevice other = (com.pauldemarco.flutter_blue.Protos.BluetoothDevice) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothDevice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code BluetoothDevice} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BluetoothDevice) + com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.class, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothDevice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + name_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDevice_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice build() { + com.pauldemarco.flutter_blue.Protos.BluetoothDevice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice buildPartial() { + com.pauldemarco.flutter_blue.Protos.BluetoothDevice result = new com.pauldemarco.flutter_blue.Protos.BluetoothDevice(this); + result.remoteId_ = remoteId_; + result.name_ = name_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.BluetoothDevice) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.BluetoothDevice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.BluetoothDevice other) { + if (other == com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.BluetoothDevice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.BluetoothDevice) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * .BluetoothDevice.Type type = 3; + * @return The enum numeric value on the wire for type. + */ + public int getTypeValue() { + return type_; + } + /** + * .BluetoothDevice.Type type = 3; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * .BluetoothDevice.Type type = 3; + * @return The type. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type getType() { + @SuppressWarnings("deprecation") + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type result = com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type.valueOf(type_); + return result == null ? com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type.UNRECOGNIZED : result; + } + /** + * .BluetoothDevice.Type type = 3; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .BluetoothDevice.Type type = 3; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:BluetoothDevice) + } + + // @@protoc_insertion_point(class_scope:BluetoothDevice) + private static final com.pauldemarco.flutter_blue.Protos.BluetoothDevice DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.BluetoothDevice(); + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BluetoothDevice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BluetoothDevice(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BluetoothServiceOrBuilder extends + // @@protoc_insertion_point(interface_extends:BluetoothService) + com.google.protobuf.MessageOrBuilder { + + /** + * string uuid = 1; + * @return The uuid. + */ + java.lang.String getUuid(); + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString + getUuidBytes(); + + /** + * string remote_id = 2; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 2; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + *
+     * Indicates whether the type of service is primary or secondary.
+     * 
+ * + * bool is_primary = 3; + * @return The isPrimary. + */ + boolean getIsPrimary(); + + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + java.util.List + getCharacteristicsList(); + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristics(int index); + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + int getCharacteristicsCount(); + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + java.util.List + getCharacteristicsOrBuilderList(); + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicsOrBuilder( + int index); + + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + java.util.List + getIncludedServicesList(); + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothService getIncludedServices(int index); + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + int getIncludedServicesCount(); + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + java.util.List + getIncludedServicesOrBuilderList(); + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder getIncludedServicesOrBuilder( + int index); + } + /** + * Protobuf type {@code BluetoothService} + */ + public static final class BluetoothService extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BluetoothService) + BluetoothServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use BluetoothService.newBuilder() to construct. + private BluetoothService(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BluetoothService() { + uuid_ = ""; + remoteId_ = ""; + characteristics_ = java.util.Collections.emptyList(); + includedServices_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BluetoothService(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BluetoothService( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uuid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 24: { + + isPrimary_ = input.readBool(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + characteristics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + characteristics_.add( + input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + includedServices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + includedServices_.add( + input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothService.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + characteristics_ = java.util.Collections.unmodifiableList(characteristics_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + includedServices_ = java.util.Collections.unmodifiableList(includedServices_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothService.class, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + private volatile java.lang.Object uuid_; + /** + * string uuid = 1; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } + } + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString + getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOTE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 2; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 2; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_PRIMARY_FIELD_NUMBER = 3; + private boolean isPrimary_; + /** + *
+     * Indicates whether the type of service is primary or secondary.
+     * 
+ * + * bool is_primary = 3; + * @return The isPrimary. + */ + public boolean getIsPrimary() { + return isPrimary_; + } + + public static final int CHARACTERISTICS_FIELD_NUMBER = 4; + private java.util.List characteristics_; + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public java.util.List getCharacteristicsList() { + return characteristics_; + } + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public java.util.List + getCharacteristicsOrBuilderList() { + return characteristics_; + } + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public int getCharacteristicsCount() { + return characteristics_.size(); + } + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristics(int index) { + return characteristics_.get(index); + } + /** + *
+     * A list of characteristics that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicsOrBuilder( + int index) { + return characteristics_.get(index); + } + + public static final int INCLUDED_SERVICES_FIELD_NUMBER = 5; + private java.util.List includedServices_; + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public java.util.List getIncludedServicesList() { + return includedServices_; + } + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public java.util.List + getIncludedServicesOrBuilderList() { + return includedServices_; + } + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public int getIncludedServicesCount() { + return includedServices_.size(); + } + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService getIncludedServices(int index) { + return includedServices_.get(index); + } + /** + *
+     * A list of included services that have been discovered in this service.
+     * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder getIncludedServicesOrBuilder( + int index) { + return includedServices_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); + } + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, remoteId_); + } + if (isPrimary_ != false) { + output.writeBool(3, isPrimary_); + } + for (int i = 0; i < characteristics_.size(); i++) { + output.writeMessage(4, characteristics_.get(i)); + } + for (int i = 0; i < includedServices_.size(); i++) { + output.writeMessage(5, includedServices_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); + } + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, remoteId_); + } + if (isPrimary_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isPrimary_); + } + for (int i = 0; i < characteristics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, characteristics_.get(i)); + } + for (int i = 0; i < includedServices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, includedServices_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.BluetoothService)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.BluetoothService other = (com.pauldemarco.flutter_blue.Protos.BluetoothService) obj; + + if (!getUuid() + .equals(other.getUuid())) return false; + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (getIsPrimary() + != other.getIsPrimary()) return false; + if (!getCharacteristicsList() + .equals(other.getCharacteristicsList())) return false; + if (!getIncludedServicesList() + .equals(other.getIncludedServicesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + IS_PRIMARY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPrimary()); + if (getCharacteristicsCount() > 0) { + hash = (37 * hash) + CHARACTERISTICS_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristicsList().hashCode(); + } + if (getIncludedServicesCount() > 0) { + hash = (37 * hash) + INCLUDED_SERVICES_FIELD_NUMBER; + hash = (53 * hash) + getIncludedServicesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothService prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code BluetoothService} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BluetoothService) + com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothService.class, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothService.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCharacteristicsFieldBuilder(); + getIncludedServicesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uuid_ = ""; + + remoteId_ = ""; + + isPrimary_ = false; + + if (characteristicsBuilder_ == null) { + characteristics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + characteristicsBuilder_.clear(); + } + if (includedServicesBuilder_ == null) { + includedServices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + includedServicesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothService_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothService getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.BluetoothService.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothService build() { + com.pauldemarco.flutter_blue.Protos.BluetoothService result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothService buildPartial() { + com.pauldemarco.flutter_blue.Protos.BluetoothService result = new com.pauldemarco.flutter_blue.Protos.BluetoothService(this); + int from_bitField0_ = bitField0_; + result.uuid_ = uuid_; + result.remoteId_ = remoteId_; + result.isPrimary_ = isPrimary_; + if (characteristicsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + characteristics_ = java.util.Collections.unmodifiableList(characteristics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.characteristics_ = characteristics_; + } else { + result.characteristics_ = characteristicsBuilder_.build(); + } + if (includedServicesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + includedServices_ = java.util.Collections.unmodifiableList(includedServices_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.includedServices_ = includedServices_; + } else { + result.includedServices_ = includedServicesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.BluetoothService) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.BluetoothService)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.BluetoothService other) { + if (other == com.pauldemarco.flutter_blue.Protos.BluetoothService.getDefaultInstance()) return this; + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + onChanged(); + } + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (other.getIsPrimary() != false) { + setIsPrimary(other.getIsPrimary()); + } + if (characteristicsBuilder_ == null) { + if (!other.characteristics_.isEmpty()) { + if (characteristics_.isEmpty()) { + characteristics_ = other.characteristics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCharacteristicsIsMutable(); + characteristics_.addAll(other.characteristics_); + } + onChanged(); + } + } else { + if (!other.characteristics_.isEmpty()) { + if (characteristicsBuilder_.isEmpty()) { + characteristicsBuilder_.dispose(); + characteristicsBuilder_ = null; + characteristics_ = other.characteristics_; + bitField0_ = (bitField0_ & ~0x00000001); + characteristicsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCharacteristicsFieldBuilder() : null; + } else { + characteristicsBuilder_.addAllMessages(other.characteristics_); + } + } + } + if (includedServicesBuilder_ == null) { + if (!other.includedServices_.isEmpty()) { + if (includedServices_.isEmpty()) { + includedServices_ = other.includedServices_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIncludedServicesIsMutable(); + includedServices_.addAll(other.includedServices_); + } + onChanged(); + } + } else { + if (!other.includedServices_.isEmpty()) { + if (includedServicesBuilder_.isEmpty()) { + includedServicesBuilder_.dispose(); + includedServicesBuilder_ = null; + includedServices_ = other.includedServices_; + bitField0_ = (bitField0_ & ~0x00000002); + includedServicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIncludedServicesFieldBuilder() : null; + } else { + includedServicesBuilder_.addAllMessages(other.includedServices_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.BluetoothService parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.BluetoothService) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object uuid_ = ""; + /** + * string uuid = 1; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString + getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uuid = 1; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uuid_ = value; + onChanged(); + return this; + } + /** + * string uuid = 1; + * @return This builder for chaining. + */ + public Builder clearUuid() { + + uuid_ = getDefaultInstance().getUuid(); + onChanged(); + return this; + } + /** + * string uuid = 1; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 2; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 2; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 2; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 2; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 2; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private boolean isPrimary_ ; + /** + *
+       * Indicates whether the type of service is primary or secondary.
+       * 
+ * + * bool is_primary = 3; + * @return The isPrimary. + */ + public boolean getIsPrimary() { + return isPrimary_; + } + /** + *
+       * Indicates whether the type of service is primary or secondary.
+       * 
+ * + * bool is_primary = 3; + * @param value The isPrimary to set. + * @return This builder for chaining. + */ + public Builder setIsPrimary(boolean value) { + + isPrimary_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates whether the type of service is primary or secondary.
+       * 
+ * + * bool is_primary = 3; + * @return This builder for chaining. + */ + public Builder clearIsPrimary() { + + isPrimary_ = false; + onChanged(); + return this; + } + + private java.util.List characteristics_ = + java.util.Collections.emptyList(); + private void ensureCharacteristicsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + characteristics_ = new java.util.ArrayList(characteristics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> characteristicsBuilder_; + + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public java.util.List getCharacteristicsList() { + if (characteristicsBuilder_ == null) { + return java.util.Collections.unmodifiableList(characteristics_); + } else { + return characteristicsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public int getCharacteristicsCount() { + if (characteristicsBuilder_ == null) { + return characteristics_.size(); + } else { + return characteristicsBuilder_.getCount(); + } + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristics(int index) { + if (characteristicsBuilder_ == null) { + return characteristics_.get(index); + } else { + return characteristicsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public Builder setCharacteristics( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) { + if (characteristicsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCharacteristicsIsMutable(); + characteristics_.set(index, value); + onChanged(); + } else { + characteristicsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public Builder setCharacteristics( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) { + if (characteristicsBuilder_ == null) { + ensureCharacteristicsIsMutable(); + characteristics_.set(index, builderForValue.build()); + onChanged(); + } else { + characteristicsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public Builder addCharacteristics(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) { + if (characteristicsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCharacteristicsIsMutable(); + characteristics_.add(value); + onChanged(); + } else { + characteristicsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public Builder addCharacteristics( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) { + if (characteristicsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCharacteristicsIsMutable(); + characteristics_.add(index, value); + onChanged(); + } else { + characteristicsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public Builder addCharacteristics( + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) { + if (characteristicsBuilder_ == null) { + ensureCharacteristicsIsMutable(); + characteristics_.add(builderForValue.build()); + onChanged(); + } else { + characteristicsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public Builder addCharacteristics( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) { + if (characteristicsBuilder_ == null) { + ensureCharacteristicsIsMutable(); + characteristics_.add(index, builderForValue.build()); + onChanged(); + } else { + characteristicsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public Builder addAllCharacteristics( + java.lang.Iterable values) { + if (characteristicsBuilder_ == null) { + ensureCharacteristicsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, characteristics_); + onChanged(); + } else { + characteristicsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public Builder clearCharacteristics() { + if (characteristicsBuilder_ == null) { + characteristics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + characteristicsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public Builder removeCharacteristics(int index) { + if (characteristicsBuilder_ == null) { + ensureCharacteristicsIsMutable(); + characteristics_.remove(index); + onChanged(); + } else { + characteristicsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder getCharacteristicsBuilder( + int index) { + return getCharacteristicsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicsOrBuilder( + int index) { + if (characteristicsBuilder_ == null) { + return characteristics_.get(index); } else { + return characteristicsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public java.util.List + getCharacteristicsOrBuilderList() { + if (characteristicsBuilder_ != null) { + return characteristicsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(characteristics_); + } + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder addCharacteristicsBuilder() { + return getCharacteristicsFieldBuilder().addBuilder( + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance()); + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder addCharacteristicsBuilder( + int index) { + return getCharacteristicsFieldBuilder().addBuilder( + index, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance()); + } + /** + *
+       * A list of characteristics that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothCharacteristic characteristics = 4; + */ + public java.util.List + getCharacteristicsBuilderList() { + return getCharacteristicsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> + getCharacteristicsFieldBuilder() { + if (characteristicsBuilder_ == null) { + characteristicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>( + characteristics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + characteristics_ = null; + } + return characteristicsBuilder_; + } + + private java.util.List includedServices_ = + java.util.Collections.emptyList(); + private void ensureIncludedServicesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + includedServices_ = new java.util.ArrayList(includedServices_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothService, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder> includedServicesBuilder_; + + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public java.util.List getIncludedServicesList() { + if (includedServicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(includedServices_); + } else { + return includedServicesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public int getIncludedServicesCount() { + if (includedServicesBuilder_ == null) { + return includedServices_.size(); + } else { + return includedServicesBuilder_.getCount(); + } + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService getIncludedServices(int index) { + if (includedServicesBuilder_ == null) { + return includedServices_.get(index); + } else { + return includedServicesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public Builder setIncludedServices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) { + if (includedServicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedServicesIsMutable(); + includedServices_.set(index, value); + onChanged(); + } else { + includedServicesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public Builder setIncludedServices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) { + if (includedServicesBuilder_ == null) { + ensureIncludedServicesIsMutable(); + includedServices_.set(index, builderForValue.build()); + onChanged(); + } else { + includedServicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public Builder addIncludedServices(com.pauldemarco.flutter_blue.Protos.BluetoothService value) { + if (includedServicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedServicesIsMutable(); + includedServices_.add(value); + onChanged(); + } else { + includedServicesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public Builder addIncludedServices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) { + if (includedServicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedServicesIsMutable(); + includedServices_.add(index, value); + onChanged(); + } else { + includedServicesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public Builder addIncludedServices( + com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) { + if (includedServicesBuilder_ == null) { + ensureIncludedServicesIsMutable(); + includedServices_.add(builderForValue.build()); + onChanged(); + } else { + includedServicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public Builder addIncludedServices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) { + if (includedServicesBuilder_ == null) { + ensureIncludedServicesIsMutable(); + includedServices_.add(index, builderForValue.build()); + onChanged(); + } else { + includedServicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public Builder addAllIncludedServices( + java.lang.Iterable values) { + if (includedServicesBuilder_ == null) { + ensureIncludedServicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, includedServices_); + onChanged(); + } else { + includedServicesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public Builder clearIncludedServices() { + if (includedServicesBuilder_ == null) { + includedServices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + includedServicesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public Builder removeIncludedServices(int index) { + if (includedServicesBuilder_ == null) { + ensureIncludedServicesIsMutable(); + includedServices_.remove(index); + onChanged(); + } else { + includedServicesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder getIncludedServicesBuilder( + int index) { + return getIncludedServicesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder getIncludedServicesOrBuilder( + int index) { + if (includedServicesBuilder_ == null) { + return includedServices_.get(index); } else { + return includedServicesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public java.util.List + getIncludedServicesOrBuilderList() { + if (includedServicesBuilder_ != null) { + return includedServicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(includedServices_); + } + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder addIncludedServicesBuilder() { + return getIncludedServicesFieldBuilder().addBuilder( + com.pauldemarco.flutter_blue.Protos.BluetoothService.getDefaultInstance()); + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder addIncludedServicesBuilder( + int index) { + return getIncludedServicesFieldBuilder().addBuilder( + index, com.pauldemarco.flutter_blue.Protos.BluetoothService.getDefaultInstance()); + } + /** + *
+       * A list of included services that have been discovered in this service.
+       * 
+ * + * repeated .BluetoothService included_services = 5; + */ + public java.util.List + getIncludedServicesBuilderList() { + return getIncludedServicesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothService, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder> + getIncludedServicesFieldBuilder() { + if (includedServicesBuilder_ == null) { + includedServicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothService, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder>( + includedServices_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + includedServices_ = null; + } + return includedServicesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:BluetoothService) + } + + // @@protoc_insertion_point(class_scope:BluetoothService) + private static final com.pauldemarco.flutter_blue.Protos.BluetoothService DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.BluetoothService(); + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothService getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BluetoothService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BluetoothService(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothService getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BluetoothCharacteristicOrBuilder extends + // @@protoc_insertion_point(interface_extends:BluetoothCharacteristic) + com.google.protobuf.MessageOrBuilder { + + /** + * string uuid = 1; + * @return The uuid. + */ + java.lang.String getUuid(); + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString + getUuidBytes(); + + /** + * string remote_id = 2; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 2; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + *
+     * The service that this characteristic belongs to.
+     * 
+ * + * string serviceUuid = 3; + * @return The serviceUuid. + */ + java.lang.String getServiceUuid(); + /** + *
+     * The service that this characteristic belongs to.
+     * 
+ * + * string serviceUuid = 3; + * @return The bytes for serviceUuid. + */ + com.google.protobuf.ByteString + getServiceUuidBytes(); + + /** + *
+     * The secondary service if nested
+     * 
+ * + * string secondaryServiceUuid = 4; + * @return The secondaryServiceUuid. + */ + java.lang.String getSecondaryServiceUuid(); + /** + *
+     * The secondary service if nested
+     * 
+ * + * string secondaryServiceUuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + com.google.protobuf.ByteString + getSecondaryServiceUuidBytes(); + + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + java.util.List + getDescriptorsList(); + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDescriptors(int index); + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + int getDescriptorsCount(); + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + java.util.List + getDescriptorsOrBuilderList(); + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder getDescriptorsOrBuilder( + int index); + + /** + *
+     * The properties of the characteristic.
+     * 
+ * + * .CharacteristicProperties properties = 6; + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + *
+     * The properties of the characteristic.
+     * 
+ * + * .CharacteristicProperties properties = 6; + * @return The properties. + */ + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getProperties(); + /** + *
+     * The properties of the characteristic.
+     * 
+ * + * .CharacteristicProperties properties = 6; + */ + com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder getPropertiesOrBuilder(); + + /** + * bytes value = 7; + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + } + /** + * Protobuf type {@code BluetoothCharacteristic} + */ + public static final class BluetoothCharacteristic extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BluetoothCharacteristic) + BluetoothCharacteristicOrBuilder { + private static final long serialVersionUID = 0L; + // Use BluetoothCharacteristic.newBuilder() to construct. + private BluetoothCharacteristic(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BluetoothCharacteristic() { + uuid_ = ""; + remoteId_ = ""; + serviceUuid_ = ""; + secondaryServiceUuid_ = ""; + descriptors_ = java.util.Collections.emptyList(); + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BluetoothCharacteristic(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BluetoothCharacteristic( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uuid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceUuid_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryServiceUuid_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + descriptors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + descriptors_.add( + input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.parser(), extensionRegistry)); + break; + } + case 50: { + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder subBuilder = null; + if (properties_ != null) { + subBuilder = properties_.toBuilder(); + } + properties_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(properties_); + properties_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + descriptors_ = java.util.Collections.unmodifiableList(descriptors_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothCharacteristic_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothCharacteristic_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.class, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + private volatile java.lang.Object uuid_; + /** + * string uuid = 1; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } + } + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString + getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOTE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 2; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 2; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICEUUID_FIELD_NUMBER = 3; + private volatile java.lang.Object serviceUuid_; + /** + *
+     * The service that this characteristic belongs to.
+     * 
+ * + * string serviceUuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } + } + /** + *
+     * The service that this characteristic belongs to.
+     * 
+ * + * string serviceUuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARYSERVICEUUID_FIELD_NUMBER = 4; + private volatile java.lang.Object secondaryServiceUuid_; + /** + *
+     * The secondary service if nested
+     * 
+ * + * string secondaryServiceUuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } + } + /** + *
+     * The secondary service if nested
+     * 
+ * + * string secondaryServiceUuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTORS_FIELD_NUMBER = 5; + private java.util.List descriptors_; + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public java.util.List getDescriptorsList() { + return descriptors_; + } + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public java.util.List + getDescriptorsOrBuilderList() { + return descriptors_; + } + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public int getDescriptorsCount() { + return descriptors_.size(); + } + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDescriptors(int index) { + return descriptors_.get(index); + } + /** + *
+     * A list of descriptors that have been discovered in this characteristic.
+     * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder getDescriptorsOrBuilder( + int index) { + return descriptors_.get(index); + } + + public static final int PROPERTIES_FIELD_NUMBER = 6; + private com.pauldemarco.flutter_blue.Protos.CharacteristicProperties properties_; + /** + *
+     * The properties of the characteristic.
+     * 
+ * + * .CharacteristicProperties properties = 6; + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return properties_ != null; + } + /** + *
+     * The properties of the characteristic.
+     * 
+ * + * .CharacteristicProperties properties = 6; + * @return The properties. + */ + public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getProperties() { + return properties_ == null ? com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance() : properties_; + } + /** + *
+     * The properties of the characteristic.
+     * 
+ * + * .CharacteristicProperties properties = 6; + */ + public com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder getPropertiesOrBuilder() { + return getProperties(); + } + + public static final int VALUE_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 7; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); + } + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, remoteId_); + } + if (!getServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secondaryServiceUuid_); + } + for (int i = 0; i < descriptors_.size(); i++) { + output.writeMessage(5, descriptors_.get(i)); + } + if (properties_ != null) { + output.writeMessage(6, getProperties()); + } + if (!value_.isEmpty()) { + output.writeBytes(7, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); + } + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, remoteId_); + } + if (!getServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secondaryServiceUuid_); + } + for (int i = 0; i < descriptors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, descriptors_.get(i)); + } + if (properties_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getProperties()); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic other = (com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic) obj; + + if (!getUuid() + .equals(other.getUuid())) return false; + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!getServiceUuid() + .equals(other.getServiceUuid())) return false; + if (!getSecondaryServiceUuid() + .equals(other.getSecondaryServiceUuid())) return false; + if (!getDescriptorsList() + .equals(other.getDescriptorsList())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties() + .equals(other.getProperties())) return false; + } + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + SERVICEUUID_FIELD_NUMBER; + hash = (53 * hash) + getServiceUuid().hashCode(); + hash = (37 * hash) + SECONDARYSERVICEUUID_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryServiceUuid().hashCode(); + if (getDescriptorsCount() > 0) { + hash = (37 * hash) + DESCRIPTORS_FIELD_NUMBER; + hash = (53 * hash) + getDescriptorsList().hashCode(); + } + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code BluetoothCharacteristic} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BluetoothCharacteristic) + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothCharacteristic_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothCharacteristic_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.class, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDescriptorsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uuid_ = ""; + + remoteId_ = ""; + + serviceUuid_ = ""; + + secondaryServiceUuid_ = ""; + + if (descriptorsBuilder_ == null) { + descriptors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + descriptorsBuilder_.clear(); + } + if (propertiesBuilder_ == null) { + properties_ = null; + } else { + properties_ = null; + propertiesBuilder_ = null; + } + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothCharacteristic_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic build() { + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic buildPartial() { + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic result = new com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic(this); + int from_bitField0_ = bitField0_; + result.uuid_ = uuid_; + result.remoteId_ = remoteId_; + result.serviceUuid_ = serviceUuid_; + result.secondaryServiceUuid_ = secondaryServiceUuid_; + if (descriptorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + descriptors_ = java.util.Collections.unmodifiableList(descriptors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.descriptors_ = descriptors_; + } else { + result.descriptors_ = descriptorsBuilder_.build(); + } + if (propertiesBuilder_ == null) { + result.properties_ = properties_; + } else { + result.properties_ = propertiesBuilder_.build(); + } + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic other) { + if (other == com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance()) return this; + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + onChanged(); + } + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (!other.getServiceUuid().isEmpty()) { + serviceUuid_ = other.serviceUuid_; + onChanged(); + } + if (!other.getSecondaryServiceUuid().isEmpty()) { + secondaryServiceUuid_ = other.secondaryServiceUuid_; + onChanged(); + } + if (descriptorsBuilder_ == null) { + if (!other.descriptors_.isEmpty()) { + if (descriptors_.isEmpty()) { + descriptors_ = other.descriptors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDescriptorsIsMutable(); + descriptors_.addAll(other.descriptors_); + } + onChanged(); + } + } else { + if (!other.descriptors_.isEmpty()) { + if (descriptorsBuilder_.isEmpty()) { + descriptorsBuilder_.dispose(); + descriptorsBuilder_ = null; + descriptors_ = other.descriptors_; + bitField0_ = (bitField0_ & ~0x00000001); + descriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDescriptorsFieldBuilder() : null; + } else { + descriptorsBuilder_.addAllMessages(other.descriptors_); + } + } + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object uuid_ = ""; + /** + * string uuid = 1; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString + getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uuid = 1; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uuid_ = value; + onChanged(); + return this; + } + /** + * string uuid = 1; + * @return This builder for chaining. + */ + public Builder clearUuid() { + + uuid_ = getDefaultInstance().getUuid(); + onChanged(); + return this; + } + /** + * string uuid = 1; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 2; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 2; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 2; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 2; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 2; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceUuid_ = ""; + /** + *
+       * The service that this characteristic belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The service that this characteristic belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The service that this characteristic belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @param value The serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceUuid_ = value; + onChanged(); + return this; + } + /** + *
+       * The service that this characteristic belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @return This builder for chaining. + */ + public Builder clearServiceUuid() { + + serviceUuid_ = getDefaultInstance().getServiceUuid(); + onChanged(); + return this; + } + /** + *
+       * The service that this characteristic belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @param value The bytes for serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object secondaryServiceUuid_ = ""; + /** + *
+       * The secondary service if nested
+       * 
+ * + * string secondaryServiceUuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The secondary service if nested
+       * 
+ * + * string secondaryServiceUuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The secondary service if nested
+       * 
+ * + * string secondaryServiceUuid = 4; + * @param value The secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + /** + *
+       * The secondary service if nested
+       * 
+ * + * string secondaryServiceUuid = 4; + * @return This builder for chaining. + */ + public Builder clearSecondaryServiceUuid() { + + secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid(); + onChanged(); + return this; + } + /** + *
+       * The secondary service if nested
+       * 
+ * + * string secondaryServiceUuid = 4; + * @param value The bytes for secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + + private java.util.List descriptors_ = + java.util.Collections.emptyList(); + private void ensureDescriptorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + descriptors_ = new java.util.ArrayList(descriptors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder> descriptorsBuilder_; + + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public java.util.List getDescriptorsList() { + if (descriptorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(descriptors_); + } else { + return descriptorsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public int getDescriptorsCount() { + if (descriptorsBuilder_ == null) { + return descriptors_.size(); + } else { + return descriptorsBuilder_.getCount(); + } + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDescriptors(int index) { + if (descriptorsBuilder_ == null) { + return descriptors_.get(index); + } else { + return descriptorsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public Builder setDescriptors( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor value) { + if (descriptorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptorsIsMutable(); + descriptors_.set(index, value); + onChanged(); + } else { + descriptorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public Builder setDescriptors( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder builderForValue) { + if (descriptorsBuilder_ == null) { + ensureDescriptorsIsMutable(); + descriptors_.set(index, builderForValue.build()); + onChanged(); + } else { + descriptorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public Builder addDescriptors(com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor value) { + if (descriptorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptorsIsMutable(); + descriptors_.add(value); + onChanged(); + } else { + descriptorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public Builder addDescriptors( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor value) { + if (descriptorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptorsIsMutable(); + descriptors_.add(index, value); + onChanged(); + } else { + descriptorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public Builder addDescriptors( + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder builderForValue) { + if (descriptorsBuilder_ == null) { + ensureDescriptorsIsMutable(); + descriptors_.add(builderForValue.build()); + onChanged(); + } else { + descriptorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public Builder addDescriptors( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder builderForValue) { + if (descriptorsBuilder_ == null) { + ensureDescriptorsIsMutable(); + descriptors_.add(index, builderForValue.build()); + onChanged(); + } else { + descriptorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public Builder addAllDescriptors( + java.lang.Iterable values) { + if (descriptorsBuilder_ == null) { + ensureDescriptorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, descriptors_); + onChanged(); + } else { + descriptorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public Builder clearDescriptors() { + if (descriptorsBuilder_ == null) { + descriptors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + descriptorsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public Builder removeDescriptors(int index) { + if (descriptorsBuilder_ == null) { + ensureDescriptorsIsMutable(); + descriptors_.remove(index); + onChanged(); + } else { + descriptorsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder getDescriptorsBuilder( + int index) { + return getDescriptorsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder getDescriptorsOrBuilder( + int index) { + if (descriptorsBuilder_ == null) { + return descriptors_.get(index); } else { + return descriptorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public java.util.List + getDescriptorsOrBuilderList() { + if (descriptorsBuilder_ != null) { + return descriptorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(descriptors_); + } + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder addDescriptorsBuilder() { + return getDescriptorsFieldBuilder().addBuilder( + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.getDefaultInstance()); + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder addDescriptorsBuilder( + int index) { + return getDescriptorsFieldBuilder().addBuilder( + index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.getDefaultInstance()); + } + /** + *
+       * A list of descriptors that have been discovered in this characteristic.
+       * 
+ * + * repeated .BluetoothDescriptor descriptors = 5; + */ + public java.util.List + getDescriptorsBuilderList() { + return getDescriptorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder> + getDescriptorsFieldBuilder() { + if (descriptorsBuilder_ == null) { + descriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder>( + descriptors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + descriptors_ = null; + } + return descriptorsBuilder_; + } + + private com.pauldemarco.flutter_blue.Protos.CharacteristicProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder, com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder> propertiesBuilder_; + /** + *
+       * The properties of the characteristic.
+       * 
+ * + * .CharacteristicProperties properties = 6; + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return propertiesBuilder_ != null || properties_ != null; + } + /** + *
+       * The properties of the characteristic.
+       * 
+ * + * .CharacteristicProperties properties = 6; + * @return The properties. + */ + public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null ? com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance() : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + *
+       * The properties of the characteristic.
+       * 
+ * + * .CharacteristicProperties properties = 6; + */ + public Builder setProperties(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + onChanged(); + } else { + propertiesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The properties of the characteristic.
+       * 
+ * + * .CharacteristicProperties properties = 6; + */ + public Builder setProperties( + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + onChanged(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The properties of the characteristic.
+       * 
+ * + * .CharacteristicProperties properties = 6; + */ + public Builder mergeProperties(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties value) { + if (propertiesBuilder_ == null) { + if (properties_ != null) { + properties_ = + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.newBuilder(properties_).mergeFrom(value).buildPartial(); + } else { + properties_ = value; + } + onChanged(); + } else { + propertiesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The properties of the characteristic.
+       * 
+ * + * .CharacteristicProperties properties = 6; + */ + public Builder clearProperties() { + if (propertiesBuilder_ == null) { + properties_ = null; + onChanged(); + } else { + properties_ = null; + propertiesBuilder_ = null; + } + + return this; + } + /** + *
+       * The properties of the characteristic.
+       * 
+ * + * .CharacteristicProperties properties = 6; + */ + public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder getPropertiesBuilder() { + + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + *
+       * The properties of the characteristic.
+       * 
+ * + * .CharacteristicProperties properties = 6; + */ + public com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null ? + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance() : properties_; + } + } + /** + *
+       * The properties of the characteristic.
+       * 
+ * + * .CharacteristicProperties properties = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder, com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder, com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder>( + getProperties(), + getParentForChildren(), + isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 7; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 7; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 7; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:BluetoothCharacteristic) + } + + // @@protoc_insertion_point(class_scope:BluetoothCharacteristic) + private static final com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic(); + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BluetoothCharacteristic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BluetoothCharacteristic(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BluetoothDescriptorOrBuilder extends + // @@protoc_insertion_point(interface_extends:BluetoothDescriptor) + com.google.protobuf.MessageOrBuilder { + + /** + * string uuid = 1; + * @return The uuid. + */ + java.lang.String getUuid(); + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString + getUuidBytes(); + + /** + * string remote_id = 2; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 2; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + *
+     * The service that this descriptor belongs to.
+     * 
+ * + * string serviceUuid = 3; + * @return The serviceUuid. + */ + java.lang.String getServiceUuid(); + /** + *
+     * The service that this descriptor belongs to.
+     * 
+ * + * string serviceUuid = 3; + * @return The bytes for serviceUuid. + */ + com.google.protobuf.ByteString + getServiceUuidBytes(); + + /** + *
+     * The characteristic that this descriptor belongs to.
+     * 
+ * + * string characteristicUuid = 4; + * @return The characteristicUuid. + */ + java.lang.String getCharacteristicUuid(); + /** + *
+     * The characteristic that this descriptor belongs to.
+     * 
+ * + * string characteristicUuid = 4; + * @return The bytes for characteristicUuid. + */ + com.google.protobuf.ByteString + getCharacteristicUuidBytes(); + + /** + * bytes value = 5; + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + } + /** + * Protobuf type {@code BluetoothDescriptor} + */ + public static final class BluetoothDescriptor extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:BluetoothDescriptor) + BluetoothDescriptorOrBuilder { + private static final long serialVersionUID = 0L; + // Use BluetoothDescriptor.newBuilder() to construct. + private BluetoothDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BluetoothDescriptor() { + uuid_ = ""; + remoteId_ = ""; + serviceUuid_ = ""; + characteristicUuid_ = ""; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BluetoothDescriptor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BluetoothDescriptor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uuid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceUuid_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + characteristicUuid_ = s; + break; + } + case 42: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.class, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + private volatile java.lang.Object uuid_; + /** + * string uuid = 1; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } + } + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString + getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOTE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 2; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 2; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICEUUID_FIELD_NUMBER = 3; + private volatile java.lang.Object serviceUuid_; + /** + *
+     * The service that this descriptor belongs to.
+     * 
+ * + * string serviceUuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } + } + /** + *
+     * The service that this descriptor belongs to.
+     * 
+ * + * string serviceUuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTERISTICUUID_FIELD_NUMBER = 4; + private volatile java.lang.Object characteristicUuid_; + /** + *
+     * The characteristic that this descriptor belongs to.
+     * 
+ * + * string characteristicUuid = 4; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } + } + /** + *
+     * The characteristic that this descriptor belongs to.
+     * 
+ * + * string characteristicUuid = 4; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 5; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); + } + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, remoteId_); + } + if (!getServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, characteristicUuid_); + } + if (!value_.isEmpty()) { + output.writeBytes(5, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); + } + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, remoteId_); + } + if (!getServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, characteristicUuid_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor other = (com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor) obj; + + if (!getUuid() + .equals(other.getUuid())) return false; + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!getServiceUuid() + .equals(other.getServiceUuid())) return false; + if (!getCharacteristicUuid() + .equals(other.getCharacteristicUuid())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + SERVICEUUID_FIELD_NUMBER; + hash = (53 * hash) + getServiceUuid().hashCode(); + hash = (37 * hash) + CHARACTERISTICUUID_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristicUuid().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code BluetoothDescriptor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:BluetoothDescriptor) + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.class, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uuid_ = ""; + + remoteId_ = ""; + + serviceUuid_ = ""; + + characteristicUuid_ = ""; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor build() { + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor buildPartial() { + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor result = new com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor(this); + result.uuid_ = uuid_; + result.remoteId_ = remoteId_; + result.serviceUuid_ = serviceUuid_; + result.characteristicUuid_ = characteristicUuid_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor other) { + if (other == com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.getDefaultInstance()) return this; + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + onChanged(); + } + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (!other.getServiceUuid().isEmpty()) { + serviceUuid_ = other.serviceUuid_; + onChanged(); + } + if (!other.getCharacteristicUuid().isEmpty()) { + characteristicUuid_ = other.characteristicUuid_; + onChanged(); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uuid_ = ""; + /** + * string uuid = 1; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString + getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uuid = 1; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uuid_ = value; + onChanged(); + return this; + } + /** + * string uuid = 1; + * @return This builder for chaining. + */ + public Builder clearUuid() { + + uuid_ = getDefaultInstance().getUuid(); + onChanged(); + return this; + } + /** + * string uuid = 1; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 2; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 2; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 2; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 2; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 2; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceUuid_ = ""; + /** + *
+       * The service that this descriptor belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The service that this descriptor belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The service that this descriptor belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @param value The serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceUuid_ = value; + onChanged(); + return this; + } + /** + *
+       * The service that this descriptor belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @return This builder for chaining. + */ + public Builder clearServiceUuid() { + + serviceUuid_ = getDefaultInstance().getServiceUuid(); + onChanged(); + return this; + } + /** + *
+       * The service that this descriptor belongs to.
+       * 
+ * + * string serviceUuid = 3; + * @param value The bytes for serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object characteristicUuid_ = ""; + /** + *
+       * The characteristic that this descriptor belongs to.
+       * 
+ * + * string characteristicUuid = 4; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The characteristic that this descriptor belongs to.
+       * 
+ * + * string characteristicUuid = 4; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The characteristic that this descriptor belongs to.
+       * 
+ * + * string characteristicUuid = 4; + * @param value The characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + characteristicUuid_ = value; + onChanged(); + return this; + } + /** + *
+       * The characteristic that this descriptor belongs to.
+       * 
+ * + * string characteristicUuid = 4; + * @return This builder for chaining. + */ + public Builder clearCharacteristicUuid() { + + characteristicUuid_ = getDefaultInstance().getCharacteristicUuid(); + onChanged(); + return this; + } + /** + *
+       * The characteristic that this descriptor belongs to.
+       * 
+ * + * string characteristicUuid = 4; + * @param value The bytes for characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + characteristicUuid_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 5; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 5; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 5; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:BluetoothDescriptor) + } + + // @@protoc_insertion_point(class_scope:BluetoothDescriptor) + private static final com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor(); + } + + public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BluetoothDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BluetoothDescriptor(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CharacteristicPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:CharacteristicProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * bool broadcast = 1; + * @return The broadcast. + */ + boolean getBroadcast(); + + /** + * bool read = 2; + * @return The read. + */ + boolean getRead(); + + /** + * bool write_without_response = 3; + * @return The writeWithoutResponse. + */ + boolean getWriteWithoutResponse(); + + /** + * bool write = 4; + * @return The write. + */ + boolean getWrite(); + + /** + * bool notify = 5; + * @return The notify. + */ + boolean getNotify(); + + /** + * bool indicate = 6; + * @return The indicate. + */ + boolean getIndicate(); + + /** + * bool authenticated_signed_writes = 7; + * @return The authenticatedSignedWrites. + */ + boolean getAuthenticatedSignedWrites(); + + /** + * bool extended_properties = 8; + * @return The extendedProperties. + */ + boolean getExtendedProperties(); + + /** + * bool notify_encryption_required = 9; + * @return The notifyEncryptionRequired. + */ + boolean getNotifyEncryptionRequired(); + + /** + * bool indicate_encryption_required = 10; + * @return The indicateEncryptionRequired. + */ + boolean getIndicateEncryptionRequired(); + } + /** + * Protobuf type {@code CharacteristicProperties} + */ + public static final class CharacteristicProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CharacteristicProperties) + CharacteristicPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use CharacteristicProperties.newBuilder() to construct. + private CharacteristicProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CharacteristicProperties() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CharacteristicProperties(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CharacteristicProperties( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + broadcast_ = input.readBool(); + break; + } + case 16: { + + read_ = input.readBool(); + break; + } + case 24: { + + writeWithoutResponse_ = input.readBool(); + break; + } + case 32: { + + write_ = input.readBool(); + break; + } + case 40: { + + notify_ = input.readBool(); + break; + } + case 48: { + + indicate_ = input.readBool(); + break; + } + case 56: { + + authenticatedSignedWrites_ = input.readBool(); + break; + } + case 64: { + + extendedProperties_ = input.readBool(); + break; + } + case 72: { + + notifyEncryptionRequired_ = input.readBool(); + break; + } + case 80: { + + indicateEncryptionRequired_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.class, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder.class); + } + + public static final int BROADCAST_FIELD_NUMBER = 1; + private boolean broadcast_; + /** + * bool broadcast = 1; + * @return The broadcast. + */ + public boolean getBroadcast() { + return broadcast_; + } + + public static final int READ_FIELD_NUMBER = 2; + private boolean read_; + /** + * bool read = 2; + * @return The read. + */ + public boolean getRead() { + return read_; + } + + public static final int WRITE_WITHOUT_RESPONSE_FIELD_NUMBER = 3; + private boolean writeWithoutResponse_; + /** + * bool write_without_response = 3; + * @return The writeWithoutResponse. + */ + public boolean getWriteWithoutResponse() { + return writeWithoutResponse_; + } + + public static final int WRITE_FIELD_NUMBER = 4; + private boolean write_; + /** + * bool write = 4; + * @return The write. + */ + public boolean getWrite() { + return write_; + } + + public static final int NOTIFY_FIELD_NUMBER = 5; + private boolean notify_; + /** + * bool notify = 5; + * @return The notify. + */ + public boolean getNotify() { + return notify_; + } + + public static final int INDICATE_FIELD_NUMBER = 6; + private boolean indicate_; + /** + * bool indicate = 6; + * @return The indicate. + */ + public boolean getIndicate() { + return indicate_; + } + + public static final int AUTHENTICATED_SIGNED_WRITES_FIELD_NUMBER = 7; + private boolean authenticatedSignedWrites_; + /** + * bool authenticated_signed_writes = 7; + * @return The authenticatedSignedWrites. + */ + public boolean getAuthenticatedSignedWrites() { + return authenticatedSignedWrites_; + } + + public static final int EXTENDED_PROPERTIES_FIELD_NUMBER = 8; + private boolean extendedProperties_; + /** + * bool extended_properties = 8; + * @return The extendedProperties. + */ + public boolean getExtendedProperties() { + return extendedProperties_; + } + + public static final int NOTIFY_ENCRYPTION_REQUIRED_FIELD_NUMBER = 9; + private boolean notifyEncryptionRequired_; + /** + * bool notify_encryption_required = 9; + * @return The notifyEncryptionRequired. + */ + public boolean getNotifyEncryptionRequired() { + return notifyEncryptionRequired_; + } + + public static final int INDICATE_ENCRYPTION_REQUIRED_FIELD_NUMBER = 10; + private boolean indicateEncryptionRequired_; + /** + * bool indicate_encryption_required = 10; + * @return The indicateEncryptionRequired. + */ + public boolean getIndicateEncryptionRequired() { + return indicateEncryptionRequired_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (broadcast_ != false) { + output.writeBool(1, broadcast_); + } + if (read_ != false) { + output.writeBool(2, read_); + } + if (writeWithoutResponse_ != false) { + output.writeBool(3, writeWithoutResponse_); + } + if (write_ != false) { + output.writeBool(4, write_); + } + if (notify_ != false) { + output.writeBool(5, notify_); + } + if (indicate_ != false) { + output.writeBool(6, indicate_); + } + if (authenticatedSignedWrites_ != false) { + output.writeBool(7, authenticatedSignedWrites_); + } + if (extendedProperties_ != false) { + output.writeBool(8, extendedProperties_); + } + if (notifyEncryptionRequired_ != false) { + output.writeBool(9, notifyEncryptionRequired_); + } + if (indicateEncryptionRequired_ != false) { + output.writeBool(10, indicateEncryptionRequired_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (broadcast_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, broadcast_); + } + if (read_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, read_); + } + if (writeWithoutResponse_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, writeWithoutResponse_); + } + if (write_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, write_); + } + if (notify_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, notify_); + } + if (indicate_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, indicate_); + } + if (authenticatedSignedWrites_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, authenticatedSignedWrites_); + } + if (extendedProperties_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, extendedProperties_); + } + if (notifyEncryptionRequired_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, notifyEncryptionRequired_); + } + if (indicateEncryptionRequired_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, indicateEncryptionRequired_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.CharacteristicProperties)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties other = (com.pauldemarco.flutter_blue.Protos.CharacteristicProperties) obj; + + if (getBroadcast() + != other.getBroadcast()) return false; + if (getRead() + != other.getRead()) return false; + if (getWriteWithoutResponse() + != other.getWriteWithoutResponse()) return false; + if (getWrite() + != other.getWrite()) return false; + if (getNotify() + != other.getNotify()) return false; + if (getIndicate() + != other.getIndicate()) return false; + if (getAuthenticatedSignedWrites() + != other.getAuthenticatedSignedWrites()) return false; + if (getExtendedProperties() + != other.getExtendedProperties()) return false; + if (getNotifyEncryptionRequired() + != other.getNotifyEncryptionRequired()) return false; + if (getIndicateEncryptionRequired() + != other.getIndicateEncryptionRequired()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BROADCAST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBroadcast()); + hash = (37 * hash) + READ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRead()); + hash = (37 * hash) + WRITE_WITHOUT_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWriteWithoutResponse()); + hash = (37 * hash) + WRITE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWrite()); + hash = (37 * hash) + NOTIFY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNotify()); + hash = (37 * hash) + INDICATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIndicate()); + hash = (37 * hash) + AUTHENTICATED_SIGNED_WRITES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAuthenticatedSignedWrites()); + hash = (37 * hash) + EXTENDED_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExtendedProperties()); + hash = (37 * hash) + NOTIFY_ENCRYPTION_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNotifyEncryptionRequired()); + hash = (37 * hash) + INDICATE_ENCRYPTION_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIndicateEncryptionRequired()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code CharacteristicProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CharacteristicProperties) + com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.class, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + broadcast_ = false; + + read_ = false; + + writeWithoutResponse_ = false; + + write_ = false; + + notify_ = false; + + indicate_ = false; + + authenticatedSignedWrites_ = false; + + extendedProperties_ = false; + + notifyEncryptionRequired_ = false; + + indicateEncryptionRequired_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties build() { + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties buildPartial() { + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties result = new com.pauldemarco.flutter_blue.Protos.CharacteristicProperties(this); + result.broadcast_ = broadcast_; + result.read_ = read_; + result.writeWithoutResponse_ = writeWithoutResponse_; + result.write_ = write_; + result.notify_ = notify_; + result.indicate_ = indicate_; + result.authenticatedSignedWrites_ = authenticatedSignedWrites_; + result.extendedProperties_ = extendedProperties_; + result.notifyEncryptionRequired_ = notifyEncryptionRequired_; + result.indicateEncryptionRequired_ = indicateEncryptionRequired_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.CharacteristicProperties) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.CharacteristicProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties other) { + if (other == com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance()) return this; + if (other.getBroadcast() != false) { + setBroadcast(other.getBroadcast()); + } + if (other.getRead() != false) { + setRead(other.getRead()); + } + if (other.getWriteWithoutResponse() != false) { + setWriteWithoutResponse(other.getWriteWithoutResponse()); + } + if (other.getWrite() != false) { + setWrite(other.getWrite()); + } + if (other.getNotify() != false) { + setNotify(other.getNotify()); + } + if (other.getIndicate() != false) { + setIndicate(other.getIndicate()); + } + if (other.getAuthenticatedSignedWrites() != false) { + setAuthenticatedSignedWrites(other.getAuthenticatedSignedWrites()); + } + if (other.getExtendedProperties() != false) { + setExtendedProperties(other.getExtendedProperties()); + } + if (other.getNotifyEncryptionRequired() != false) { + setNotifyEncryptionRequired(other.getNotifyEncryptionRequired()); + } + if (other.getIndicateEncryptionRequired() != false) { + setIndicateEncryptionRequired(other.getIndicateEncryptionRequired()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.CharacteristicProperties) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean broadcast_ ; + /** + * bool broadcast = 1; + * @return The broadcast. + */ + public boolean getBroadcast() { + return broadcast_; + } + /** + * bool broadcast = 1; + * @param value The broadcast to set. + * @return This builder for chaining. + */ + public Builder setBroadcast(boolean value) { + + broadcast_ = value; + onChanged(); + return this; + } + /** + * bool broadcast = 1; + * @return This builder for chaining. + */ + public Builder clearBroadcast() { + + broadcast_ = false; + onChanged(); + return this; + } + + private boolean read_ ; + /** + * bool read = 2; + * @return The read. + */ + public boolean getRead() { + return read_; + } + /** + * bool read = 2; + * @param value The read to set. + * @return This builder for chaining. + */ + public Builder setRead(boolean value) { + + read_ = value; + onChanged(); + return this; + } + /** + * bool read = 2; + * @return This builder for chaining. + */ + public Builder clearRead() { + + read_ = false; + onChanged(); + return this; + } + + private boolean writeWithoutResponse_ ; + /** + * bool write_without_response = 3; + * @return The writeWithoutResponse. + */ + public boolean getWriteWithoutResponse() { + return writeWithoutResponse_; + } + /** + * bool write_without_response = 3; + * @param value The writeWithoutResponse to set. + * @return This builder for chaining. + */ + public Builder setWriteWithoutResponse(boolean value) { + + writeWithoutResponse_ = value; + onChanged(); + return this; + } + /** + * bool write_without_response = 3; + * @return This builder for chaining. + */ + public Builder clearWriteWithoutResponse() { + + writeWithoutResponse_ = false; + onChanged(); + return this; + } + + private boolean write_ ; + /** + * bool write = 4; + * @return The write. + */ + public boolean getWrite() { + return write_; + } + /** + * bool write = 4; + * @param value The write to set. + * @return This builder for chaining. + */ + public Builder setWrite(boolean value) { + + write_ = value; + onChanged(); + return this; + } + /** + * bool write = 4; + * @return This builder for chaining. + */ + public Builder clearWrite() { + + write_ = false; + onChanged(); + return this; + } + + private boolean notify_ ; + /** + * bool notify = 5; + * @return The notify. + */ + public boolean getNotify() { + return notify_; + } + /** + * bool notify = 5; + * @param value The notify to set. + * @return This builder for chaining. + */ + public Builder setNotify(boolean value) { + + notify_ = value; + onChanged(); + return this; + } + /** + * bool notify = 5; + * @return This builder for chaining. + */ + public Builder clearNotify() { + + notify_ = false; + onChanged(); + return this; + } + + private boolean indicate_ ; + /** + * bool indicate = 6; + * @return The indicate. + */ + public boolean getIndicate() { + return indicate_; + } + /** + * bool indicate = 6; + * @param value The indicate to set. + * @return This builder for chaining. + */ + public Builder setIndicate(boolean value) { + + indicate_ = value; + onChanged(); + return this; + } + /** + * bool indicate = 6; + * @return This builder for chaining. + */ + public Builder clearIndicate() { + + indicate_ = false; + onChanged(); + return this; + } + + private boolean authenticatedSignedWrites_ ; + /** + * bool authenticated_signed_writes = 7; + * @return The authenticatedSignedWrites. + */ + public boolean getAuthenticatedSignedWrites() { + return authenticatedSignedWrites_; + } + /** + * bool authenticated_signed_writes = 7; + * @param value The authenticatedSignedWrites to set. + * @return This builder for chaining. + */ + public Builder setAuthenticatedSignedWrites(boolean value) { + + authenticatedSignedWrites_ = value; + onChanged(); + return this; + } + /** + * bool authenticated_signed_writes = 7; + * @return This builder for chaining. + */ + public Builder clearAuthenticatedSignedWrites() { + + authenticatedSignedWrites_ = false; + onChanged(); + return this; + } + + private boolean extendedProperties_ ; + /** + * bool extended_properties = 8; + * @return The extendedProperties. + */ + public boolean getExtendedProperties() { + return extendedProperties_; + } + /** + * bool extended_properties = 8; + * @param value The extendedProperties to set. + * @return This builder for chaining. + */ + public Builder setExtendedProperties(boolean value) { + + extendedProperties_ = value; + onChanged(); + return this; + } + /** + * bool extended_properties = 8; + * @return This builder for chaining. + */ + public Builder clearExtendedProperties() { + + extendedProperties_ = false; + onChanged(); + return this; + } + + private boolean notifyEncryptionRequired_ ; + /** + * bool notify_encryption_required = 9; + * @return The notifyEncryptionRequired. + */ + public boolean getNotifyEncryptionRequired() { + return notifyEncryptionRequired_; + } + /** + * bool notify_encryption_required = 9; + * @param value The notifyEncryptionRequired to set. + * @return This builder for chaining. + */ + public Builder setNotifyEncryptionRequired(boolean value) { + + notifyEncryptionRequired_ = value; + onChanged(); + return this; + } + /** + * bool notify_encryption_required = 9; + * @return This builder for chaining. + */ + public Builder clearNotifyEncryptionRequired() { + + notifyEncryptionRequired_ = false; + onChanged(); + return this; + } + + private boolean indicateEncryptionRequired_ ; + /** + * bool indicate_encryption_required = 10; + * @return The indicateEncryptionRequired. + */ + public boolean getIndicateEncryptionRequired() { + return indicateEncryptionRequired_; + } + /** + * bool indicate_encryption_required = 10; + * @param value The indicateEncryptionRequired to set. + * @return This builder for chaining. + */ + public Builder setIndicateEncryptionRequired(boolean value) { + + indicateEncryptionRequired_ = value; + onChanged(); + return this; + } + /** + * bool indicate_encryption_required = 10; + * @return This builder for chaining. + */ + public Builder clearIndicateEncryptionRequired() { + + indicateEncryptionRequired_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:CharacteristicProperties) + } + + // @@protoc_insertion_point(class_scope:CharacteristicProperties) + private static final com.pauldemarco.flutter_blue.Protos.CharacteristicProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.CharacteristicProperties(); + } + + public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CharacteristicProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CharacteristicProperties(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DiscoverServicesResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:DiscoverServicesResult) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * repeated .BluetoothService services = 2; + */ + java.util.List + getServicesList(); + /** + * repeated .BluetoothService services = 2; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothService getServices(int index); + /** + * repeated .BluetoothService services = 2; + */ + int getServicesCount(); + /** + * repeated .BluetoothService services = 2; + */ + java.util.List + getServicesOrBuilderList(); + /** + * repeated .BluetoothService services = 2; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder getServicesOrBuilder( + int index); + } + /** + * Protobuf type {@code DiscoverServicesResult} + */ + public static final class DiscoverServicesResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:DiscoverServicesResult) + DiscoverServicesResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscoverServicesResult.newBuilder() to construct. + private DiscoverServicesResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DiscoverServicesResult() { + remoteId_ = ""; + services_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DiscoverServicesResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DiscoverServicesResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + services_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + services_.add( + input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothService.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + services_ = java.util.Collections.unmodifiableList(services_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.class, com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_FIELD_NUMBER = 2; + private java.util.List services_; + /** + * repeated .BluetoothService services = 2; + */ + public java.util.List getServicesList() { + return services_; + } + /** + * repeated .BluetoothService services = 2; + */ + public java.util.List + getServicesOrBuilderList() { + return services_; + } + /** + * repeated .BluetoothService services = 2; + */ + public int getServicesCount() { + return services_.size(); + } + /** + * repeated .BluetoothService services = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService getServices(int index) { + return services_.get(index); + } + /** + * repeated .BluetoothService services = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder getServicesOrBuilder( + int index) { + return services_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + for (int i = 0; i < services_.size(); i++) { + output.writeMessage(2, services_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + for (int i = 0; i < services_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, services_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult other = (com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!getServicesList() + .equals(other.getServicesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + if (getServicesCount() > 0) { + hash = (37 * hash) + SERVICES_FIELD_NUMBER; + hash = (53 * hash) + getServicesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code DiscoverServicesResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:DiscoverServicesResult) + com.pauldemarco.flutter_blue.Protos.DiscoverServicesResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.class, com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getServicesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + if (servicesBuilder_ == null) { + services_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + servicesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult build() { + com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult buildPartial() { + com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult result = new com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult(this); + int from_bitField0_ = bitField0_; + result.remoteId_ = remoteId_; + if (servicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + services_ = java.util.Collections.unmodifiableList(services_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.services_ = services_; + } else { + result.services_ = servicesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult other) { + if (other == com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (servicesBuilder_ == null) { + if (!other.services_.isEmpty()) { + if (services_.isEmpty()) { + services_ = other.services_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureServicesIsMutable(); + services_.addAll(other.services_); + } + onChanged(); + } + } else { + if (!other.services_.isEmpty()) { + if (servicesBuilder_.isEmpty()) { + servicesBuilder_.dispose(); + servicesBuilder_ = null; + services_ = other.services_; + bitField0_ = (bitField0_ & ~0x00000001); + servicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServicesFieldBuilder() : null; + } else { + servicesBuilder_.addAllMessages(other.services_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private java.util.List services_ = + java.util.Collections.emptyList(); + private void ensureServicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + services_ = new java.util.ArrayList(services_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothService, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder> servicesBuilder_; + + /** + * repeated .BluetoothService services = 2; + */ + public java.util.List getServicesList() { + if (servicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(services_); + } else { + return servicesBuilder_.getMessageList(); + } + } + /** + * repeated .BluetoothService services = 2; + */ + public int getServicesCount() { + if (servicesBuilder_ == null) { + return services_.size(); + } else { + return servicesBuilder_.getCount(); + } + } + /** + * repeated .BluetoothService services = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService getServices(int index) { + if (servicesBuilder_ == null) { + return services_.get(index); + } else { + return servicesBuilder_.getMessage(index); + } + } + /** + * repeated .BluetoothService services = 2; + */ + public Builder setServices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) { + if (servicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServicesIsMutable(); + services_.set(index, value); + onChanged(); + } else { + servicesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .BluetoothService services = 2; + */ + public Builder setServices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.set(index, builderForValue.build()); + onChanged(); + } else { + servicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .BluetoothService services = 2; + */ + public Builder addServices(com.pauldemarco.flutter_blue.Protos.BluetoothService value) { + if (servicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServicesIsMutable(); + services_.add(value); + onChanged(); + } else { + servicesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .BluetoothService services = 2; + */ + public Builder addServices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) { + if (servicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServicesIsMutable(); + services_.add(index, value); + onChanged(); + } else { + servicesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .BluetoothService services = 2; + */ + public Builder addServices( + com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(builderForValue.build()); + onChanged(); + } else { + servicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .BluetoothService services = 2; + */ + public Builder addServices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(index, builderForValue.build()); + onChanged(); + } else { + servicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .BluetoothService services = 2; + */ + public Builder addAllServices( + java.lang.Iterable values) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, services_); + onChanged(); + } else { + servicesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .BluetoothService services = 2; + */ + public Builder clearServices() { + if (servicesBuilder_ == null) { + services_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + servicesBuilder_.clear(); + } + return this; + } + /** + * repeated .BluetoothService services = 2; + */ + public Builder removeServices(int index) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.remove(index); + onChanged(); + } else { + servicesBuilder_.remove(index); + } + return this; + } + /** + * repeated .BluetoothService services = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder getServicesBuilder( + int index) { + return getServicesFieldBuilder().getBuilder(index); + } + /** + * repeated .BluetoothService services = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder getServicesOrBuilder( + int index) { + if (servicesBuilder_ == null) { + return services_.get(index); } else { + return servicesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .BluetoothService services = 2; + */ + public java.util.List + getServicesOrBuilderList() { + if (servicesBuilder_ != null) { + return servicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(services_); + } + } + /** + * repeated .BluetoothService services = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder addServicesBuilder() { + return getServicesFieldBuilder().addBuilder( + com.pauldemarco.flutter_blue.Protos.BluetoothService.getDefaultInstance()); + } + /** + * repeated .BluetoothService services = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder addServicesBuilder( + int index) { + return getServicesFieldBuilder().addBuilder( + index, com.pauldemarco.flutter_blue.Protos.BluetoothService.getDefaultInstance()); + } + /** + * repeated .BluetoothService services = 2; + */ + public java.util.List + getServicesBuilderList() { + return getServicesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothService, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder> + getServicesFieldBuilder() { + if (servicesBuilder_ == null) { + servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothService, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder>( + services_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + services_ = null; + } + return servicesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:DiscoverServicesResult) + } + + // @@protoc_insertion_point(class_scope:DiscoverServicesResult) + private static final com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult(); + } + + public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoverServicesResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DiscoverServicesResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReadCharacteristicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReadCharacteristicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * string characteristic_uuid = 2; + * @return The characteristicUuid. + */ + java.lang.String getCharacteristicUuid(); + /** + * string characteristic_uuid = 2; + * @return The bytes for characteristicUuid. + */ + com.google.protobuf.ByteString + getCharacteristicUuidBytes(); + + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + java.lang.String getServiceUuid(); + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + com.google.protobuf.ByteString + getServiceUuidBytes(); + + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + java.lang.String getSecondaryServiceUuid(); + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + com.google.protobuf.ByteString + getSecondaryServiceUuidBytes(); + } + /** + * Protobuf type {@code ReadCharacteristicRequest} + */ + public static final class ReadCharacteristicRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReadCharacteristicRequest) + ReadCharacteristicRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadCharacteristicRequest.newBuilder() to construct. + private ReadCharacteristicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReadCharacteristicRequest() { + remoteId_ = ""; + characteristicUuid_ = ""; + serviceUuid_ = ""; + secondaryServiceUuid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReadCharacteristicRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReadCharacteristicRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + characteristicUuid_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceUuid_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryServiceUuid_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.class, com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 2; + private volatile java.lang.Object characteristicUuid_; + /** + * string characteristic_uuid = 2; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } + } + /** + * string characteristic_uuid = 2; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_UUID_FIELD_NUMBER = 3; + private volatile java.lang.Object serviceUuid_; + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } + } + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4; + private volatile java.lang.Object secondaryServiceUuid_; + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } + } + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, characteristicUuid_); + } + if (!getServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secondaryServiceUuid_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, characteristicUuid_); + } + if (!getServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secondaryServiceUuid_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest other = (com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!getCharacteristicUuid() + .equals(other.getCharacteristicUuid())) return false; + if (!getServiceUuid() + .equals(other.getServiceUuid())) return false; + if (!getSecondaryServiceUuid() + .equals(other.getSecondaryServiceUuid())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristicUuid().hashCode(); + hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getServiceUuid().hashCode(); + hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryServiceUuid().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ReadCharacteristicRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReadCharacteristicRequest) + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.class, com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + characteristicUuid_ = ""; + + serviceUuid_ = ""; + + secondaryServiceUuid_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest build() { + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest buildPartial() { + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest result = new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest(this); + result.remoteId_ = remoteId_; + result.characteristicUuid_ = characteristicUuid_; + result.serviceUuid_ = serviceUuid_; + result.secondaryServiceUuid_ = secondaryServiceUuid_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest other) { + if (other == com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (!other.getCharacteristicUuid().isEmpty()) { + characteristicUuid_ = other.characteristicUuid_; + onChanged(); + } + if (!other.getServiceUuid().isEmpty()) { + serviceUuid_ = other.serviceUuid_; + onChanged(); + } + if (!other.getSecondaryServiceUuid().isEmpty()) { + secondaryServiceUuid_ = other.secondaryServiceUuid_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private java.lang.Object characteristicUuid_ = ""; + /** + * string characteristic_uuid = 2; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string characteristic_uuid = 2; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string characteristic_uuid = 2; + * @param value The characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + characteristicUuid_ = value; + onChanged(); + return this; + } + /** + * string characteristic_uuid = 2; + * @return This builder for chaining. + */ + public Builder clearCharacteristicUuid() { + + characteristicUuid_ = getDefaultInstance().getCharacteristicUuid(); + onChanged(); + return this; + } + /** + * string characteristic_uuid = 2; + * @param value The bytes for characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + characteristicUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceUuid_ = ""; + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string service_uuid = 3; + * @param value The serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceUuid_ = value; + onChanged(); + return this; + } + /** + * string service_uuid = 3; + * @return This builder for chaining. + */ + public Builder clearServiceUuid() { + + serviceUuid_ = getDefaultInstance().getServiceUuid(); + onChanged(); + return this; + } + /** + * string service_uuid = 3; + * @param value The bytes for serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object secondaryServiceUuid_ = ""; + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string secondary_service_uuid = 4; + * @param value The secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 4; + * @return This builder for chaining. + */ + public Builder clearSecondaryServiceUuid() { + + secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid(); + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 4; + * @param value The bytes for secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ReadCharacteristicRequest) + } + + // @@protoc_insertion_point(class_scope:ReadCharacteristicRequest) + private static final com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest(); + } + + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadCharacteristicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadCharacteristicRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReadCharacteristicResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReadCharacteristicResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * .BluetoothCharacteristic characteristic = 2; + * @return Whether the characteristic field is set. + */ + boolean hasCharacteristic(); + /** + * .BluetoothCharacteristic characteristic = 2; + * @return The characteristic. + */ + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic(); + /** + * .BluetoothCharacteristic characteristic = 2; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder(); + } + /** + * Protobuf type {@code ReadCharacteristicResponse} + */ + public static final class ReadCharacteristicResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReadCharacteristicResponse) + ReadCharacteristicResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadCharacteristicResponse.newBuilder() to construct. + private ReadCharacteristicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReadCharacteristicResponse() { + remoteId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReadCharacteristicResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReadCharacteristicResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder subBuilder = null; + if (characteristic_ != null) { + subBuilder = characteristic_.toBuilder(); + } + characteristic_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(characteristic_); + characteristic_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.class, com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTERISTIC_FIELD_NUMBER = 2; + private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_; + /** + * .BluetoothCharacteristic characteristic = 2; + * @return Whether the characteristic field is set. + */ + public boolean hasCharacteristic() { + return characteristic_ != null; + } + /** + * .BluetoothCharacteristic characteristic = 2; + * @return The characteristic. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() { + return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() { + return getCharacteristic(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (characteristic_ != null) { + output.writeMessage(2, getCharacteristic()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (characteristic_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCharacteristic()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse other = (com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (hasCharacteristic() != other.hasCharacteristic()) return false; + if (hasCharacteristic()) { + if (!getCharacteristic() + .equals(other.getCharacteristic())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + if (hasCharacteristic()) { + hash = (37 * hash) + CHARACTERISTIC_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristic().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ReadCharacteristicResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReadCharacteristicResponse) + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.class, com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + if (characteristicBuilder_ == null) { + characteristic_ = null; + } else { + characteristic_ = null; + characteristicBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse build() { + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse buildPartial() { + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse result = new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse(this); + result.remoteId_ = remoteId_; + if (characteristicBuilder_ == null) { + result.characteristic_ = characteristic_; + } else { + result.characteristic_ = characteristicBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse other) { + if (other == com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (other.hasCharacteristic()) { + mergeCharacteristic(other.getCharacteristic()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> characteristicBuilder_; + /** + * .BluetoothCharacteristic characteristic = 2; + * @return Whether the characteristic field is set. + */ + public boolean hasCharacteristic() { + return characteristicBuilder_ != null || characteristic_ != null; + } + /** + * .BluetoothCharacteristic characteristic = 2; + * @return The characteristic. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() { + if (characteristicBuilder_ == null) { + return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_; + } else { + return characteristicBuilder_.getMessage(); + } + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) { + if (characteristicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + characteristic_ = value; + onChanged(); + } else { + characteristicBuilder_.setMessage(value); + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder setCharacteristic( + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) { + if (characteristicBuilder_ == null) { + characteristic_ = builderForValue.build(); + onChanged(); + } else { + characteristicBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) { + if (characteristicBuilder_ == null) { + if (characteristic_ != null) { + characteristic_ = + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder(characteristic_).mergeFrom(value).buildPartial(); + } else { + characteristic_ = value; + } + onChanged(); + } else { + characteristicBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder clearCharacteristic() { + if (characteristicBuilder_ == null) { + characteristic_ = null; + onChanged(); + } else { + characteristic_ = null; + characteristicBuilder_ = null; + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder getCharacteristicBuilder() { + + onChanged(); + return getCharacteristicFieldBuilder().getBuilder(); + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() { + if (characteristicBuilder_ != null) { + return characteristicBuilder_.getMessageOrBuilder(); + } else { + return characteristic_ == null ? + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_; + } + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> + getCharacteristicFieldBuilder() { + if (characteristicBuilder_ == null) { + characteristicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>( + getCharacteristic(), + getParentForChildren(), + isClean()); + characteristic_ = null; + } + return characteristicBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ReadCharacteristicResponse) + } + + // @@protoc_insertion_point(class_scope:ReadCharacteristicResponse) + private static final com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse(); + } + + public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadCharacteristicResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadCharacteristicResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReadDescriptorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReadDescriptorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * string descriptor_uuid = 2; + * @return The descriptorUuid. + */ + java.lang.String getDescriptorUuid(); + /** + * string descriptor_uuid = 2; + * @return The bytes for descriptorUuid. + */ + com.google.protobuf.ByteString + getDescriptorUuidBytes(); + + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + java.lang.String getServiceUuid(); + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + com.google.protobuf.ByteString + getServiceUuidBytes(); + + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + java.lang.String getSecondaryServiceUuid(); + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + com.google.protobuf.ByteString + getSecondaryServiceUuidBytes(); + + /** + * string characteristic_uuid = 5; + * @return The characteristicUuid. + */ + java.lang.String getCharacteristicUuid(); + /** + * string characteristic_uuid = 5; + * @return The bytes for characteristicUuid. + */ + com.google.protobuf.ByteString + getCharacteristicUuidBytes(); + } + /** + * Protobuf type {@code ReadDescriptorRequest} + */ + public static final class ReadDescriptorRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReadDescriptorRequest) + ReadDescriptorRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadDescriptorRequest.newBuilder() to construct. + private ReadDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReadDescriptorRequest() { + remoteId_ = ""; + descriptorUuid_ = ""; + serviceUuid_ = ""; + secondaryServiceUuid_ = ""; + characteristicUuid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReadDescriptorRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReadDescriptorRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + descriptorUuid_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceUuid_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryServiceUuid_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + characteristicUuid_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.class, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTOR_UUID_FIELD_NUMBER = 2; + private volatile java.lang.Object descriptorUuid_; + /** + * string descriptor_uuid = 2; + * @return The descriptorUuid. + */ + public java.lang.String getDescriptorUuid() { + java.lang.Object ref = descriptorUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + descriptorUuid_ = s; + return s; + } + } + /** + * string descriptor_uuid = 2; + * @return The bytes for descriptorUuid. + */ + public com.google.protobuf.ByteString + getDescriptorUuidBytes() { + java.lang.Object ref = descriptorUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + descriptorUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_UUID_FIELD_NUMBER = 3; + private volatile java.lang.Object serviceUuid_; + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } + } + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4; + private volatile java.lang.Object secondaryServiceUuid_; + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } + } + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 5; + private volatile java.lang.Object characteristicUuid_; + /** + * string characteristic_uuid = 5; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } + } + /** + * string characteristic_uuid = 5; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (!getDescriptorUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descriptorUuid_); + } + if (!getServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secondaryServiceUuid_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, characteristicUuid_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (!getDescriptorUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, descriptorUuid_); + } + if (!getServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secondaryServiceUuid_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, characteristicUuid_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest other = (com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!getDescriptorUuid() + .equals(other.getDescriptorUuid())) return false; + if (!getServiceUuid() + .equals(other.getServiceUuid())) return false; + if (!getSecondaryServiceUuid() + .equals(other.getSecondaryServiceUuid())) return false; + if (!getCharacteristicUuid() + .equals(other.getCharacteristicUuid())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + DESCRIPTOR_UUID_FIELD_NUMBER; + hash = (53 * hash) + getDescriptorUuid().hashCode(); + hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getServiceUuid().hashCode(); + hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryServiceUuid().hashCode(); + hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristicUuid().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ReadDescriptorRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReadDescriptorRequest) + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.class, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + descriptorUuid_ = ""; + + serviceUuid_ = ""; + + secondaryServiceUuid_ = ""; + + characteristicUuid_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest build() { + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest buildPartial() { + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest result = new com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest(this); + result.remoteId_ = remoteId_; + result.descriptorUuid_ = descriptorUuid_; + result.serviceUuid_ = serviceUuid_; + result.secondaryServiceUuid_ = secondaryServiceUuid_; + result.characteristicUuid_ = characteristicUuid_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest other) { + if (other == com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (!other.getDescriptorUuid().isEmpty()) { + descriptorUuid_ = other.descriptorUuid_; + onChanged(); + } + if (!other.getServiceUuid().isEmpty()) { + serviceUuid_ = other.serviceUuid_; + onChanged(); + } + if (!other.getSecondaryServiceUuid().isEmpty()) { + secondaryServiceUuid_ = other.secondaryServiceUuid_; + onChanged(); + } + if (!other.getCharacteristicUuid().isEmpty()) { + characteristicUuid_ = other.characteristicUuid_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private java.lang.Object descriptorUuid_ = ""; + /** + * string descriptor_uuid = 2; + * @return The descriptorUuid. + */ + public java.lang.String getDescriptorUuid() { + java.lang.Object ref = descriptorUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + descriptorUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string descriptor_uuid = 2; + * @return The bytes for descriptorUuid. + */ + public com.google.protobuf.ByteString + getDescriptorUuidBytes() { + java.lang.Object ref = descriptorUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + descriptorUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string descriptor_uuid = 2; + * @param value The descriptorUuid to set. + * @return This builder for chaining. + */ + public Builder setDescriptorUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + descriptorUuid_ = value; + onChanged(); + return this; + } + /** + * string descriptor_uuid = 2; + * @return This builder for chaining. + */ + public Builder clearDescriptorUuid() { + + descriptorUuid_ = getDefaultInstance().getDescriptorUuid(); + onChanged(); + return this; + } + /** + * string descriptor_uuid = 2; + * @param value The bytes for descriptorUuid to set. + * @return This builder for chaining. + */ + public Builder setDescriptorUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + descriptorUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceUuid_ = ""; + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string service_uuid = 3; + * @param value The serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceUuid_ = value; + onChanged(); + return this; + } + /** + * string service_uuid = 3; + * @return This builder for chaining. + */ + public Builder clearServiceUuid() { + + serviceUuid_ = getDefaultInstance().getServiceUuid(); + onChanged(); + return this; + } + /** + * string service_uuid = 3; + * @param value The bytes for serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object secondaryServiceUuid_ = ""; + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string secondary_service_uuid = 4; + * @param value The secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 4; + * @return This builder for chaining. + */ + public Builder clearSecondaryServiceUuid() { + + secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid(); + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 4; + * @param value The bytes for secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object characteristicUuid_ = ""; + /** + * string characteristic_uuid = 5; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string characteristic_uuid = 5; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string characteristic_uuid = 5; + * @param value The characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + characteristicUuid_ = value; + onChanged(); + return this; + } + /** + * string characteristic_uuid = 5; + * @return This builder for chaining. + */ + public Builder clearCharacteristicUuid() { + + characteristicUuid_ = getDefaultInstance().getCharacteristicUuid(); + onChanged(); + return this; + } + /** + * string characteristic_uuid = 5; + * @param value The bytes for characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + characteristicUuid_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ReadDescriptorRequest) + } + + // @@protoc_insertion_point(class_scope:ReadDescriptorRequest) + private static final com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest(); + } + + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadDescriptorRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReadDescriptorResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:ReadDescriptorResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .ReadDescriptorRequest request = 1; + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * .ReadDescriptorRequest request = 1; + * @return The request. + */ + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getRequest(); + /** + * .ReadDescriptorRequest request = 1; + */ + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder getRequestOrBuilder(); + + /** + * bytes value = 2; + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + } + /** + * Protobuf type {@code ReadDescriptorResponse} + */ + public static final class ReadDescriptorResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ReadDescriptorResponse) + ReadDescriptorResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadDescriptorResponse.newBuilder() to construct. + private ReadDescriptorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReadDescriptorResponse() { + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReadDescriptorResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReadDescriptorResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.class, com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest request_; + /** + * .ReadDescriptorRequest request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * .ReadDescriptorRequest request = 1; + * @return The request. + */ + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getRequest() { + return request_ == null ? com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance() : request_; + } + /** + * .ReadDescriptorRequest request = 1; + */ + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 2; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (!value_.isEmpty()) { + output.writeBytes(2, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse other = (com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ReadDescriptorResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ReadDescriptorResponse) + com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.class, com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse build() { + com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse buildPartial() { + com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse result = new com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse other) { + if (other == com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder> requestBuilder_; + /** + * .ReadDescriptorRequest request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * .ReadDescriptorRequest request = 1; + * @return The request. + */ + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * .ReadDescriptorRequest request = 1; + */ + public Builder setRequest(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * .ReadDescriptorRequest request = 1; + */ + public Builder setRequest( + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .ReadDescriptorRequest request = 1; + */ + public Builder mergeRequest(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .ReadDescriptorRequest request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * .ReadDescriptorRequest request = 1; + */ + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .ReadDescriptorRequest request = 1; + */ + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance() : request_; + } + } + /** + * .ReadDescriptorRequest request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 2; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 2; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 2; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ReadDescriptorResponse) + } + + // @@protoc_insertion_point(class_scope:ReadDescriptorResponse) + private static final com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse(); + } + + public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadDescriptorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadDescriptorResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WriteCharacteristicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:WriteCharacteristicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * string characteristic_uuid = 2; + * @return The characteristicUuid. + */ + java.lang.String getCharacteristicUuid(); + /** + * string characteristic_uuid = 2; + * @return The bytes for characteristicUuid. + */ + com.google.protobuf.ByteString + getCharacteristicUuidBytes(); + + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + java.lang.String getServiceUuid(); + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + com.google.protobuf.ByteString + getServiceUuidBytes(); + + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + java.lang.String getSecondaryServiceUuid(); + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + com.google.protobuf.ByteString + getSecondaryServiceUuidBytes(); + + /** + * .WriteCharacteristicRequest.WriteType write_type = 5; + * @return The enum numeric value on the wire for writeType. + */ + int getWriteTypeValue(); + /** + * .WriteCharacteristicRequest.WriteType write_type = 5; + * @return The writeType. + */ + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType getWriteType(); + + /** + * bytes value = 6; + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + } + /** + * Protobuf type {@code WriteCharacteristicRequest} + */ + public static final class WriteCharacteristicRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WriteCharacteristicRequest) + WriteCharacteristicRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteCharacteristicRequest.newBuilder() to construct. + private WriteCharacteristicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WriteCharacteristicRequest() { + remoteId_ = ""; + characteristicUuid_ = ""; + serviceUuid_ = ""; + secondaryServiceUuid_ = ""; + writeType_ = 0; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WriteCharacteristicRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WriteCharacteristicRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + characteristicUuid_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceUuid_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryServiceUuid_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); + + writeType_ = rawValue; + break; + } + case 50: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.class, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder.class); + } + + /** + * Protobuf enum {@code WriteCharacteristicRequest.WriteType} + */ + public enum WriteType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * WITH_RESPONSE = 0; + */ + WITH_RESPONSE(0), + /** + * WITHOUT_RESPONSE = 1; + */ + WITHOUT_RESPONSE(1), + UNRECOGNIZED(-1), + ; + + /** + * WITH_RESPONSE = 0; + */ + public static final int WITH_RESPONSE_VALUE = 0; + /** + * WITHOUT_RESPONSE = 1; + */ + public static final int WITHOUT_RESPONSE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WriteType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static WriteType forNumber(int value) { + switch (value) { + case 0: return WITH_RESPONSE; + case 1: return WITHOUT_RESPONSE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + WriteType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WriteType findValueByNumber(int number) { + return WriteType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final WriteType[] VALUES = values(); + + public static WriteType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private WriteType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:WriteCharacteristicRequest.WriteType) + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 2; + private volatile java.lang.Object characteristicUuid_; + /** + * string characteristic_uuid = 2; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } + } + /** + * string characteristic_uuid = 2; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_UUID_FIELD_NUMBER = 3; + private volatile java.lang.Object serviceUuid_; + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } + } + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4; + private volatile java.lang.Object secondaryServiceUuid_; + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } + } + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WRITE_TYPE_FIELD_NUMBER = 5; + private int writeType_; + /** + * .WriteCharacteristicRequest.WriteType write_type = 5; + * @return The enum numeric value on the wire for writeType. + */ + public int getWriteTypeValue() { + return writeType_; + } + /** + * .WriteCharacteristicRequest.WriteType write_type = 5; + * @return The writeType. + */ + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType getWriteType() { + @SuppressWarnings("deprecation") + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType result = com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.valueOf(writeType_); + return result == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 6; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, characteristicUuid_); + } + if (!getServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secondaryServiceUuid_); + } + if (writeType_ != com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.WITH_RESPONSE.getNumber()) { + output.writeEnum(5, writeType_); + } + if (!value_.isEmpty()) { + output.writeBytes(6, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, characteristicUuid_); + } + if (!getServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secondaryServiceUuid_); + } + if (writeType_ != com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.WITH_RESPONSE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, writeType_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest other = (com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!getCharacteristicUuid() + .equals(other.getCharacteristicUuid())) return false; + if (!getServiceUuid() + .equals(other.getServiceUuid())) return false; + if (!getSecondaryServiceUuid() + .equals(other.getSecondaryServiceUuid())) return false; + if (writeType_ != other.writeType_) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristicUuid().hashCode(); + hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getServiceUuid().hashCode(); + hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryServiceUuid().hashCode(); + hash = (37 * hash) + WRITE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + writeType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code WriteCharacteristicRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WriteCharacteristicRequest) + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.class, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + characteristicUuid_ = ""; + + serviceUuid_ = ""; + + secondaryServiceUuid_ = ""; + + writeType_ = 0; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest build() { + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest buildPartial() { + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest result = new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest(this); + result.remoteId_ = remoteId_; + result.characteristicUuid_ = characteristicUuid_; + result.serviceUuid_ = serviceUuid_; + result.secondaryServiceUuid_ = secondaryServiceUuid_; + result.writeType_ = writeType_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest other) { + if (other == com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (!other.getCharacteristicUuid().isEmpty()) { + characteristicUuid_ = other.characteristicUuid_; + onChanged(); + } + if (!other.getServiceUuid().isEmpty()) { + serviceUuid_ = other.serviceUuid_; + onChanged(); + } + if (!other.getSecondaryServiceUuid().isEmpty()) { + secondaryServiceUuid_ = other.secondaryServiceUuid_; + onChanged(); + } + if (other.writeType_ != 0) { + setWriteTypeValue(other.getWriteTypeValue()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private java.lang.Object characteristicUuid_ = ""; + /** + * string characteristic_uuid = 2; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string characteristic_uuid = 2; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string characteristic_uuid = 2; + * @param value The characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + characteristicUuid_ = value; + onChanged(); + return this; + } + /** + * string characteristic_uuid = 2; + * @return This builder for chaining. + */ + public Builder clearCharacteristicUuid() { + + characteristicUuid_ = getDefaultInstance().getCharacteristicUuid(); + onChanged(); + return this; + } + /** + * string characteristic_uuid = 2; + * @param value The bytes for characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + characteristicUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceUuid_ = ""; + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string service_uuid = 3; + * @param value The serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceUuid_ = value; + onChanged(); + return this; + } + /** + * string service_uuid = 3; + * @return This builder for chaining. + */ + public Builder clearServiceUuid() { + + serviceUuid_ = getDefaultInstance().getServiceUuid(); + onChanged(); + return this; + } + /** + * string service_uuid = 3; + * @param value The bytes for serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object secondaryServiceUuid_ = ""; + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string secondary_service_uuid = 4; + * @param value The secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 4; + * @return This builder for chaining. + */ + public Builder clearSecondaryServiceUuid() { + + secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid(); + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 4; + * @param value The bytes for secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + + private int writeType_ = 0; + /** + * .WriteCharacteristicRequest.WriteType write_type = 5; + * @return The enum numeric value on the wire for writeType. + */ + public int getWriteTypeValue() { + return writeType_; + } + /** + * .WriteCharacteristicRequest.WriteType write_type = 5; + * @param value The enum numeric value on the wire for writeType to set. + * @return This builder for chaining. + */ + public Builder setWriteTypeValue(int value) { + writeType_ = value; + onChanged(); + return this; + } + /** + * .WriteCharacteristicRequest.WriteType write_type = 5; + * @return The writeType. + */ + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType getWriteType() { + @SuppressWarnings("deprecation") + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType result = com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.valueOf(writeType_); + return result == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.UNRECOGNIZED : result; + } + /** + * .WriteCharacteristicRequest.WriteType write_type = 5; + * @param value The writeType to set. + * @return This builder for chaining. + */ + public Builder setWriteType(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType value) { + if (value == null) { + throw new NullPointerException(); + } + + writeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .WriteCharacteristicRequest.WriteType write_type = 5; + * @return This builder for chaining. + */ + public Builder clearWriteType() { + + writeType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 6; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 6; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 6; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:WriteCharacteristicRequest) + } + + // @@protoc_insertion_point(class_scope:WriteCharacteristicRequest) + private static final com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest(); + } + + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteCharacteristicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WriteCharacteristicRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WriteCharacteristicResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:WriteCharacteristicResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .WriteCharacteristicRequest request = 1; + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * .WriteCharacteristicRequest request = 1; + * @return The request. + */ + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getRequest(); + /** + * .WriteCharacteristicRequest request = 1; + */ + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder getRequestOrBuilder(); + + /** + * bool success = 2; + * @return The success. + */ + boolean getSuccess(); + } + /** + * Protobuf type {@code WriteCharacteristicResponse} + */ + public static final class WriteCharacteristicResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WriteCharacteristicResponse) + WriteCharacteristicResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteCharacteristicResponse.newBuilder() to construct. + private WriteCharacteristicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WriteCharacteristicResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WriteCharacteristicResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WriteCharacteristicResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + success_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.class, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest request_; + /** + * .WriteCharacteristicRequest request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * .WriteCharacteristicRequest request = 1; + * @return The request. + */ + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getRequest() { + return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance() : request_; + } + /** + * .WriteCharacteristicRequest request = 1; + */ + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int SUCCESS_FIELD_NUMBER = 2; + private boolean success_; + /** + * bool success = 2; + * @return The success. + */ + public boolean getSuccess() { + return success_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (success_ != false) { + output.writeBool(2, success_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (success_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, success_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse other = (com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getSuccess() + != other.getSuccess()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuccess()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code WriteCharacteristicResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WriteCharacteristicResponse) + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.class, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + success_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse build() { + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse buildPartial() { + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse result = new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.success_ = success_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse other) { + if (other == com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getSuccess() != false) { + setSuccess(other.getSuccess()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder> requestBuilder_; + /** + * .WriteCharacteristicRequest request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * .WriteCharacteristicRequest request = 1; + * @return The request. + */ + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * .WriteCharacteristicRequest request = 1; + */ + public Builder setRequest(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * .WriteCharacteristicRequest request = 1; + */ + public Builder setRequest( + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .WriteCharacteristicRequest request = 1; + */ + public Builder mergeRequest(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .WriteCharacteristicRequest request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * .WriteCharacteristicRequest request = 1; + */ + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .WriteCharacteristicRequest request = 1; + */ + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance() : request_; + } + } + /** + * .WriteCharacteristicRequest request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private boolean success_ ; + /** + * bool success = 2; + * @return The success. + */ + public boolean getSuccess() { + return success_; + } + /** + * bool success = 2; + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(boolean value) { + + success_ = value; + onChanged(); + return this; + } + /** + * bool success = 2; + * @return This builder for chaining. + */ + public Builder clearSuccess() { + + success_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:WriteCharacteristicResponse) + } + + // @@protoc_insertion_point(class_scope:WriteCharacteristicResponse) + private static final com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse(); + } + + public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteCharacteristicResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WriteCharacteristicResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WriteDescriptorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:WriteDescriptorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * string descriptor_uuid = 2; + * @return The descriptorUuid. + */ + java.lang.String getDescriptorUuid(); + /** + * string descriptor_uuid = 2; + * @return The bytes for descriptorUuid. + */ + com.google.protobuf.ByteString + getDescriptorUuidBytes(); + + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + java.lang.String getServiceUuid(); + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + com.google.protobuf.ByteString + getServiceUuidBytes(); + + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + java.lang.String getSecondaryServiceUuid(); + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + com.google.protobuf.ByteString + getSecondaryServiceUuidBytes(); + + /** + * string characteristic_uuid = 5; + * @return The characteristicUuid. + */ + java.lang.String getCharacteristicUuid(); + /** + * string characteristic_uuid = 5; + * @return The bytes for characteristicUuid. + */ + com.google.protobuf.ByteString + getCharacteristicUuidBytes(); + + /** + * bytes value = 6; + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + } + /** + * Protobuf type {@code WriteDescriptorRequest} + */ + public static final class WriteDescriptorRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WriteDescriptorRequest) + WriteDescriptorRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteDescriptorRequest.newBuilder() to construct. + private WriteDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WriteDescriptorRequest() { + remoteId_ = ""; + descriptorUuid_ = ""; + serviceUuid_ = ""; + secondaryServiceUuid_ = ""; + characteristicUuid_ = ""; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WriteDescriptorRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WriteDescriptorRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + descriptorUuid_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceUuid_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryServiceUuid_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + characteristicUuid_ = s; + break; + } + case 50: { + + value_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.class, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTOR_UUID_FIELD_NUMBER = 2; + private volatile java.lang.Object descriptorUuid_; + /** + * string descriptor_uuid = 2; + * @return The descriptorUuid. + */ + public java.lang.String getDescriptorUuid() { + java.lang.Object ref = descriptorUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + descriptorUuid_ = s; + return s; + } + } + /** + * string descriptor_uuid = 2; + * @return The bytes for descriptorUuid. + */ + public com.google.protobuf.ByteString + getDescriptorUuidBytes() { + java.lang.Object ref = descriptorUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + descriptorUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_UUID_FIELD_NUMBER = 3; + private volatile java.lang.Object serviceUuid_; + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } + } + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4; + private volatile java.lang.Object secondaryServiceUuid_; + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } + } + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 5; + private volatile java.lang.Object characteristicUuid_; + /** + * string characteristic_uuid = 5; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } + } + /** + * string characteristic_uuid = 5; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 6; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (!getDescriptorUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descriptorUuid_); + } + if (!getServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secondaryServiceUuid_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, characteristicUuid_); + } + if (!value_.isEmpty()) { + output.writeBytes(6, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (!getDescriptorUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, descriptorUuid_); + } + if (!getServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secondaryServiceUuid_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, characteristicUuid_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest other = (com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!getDescriptorUuid() + .equals(other.getDescriptorUuid())) return false; + if (!getServiceUuid() + .equals(other.getServiceUuid())) return false; + if (!getSecondaryServiceUuid() + .equals(other.getSecondaryServiceUuid())) return false; + if (!getCharacteristicUuid() + .equals(other.getCharacteristicUuid())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + DESCRIPTOR_UUID_FIELD_NUMBER; + hash = (53 * hash) + getDescriptorUuid().hashCode(); + hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getServiceUuid().hashCode(); + hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryServiceUuid().hashCode(); + hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristicUuid().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code WriteDescriptorRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WriteDescriptorRequest) + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.class, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + descriptorUuid_ = ""; + + serviceUuid_ = ""; + + secondaryServiceUuid_ = ""; + + characteristicUuid_ = ""; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest build() { + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest buildPartial() { + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest result = new com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest(this); + result.remoteId_ = remoteId_; + result.descriptorUuid_ = descriptorUuid_; + result.serviceUuid_ = serviceUuid_; + result.secondaryServiceUuid_ = secondaryServiceUuid_; + result.characteristicUuid_ = characteristicUuid_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest other) { + if (other == com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (!other.getDescriptorUuid().isEmpty()) { + descriptorUuid_ = other.descriptorUuid_; + onChanged(); + } + if (!other.getServiceUuid().isEmpty()) { + serviceUuid_ = other.serviceUuid_; + onChanged(); + } + if (!other.getSecondaryServiceUuid().isEmpty()) { + secondaryServiceUuid_ = other.secondaryServiceUuid_; + onChanged(); + } + if (!other.getCharacteristicUuid().isEmpty()) { + characteristicUuid_ = other.characteristicUuid_; + onChanged(); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private java.lang.Object descriptorUuid_ = ""; + /** + * string descriptor_uuid = 2; + * @return The descriptorUuid. + */ + public java.lang.String getDescriptorUuid() { + java.lang.Object ref = descriptorUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + descriptorUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string descriptor_uuid = 2; + * @return The bytes for descriptorUuid. + */ + public com.google.protobuf.ByteString + getDescriptorUuidBytes() { + java.lang.Object ref = descriptorUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + descriptorUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string descriptor_uuid = 2; + * @param value The descriptorUuid to set. + * @return This builder for chaining. + */ + public Builder setDescriptorUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + descriptorUuid_ = value; + onChanged(); + return this; + } + /** + * string descriptor_uuid = 2; + * @return This builder for chaining. + */ + public Builder clearDescriptorUuid() { + + descriptorUuid_ = getDefaultInstance().getDescriptorUuid(); + onChanged(); + return this; + } + /** + * string descriptor_uuid = 2; + * @param value The bytes for descriptorUuid to set. + * @return This builder for chaining. + */ + public Builder setDescriptorUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + descriptorUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceUuid_ = ""; + /** + * string service_uuid = 3; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string service_uuid = 3; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string service_uuid = 3; + * @param value The serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceUuid_ = value; + onChanged(); + return this; + } + /** + * string service_uuid = 3; + * @return This builder for chaining. + */ + public Builder clearServiceUuid() { + + serviceUuid_ = getDefaultInstance().getServiceUuid(); + onChanged(); + return this; + } + /** + * string service_uuid = 3; + * @param value The bytes for serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object secondaryServiceUuid_ = ""; + /** + * string secondary_service_uuid = 4; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string secondary_service_uuid = 4; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string secondary_service_uuid = 4; + * @param value The secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 4; + * @return This builder for chaining. + */ + public Builder clearSecondaryServiceUuid() { + + secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid(); + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 4; + * @param value The bytes for secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object characteristicUuid_ = ""; + /** + * string characteristic_uuid = 5; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string characteristic_uuid = 5; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string characteristic_uuid = 5; + * @param value The characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + characteristicUuid_ = value; + onChanged(); + return this; + } + /** + * string characteristic_uuid = 5; + * @return This builder for chaining. + */ + public Builder clearCharacteristicUuid() { + + characteristicUuid_ = getDefaultInstance().getCharacteristicUuid(); + onChanged(); + return this; + } + /** + * string characteristic_uuid = 5; + * @param value The bytes for characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + characteristicUuid_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 6; + * @return The value. + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 6; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 6; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:WriteDescriptorRequest) + } + + // @@protoc_insertion_point(class_scope:WriteDescriptorRequest) + private static final com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest(); + } + + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteDescriptorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WriteDescriptorRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WriteDescriptorResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:WriteDescriptorResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .WriteDescriptorRequest request = 1; + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * .WriteDescriptorRequest request = 1; + * @return The request. + */ + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getRequest(); + /** + * .WriteDescriptorRequest request = 1; + */ + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder getRequestOrBuilder(); + + /** + * bool success = 2; + * @return The success. + */ + boolean getSuccess(); + } + /** + * Protobuf type {@code WriteDescriptorResponse} + */ + public static final class WriteDescriptorResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:WriteDescriptorResponse) + WriteDescriptorResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteDescriptorResponse.newBuilder() to construct. + private WriteDescriptorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WriteDescriptorResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WriteDescriptorResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WriteDescriptorResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + success_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.class, com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest request_; + /** + * .WriteDescriptorRequest request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * .WriteDescriptorRequest request = 1; + * @return The request. + */ + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getRequest() { + return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance() : request_; + } + /** + * .WriteDescriptorRequest request = 1; + */ + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int SUCCESS_FIELD_NUMBER = 2; + private boolean success_; + /** + * bool success = 2; + * @return The success. + */ + public boolean getSuccess() { + return success_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (success_ != false) { + output.writeBool(2, success_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (success_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, success_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse other = (com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse) obj; + + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getSuccess() + != other.getSuccess()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuccess()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code WriteDescriptorResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:WriteDescriptorResponse) + com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.class, com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + success_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse build() { + com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse buildPartial() { + com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse result = new com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.success_ = success_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse other) { + if (other == com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getSuccess() != false) { + setSuccess(other.getSuccess()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder> requestBuilder_; + /** + * .WriteDescriptorRequest request = 1; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * .WriteDescriptorRequest request = 1; + * @return The request. + */ + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * .WriteDescriptorRequest request = 1; + */ + public Builder setRequest(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * .WriteDescriptorRequest request = 1; + */ + public Builder setRequest( + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .WriteDescriptorRequest request = 1; + */ + public Builder mergeRequest(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .WriteDescriptorRequest request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * .WriteDescriptorRequest request = 1; + */ + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * .WriteDescriptorRequest request = 1; + */ + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance() : request_; + } + } + /** + * .WriteDescriptorRequest request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private boolean success_ ; + /** + * bool success = 2; + * @return The success. + */ + public boolean getSuccess() { + return success_; + } + /** + * bool success = 2; + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(boolean value) { + + success_ = value; + onChanged(); + return this; + } + /** + * bool success = 2; + * @return This builder for chaining. + */ + public Builder clearSuccess() { + + success_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:WriteDescriptorResponse) + } + + // @@protoc_insertion_point(class_scope:WriteDescriptorResponse) + private static final com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse(); + } + + public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteDescriptorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WriteDescriptorResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetNotificationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:SetNotificationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * string service_uuid = 2; + * @return The serviceUuid. + */ + java.lang.String getServiceUuid(); + /** + * string service_uuid = 2; + * @return The bytes for serviceUuid. + */ + com.google.protobuf.ByteString + getServiceUuidBytes(); + + /** + * string secondary_service_uuid = 3; + * @return The secondaryServiceUuid. + */ + java.lang.String getSecondaryServiceUuid(); + /** + * string secondary_service_uuid = 3; + * @return The bytes for secondaryServiceUuid. + */ + com.google.protobuf.ByteString + getSecondaryServiceUuidBytes(); + + /** + * string characteristic_uuid = 4; + * @return The characteristicUuid. + */ + java.lang.String getCharacteristicUuid(); + /** + * string characteristic_uuid = 4; + * @return The bytes for characteristicUuid. + */ + com.google.protobuf.ByteString + getCharacteristicUuidBytes(); + + /** + * bool enable = 5; + * @return The enable. + */ + boolean getEnable(); + } + /** + * Protobuf type {@code SetNotificationRequest} + */ + public static final class SetNotificationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:SetNotificationRequest) + SetNotificationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetNotificationRequest.newBuilder() to construct. + private SetNotificationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNotificationRequest() { + remoteId_ = ""; + serviceUuid_ = ""; + secondaryServiceUuid_ = ""; + characteristicUuid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetNotificationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNotificationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceUuid_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryServiceUuid_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + characteristicUuid_ = s; + break; + } + case 40: { + + enable_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.class, com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_UUID_FIELD_NUMBER = 2; + private volatile java.lang.Object serviceUuid_; + /** + * string service_uuid = 2; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } + } + /** + * string service_uuid = 2; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 3; + private volatile java.lang.Object secondaryServiceUuid_; + /** + * string secondary_service_uuid = 3; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } + } + /** + * string secondary_service_uuid = 3; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 4; + private volatile java.lang.Object characteristicUuid_; + /** + * string characteristic_uuid = 4; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } + } + /** + * string characteristic_uuid = 4; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_FIELD_NUMBER = 5; + private boolean enable_; + /** + * bool enable = 5; + * @return The enable. + */ + public boolean getEnable() { + return enable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (!getServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secondaryServiceUuid_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, characteristicUuid_); + } + if (enable_ != false) { + output.writeBool(5, enable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (!getServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceUuid_); + } + if (!getSecondaryServiceUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secondaryServiceUuid_); + } + if (!getCharacteristicUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, characteristicUuid_); + } + if (enable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, enable_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.SetNotificationRequest)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.SetNotificationRequest other = (com.pauldemarco.flutter_blue.Protos.SetNotificationRequest) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!getServiceUuid() + .equals(other.getServiceUuid())) return false; + if (!getSecondaryServiceUuid() + .equals(other.getSecondaryServiceUuid())) return false; + if (!getCharacteristicUuid() + .equals(other.getCharacteristicUuid())) return false; + if (getEnable() + != other.getEnable()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getServiceUuid().hashCode(); + hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryServiceUuid().hashCode(); + hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristicUuid().hashCode(); + hash = (37 * hash) + ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.SetNotificationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code SetNotificationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:SetNotificationRequest) + com.pauldemarco.flutter_blue.Protos.SetNotificationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.class, com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + serviceUuid_ = ""; + + secondaryServiceUuid_ = ""; + + characteristicUuid_ = ""; + + enable_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.SetNotificationRequest getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.SetNotificationRequest build() { + com.pauldemarco.flutter_blue.Protos.SetNotificationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.SetNotificationRequest buildPartial() { + com.pauldemarco.flutter_blue.Protos.SetNotificationRequest result = new com.pauldemarco.flutter_blue.Protos.SetNotificationRequest(this); + result.remoteId_ = remoteId_; + result.serviceUuid_ = serviceUuid_; + result.secondaryServiceUuid_ = secondaryServiceUuid_; + result.characteristicUuid_ = characteristicUuid_; + result.enable_ = enable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.SetNotificationRequest) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.SetNotificationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.SetNotificationRequest other) { + if (other == com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (!other.getServiceUuid().isEmpty()) { + serviceUuid_ = other.serviceUuid_; + onChanged(); + } + if (!other.getSecondaryServiceUuid().isEmpty()) { + secondaryServiceUuid_ = other.secondaryServiceUuid_; + onChanged(); + } + if (!other.getCharacteristicUuid().isEmpty()) { + characteristicUuid_ = other.characteristicUuid_; + onChanged(); + } + if (other.getEnable() != false) { + setEnable(other.getEnable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.SetNotificationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceUuid_ = ""; + /** + * string service_uuid = 2; + * @return The serviceUuid. + */ + public java.lang.String getServiceUuid() { + java.lang.Object ref = serviceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string service_uuid = 2; + * @return The bytes for serviceUuid. + */ + public com.google.protobuf.ByteString + getServiceUuidBytes() { + java.lang.Object ref = serviceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string service_uuid = 2; + * @param value The serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceUuid_ = value; + onChanged(); + return this; + } + /** + * string service_uuid = 2; + * @return This builder for chaining. + */ + public Builder clearServiceUuid() { + + serviceUuid_ = getDefaultInstance().getServiceUuid(); + onChanged(); + return this; + } + /** + * string service_uuid = 2; + * @param value The bytes for serviceUuid to set. + * @return This builder for chaining. + */ + public Builder setServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object secondaryServiceUuid_ = ""; + /** + * string secondary_service_uuid = 3; + * @return The secondaryServiceUuid. + */ + public java.lang.String getSecondaryServiceUuid() { + java.lang.Object ref = secondaryServiceUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryServiceUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string secondary_service_uuid = 3; + * @return The bytes for secondaryServiceUuid. + */ + public com.google.protobuf.ByteString + getSecondaryServiceUuidBytes() { + java.lang.Object ref = secondaryServiceUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryServiceUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string secondary_service_uuid = 3; + * @param value The secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 3; + * @return This builder for chaining. + */ + public Builder clearSecondaryServiceUuid() { + + secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid(); + onChanged(); + return this; + } + /** + * string secondary_service_uuid = 3; + * @param value The bytes for secondaryServiceUuid to set. + * @return This builder for chaining. + */ + public Builder setSecondaryServiceUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secondaryServiceUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object characteristicUuid_ = ""; + /** + * string characteristic_uuid = 4; + * @return The characteristicUuid. + */ + public java.lang.String getCharacteristicUuid() { + java.lang.Object ref = characteristicUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + characteristicUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string characteristic_uuid = 4; + * @return The bytes for characteristicUuid. + */ + public com.google.protobuf.ByteString + getCharacteristicUuidBytes() { + java.lang.Object ref = characteristicUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + characteristicUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string characteristic_uuid = 4; + * @param value The characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + characteristicUuid_ = value; + onChanged(); + return this; + } + /** + * string characteristic_uuid = 4; + * @return This builder for chaining. + */ + public Builder clearCharacteristicUuid() { + + characteristicUuid_ = getDefaultInstance().getCharacteristicUuid(); + onChanged(); + return this; + } + /** + * string characteristic_uuid = 4; + * @param value The bytes for characteristicUuid to set. + * @return This builder for chaining. + */ + public Builder setCharacteristicUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + characteristicUuid_ = value; + onChanged(); + return this; + } + + private boolean enable_ ; + /** + * bool enable = 5; + * @return The enable. + */ + public boolean getEnable() { + return enable_; + } + /** + * bool enable = 5; + * @param value The enable to set. + * @return This builder for chaining. + */ + public Builder setEnable(boolean value) { + + enable_ = value; + onChanged(); + return this; + } + /** + * bool enable = 5; + * @return This builder for chaining. + */ + public Builder clearEnable() { + + enable_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:SetNotificationRequest) + } + + // @@protoc_insertion_point(class_scope:SetNotificationRequest) + private static final com.pauldemarco.flutter_blue.Protos.SetNotificationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.SetNotificationRequest(); + } + + public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNotificationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNotificationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.SetNotificationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SetNotificationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:SetNotificationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * .BluetoothCharacteristic characteristic = 2; + * @return Whether the characteristic field is set. + */ + boolean hasCharacteristic(); + /** + * .BluetoothCharacteristic characteristic = 2; + * @return The characteristic. + */ + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic(); + /** + * .BluetoothCharacteristic characteristic = 2; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder(); + + /** + * bool success = 3; + * @return The success. + */ + boolean getSuccess(); + } + /** + * Protobuf type {@code SetNotificationResponse} + */ + public static final class SetNotificationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:SetNotificationResponse) + SetNotificationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetNotificationResponse.newBuilder() to construct. + private SetNotificationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNotificationResponse() { + remoteId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetNotificationResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNotificationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder subBuilder = null; + if (characteristic_ != null) { + subBuilder = characteristic_.toBuilder(); + } + characteristic_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(characteristic_); + characteristic_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + success_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.class, com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTERISTIC_FIELD_NUMBER = 2; + private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_; + /** + * .BluetoothCharacteristic characteristic = 2; + * @return Whether the characteristic field is set. + */ + public boolean hasCharacteristic() { + return characteristic_ != null; + } + /** + * .BluetoothCharacteristic characteristic = 2; + * @return The characteristic. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() { + return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() { + return getCharacteristic(); + } + + public static final int SUCCESS_FIELD_NUMBER = 3; + private boolean success_; + /** + * bool success = 3; + * @return The success. + */ + public boolean getSuccess() { + return success_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (characteristic_ != null) { + output.writeMessage(2, getCharacteristic()); + } + if (success_ != false) { + output.writeBool(3, success_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (characteristic_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCharacteristic()); + } + if (success_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, success_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.SetNotificationResponse)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.SetNotificationResponse other = (com.pauldemarco.flutter_blue.Protos.SetNotificationResponse) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (hasCharacteristic() != other.hasCharacteristic()) return false; + if (hasCharacteristic()) { + if (!getCharacteristic() + .equals(other.getCharacteristic())) return false; + } + if (getSuccess() + != other.getSuccess()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + if (hasCharacteristic()) { + hash = (37 * hash) + CHARACTERISTIC_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristic().hashCode(); + } + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuccess()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.SetNotificationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code SetNotificationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:SetNotificationResponse) + com.pauldemarco.flutter_blue.Protos.SetNotificationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.class, com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + if (characteristicBuilder_ == null) { + characteristic_ = null; + } else { + characteristic_ = null; + characteristicBuilder_ = null; + } + success_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.SetNotificationResponse getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.SetNotificationResponse build() { + com.pauldemarco.flutter_blue.Protos.SetNotificationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.SetNotificationResponse buildPartial() { + com.pauldemarco.flutter_blue.Protos.SetNotificationResponse result = new com.pauldemarco.flutter_blue.Protos.SetNotificationResponse(this); + result.remoteId_ = remoteId_; + if (characteristicBuilder_ == null) { + result.characteristic_ = characteristic_; + } else { + result.characteristic_ = characteristicBuilder_.build(); + } + result.success_ = success_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.SetNotificationResponse) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.SetNotificationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.SetNotificationResponse other) { + if (other == com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (other.hasCharacteristic()) { + mergeCharacteristic(other.getCharacteristic()); + } + if (other.getSuccess() != false) { + setSuccess(other.getSuccess()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.SetNotificationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> characteristicBuilder_; + /** + * .BluetoothCharacteristic characteristic = 2; + * @return Whether the characteristic field is set. + */ + public boolean hasCharacteristic() { + return characteristicBuilder_ != null || characteristic_ != null; + } + /** + * .BluetoothCharacteristic characteristic = 2; + * @return The characteristic. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() { + if (characteristicBuilder_ == null) { + return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_; + } else { + return characteristicBuilder_.getMessage(); + } + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) { + if (characteristicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + characteristic_ = value; + onChanged(); + } else { + characteristicBuilder_.setMessage(value); + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder setCharacteristic( + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) { + if (characteristicBuilder_ == null) { + characteristic_ = builderForValue.build(); + onChanged(); + } else { + characteristicBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) { + if (characteristicBuilder_ == null) { + if (characteristic_ != null) { + characteristic_ = + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder(characteristic_).mergeFrom(value).buildPartial(); + } else { + characteristic_ = value; + } + onChanged(); + } else { + characteristicBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder clearCharacteristic() { + if (characteristicBuilder_ == null) { + characteristic_ = null; + onChanged(); + } else { + characteristic_ = null; + characteristicBuilder_ = null; + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder getCharacteristicBuilder() { + + onChanged(); + return getCharacteristicFieldBuilder().getBuilder(); + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() { + if (characteristicBuilder_ != null) { + return characteristicBuilder_.getMessageOrBuilder(); + } else { + return characteristic_ == null ? + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_; + } + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> + getCharacteristicFieldBuilder() { + if (characteristicBuilder_ == null) { + characteristicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>( + getCharacteristic(), + getParentForChildren(), + isClean()); + characteristic_ = null; + } + return characteristicBuilder_; + } + + private boolean success_ ; + /** + * bool success = 3; + * @return The success. + */ + public boolean getSuccess() { + return success_; + } + /** + * bool success = 3; + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(boolean value) { + + success_ = value; + onChanged(); + return this; + } + /** + * bool success = 3; + * @return This builder for chaining. + */ + public Builder clearSuccess() { + + success_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:SetNotificationResponse) + } + + // @@protoc_insertion_point(class_scope:SetNotificationResponse) + private static final com.pauldemarco.flutter_blue.Protos.SetNotificationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.SetNotificationResponse(); + } + + public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNotificationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNotificationResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.SetNotificationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OnCharacteristicChangedOrBuilder extends + // @@protoc_insertion_point(interface_extends:OnCharacteristicChanged) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * .BluetoothCharacteristic characteristic = 2; + * @return Whether the characteristic field is set. + */ + boolean hasCharacteristic(); + /** + * .BluetoothCharacteristic characteristic = 2; + * @return The characteristic. + */ + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic(); + /** + * .BluetoothCharacteristic characteristic = 2; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder(); + } + /** + * Protobuf type {@code OnCharacteristicChanged} + */ + public static final class OnCharacteristicChanged extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:OnCharacteristicChanged) + OnCharacteristicChangedOrBuilder { + private static final long serialVersionUID = 0L; + // Use OnCharacteristicChanged.newBuilder() to construct. + private OnCharacteristicChanged(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OnCharacteristicChanged() { + remoteId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OnCharacteristicChanged(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OnCharacteristicChanged( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 18: { + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder subBuilder = null; + if (characteristic_ != null) { + subBuilder = characteristic_.toBuilder(); + } + characteristic_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(characteristic_); + characteristic_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.class, com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHARACTERISTIC_FIELD_NUMBER = 2; + private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_; + /** + * .BluetoothCharacteristic characteristic = 2; + * @return Whether the characteristic field is set. + */ + public boolean hasCharacteristic() { + return characteristic_ != null; + } + /** + * .BluetoothCharacteristic characteristic = 2; + * @return The characteristic. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() { + return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() { + return getCharacteristic(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (characteristic_ != null) { + output.writeMessage(2, getCharacteristic()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (characteristic_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCharacteristic()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged other = (com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (hasCharacteristic() != other.hasCharacteristic()) return false; + if (hasCharacteristic()) { + if (!getCharacteristic() + .equals(other.getCharacteristic())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + if (hasCharacteristic()) { + hash = (37 * hash) + CHARACTERISTIC_FIELD_NUMBER; + hash = (53 * hash) + getCharacteristic().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code OnCharacteristicChanged} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:OnCharacteristicChanged) + com.pauldemarco.flutter_blue.Protos.OnCharacteristicChangedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.class, com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + if (characteristicBuilder_ == null) { + characteristic_ = null; + } else { + characteristic_ = null; + characteristicBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged build() { + com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged buildPartial() { + com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged result = new com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged(this); + result.remoteId_ = remoteId_; + if (characteristicBuilder_ == null) { + result.characteristic_ = characteristic_; + } else { + result.characteristic_ = characteristicBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged other) { + if (other == com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (other.hasCharacteristic()) { + mergeCharacteristic(other.getCharacteristic()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> characteristicBuilder_; + /** + * .BluetoothCharacteristic characteristic = 2; + * @return Whether the characteristic field is set. + */ + public boolean hasCharacteristic() { + return characteristicBuilder_ != null || characteristic_ != null; + } + /** + * .BluetoothCharacteristic characteristic = 2; + * @return The characteristic. + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() { + if (characteristicBuilder_ == null) { + return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_; + } else { + return characteristicBuilder_.getMessage(); + } + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) { + if (characteristicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + characteristic_ = value; + onChanged(); + } else { + characteristicBuilder_.setMessage(value); + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder setCharacteristic( + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) { + if (characteristicBuilder_ == null) { + characteristic_ = builderForValue.build(); + onChanged(); + } else { + characteristicBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) { + if (characteristicBuilder_ == null) { + if (characteristic_ != null) { + characteristic_ = + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder(characteristic_).mergeFrom(value).buildPartial(); + } else { + characteristic_ = value; + } + onChanged(); + } else { + characteristicBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public Builder clearCharacteristic() { + if (characteristicBuilder_ == null) { + characteristic_ = null; + onChanged(); + } else { + characteristic_ = null; + characteristicBuilder_ = null; + } + + return this; + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder getCharacteristicBuilder() { + + onChanged(); + return getCharacteristicFieldBuilder().getBuilder(); + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() { + if (characteristicBuilder_ != null) { + return characteristicBuilder_.getMessageOrBuilder(); + } else { + return characteristic_ == null ? + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_; + } + } + /** + * .BluetoothCharacteristic characteristic = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> + getCharacteristicFieldBuilder() { + if (characteristicBuilder_ == null) { + characteristicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>( + getCharacteristic(), + getParentForChildren(), + isClean()); + characteristic_ = null; + } + return characteristicBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:OnCharacteristicChanged) + } + + // @@protoc_insertion_point(class_scope:OnCharacteristicChanged) + private static final com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged(); + } + + public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnCharacteristicChanged parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OnCharacteristicChanged(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceStateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:DeviceStateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * .DeviceStateResponse.BluetoothDeviceState state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .DeviceStateResponse.BluetoothDeviceState state = 2; + * @return The state. + */ + com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState getState(); + } + /** + * Protobuf type {@code DeviceStateResponse} + */ + public static final class DeviceStateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:DeviceStateResponse) + DeviceStateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceStateResponse.newBuilder() to construct. + private DeviceStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceStateResponse() { + remoteId_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeviceStateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceStateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.class, com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.Builder.class); + } + + /** + * Protobuf enum {@code DeviceStateResponse.BluetoothDeviceState} + */ + public enum BluetoothDeviceState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DISCONNECTED = 0; + */ + DISCONNECTED(0), + /** + * CONNECTING = 1; + */ + CONNECTING(1), + /** + * CONNECTED = 2; + */ + CONNECTED(2), + /** + * DISCONNECTING = 3; + */ + DISCONNECTING(3), + UNRECOGNIZED(-1), + ; + + /** + * DISCONNECTED = 0; + */ + public static final int DISCONNECTED_VALUE = 0; + /** + * CONNECTING = 1; + */ + public static final int CONNECTING_VALUE = 1; + /** + * CONNECTED = 2; + */ + public static final int CONNECTED_VALUE = 2; + /** + * DISCONNECTING = 3; + */ + public static final int DISCONNECTING_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BluetoothDeviceState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BluetoothDeviceState forNumber(int value) { + switch (value) { + case 0: return DISCONNECTED; + case 1: return CONNECTING; + case 2: return CONNECTED; + case 3: return DISCONNECTING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BluetoothDeviceState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BluetoothDeviceState findValueByNumber(int number) { + return BluetoothDeviceState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final BluetoothDeviceState[] VALUES = values(); + + public static BluetoothDeviceState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BluetoothDeviceState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:DeviceStateResponse.BluetoothDeviceState) + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + * .DeviceStateResponse.BluetoothDeviceState state = 2; + * @return The enum numeric value on the wire for state. + */ + public int getStateValue() { + return state_; + } + /** + * .DeviceStateResponse.BluetoothDeviceState state = 2; + * @return The state. + */ + public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState getState() { + @SuppressWarnings("deprecation") + com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState result = com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.valueOf(state_); + return result == null ? com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (state_ != com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.DISCONNECTED.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (state_ != com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.DISCONNECTED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.DeviceStateResponse)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.DeviceStateResponse other = (com.pauldemarco.flutter_blue.Protos.DeviceStateResponse) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.DeviceStateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code DeviceStateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:DeviceStateResponse) + com.pauldemarco.flutter_blue.Protos.DeviceStateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.class, com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse build() { + com.pauldemarco.flutter_blue.Protos.DeviceStateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse buildPartial() { + com.pauldemarco.flutter_blue.Protos.DeviceStateResponse result = new com.pauldemarco.flutter_blue.Protos.DeviceStateResponse(this); + result.remoteId_ = remoteId_; + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.DeviceStateResponse) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.DeviceStateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.DeviceStateResponse other) { + if (other == com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.DeviceStateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * .DeviceStateResponse.BluetoothDeviceState state = 2; + * @return The enum numeric value on the wire for state. + */ + public int getStateValue() { + return state_; + } + /** + * .DeviceStateResponse.BluetoothDeviceState state = 2; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * .DeviceStateResponse.BluetoothDeviceState state = 2; + * @return The state. + */ + public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState getState() { + @SuppressWarnings("deprecation") + com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState result = com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.valueOf(state_); + return result == null ? com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.UNRECOGNIZED : result; + } + /** + * .DeviceStateResponse.BluetoothDeviceState state = 2; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .DeviceStateResponse.BluetoothDeviceState state = 2; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:DeviceStateResponse) + } + + // @@protoc_insertion_point(class_scope:DeviceStateResponse) + private static final com.pauldemarco.flutter_blue.Protos.DeviceStateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.DeviceStateResponse(); + } + + public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceStateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceStateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConnectedDevicesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:ConnectedDevicesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .BluetoothDevice devices = 1; + */ + java.util.List + getDevicesList(); + /** + * repeated .BluetoothDevice devices = 1; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevices(int index); + /** + * repeated .BluetoothDevice devices = 1; + */ + int getDevicesCount(); + /** + * repeated .BluetoothDevice devices = 1; + */ + java.util.List + getDevicesOrBuilderList(); + /** + * repeated .BluetoothDevice devices = 1; + */ + com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder getDevicesOrBuilder( + int index); + } + /** + * Protobuf type {@code ConnectedDevicesResponse} + */ + public static final class ConnectedDevicesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ConnectedDevicesResponse) + ConnectedDevicesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectedDevicesResponse.newBuilder() to construct. + private ConnectedDevicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectedDevicesResponse() { + devices_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectedDevicesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectedDevicesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + devices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + devices_.add( + input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothDevice.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + devices_ = java.util.Collections.unmodifiableList(devices_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.class, com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.Builder.class); + } + + public static final int DEVICES_FIELD_NUMBER = 1; + private java.util.List devices_; + /** + * repeated .BluetoothDevice devices = 1; + */ + public java.util.List getDevicesList() { + return devices_; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public java.util.List + getDevicesOrBuilderList() { + return devices_; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public int getDevicesCount() { + return devices_.size(); + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevices(int index) { + return devices_.get(index); + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder getDevicesOrBuilder( + int index) { + return devices_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < devices_.size(); i++) { + output.writeMessage(1, devices_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < devices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, devices_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse other = (com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse) obj; + + if (!getDevicesList() + .equals(other.getDevicesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDevicesCount() > 0) { + hash = (37 * hash) + DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getDevicesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ConnectedDevicesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ConnectedDevicesResponse) + com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.class, com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDevicesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (devicesBuilder_ == null) { + devices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + devicesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse build() { + com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse buildPartial() { + com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse result = new com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse(this); + int from_bitField0_ = bitField0_; + if (devicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + devices_ = java.util.Collections.unmodifiableList(devices_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.devices_ = devices_; + } else { + result.devices_ = devicesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse other) { + if (other == com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.getDefaultInstance()) return this; + if (devicesBuilder_ == null) { + if (!other.devices_.isEmpty()) { + if (devices_.isEmpty()) { + devices_ = other.devices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDevicesIsMutable(); + devices_.addAll(other.devices_); + } + onChanged(); + } + } else { + if (!other.devices_.isEmpty()) { + if (devicesBuilder_.isEmpty()) { + devicesBuilder_.dispose(); + devicesBuilder_ = null; + devices_ = other.devices_; + bitField0_ = (bitField0_ & ~0x00000001); + devicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDevicesFieldBuilder() : null; + } else { + devicesBuilder_.addAllMessages(other.devices_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List devices_ = + java.util.Collections.emptyList(); + private void ensureDevicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + devices_ = new java.util.ArrayList(devices_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothDevice, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder> devicesBuilder_; + + /** + * repeated .BluetoothDevice devices = 1; + */ + public java.util.List getDevicesList() { + if (devicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(devices_); + } else { + return devicesBuilder_.getMessageList(); + } + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public int getDevicesCount() { + if (devicesBuilder_ == null) { + return devices_.size(); + } else { + return devicesBuilder_.getCount(); + } + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevices(int index) { + if (devicesBuilder_ == null) { + return devices_.get(index); + } else { + return devicesBuilder_.getMessage(index); + } + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public Builder setDevices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.set(index, value); + onChanged(); + } else { + devicesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public Builder setDevices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.set(index, builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public Builder addDevices(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.add(value); + onChanged(); + } else { + devicesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public Builder addDevices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.add(index, value); + onChanged(); + } else { + devicesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public Builder addDevices( + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.add(builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public Builder addDevices( + int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.add(index, builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public Builder addAllDevices( + java.lang.Iterable values) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, devices_); + onChanged(); + } else { + devicesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public Builder clearDevices() { + if (devicesBuilder_ == null) { + devices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + devicesBuilder_.clear(); + } + return this; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public Builder removeDevices(int index) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.remove(index); + onChanged(); + } else { + devicesBuilder_.remove(index); + } + return this; + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder getDevicesBuilder( + int index) { + return getDevicesFieldBuilder().getBuilder(index); + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder getDevicesOrBuilder( + int index) { + if (devicesBuilder_ == null) { + return devices_.get(index); } else { + return devicesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public java.util.List + getDevicesOrBuilderList() { + if (devicesBuilder_ != null) { + return devicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(devices_); + } + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder addDevicesBuilder() { + return getDevicesFieldBuilder().addBuilder( + com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance()); + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder addDevicesBuilder( + int index) { + return getDevicesFieldBuilder().addBuilder( + index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance()); + } + /** + * repeated .BluetoothDevice devices = 1; + */ + public java.util.List + getDevicesBuilderList() { + return getDevicesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothDevice, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder> + getDevicesFieldBuilder() { + if (devicesBuilder_ == null) { + devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.pauldemarco.flutter_blue.Protos.BluetoothDevice, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder>( + devices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + devices_ = null; + } + return devicesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ConnectedDevicesResponse) + } + + // @@protoc_insertion_point(class_scope:ConnectedDevicesResponse) + private static final com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse(); + } + + public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectedDevicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectedDevicesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MtuSizeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:MtuSizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * uint32 mtu = 2; + * @return The mtu. + */ + int getMtu(); + } + /** + * Protobuf type {@code MtuSizeRequest} + */ + public static final class MtuSizeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:MtuSizeRequest) + MtuSizeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use MtuSizeRequest.newBuilder() to construct. + private MtuSizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MtuSizeRequest() { + remoteId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MtuSizeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MtuSizeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 16: { + + mtu_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.class, com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MTU_FIELD_NUMBER = 2; + private int mtu_; + /** + * uint32 mtu = 2; + * @return The mtu. + */ + public int getMtu() { + return mtu_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (mtu_ != 0) { + output.writeUInt32(2, mtu_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (mtu_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, mtu_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.MtuSizeRequest)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.MtuSizeRequest other = (com.pauldemarco.flutter_blue.Protos.MtuSizeRequest) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (getMtu() + != other.getMtu()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + MTU_FIELD_NUMBER; + hash = (53 * hash) + getMtu(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.MtuSizeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code MtuSizeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:MtuSizeRequest) + com.pauldemarco.flutter_blue.Protos.MtuSizeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.class, com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + mtu_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.MtuSizeRequest getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.MtuSizeRequest build() { + com.pauldemarco.flutter_blue.Protos.MtuSizeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.MtuSizeRequest buildPartial() { + com.pauldemarco.flutter_blue.Protos.MtuSizeRequest result = new com.pauldemarco.flutter_blue.Protos.MtuSizeRequest(this); + result.remoteId_ = remoteId_; + result.mtu_ = mtu_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.MtuSizeRequest) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.MtuSizeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.MtuSizeRequest other) { + if (other == com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (other.getMtu() != 0) { + setMtu(other.getMtu()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.MtuSizeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private int mtu_ ; + /** + * uint32 mtu = 2; + * @return The mtu. + */ + public int getMtu() { + return mtu_; + } + /** + * uint32 mtu = 2; + * @param value The mtu to set. + * @return This builder for chaining. + */ + public Builder setMtu(int value) { + + mtu_ = value; + onChanged(); + return this; + } + /** + * uint32 mtu = 2; + * @return This builder for chaining. + */ + public Builder clearMtu() { + + mtu_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:MtuSizeRequest) + } + + // @@protoc_insertion_point(class_scope:MtuSizeRequest) + private static final com.pauldemarco.flutter_blue.Protos.MtuSizeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.MtuSizeRequest(); + } + + public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MtuSizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MtuSizeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.MtuSizeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MtuSizeResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:MtuSizeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + + /** + * uint32 mtu = 2; + * @return The mtu. + */ + int getMtu(); + } + /** + * Protobuf type {@code MtuSizeResponse} + */ + public static final class MtuSizeResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:MtuSizeResponse) + MtuSizeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MtuSizeResponse.newBuilder() to construct. + private MtuSizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MtuSizeResponse() { + remoteId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MtuSizeResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MtuSizeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + case 16: { + + mtu_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.class, com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MTU_FIELD_NUMBER = 2; + private int mtu_; + /** + * uint32 mtu = 2; + * @return The mtu. + */ + public int getMtu() { + return mtu_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + if (mtu_ != 0) { + output.writeUInt32(2, mtu_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + if (mtu_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, mtu_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.MtuSizeResponse)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.MtuSizeResponse other = (com.pauldemarco.flutter_blue.Protos.MtuSizeResponse) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (getMtu() + != other.getMtu()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (37 * hash) + MTU_FIELD_NUMBER; + hash = (53 * hash) + getMtu(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.MtuSizeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code MtuSizeResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:MtuSizeResponse) + com.pauldemarco.flutter_blue.Protos.MtuSizeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.class, com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + mtu_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.MtuSizeResponse getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.MtuSizeResponse build() { + com.pauldemarco.flutter_blue.Protos.MtuSizeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.MtuSizeResponse buildPartial() { + com.pauldemarco.flutter_blue.Protos.MtuSizeResponse result = new com.pauldemarco.flutter_blue.Protos.MtuSizeResponse(this); + result.remoteId_ = remoteId_; + result.mtu_ = mtu_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.MtuSizeResponse) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.MtuSizeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.MtuSizeResponse other) { + if (other == com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + if (other.getMtu() != 0) { + setMtu(other.getMtu()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.MtuSizeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + + private int mtu_ ; + /** + * uint32 mtu = 2; + * @return The mtu. + */ + public int getMtu() { + return mtu_; + } + /** + * uint32 mtu = 2; + * @param value The mtu to set. + * @return This builder for chaining. + */ + public Builder setMtu(int value) { + + mtu_ = value; + onChanged(); + return this; + } + /** + * uint32 mtu = 2; + * @return This builder for chaining. + */ + public Builder clearMtu() { + + mtu_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:MtuSizeResponse) + } + + // @@protoc_insertion_point(class_scope:MtuSizeResponse) + private static final com.pauldemarco.flutter_blue.Protos.MtuSizeResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.MtuSizeResponse(); + } + + public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MtuSizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MtuSizeResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.MtuSizeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IsReadyToSendWriteWithoutResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:IsReadyToSendWriteWithoutResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string remote_id = 1; + * @return The remoteId. + */ + java.lang.String getRemoteId(); + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + com.google.protobuf.ByteString + getRemoteIdBytes(); + } + /** + * Protobuf type {@code IsReadyToSendWriteWithoutResponse} + */ + public static final class IsReadyToSendWriteWithoutResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:IsReadyToSendWriteWithoutResponse) + IsReadyToSendWriteWithoutResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use IsReadyToSendWriteWithoutResponse.newBuilder() to construct. + private IsReadyToSendWriteWithoutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IsReadyToSendWriteWithoutResponse() { + remoteId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IsReadyToSendWriteWithoutResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IsReadyToSendWriteWithoutResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.class, com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.Builder.class); + } + + public static final int REMOTE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object remoteId_; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRemoteIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRemoteIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse)) { + return super.equals(obj); + } + com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse other = (com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse) obj; + + if (!getRemoteId() + .equals(other.getRemoteId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code IsReadyToSendWriteWithoutResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:IsReadyToSendWriteWithoutResponse) + com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.class, com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.Builder.class); + } + + // Construct using com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + remoteId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_descriptor; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse getDefaultInstanceForType() { + return com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse build() { + com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse buildPartial() { + com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse result = new com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse(this); + result.remoteId_ = remoteId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse) { + return mergeFrom((com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse other) { + if (other == com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.getDefaultInstance()) return this; + if (!other.getRemoteId().isEmpty()) { + remoteId_ = other.remoteId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object remoteId_ = ""; + /** + * string remote_id = 1; + * @return The remoteId. + */ + public java.lang.String getRemoteId() { + java.lang.Object ref = remoteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_id = 1; + * @return The bytes for remoteId. + */ + public com.google.protobuf.ByteString + getRemoteIdBytes() { + java.lang.Object ref = remoteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_id = 1; + * @param value The remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteId_ = value; + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @return This builder for chaining. + */ + public Builder clearRemoteId() { + + remoteId_ = getDefaultInstance().getRemoteId(); + onChanged(); + return this; + } + /** + * string remote_id = 1; + * @param value The bytes for remoteId to set. + * @return This builder for chaining. + */ + public Builder setRemoteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:IsReadyToSendWriteWithoutResponse) + } + + // @@protoc_insertion_point(class_scope:IsReadyToSendWriteWithoutResponse) + private static final com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse(); + } + + public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IsReadyToSendWriteWithoutResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IsReadyToSendWriteWithoutResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Int32Value_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Int32Value_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_BluetoothState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_BluetoothState_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_AdvertisementData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_AdvertisementData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_AdvertisementData_ManufacturerDataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_AdvertisementData_ManufacturerDataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_AdvertisementData_ServiceDataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_AdvertisementData_ServiceDataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ScanSettings_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ScanSettings_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ScanResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ScanResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ConnectRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ConnectRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_BluetoothDevice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_BluetoothDevice_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_BluetoothService_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_BluetoothService_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_BluetoothCharacteristic_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_BluetoothCharacteristic_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_BluetoothDescriptor_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_BluetoothDescriptor_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_CharacteristicProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CharacteristicProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_DiscoverServicesResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DiscoverServicesResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ReadCharacteristicRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ReadCharacteristicRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ReadCharacteristicResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ReadCharacteristicResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ReadDescriptorRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ReadDescriptorRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ReadDescriptorResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ReadDescriptorResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_WriteCharacteristicRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_WriteCharacteristicRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_WriteCharacteristicResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_WriteCharacteristicResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_WriteDescriptorRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_WriteDescriptorRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_WriteDescriptorResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_WriteDescriptorResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_SetNotificationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_SetNotificationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_SetNotificationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_SetNotificationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_OnCharacteristicChanged_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_OnCharacteristicChanged_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeviceStateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DeviceStateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_ConnectedDevicesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ConnectedDevicesResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_MtuSizeRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_MtuSizeRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_MtuSizeResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_MtuSizeResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_IsReadyToSendWriteWithoutResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_IsReadyToSendWriteWithoutResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\021flutterblue.proto\"\033\n\nInt32Value\022\r\n\005val" + + "ue\030\001 \001(\005\"\241\001\n\016BluetoothState\022$\n\005state\030\001 \001" + + "(\0162\025.BluetoothState.State\"i\n\005State\022\013\n\007UN" + + "KNOWN\020\000\022\017\n\013UNAVAILABLE\020\001\022\020\n\014UNAUTHORIZED" + + "\020\002\022\016\n\nTURNING_ON\020\003\022\006\n\002ON\020\004\022\017\n\013TURNING_OF" + + "F\020\005\022\007\n\003OFF\020\006\"\345\002\n\021AdvertisementData\022\022\n\nlo" + + "cal_name\030\001 \001(\t\022#\n\016tx_power_level\030\002 \001(\0132\013" + + ".Int32Value\022\023\n\013connectable\030\003 \001(\010\022C\n\021manu" + + "facturer_data\030\004 \003(\0132(.AdvertisementData." + + "ManufacturerDataEntry\0229\n\014service_data\030\005 " + + "\003(\0132#.AdvertisementData.ServiceDataEntry" + + "\022\025\n\rservice_uuids\030\006 \003(\t\0327\n\025ManufacturerD" + + "ataEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\001" + + "\0322\n\020ServiceDataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\014:\0028\001\"Z\n\014ScanSettings\022\031\n\021android_" + + "scan_mode\030\001 \001(\005\022\025\n\rservice_uuids\030\002 \003(\t\022\030" + + "\n\020allow_duplicates\030\003 \001(\010\"l\n\nScanResult\022 " + + "\n\006device\030\001 \001(\0132\020.BluetoothDevice\022.\n\022adve" + + "rtisement_data\030\002 \001(\0132\022.AdvertisementData" + + "\022\014\n\004rssi\030\003 \001(\005\"A\n\016ConnectRequest\022\021\n\tremo" + + "te_id\030\001 \001(\t\022\034\n\024android_auto_connect\030\002 \001(" + + "\010\"\213\001\n\017BluetoothDevice\022\021\n\tremote_id\030\001 \001(\t" + + "\022\014\n\004name\030\002 \001(\t\022#\n\004type\030\003 \001(\0162\025.Bluetooth" + + "Device.Type\"2\n\004Type\022\013\n\007UNKNOWN\020\000\022\013\n\007CLAS" + + "SIC\020\001\022\006\n\002LE\020\002\022\010\n\004DUAL\020\003\"\250\001\n\020BluetoothSer" + + "vice\022\014\n\004uuid\030\001 \001(\t\022\021\n\tremote_id\030\002 \001(\t\022\022\n" + + "\nis_primary\030\003 \001(\010\0221\n\017characteristics\030\004 \003" + + "(\0132\030.BluetoothCharacteristic\022,\n\021included" + + "_services\030\005 \003(\0132\021.BluetoothService\"\326\001\n\027B" + + "luetoothCharacteristic\022\014\n\004uuid\030\001 \001(\t\022\021\n\t" + + "remote_id\030\002 \001(\t\022\023\n\013serviceUuid\030\003 \001(\t\022\034\n\024" + + "secondaryServiceUuid\030\004 \001(\t\022)\n\013descriptor" + + "s\030\005 \003(\0132\024.BluetoothDescriptor\022-\n\npropert" + + "ies\030\006 \001(\0132\031.CharacteristicProperties\022\r\n\005" + + "value\030\007 \001(\014\"v\n\023BluetoothDescriptor\022\014\n\004uu" + + "id\030\001 \001(\t\022\021\n\tremote_id\030\002 \001(\t\022\023\n\013serviceUu" + + "id\030\003 \001(\t\022\032\n\022characteristicUuid\030\004 \001(\t\022\r\n\005" + + "value\030\005 \001(\014\"\230\002\n\030CharacteristicProperties" + + "\022\021\n\tbroadcast\030\001 \001(\010\022\014\n\004read\030\002 \001(\010\022\036\n\026wri" + + "te_without_response\030\003 \001(\010\022\r\n\005write\030\004 \001(\010" + + "\022\016\n\006notify\030\005 \001(\010\022\020\n\010indicate\030\006 \001(\010\022#\n\033au" + + "thenticated_signed_writes\030\007 \001(\010\022\033\n\023exten" + + "ded_properties\030\010 \001(\010\022\"\n\032notify_encryptio" + + "n_required\030\t \001(\010\022$\n\034indicate_encryption_" + + "required\030\n \001(\010\"P\n\026DiscoverServicesResult" + + "\022\021\n\tremote_id\030\001 \001(\t\022#\n\010services\030\002 \003(\0132\021." + + "BluetoothService\"\201\001\n\031ReadCharacteristicR" + + "equest\022\021\n\tremote_id\030\001 \001(\t\022\033\n\023characteris" + + "tic_uuid\030\002 \001(\t\022\024\n\014service_uuid\030\003 \001(\t\022\036\n\026" + + "secondary_service_uuid\030\004 \001(\t\"a\n\032ReadChar" + + "acteristicResponse\022\021\n\tremote_id\030\001 \001(\t\0220\n" + + "\016characteristic\030\002 \001(\0132\030.BluetoothCharact" + + "eristic\"\226\001\n\025ReadDescriptorRequest\022\021\n\trem" + + "ote_id\030\001 \001(\t\022\027\n\017descriptor_uuid\030\002 \001(\t\022\024\n" + + "\014service_uuid\030\003 \001(\t\022\036\n\026secondary_service" + + "_uuid\030\004 \001(\t\022\033\n\023characteristic_uuid\030\005 \001(\t" + + "\"P\n\026ReadDescriptorResponse\022\'\n\007request\030\001 " + + "\001(\0132\026.ReadDescriptorRequest\022\r\n\005value\030\002 \001" + + "(\014\"\202\002\n\032WriteCharacteristicRequest\022\021\n\trem" + + "ote_id\030\001 \001(\t\022\033\n\023characteristic_uuid\030\002 \001(" + + "\t\022\024\n\014service_uuid\030\003 \001(\t\022\036\n\026secondary_ser" + + "vice_uuid\030\004 \001(\t\0229\n\nwrite_type\030\005 \001(\0162%.Wr" + + "iteCharacteristicRequest.WriteType\022\r\n\005va" + + "lue\030\006 \001(\014\"4\n\tWriteType\022\021\n\rWITH_RESPONSE\020" + + "\000\022\024\n\020WITHOUT_RESPONSE\020\001\"\\\n\033WriteCharacte" + + "risticResponse\022,\n\007request\030\001 \001(\0132\033.WriteC" + + "haracteristicRequest\022\017\n\007success\030\002 \001(\010\"\246\001" + + "\n\026WriteDescriptorRequest\022\021\n\tremote_id\030\001 " + + "\001(\t\022\027\n\017descriptor_uuid\030\002 \001(\t\022\024\n\014service_" + + "uuid\030\003 \001(\t\022\036\n\026secondary_service_uuid\030\004 \001" + + "(\t\022\033\n\023characteristic_uuid\030\005 \001(\t\022\r\n\005value" + + "\030\006 \001(\014\"T\n\027WriteDescriptorResponse\022(\n\007req" + + "uest\030\001 \001(\0132\027.WriteDescriptorRequest\022\017\n\007s" + + "uccess\030\002 \001(\010\"\216\001\n\026SetNotificationRequest\022" + + "\021\n\tremote_id\030\001 \001(\t\022\024\n\014service_uuid\030\002 \001(\t" + + "\022\036\n\026secondary_service_uuid\030\003 \001(\t\022\033\n\023char" + + "acteristic_uuid\030\004 \001(\t\022\016\n\006enable\030\005 \001(\010\"o\n" + + "\027SetNotificationResponse\022\021\n\tremote_id\030\001 " + + "\001(\t\0220\n\016characteristic\030\002 \001(\0132\030.BluetoothC" + + "haracteristic\022\017\n\007success\030\003 \001(\010\"^\n\027OnChar" + + "acteristicChanged\022\021\n\tremote_id\030\001 \001(\t\0220\n\016" + + "characteristic\030\002 \001(\0132\030.BluetoothCharacte" + + "ristic\"\276\001\n\023DeviceStateResponse\022\021\n\tremote" + + "_id\030\001 \001(\t\0228\n\005state\030\002 \001(\0162).DeviceStateRe" + + "sponse.BluetoothDeviceState\"Z\n\024Bluetooth" + + "DeviceState\022\020\n\014DISCONNECTED\020\000\022\016\n\nCONNECT" + + "ING\020\001\022\r\n\tCONNECTED\020\002\022\021\n\rDISCONNECTING\020\003\"" + + "=\n\030ConnectedDevicesResponse\022!\n\007devices\030\001" + + " \003(\0132\020.BluetoothDevice\"0\n\016MtuSizeRequest" + + "\022\021\n\tremote_id\030\001 \001(\t\022\013\n\003mtu\030\002 \001(\r\"1\n\017MtuS" + + "izeResponse\022\021\n\tremote_id\030\001 \001(\t\022\013\n\003mtu\030\002 " + + "\001(\r\"6\n!IsReadyToSendWriteWithoutResponse" + + "\022\021\n\tremote_id\030\001 \001(\tB/\n\034com.pauldemarco.f" + + "lutter_blueB\006Protos\242\002\006Protosb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_Int32Value_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Int32Value_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Int32Value_descriptor, + new java.lang.String[] { "Value", }); + internal_static_BluetoothState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_BluetoothState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BluetoothState_descriptor, + new java.lang.String[] { "State", }); + internal_static_AdvertisementData_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_AdvertisementData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AdvertisementData_descriptor, + new java.lang.String[] { "LocalName", "TxPowerLevel", "Connectable", "ManufacturerData", "ServiceData", "ServiceUuids", }); + internal_static_AdvertisementData_ManufacturerDataEntry_descriptor = + internal_static_AdvertisementData_descriptor.getNestedTypes().get(0); + internal_static_AdvertisementData_ManufacturerDataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AdvertisementData_ManufacturerDataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_AdvertisementData_ServiceDataEntry_descriptor = + internal_static_AdvertisementData_descriptor.getNestedTypes().get(1); + internal_static_AdvertisementData_ServiceDataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AdvertisementData_ServiceDataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_ScanSettings_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_ScanSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ScanSettings_descriptor, + new java.lang.String[] { "AndroidScanMode", "ServiceUuids", "AllowDuplicates", }); + internal_static_ScanResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_ScanResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ScanResult_descriptor, + new java.lang.String[] { "Device", "AdvertisementData", "Rssi", }); + internal_static_ConnectRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_ConnectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ConnectRequest_descriptor, + new java.lang.String[] { "RemoteId", "AndroidAutoConnect", }); + internal_static_BluetoothDevice_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_BluetoothDevice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BluetoothDevice_descriptor, + new java.lang.String[] { "RemoteId", "Name", "Type", }); + internal_static_BluetoothService_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_BluetoothService_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BluetoothService_descriptor, + new java.lang.String[] { "Uuid", "RemoteId", "IsPrimary", "Characteristics", "IncludedServices", }); + internal_static_BluetoothCharacteristic_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_BluetoothCharacteristic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BluetoothCharacteristic_descriptor, + new java.lang.String[] { "Uuid", "RemoteId", "ServiceUuid", "SecondaryServiceUuid", "Descriptors", "Properties", "Value", }); + internal_static_BluetoothDescriptor_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_BluetoothDescriptor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_BluetoothDescriptor_descriptor, + new java.lang.String[] { "Uuid", "RemoteId", "ServiceUuid", "CharacteristicUuid", "Value", }); + internal_static_CharacteristicProperties_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_CharacteristicProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CharacteristicProperties_descriptor, + new java.lang.String[] { "Broadcast", "Read", "WriteWithoutResponse", "Write", "Notify", "Indicate", "AuthenticatedSignedWrites", "ExtendedProperties", "NotifyEncryptionRequired", "IndicateEncryptionRequired", }); + internal_static_DiscoverServicesResult_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_DiscoverServicesResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DiscoverServicesResult_descriptor, + new java.lang.String[] { "RemoteId", "Services", }); + internal_static_ReadCharacteristicRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_ReadCharacteristicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReadCharacteristicRequest_descriptor, + new java.lang.String[] { "RemoteId", "CharacteristicUuid", "ServiceUuid", "SecondaryServiceUuid", }); + internal_static_ReadCharacteristicResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_ReadCharacteristicResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReadCharacteristicResponse_descriptor, + new java.lang.String[] { "RemoteId", "Characteristic", }); + internal_static_ReadDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_ReadDescriptorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReadDescriptorRequest_descriptor, + new java.lang.String[] { "RemoteId", "DescriptorUuid", "ServiceUuid", "SecondaryServiceUuid", "CharacteristicUuid", }); + internal_static_ReadDescriptorResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_ReadDescriptorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ReadDescriptorResponse_descriptor, + new java.lang.String[] { "Request", "Value", }); + internal_static_WriteCharacteristicRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_WriteCharacteristicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WriteCharacteristicRequest_descriptor, + new java.lang.String[] { "RemoteId", "CharacteristicUuid", "ServiceUuid", "SecondaryServiceUuid", "WriteType", "Value", }); + internal_static_WriteCharacteristicResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_WriteCharacteristicResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WriteCharacteristicResponse_descriptor, + new java.lang.String[] { "Request", "Success", }); + internal_static_WriteDescriptorRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_WriteDescriptorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WriteDescriptorRequest_descriptor, + new java.lang.String[] { "RemoteId", "DescriptorUuid", "ServiceUuid", "SecondaryServiceUuid", "CharacteristicUuid", "Value", }); + internal_static_WriteDescriptorResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_WriteDescriptorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_WriteDescriptorResponse_descriptor, + new java.lang.String[] { "Request", "Success", }); + internal_static_SetNotificationRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_SetNotificationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_SetNotificationRequest_descriptor, + new java.lang.String[] { "RemoteId", "ServiceUuid", "SecondaryServiceUuid", "CharacteristicUuid", "Enable", }); + internal_static_SetNotificationResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_SetNotificationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_SetNotificationResponse_descriptor, + new java.lang.String[] { "RemoteId", "Characteristic", "Success", }); + internal_static_OnCharacteristicChanged_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_OnCharacteristicChanged_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_OnCharacteristicChanged_descriptor, + new java.lang.String[] { "RemoteId", "Characteristic", }); + internal_static_DeviceStateResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_DeviceStateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DeviceStateResponse_descriptor, + new java.lang.String[] { "RemoteId", "State", }); + internal_static_ConnectedDevicesResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_ConnectedDevicesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ConnectedDevicesResponse_descriptor, + new java.lang.String[] { "Devices", }); + internal_static_MtuSizeRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_MtuSizeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_MtuSizeRequest_descriptor, + new java.lang.String[] { "RemoteId", "Mtu", }); + internal_static_MtuSizeResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_MtuSizeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_MtuSizeResponse_descriptor, + new java.lang.String[] { "RemoteId", "Mtu", }); + internal_static_IsReadyToSendWriteWithoutResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_IsReadyToSendWriteWithoutResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_IsReadyToSendWriteWithoutResponse_descriptor, + new java.lang.String[] { "RemoteId", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/protos/flutterblue.pb.dart b/protos/flutterblue.pb.dart new file mode 100644 index 00000000..b43d0e8d --- /dev/null +++ b/protos/flutterblue.pb.dart @@ -0,0 +1,2235 @@ +/// +// Generated code. Do not modify. +// source: flutterblue.proto +// +// @dart = 2.12 +// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +import 'flutterblue.pbenum.dart'; + +export 'flutterblue.pbenum.dart'; + +class Int32Value extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Int32Value', createEmptyInstance: create) + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.O3) + ..hasRequiredFields = false + ; + + Int32Value._() : super(); + factory Int32Value({ + $core.int? value, + }) { + final _result = create(); + if (value != null) { + _result.value = value; + } + return _result; + } + factory Int32Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Int32Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + Int32Value clone() => Int32Value()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Int32Value copyWith(void Function(Int32Value) updates) => super.copyWith((message) => updates(message as Int32Value)) as Int32Value; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static Int32Value create() => Int32Value._(); + Int32Value createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Int32Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Int32Value? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get value => $_getIZ(0); + @$pb.TagNumber(1) + set value($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasValue() => $_has(0); + @$pb.TagNumber(1) + void clearValue() => clearField(1); +} + +class BluetoothState extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothState', createEmptyInstance: create) + ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', $pb.PbFieldType.OE, defaultOrMaker: BluetoothState_State.UNKNOWN, valueOf: BluetoothState_State.valueOf, enumValues: BluetoothState_State.values) + ..hasRequiredFields = false + ; + + BluetoothState._() : super(); + factory BluetoothState({ + BluetoothState_State? state, + }) { + final _result = create(); + if (state != null) { + _result.state = state; + } + return _result; + } + factory BluetoothState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BluetoothState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BluetoothState clone() => BluetoothState()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BluetoothState copyWith(void Function(BluetoothState) updates) => super.copyWith((message) => updates(message as BluetoothState)) as BluetoothState; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static BluetoothState create() => BluetoothState._(); + BluetoothState createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BluetoothState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BluetoothState? _defaultInstance; + + @$pb.TagNumber(1) + BluetoothState_State get state => $_getN(0); + @$pb.TagNumber(1) + set state(BluetoothState_State v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasState() => $_has(0); + @$pb.TagNumber(1) + void clearState() => clearField(1); +} + +class AdvertisementData extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AdvertisementData', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'localName') + ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'txPowerLevel', subBuilder: Int32Value.create) + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'connectable') + ..m<$core.int, $core.List<$core.int>>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'manufacturerData', entryClassName: 'AdvertisementData.ManufacturerDataEntry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.OY) + ..m<$core.String, $core.List<$core.int>>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceData', entryClassName: 'AdvertisementData.ServiceDataEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OY) + ..pPS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuids') + ..hasRequiredFields = false + ; + + AdvertisementData._() : super(); + factory AdvertisementData({ + $core.String? localName, + Int32Value? txPowerLevel, + $core.bool? connectable, + $core.Map<$core.int, $core.List<$core.int>>? manufacturerData, + $core.Map<$core.String, $core.List<$core.int>>? serviceData, + $core.Iterable<$core.String>? serviceUuids, + }) { + final _result = create(); + if (localName != null) { + _result.localName = localName; + } + if (txPowerLevel != null) { + _result.txPowerLevel = txPowerLevel; + } + if (connectable != null) { + _result.connectable = connectable; + } + if (manufacturerData != null) { + _result.manufacturerData.addAll(manufacturerData); + } + if (serviceData != null) { + _result.serviceData.addAll(serviceData); + } + if (serviceUuids != null) { + _result.serviceUuids.addAll(serviceUuids); + } + return _result; + } + factory AdvertisementData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AdvertisementData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AdvertisementData clone() => AdvertisementData()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AdvertisementData copyWith(void Function(AdvertisementData) updates) => super.copyWith((message) => updates(message as AdvertisementData)) as AdvertisementData; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static AdvertisementData create() => AdvertisementData._(); + AdvertisementData createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AdvertisementData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static AdvertisementData? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get localName => $_getSZ(0); + @$pb.TagNumber(1) + set localName($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasLocalName() => $_has(0); + @$pb.TagNumber(1) + void clearLocalName() => clearField(1); + + @$pb.TagNumber(2) + Int32Value get txPowerLevel => $_getN(1); + @$pb.TagNumber(2) + set txPowerLevel(Int32Value v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasTxPowerLevel() => $_has(1); + @$pb.TagNumber(2) + void clearTxPowerLevel() => clearField(2); + @$pb.TagNumber(2) + Int32Value ensureTxPowerLevel() => $_ensure(1); + + @$pb.TagNumber(3) + $core.bool get connectable => $_getBF(2); + @$pb.TagNumber(3) + set connectable($core.bool v) { $_setBool(2, v); } + @$pb.TagNumber(3) + $core.bool hasConnectable() => $_has(2); + @$pb.TagNumber(3) + void clearConnectable() => clearField(3); + + @$pb.TagNumber(4) + $core.Map<$core.int, $core.List<$core.int>> get manufacturerData => $_getMap(3); + + @$pb.TagNumber(5) + $core.Map<$core.String, $core.List<$core.int>> get serviceData => $_getMap(4); + + @$pb.TagNumber(6) + $core.List<$core.String> get serviceUuids => $_getList(5); +} + +class ScanSettings extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ScanSettings', createEmptyInstance: create) + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'androidScanMode', $pb.PbFieldType.O3) + ..pPS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuids') + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'allowDuplicates') + ..hasRequiredFields = false + ; + + ScanSettings._() : super(); + factory ScanSettings({ + $core.int? androidScanMode, + $core.Iterable<$core.String>? serviceUuids, + $core.bool? allowDuplicates, + }) { + final _result = create(); + if (androidScanMode != null) { + _result.androidScanMode = androidScanMode; + } + if (serviceUuids != null) { + _result.serviceUuids.addAll(serviceUuids); + } + if (allowDuplicates != null) { + _result.allowDuplicates = allowDuplicates; + } + return _result; + } + factory ScanSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ScanSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ScanSettings clone() => ScanSettings()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ScanSettings copyWith(void Function(ScanSettings) updates) => super.copyWith((message) => updates(message as ScanSettings)) as ScanSettings; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ScanSettings create() => ScanSettings._(); + ScanSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ScanSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ScanSettings? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get androidScanMode => $_getIZ(0); + @$pb.TagNumber(1) + set androidScanMode($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasAndroidScanMode() => $_has(0); + @$pb.TagNumber(1) + void clearAndroidScanMode() => clearField(1); + + @$pb.TagNumber(2) + $core.List<$core.String> get serviceUuids => $_getList(1); + + @$pb.TagNumber(3) + $core.bool get allowDuplicates => $_getBF(2); + @$pb.TagNumber(3) + set allowDuplicates($core.bool v) { $_setBool(2, v); } + @$pb.TagNumber(3) + $core.bool hasAllowDuplicates() => $_has(2); + @$pb.TagNumber(3) + void clearAllowDuplicates() => clearField(3); +} + +class ScanResult extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ScanResult', createEmptyInstance: create) + ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'device', subBuilder: BluetoothDevice.create) + ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'advertisementData', subBuilder: AdvertisementData.create) + ..a<$core.int>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rssi', $pb.PbFieldType.O3) + ..hasRequiredFields = false + ; + + ScanResult._() : super(); + factory ScanResult({ + BluetoothDevice? device, + AdvertisementData? advertisementData, + $core.int? rssi, + }) { + final _result = create(); + if (device != null) { + _result.device = device; + } + if (advertisementData != null) { + _result.advertisementData = advertisementData; + } + if (rssi != null) { + _result.rssi = rssi; + } + return _result; + } + factory ScanResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ScanResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ScanResult clone() => ScanResult()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ScanResult copyWith(void Function(ScanResult) updates) => super.copyWith((message) => updates(message as ScanResult)) as ScanResult; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ScanResult create() => ScanResult._(); + ScanResult createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ScanResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ScanResult? _defaultInstance; + + @$pb.TagNumber(1) + BluetoothDevice get device => $_getN(0); + @$pb.TagNumber(1) + set device(BluetoothDevice v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasDevice() => $_has(0); + @$pb.TagNumber(1) + void clearDevice() => clearField(1); + @$pb.TagNumber(1) + BluetoothDevice ensureDevice() => $_ensure(0); + + @$pb.TagNumber(2) + AdvertisementData get advertisementData => $_getN(1); + @$pb.TagNumber(2) + set advertisementData(AdvertisementData v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasAdvertisementData() => $_has(1); + @$pb.TagNumber(2) + void clearAdvertisementData() => clearField(2); + @$pb.TagNumber(2) + AdvertisementData ensureAdvertisementData() => $_ensure(1); + + @$pb.TagNumber(3) + $core.int get rssi => $_getIZ(2); + @$pb.TagNumber(3) + set rssi($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasRssi() => $_has(2); + @$pb.TagNumber(3) + void clearRssi() => clearField(3); +} + +class ConnectRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ConnectRequest', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'androidAutoConnect') + ..hasRequiredFields = false + ; + + ConnectRequest._() : super(); + factory ConnectRequest({ + $core.String? remoteId, + $core.bool? androidAutoConnect, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (androidAutoConnect != null) { + _result.androidAutoConnect = androidAutoConnect; + } + return _result; + } + factory ConnectRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ConnectRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ConnectRequest clone() => ConnectRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConnectRequest copyWith(void Function(ConnectRequest) updates) => super.copyWith((message) => updates(message as ConnectRequest)) as ConnectRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ConnectRequest create() => ConnectRequest._(); + ConnectRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ConnectRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ConnectRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.bool get androidAutoConnect => $_getBF(1); + @$pb.TagNumber(2) + set androidAutoConnect($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) + $core.bool hasAndroidAutoConnect() => $_has(1); + @$pb.TagNumber(2) + void clearAndroidAutoConnect() => clearField(2); +} + +class BluetoothDevice extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothDevice', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') + ..e(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: BluetoothDevice_Type.UNKNOWN, valueOf: BluetoothDevice_Type.valueOf, enumValues: BluetoothDevice_Type.values) + ..hasRequiredFields = false + ; + + BluetoothDevice._() : super(); + factory BluetoothDevice({ + $core.String? remoteId, + $core.String? name, + BluetoothDevice_Type? type, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (name != null) { + _result.name = name; + } + if (type != null) { + _result.type = type; + } + return _result; + } + factory BluetoothDevice.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BluetoothDevice.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BluetoothDevice clone() => BluetoothDevice()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BluetoothDevice copyWith(void Function(BluetoothDevice) updates) => super.copyWith((message) => updates(message as BluetoothDevice)) as BluetoothDevice; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static BluetoothDevice create() => BluetoothDevice._(); + BluetoothDevice createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BluetoothDevice getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BluetoothDevice? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get name => $_getSZ(1); + @$pb.TagNumber(2) + set name($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasName() => $_has(1); + @$pb.TagNumber(2) + void clearName() => clearField(2); + + @$pb.TagNumber(3) + BluetoothDevice_Type get type => $_getN(2); + @$pb.TagNumber(3) + set type(BluetoothDevice_Type v) { setField(3, v); } + @$pb.TagNumber(3) + $core.bool hasType() => $_has(2); + @$pb.TagNumber(3) + void clearType() => clearField(3); +} + +class BluetoothService extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothService', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uuid') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'isPrimary') + ..pc(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristics', $pb.PbFieldType.PM, subBuilder: BluetoothCharacteristic.create) + ..pc(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'includedServices', $pb.PbFieldType.PM, subBuilder: BluetoothService.create) + ..hasRequiredFields = false + ; + + BluetoothService._() : super(); + factory BluetoothService({ + $core.String? uuid, + $core.String? remoteId, + $core.bool? isPrimary, + $core.Iterable? characteristics, + $core.Iterable? includedServices, + }) { + final _result = create(); + if (uuid != null) { + _result.uuid = uuid; + } + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (isPrimary != null) { + _result.isPrimary = isPrimary; + } + if (characteristics != null) { + _result.characteristics.addAll(characteristics); + } + if (includedServices != null) { + _result.includedServices.addAll(includedServices); + } + return _result; + } + factory BluetoothService.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BluetoothService.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BluetoothService clone() => BluetoothService()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BluetoothService copyWith(void Function(BluetoothService) updates) => super.copyWith((message) => updates(message as BluetoothService)) as BluetoothService; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static BluetoothService create() => BluetoothService._(); + BluetoothService createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BluetoothService getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BluetoothService? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get uuid => $_getSZ(0); + @$pb.TagNumber(1) + set uuid($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasUuid() => $_has(0); + @$pb.TagNumber(1) + void clearUuid() => clearField(1); + + @$pb.TagNumber(2) + $core.String get remoteId => $_getSZ(1); + @$pb.TagNumber(2) + set remoteId($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasRemoteId() => $_has(1); + @$pb.TagNumber(2) + void clearRemoteId() => clearField(2); + + @$pb.TagNumber(3) + $core.bool get isPrimary => $_getBF(2); + @$pb.TagNumber(3) + set isPrimary($core.bool v) { $_setBool(2, v); } + @$pb.TagNumber(3) + $core.bool hasIsPrimary() => $_has(2); + @$pb.TagNumber(3) + void clearIsPrimary() => clearField(3); + + @$pb.TagNumber(4) + $core.List get characteristics => $_getList(3); + + @$pb.TagNumber(5) + $core.List get includedServices => $_getList(4); +} + +class BluetoothCharacteristic extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothCharacteristic', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uuid') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid', protoName: 'serviceUuid') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid', protoName: 'secondaryServiceUuid') + ..pc(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descriptors', $pb.PbFieldType.PM, subBuilder: BluetoothDescriptor.create) + ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'properties', subBuilder: CharacteristicProperties.create) + ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + + BluetoothCharacteristic._() : super(); + factory BluetoothCharacteristic({ + $core.String? uuid, + $core.String? remoteId, + $core.String? serviceUuid, + $core.String? secondaryServiceUuid, + $core.Iterable? descriptors, + CharacteristicProperties? properties, + $core.List<$core.int>? value, + }) { + final _result = create(); + if (uuid != null) { + _result.uuid = uuid; + } + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (serviceUuid != null) { + _result.serviceUuid = serviceUuid; + } + if (secondaryServiceUuid != null) { + _result.secondaryServiceUuid = secondaryServiceUuid; + } + if (descriptors != null) { + _result.descriptors.addAll(descriptors); + } + if (properties != null) { + _result.properties = properties; + } + if (value != null) { + _result.value = value; + } + return _result; + } + factory BluetoothCharacteristic.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BluetoothCharacteristic.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BluetoothCharacteristic clone() => BluetoothCharacteristic()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BluetoothCharacteristic copyWith(void Function(BluetoothCharacteristic) updates) => super.copyWith((message) => updates(message as BluetoothCharacteristic)) as BluetoothCharacteristic; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static BluetoothCharacteristic create() => BluetoothCharacteristic._(); + BluetoothCharacteristic createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BluetoothCharacteristic getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BluetoothCharacteristic? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get uuid => $_getSZ(0); + @$pb.TagNumber(1) + set uuid($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasUuid() => $_has(0); + @$pb.TagNumber(1) + void clearUuid() => clearField(1); + + @$pb.TagNumber(2) + $core.String get remoteId => $_getSZ(1); + @$pb.TagNumber(2) + set remoteId($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasRemoteId() => $_has(1); + @$pb.TagNumber(2) + void clearRemoteId() => clearField(2); + + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) + set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasServiceUuid() => $_has(2); + @$pb.TagNumber(3) + void clearServiceUuid() => clearField(3); + + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) + set secondaryServiceUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasSecondaryServiceUuid() => $_has(3); + @$pb.TagNumber(4) + void clearSecondaryServiceUuid() => clearField(4); + + @$pb.TagNumber(5) + $core.List get descriptors => $_getList(4); + + @$pb.TagNumber(6) + CharacteristicProperties get properties => $_getN(5); + @$pb.TagNumber(6) + set properties(CharacteristicProperties v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasProperties() => $_has(5); + @$pb.TagNumber(6) + void clearProperties() => clearField(6); + @$pb.TagNumber(6) + CharacteristicProperties ensureProperties() => $_ensure(5); + + @$pb.TagNumber(7) + $core.List<$core.int> get value => $_getN(6); + @$pb.TagNumber(7) + set value($core.List<$core.int> v) { $_setBytes(6, v); } + @$pb.TagNumber(7) + $core.bool hasValue() => $_has(6); + @$pb.TagNumber(7) + void clearValue() => clearField(7); +} + +class BluetoothDescriptor extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothDescriptor', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uuid') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid', protoName: 'serviceUuid') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid', protoName: 'characteristicUuid') + ..a<$core.List<$core.int>>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + + BluetoothDescriptor._() : super(); + factory BluetoothDescriptor({ + $core.String? uuid, + $core.String? remoteId, + $core.String? serviceUuid, + $core.String? characteristicUuid, + $core.List<$core.int>? value, + }) { + final _result = create(); + if (uuid != null) { + _result.uuid = uuid; + } + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (serviceUuid != null) { + _result.serviceUuid = serviceUuid; + } + if (characteristicUuid != null) { + _result.characteristicUuid = characteristicUuid; + } + if (value != null) { + _result.value = value; + } + return _result; + } + factory BluetoothDescriptor.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BluetoothDescriptor.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BluetoothDescriptor clone() => BluetoothDescriptor()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BluetoothDescriptor copyWith(void Function(BluetoothDescriptor) updates) => super.copyWith((message) => updates(message as BluetoothDescriptor)) as BluetoothDescriptor; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static BluetoothDescriptor create() => BluetoothDescriptor._(); + BluetoothDescriptor createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BluetoothDescriptor getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BluetoothDescriptor? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get uuid => $_getSZ(0); + @$pb.TagNumber(1) + set uuid($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasUuid() => $_has(0); + @$pb.TagNumber(1) + void clearUuid() => clearField(1); + + @$pb.TagNumber(2) + $core.String get remoteId => $_getSZ(1); + @$pb.TagNumber(2) + set remoteId($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasRemoteId() => $_has(1); + @$pb.TagNumber(2) + void clearRemoteId() => clearField(2); + + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) + set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasServiceUuid() => $_has(2); + @$pb.TagNumber(3) + void clearServiceUuid() => clearField(3); + + @$pb.TagNumber(4) + $core.String get characteristicUuid => $_getSZ(3); + @$pb.TagNumber(4) + set characteristicUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasCharacteristicUuid() => $_has(3); + @$pb.TagNumber(4) + void clearCharacteristicUuid() => clearField(4); + + @$pb.TagNumber(5) + $core.List<$core.int> get value => $_getN(4); + @$pb.TagNumber(5) + set value($core.List<$core.int> v) { $_setBytes(4, v); } + @$pb.TagNumber(5) + $core.bool hasValue() => $_has(4); + @$pb.TagNumber(5) + void clearValue() => clearField(5); +} + +class CharacteristicProperties extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CharacteristicProperties', createEmptyInstance: create) + ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'broadcast') + ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'read') + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'writeWithoutResponse') + ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'write') + ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'notify') + ..aOB(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'indicate') + ..aOB(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authenticatedSignedWrites') + ..aOB(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'extendedProperties') + ..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'notifyEncryptionRequired') + ..aOB(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'indicateEncryptionRequired') + ..hasRequiredFields = false + ; + + CharacteristicProperties._() : super(); + factory CharacteristicProperties({ + $core.bool? broadcast, + $core.bool? read, + $core.bool? writeWithoutResponse, + $core.bool? write, + $core.bool? notify, + $core.bool? indicate, + $core.bool? authenticatedSignedWrites, + $core.bool? extendedProperties, + $core.bool? notifyEncryptionRequired, + $core.bool? indicateEncryptionRequired, + }) { + final _result = create(); + if (broadcast != null) { + _result.broadcast = broadcast; + } + if (read != null) { + _result.read = read; + } + if (writeWithoutResponse != null) { + _result.writeWithoutResponse = writeWithoutResponse; + } + if (write != null) { + _result.write = write; + } + if (notify != null) { + _result.notify = notify; + } + if (indicate != null) { + _result.indicate = indicate; + } + if (authenticatedSignedWrites != null) { + _result.authenticatedSignedWrites = authenticatedSignedWrites; + } + if (extendedProperties != null) { + _result.extendedProperties = extendedProperties; + } + if (notifyEncryptionRequired != null) { + _result.notifyEncryptionRequired = notifyEncryptionRequired; + } + if (indicateEncryptionRequired != null) { + _result.indicateEncryptionRequired = indicateEncryptionRequired; + } + return _result; + } + factory CharacteristicProperties.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory CharacteristicProperties.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CharacteristicProperties clone() => CharacteristicProperties()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CharacteristicProperties copyWith(void Function(CharacteristicProperties) updates) => super.copyWith((message) => updates(message as CharacteristicProperties)) as CharacteristicProperties; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static CharacteristicProperties create() => CharacteristicProperties._(); + CharacteristicProperties createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CharacteristicProperties getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static CharacteristicProperties? _defaultInstance; + + @$pb.TagNumber(1) + $core.bool get broadcast => $_getBF(0); + @$pb.TagNumber(1) + set broadcast($core.bool v) { $_setBool(0, v); } + @$pb.TagNumber(1) + $core.bool hasBroadcast() => $_has(0); + @$pb.TagNumber(1) + void clearBroadcast() => clearField(1); + + @$pb.TagNumber(2) + $core.bool get read => $_getBF(1); + @$pb.TagNumber(2) + set read($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) + $core.bool hasRead() => $_has(1); + @$pb.TagNumber(2) + void clearRead() => clearField(2); + + @$pb.TagNumber(3) + $core.bool get writeWithoutResponse => $_getBF(2); + @$pb.TagNumber(3) + set writeWithoutResponse($core.bool v) { $_setBool(2, v); } + @$pb.TagNumber(3) + $core.bool hasWriteWithoutResponse() => $_has(2); + @$pb.TagNumber(3) + void clearWriteWithoutResponse() => clearField(3); + + @$pb.TagNumber(4) + $core.bool get write => $_getBF(3); + @$pb.TagNumber(4) + set write($core.bool v) { $_setBool(3, v); } + @$pb.TagNumber(4) + $core.bool hasWrite() => $_has(3); + @$pb.TagNumber(4) + void clearWrite() => clearField(4); + + @$pb.TagNumber(5) + $core.bool get notify => $_getBF(4); + @$pb.TagNumber(5) + set notify($core.bool v) { $_setBool(4, v); } + @$pb.TagNumber(5) + $core.bool hasNotify() => $_has(4); + @$pb.TagNumber(5) + void clearNotify() => clearField(5); + + @$pb.TagNumber(6) + $core.bool get indicate => $_getBF(5); + @$pb.TagNumber(6) + set indicate($core.bool v) { $_setBool(5, v); } + @$pb.TagNumber(6) + $core.bool hasIndicate() => $_has(5); + @$pb.TagNumber(6) + void clearIndicate() => clearField(6); + + @$pb.TagNumber(7) + $core.bool get authenticatedSignedWrites => $_getBF(6); + @$pb.TagNumber(7) + set authenticatedSignedWrites($core.bool v) { $_setBool(6, v); } + @$pb.TagNumber(7) + $core.bool hasAuthenticatedSignedWrites() => $_has(6); + @$pb.TagNumber(7) + void clearAuthenticatedSignedWrites() => clearField(7); + + @$pb.TagNumber(8) + $core.bool get extendedProperties => $_getBF(7); + @$pb.TagNumber(8) + set extendedProperties($core.bool v) { $_setBool(7, v); } + @$pb.TagNumber(8) + $core.bool hasExtendedProperties() => $_has(7); + @$pb.TagNumber(8) + void clearExtendedProperties() => clearField(8); + + @$pb.TagNumber(9) + $core.bool get notifyEncryptionRequired => $_getBF(8); + @$pb.TagNumber(9) + set notifyEncryptionRequired($core.bool v) { $_setBool(8, v); } + @$pb.TagNumber(9) + $core.bool hasNotifyEncryptionRequired() => $_has(8); + @$pb.TagNumber(9) + void clearNotifyEncryptionRequired() => clearField(9); + + @$pb.TagNumber(10) + $core.bool get indicateEncryptionRequired => $_getBF(9); + @$pb.TagNumber(10) + set indicateEncryptionRequired($core.bool v) { $_setBool(9, v); } + @$pb.TagNumber(10) + $core.bool hasIndicateEncryptionRequired() => $_has(9); + @$pb.TagNumber(10) + void clearIndicateEncryptionRequired() => clearField(10); +} + +class DiscoverServicesResult extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DiscoverServicesResult', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..pc(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'services', $pb.PbFieldType.PM, subBuilder: BluetoothService.create) + ..hasRequiredFields = false + ; + + DiscoverServicesResult._() : super(); + factory DiscoverServicesResult({ + $core.String? remoteId, + $core.Iterable? services, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (services != null) { + _result.services.addAll(services); + } + return _result; + } + factory DiscoverServicesResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DiscoverServicesResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DiscoverServicesResult clone() => DiscoverServicesResult()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DiscoverServicesResult copyWith(void Function(DiscoverServicesResult) updates) => super.copyWith((message) => updates(message as DiscoverServicesResult)) as DiscoverServicesResult; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static DiscoverServicesResult create() => DiscoverServicesResult._(); + DiscoverServicesResult createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DiscoverServicesResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DiscoverServicesResult? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.List get services => $_getList(1); +} + +class ReadCharacteristicRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ReadCharacteristicRequest', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid') + ..hasRequiredFields = false + ; + + ReadCharacteristicRequest._() : super(); + factory ReadCharacteristicRequest({ + $core.String? remoteId, + $core.String? characteristicUuid, + $core.String? serviceUuid, + $core.String? secondaryServiceUuid, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (characteristicUuid != null) { + _result.characteristicUuid = characteristicUuid; + } + if (serviceUuid != null) { + _result.serviceUuid = serviceUuid; + } + if (secondaryServiceUuid != null) { + _result.secondaryServiceUuid = secondaryServiceUuid; + } + return _result; + } + factory ReadCharacteristicRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReadCharacteristicRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReadCharacteristicRequest clone() => ReadCharacteristicRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReadCharacteristicRequest copyWith(void Function(ReadCharacteristicRequest) updates) => super.copyWith((message) => updates(message as ReadCharacteristicRequest)) as ReadCharacteristicRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ReadCharacteristicRequest create() => ReadCharacteristicRequest._(); + ReadCharacteristicRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReadCharacteristicRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReadCharacteristicRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get characteristicUuid => $_getSZ(1); + @$pb.TagNumber(2) + set characteristicUuid($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasCharacteristicUuid() => $_has(1); + @$pb.TagNumber(2) + void clearCharacteristicUuid() => clearField(2); + + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) + set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasServiceUuid() => $_has(2); + @$pb.TagNumber(3) + void clearServiceUuid() => clearField(3); + + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) + set secondaryServiceUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasSecondaryServiceUuid() => $_has(3); + @$pb.TagNumber(4) + void clearSecondaryServiceUuid() => clearField(4); +} + +class ReadCharacteristicResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ReadCharacteristicResponse', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristic', subBuilder: BluetoothCharacteristic.create) + ..hasRequiredFields = false + ; + + ReadCharacteristicResponse._() : super(); + factory ReadCharacteristicResponse({ + $core.String? remoteId, + BluetoothCharacteristic? characteristic, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (characteristic != null) { + _result.characteristic = characteristic; + } + return _result; + } + factory ReadCharacteristicResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReadCharacteristicResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReadCharacteristicResponse clone() => ReadCharacteristicResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReadCharacteristicResponse copyWith(void Function(ReadCharacteristicResponse) updates) => super.copyWith((message) => updates(message as ReadCharacteristicResponse)) as ReadCharacteristicResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ReadCharacteristicResponse create() => ReadCharacteristicResponse._(); + ReadCharacteristicResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReadCharacteristicResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReadCharacteristicResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + BluetoothCharacteristic get characteristic => $_getN(1); + @$pb.TagNumber(2) + set characteristic(BluetoothCharacteristic v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasCharacteristic() => $_has(1); + @$pb.TagNumber(2) + void clearCharacteristic() => clearField(2); + @$pb.TagNumber(2) + BluetoothCharacteristic ensureCharacteristic() => $_ensure(1); +} + +class ReadDescriptorRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ReadDescriptorRequest', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descriptorUuid') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid') + ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid') + ..hasRequiredFields = false + ; + + ReadDescriptorRequest._() : super(); + factory ReadDescriptorRequest({ + $core.String? remoteId, + $core.String? descriptorUuid, + $core.String? serviceUuid, + $core.String? secondaryServiceUuid, + $core.String? characteristicUuid, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (descriptorUuid != null) { + _result.descriptorUuid = descriptorUuid; + } + if (serviceUuid != null) { + _result.serviceUuid = serviceUuid; + } + if (secondaryServiceUuid != null) { + _result.secondaryServiceUuid = secondaryServiceUuid; + } + if (characteristicUuid != null) { + _result.characteristicUuid = characteristicUuid; + } + return _result; + } + factory ReadDescriptorRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReadDescriptorRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReadDescriptorRequest clone() => ReadDescriptorRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReadDescriptorRequest copyWith(void Function(ReadDescriptorRequest) updates) => super.copyWith((message) => updates(message as ReadDescriptorRequest)) as ReadDescriptorRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ReadDescriptorRequest create() => ReadDescriptorRequest._(); + ReadDescriptorRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReadDescriptorRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReadDescriptorRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get descriptorUuid => $_getSZ(1); + @$pb.TagNumber(2) + set descriptorUuid($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasDescriptorUuid() => $_has(1); + @$pb.TagNumber(2) + void clearDescriptorUuid() => clearField(2); + + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) + set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasServiceUuid() => $_has(2); + @$pb.TagNumber(3) + void clearServiceUuid() => clearField(3); + + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) + set secondaryServiceUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasSecondaryServiceUuid() => $_has(3); + @$pb.TagNumber(4) + void clearSecondaryServiceUuid() => clearField(4); + + @$pb.TagNumber(5) + $core.String get characteristicUuid => $_getSZ(4); + @$pb.TagNumber(5) + set characteristicUuid($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) + $core.bool hasCharacteristicUuid() => $_has(4); + @$pb.TagNumber(5) + void clearCharacteristicUuid() => clearField(5); +} + +class ReadDescriptorResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ReadDescriptorResponse', createEmptyInstance: create) + ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'request', subBuilder: ReadDescriptorRequest.create) + ..a<$core.List<$core.int>>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + + ReadDescriptorResponse._() : super(); + factory ReadDescriptorResponse({ + ReadDescriptorRequest? request, + $core.List<$core.int>? value, + }) { + final _result = create(); + if (request != null) { + _result.request = request; + } + if (value != null) { + _result.value = value; + } + return _result; + } + factory ReadDescriptorResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReadDescriptorResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ReadDescriptorResponse clone() => ReadDescriptorResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReadDescriptorResponse copyWith(void Function(ReadDescriptorResponse) updates) => super.copyWith((message) => updates(message as ReadDescriptorResponse)) as ReadDescriptorResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ReadDescriptorResponse create() => ReadDescriptorResponse._(); + ReadDescriptorResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReadDescriptorResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReadDescriptorResponse? _defaultInstance; + + @$pb.TagNumber(1) + ReadDescriptorRequest get request => $_getN(0); + @$pb.TagNumber(1) + set request(ReadDescriptorRequest v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasRequest() => $_has(0); + @$pb.TagNumber(1) + void clearRequest() => clearField(1); + @$pb.TagNumber(1) + ReadDescriptorRequest ensureRequest() => $_ensure(0); + + @$pb.TagNumber(2) + $core.List<$core.int> get value => $_getN(1); + @$pb.TagNumber(2) + set value($core.List<$core.int> v) { $_setBytes(1, v); } + @$pb.TagNumber(2) + $core.bool hasValue() => $_has(1); + @$pb.TagNumber(2) + void clearValue() => clearField(2); +} + +class WriteCharacteristicRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'WriteCharacteristicRequest', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid') + ..e(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'writeType', $pb.PbFieldType.OE, defaultOrMaker: WriteCharacteristicRequest_WriteType.WITH_RESPONSE, valueOf: WriteCharacteristicRequest_WriteType.valueOf, enumValues: WriteCharacteristicRequest_WriteType.values) + ..a<$core.List<$core.int>>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + + WriteCharacteristicRequest._() : super(); + factory WriteCharacteristicRequest({ + $core.String? remoteId, + $core.String? characteristicUuid, + $core.String? serviceUuid, + $core.String? secondaryServiceUuid, + WriteCharacteristicRequest_WriteType? writeType, + $core.List<$core.int>? value, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (characteristicUuid != null) { + _result.characteristicUuid = characteristicUuid; + } + if (serviceUuid != null) { + _result.serviceUuid = serviceUuid; + } + if (secondaryServiceUuid != null) { + _result.secondaryServiceUuid = secondaryServiceUuid; + } + if (writeType != null) { + _result.writeType = writeType; + } + if (value != null) { + _result.value = value; + } + return _result; + } + factory WriteCharacteristicRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory WriteCharacteristicRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + WriteCharacteristicRequest clone() => WriteCharacteristicRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + WriteCharacteristicRequest copyWith(void Function(WriteCharacteristicRequest) updates) => super.copyWith((message) => updates(message as WriteCharacteristicRequest)) as WriteCharacteristicRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static WriteCharacteristicRequest create() => WriteCharacteristicRequest._(); + WriteCharacteristicRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static WriteCharacteristicRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static WriteCharacteristicRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get characteristicUuid => $_getSZ(1); + @$pb.TagNumber(2) + set characteristicUuid($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasCharacteristicUuid() => $_has(1); + @$pb.TagNumber(2) + void clearCharacteristicUuid() => clearField(2); + + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) + set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasServiceUuid() => $_has(2); + @$pb.TagNumber(3) + void clearServiceUuid() => clearField(3); + + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) + set secondaryServiceUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasSecondaryServiceUuid() => $_has(3); + @$pb.TagNumber(4) + void clearSecondaryServiceUuid() => clearField(4); + + @$pb.TagNumber(5) + WriteCharacteristicRequest_WriteType get writeType => $_getN(4); + @$pb.TagNumber(5) + set writeType(WriteCharacteristicRequest_WriteType v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasWriteType() => $_has(4); + @$pb.TagNumber(5) + void clearWriteType() => clearField(5); + + @$pb.TagNumber(6) + $core.List<$core.int> get value => $_getN(5); + @$pb.TagNumber(6) + set value($core.List<$core.int> v) { $_setBytes(5, v); } + @$pb.TagNumber(6) + $core.bool hasValue() => $_has(5); + @$pb.TagNumber(6) + void clearValue() => clearField(6); +} + +class WriteCharacteristicResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'WriteCharacteristicResponse', createEmptyInstance: create) + ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'request', subBuilder: WriteCharacteristicRequest.create) + ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'success') + ..hasRequiredFields = false + ; + + WriteCharacteristicResponse._() : super(); + factory WriteCharacteristicResponse({ + WriteCharacteristicRequest? request, + $core.bool? success, + }) { + final _result = create(); + if (request != null) { + _result.request = request; + } + if (success != null) { + _result.success = success; + } + return _result; + } + factory WriteCharacteristicResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory WriteCharacteristicResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + WriteCharacteristicResponse clone() => WriteCharacteristicResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + WriteCharacteristicResponse copyWith(void Function(WriteCharacteristicResponse) updates) => super.copyWith((message) => updates(message as WriteCharacteristicResponse)) as WriteCharacteristicResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static WriteCharacteristicResponse create() => WriteCharacteristicResponse._(); + WriteCharacteristicResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static WriteCharacteristicResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static WriteCharacteristicResponse? _defaultInstance; + + @$pb.TagNumber(1) + WriteCharacteristicRequest get request => $_getN(0); + @$pb.TagNumber(1) + set request(WriteCharacteristicRequest v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasRequest() => $_has(0); + @$pb.TagNumber(1) + void clearRequest() => clearField(1); + @$pb.TagNumber(1) + WriteCharacteristicRequest ensureRequest() => $_ensure(0); + + @$pb.TagNumber(2) + $core.bool get success => $_getBF(1); + @$pb.TagNumber(2) + set success($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) + $core.bool hasSuccess() => $_has(1); + @$pb.TagNumber(2) + void clearSuccess() => clearField(2); +} + +class WriteDescriptorRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'WriteDescriptorRequest', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descriptorUuid') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid') + ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid') + ..a<$core.List<$core.int>>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + + WriteDescriptorRequest._() : super(); + factory WriteDescriptorRequest({ + $core.String? remoteId, + $core.String? descriptorUuid, + $core.String? serviceUuid, + $core.String? secondaryServiceUuid, + $core.String? characteristicUuid, + $core.List<$core.int>? value, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (descriptorUuid != null) { + _result.descriptorUuid = descriptorUuid; + } + if (serviceUuid != null) { + _result.serviceUuid = serviceUuid; + } + if (secondaryServiceUuid != null) { + _result.secondaryServiceUuid = secondaryServiceUuid; + } + if (characteristicUuid != null) { + _result.characteristicUuid = characteristicUuid; + } + if (value != null) { + _result.value = value; + } + return _result; + } + factory WriteDescriptorRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory WriteDescriptorRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + WriteDescriptorRequest clone() => WriteDescriptorRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + WriteDescriptorRequest copyWith(void Function(WriteDescriptorRequest) updates) => super.copyWith((message) => updates(message as WriteDescriptorRequest)) as WriteDescriptorRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static WriteDescriptorRequest create() => WriteDescriptorRequest._(); + WriteDescriptorRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static WriteDescriptorRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static WriteDescriptorRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get descriptorUuid => $_getSZ(1); + @$pb.TagNumber(2) + set descriptorUuid($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasDescriptorUuid() => $_has(1); + @$pb.TagNumber(2) + void clearDescriptorUuid() => clearField(2); + + @$pb.TagNumber(3) + $core.String get serviceUuid => $_getSZ(2); + @$pb.TagNumber(3) + set serviceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasServiceUuid() => $_has(2); + @$pb.TagNumber(3) + void clearServiceUuid() => clearField(3); + + @$pb.TagNumber(4) + $core.String get secondaryServiceUuid => $_getSZ(3); + @$pb.TagNumber(4) + set secondaryServiceUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasSecondaryServiceUuid() => $_has(3); + @$pb.TagNumber(4) + void clearSecondaryServiceUuid() => clearField(4); + + @$pb.TagNumber(5) + $core.String get characteristicUuid => $_getSZ(4); + @$pb.TagNumber(5) + set characteristicUuid($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) + $core.bool hasCharacteristicUuid() => $_has(4); + @$pb.TagNumber(5) + void clearCharacteristicUuid() => clearField(5); + + @$pb.TagNumber(6) + $core.List<$core.int> get value => $_getN(5); + @$pb.TagNumber(6) + set value($core.List<$core.int> v) { $_setBytes(5, v); } + @$pb.TagNumber(6) + $core.bool hasValue() => $_has(5); + @$pb.TagNumber(6) + void clearValue() => clearField(6); +} + +class WriteDescriptorResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'WriteDescriptorResponse', createEmptyInstance: create) + ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'request', subBuilder: WriteDescriptorRequest.create) + ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'success') + ..hasRequiredFields = false + ; + + WriteDescriptorResponse._() : super(); + factory WriteDescriptorResponse({ + WriteDescriptorRequest? request, + $core.bool? success, + }) { + final _result = create(); + if (request != null) { + _result.request = request; + } + if (success != null) { + _result.success = success; + } + return _result; + } + factory WriteDescriptorResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory WriteDescriptorResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + WriteDescriptorResponse clone() => WriteDescriptorResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + WriteDescriptorResponse copyWith(void Function(WriteDescriptorResponse) updates) => super.copyWith((message) => updates(message as WriteDescriptorResponse)) as WriteDescriptorResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static WriteDescriptorResponse create() => WriteDescriptorResponse._(); + WriteDescriptorResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static WriteDescriptorResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static WriteDescriptorResponse? _defaultInstance; + + @$pb.TagNumber(1) + WriteDescriptorRequest get request => $_getN(0); + @$pb.TagNumber(1) + set request(WriteDescriptorRequest v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasRequest() => $_has(0); + @$pb.TagNumber(1) + void clearRequest() => clearField(1); + @$pb.TagNumber(1) + WriteDescriptorRequest ensureRequest() => $_ensure(0); + + @$pb.TagNumber(2) + $core.bool get success => $_getBF(1); + @$pb.TagNumber(2) + set success($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) + $core.bool hasSuccess() => $_has(1); + @$pb.TagNumber(2) + void clearSuccess() => clearField(2); +} + +class SetNotificationRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SetNotificationRequest', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceUuid') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'secondaryServiceUuid') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristicUuid') + ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enable') + ..hasRequiredFields = false + ; + + SetNotificationRequest._() : super(); + factory SetNotificationRequest({ + $core.String? remoteId, + $core.String? serviceUuid, + $core.String? secondaryServiceUuid, + $core.String? characteristicUuid, + $core.bool? enable, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (serviceUuid != null) { + _result.serviceUuid = serviceUuid; + } + if (secondaryServiceUuid != null) { + _result.secondaryServiceUuid = secondaryServiceUuid; + } + if (characteristicUuid != null) { + _result.characteristicUuid = characteristicUuid; + } + if (enable != null) { + _result.enable = enable; + } + return _result; + } + factory SetNotificationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SetNotificationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SetNotificationRequest clone() => SetNotificationRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SetNotificationRequest copyWith(void Function(SetNotificationRequest) updates) => super.copyWith((message) => updates(message as SetNotificationRequest)) as SetNotificationRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static SetNotificationRequest create() => SetNotificationRequest._(); + SetNotificationRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SetNotificationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SetNotificationRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get serviceUuid => $_getSZ(1); + @$pb.TagNumber(2) + set serviceUuid($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasServiceUuid() => $_has(1); + @$pb.TagNumber(2) + void clearServiceUuid() => clearField(2); + + @$pb.TagNumber(3) + $core.String get secondaryServiceUuid => $_getSZ(2); + @$pb.TagNumber(3) + set secondaryServiceUuid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasSecondaryServiceUuid() => $_has(2); + @$pb.TagNumber(3) + void clearSecondaryServiceUuid() => clearField(3); + + @$pb.TagNumber(4) + $core.String get characteristicUuid => $_getSZ(3); + @$pb.TagNumber(4) + set characteristicUuid($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasCharacteristicUuid() => $_has(3); + @$pb.TagNumber(4) + void clearCharacteristicUuid() => clearField(4); + + @$pb.TagNumber(5) + $core.bool get enable => $_getBF(4); + @$pb.TagNumber(5) + set enable($core.bool v) { $_setBool(4, v); } + @$pb.TagNumber(5) + $core.bool hasEnable() => $_has(4); + @$pb.TagNumber(5) + void clearEnable() => clearField(5); +} + +class SetNotificationResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SetNotificationResponse', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristic', subBuilder: BluetoothCharacteristic.create) + ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'success') + ..hasRequiredFields = false + ; + + SetNotificationResponse._() : super(); + factory SetNotificationResponse({ + $core.String? remoteId, + BluetoothCharacteristic? characteristic, + $core.bool? success, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (characteristic != null) { + _result.characteristic = characteristic; + } + if (success != null) { + _result.success = success; + } + return _result; + } + factory SetNotificationResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SetNotificationResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SetNotificationResponse clone() => SetNotificationResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SetNotificationResponse copyWith(void Function(SetNotificationResponse) updates) => super.copyWith((message) => updates(message as SetNotificationResponse)) as SetNotificationResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static SetNotificationResponse create() => SetNotificationResponse._(); + SetNotificationResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SetNotificationResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SetNotificationResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + BluetoothCharacteristic get characteristic => $_getN(1); + @$pb.TagNumber(2) + set characteristic(BluetoothCharacteristic v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasCharacteristic() => $_has(1); + @$pb.TagNumber(2) + void clearCharacteristic() => clearField(2); + @$pb.TagNumber(2) + BluetoothCharacteristic ensureCharacteristic() => $_ensure(1); + + @$pb.TagNumber(3) + $core.bool get success => $_getBF(2); + @$pb.TagNumber(3) + set success($core.bool v) { $_setBool(2, v); } + @$pb.TagNumber(3) + $core.bool hasSuccess() => $_has(2); + @$pb.TagNumber(3) + void clearSuccess() => clearField(3); +} + +class OnCharacteristicChanged extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'OnCharacteristicChanged', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'characteristic', subBuilder: BluetoothCharacteristic.create) + ..hasRequiredFields = false + ; + + OnCharacteristicChanged._() : super(); + factory OnCharacteristicChanged({ + $core.String? remoteId, + BluetoothCharacteristic? characteristic, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (characteristic != null) { + _result.characteristic = characteristic; + } + return _result; + } + factory OnCharacteristicChanged.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory OnCharacteristicChanged.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + OnCharacteristicChanged clone() => OnCharacteristicChanged()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + OnCharacteristicChanged copyWith(void Function(OnCharacteristicChanged) updates) => super.copyWith((message) => updates(message as OnCharacteristicChanged)) as OnCharacteristicChanged; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static OnCharacteristicChanged create() => OnCharacteristicChanged._(); + OnCharacteristicChanged createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static OnCharacteristicChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static OnCharacteristicChanged? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + BluetoothCharacteristic get characteristic => $_getN(1); + @$pb.TagNumber(2) + set characteristic(BluetoothCharacteristic v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasCharacteristic() => $_has(1); + @$pb.TagNumber(2) + void clearCharacteristic() => clearField(2); + @$pb.TagNumber(2) + BluetoothCharacteristic ensureCharacteristic() => $_ensure(1); +} + +class DeviceStateResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DeviceStateResponse', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..e(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', $pb.PbFieldType.OE, defaultOrMaker: DeviceStateResponse_BluetoothDeviceState.DISCONNECTED, valueOf: DeviceStateResponse_BluetoothDeviceState.valueOf, enumValues: DeviceStateResponse_BluetoothDeviceState.values) + ..hasRequiredFields = false + ; + + DeviceStateResponse._() : super(); + factory DeviceStateResponse({ + $core.String? remoteId, + DeviceStateResponse_BluetoothDeviceState? state, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (state != null) { + _result.state = state; + } + return _result; + } + factory DeviceStateResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DeviceStateResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeviceStateResponse clone() => DeviceStateResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeviceStateResponse copyWith(void Function(DeviceStateResponse) updates) => super.copyWith((message) => updates(message as DeviceStateResponse)) as DeviceStateResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static DeviceStateResponse create() => DeviceStateResponse._(); + DeviceStateResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DeviceStateResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeviceStateResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + DeviceStateResponse_BluetoothDeviceState get state => $_getN(1); + @$pb.TagNumber(2) + set state(DeviceStateResponse_BluetoothDeviceState v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasState() => $_has(1); + @$pb.TagNumber(2) + void clearState() => clearField(2); +} + +class ConnectedDevicesResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ConnectedDevicesResponse', createEmptyInstance: create) + ..pc(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'devices', $pb.PbFieldType.PM, subBuilder: BluetoothDevice.create) + ..hasRequiredFields = false + ; + + ConnectedDevicesResponse._() : super(); + factory ConnectedDevicesResponse({ + $core.Iterable? devices, + }) { + final _result = create(); + if (devices != null) { + _result.devices.addAll(devices); + } + return _result; + } + factory ConnectedDevicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ConnectedDevicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ConnectedDevicesResponse clone() => ConnectedDevicesResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConnectedDevicesResponse copyWith(void Function(ConnectedDevicesResponse) updates) => super.copyWith((message) => updates(message as ConnectedDevicesResponse)) as ConnectedDevicesResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ConnectedDevicesResponse create() => ConnectedDevicesResponse._(); + ConnectedDevicesResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ConnectedDevicesResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ConnectedDevicesResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.List get devices => $_getList(0); +} + +class MtuSizeRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'MtuSizeRequest', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mtu', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + MtuSizeRequest._() : super(); + factory MtuSizeRequest({ + $core.String? remoteId, + $core.int? mtu, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (mtu != null) { + _result.mtu = mtu; + } + return _result; + } + factory MtuSizeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory MtuSizeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MtuSizeRequest clone() => MtuSizeRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MtuSizeRequest copyWith(void Function(MtuSizeRequest) updates) => super.copyWith((message) => updates(message as MtuSizeRequest)) as MtuSizeRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static MtuSizeRequest create() => MtuSizeRequest._(); + MtuSizeRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MtuSizeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MtuSizeRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.int get mtu => $_getIZ(1); + @$pb.TagNumber(2) + set mtu($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasMtu() => $_has(1); + @$pb.TagNumber(2) + void clearMtu() => clearField(2); +} + +class MtuSizeResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'MtuSizeResponse', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mtu', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + MtuSizeResponse._() : super(); + factory MtuSizeResponse({ + $core.String? remoteId, + $core.int? mtu, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + if (mtu != null) { + _result.mtu = mtu; + } + return _result; + } + factory MtuSizeResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory MtuSizeResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MtuSizeResponse clone() => MtuSizeResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MtuSizeResponse copyWith(void Function(MtuSizeResponse) updates) => super.copyWith((message) => updates(message as MtuSizeResponse)) as MtuSizeResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static MtuSizeResponse create() => MtuSizeResponse._(); + MtuSizeResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MtuSizeResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MtuSizeResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); + + @$pb.TagNumber(2) + $core.int get mtu => $_getIZ(1); + @$pb.TagNumber(2) + set mtu($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasMtu() => $_has(1); + @$pb.TagNumber(2) + void clearMtu() => clearField(2); +} + +class IsReadyToSendWriteWithoutResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'IsReadyToSendWriteWithoutResponse', createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteId') + ..hasRequiredFields = false + ; + + IsReadyToSendWriteWithoutResponse._() : super(); + factory IsReadyToSendWriteWithoutResponse({ + $core.String? remoteId, + }) { + final _result = create(); + if (remoteId != null) { + _result.remoteId = remoteId; + } + return _result; + } + factory IsReadyToSendWriteWithoutResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory IsReadyToSendWriteWithoutResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + IsReadyToSendWriteWithoutResponse clone() => IsReadyToSendWriteWithoutResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + IsReadyToSendWriteWithoutResponse copyWith(void Function(IsReadyToSendWriteWithoutResponse) updates) => super.copyWith((message) => updates(message as IsReadyToSendWriteWithoutResponse)) as IsReadyToSendWriteWithoutResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static IsReadyToSendWriteWithoutResponse create() => IsReadyToSendWriteWithoutResponse._(); + IsReadyToSendWriteWithoutResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static IsReadyToSendWriteWithoutResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static IsReadyToSendWriteWithoutResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get remoteId => $_getSZ(0); + @$pb.TagNumber(1) + set remoteId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRemoteId() => $_has(0); + @$pb.TagNumber(1) + void clearRemoteId() => clearField(1); +} + diff --git a/protos/flutterblue.pbenum.dart b/protos/flutterblue.pbenum.dart new file mode 100644 index 00000000..efbd14d4 --- /dev/null +++ b/protos/flutterblue.pbenum.dart @@ -0,0 +1,89 @@ +/// +// Generated code. Do not modify. +// source: flutterblue.proto +// +// @dart = 2.12 +// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: UNDEFINED_SHOWN_NAME +import 'dart:core' as $core; +import 'package:protobuf/protobuf.dart' as $pb; + +class BluetoothState_State extends $pb.ProtobufEnum { + static const BluetoothState_State UNKNOWN = BluetoothState_State._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNKNOWN'); + static const BluetoothState_State UNAVAILABLE = BluetoothState_State._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNAVAILABLE'); + static const BluetoothState_State UNAUTHORIZED = BluetoothState_State._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNAUTHORIZED'); + static const BluetoothState_State TURNING_ON = BluetoothState_State._(3, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'TURNING_ON'); + static const BluetoothState_State ON = BluetoothState_State._(4, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ON'); + static const BluetoothState_State TURNING_OFF = BluetoothState_State._(5, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'TURNING_OFF'); + static const BluetoothState_State OFF = BluetoothState_State._(6, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'OFF'); + + static const $core.List values = [ + UNKNOWN, + UNAVAILABLE, + UNAUTHORIZED, + TURNING_ON, + ON, + TURNING_OFF, + OFF, + ]; + + static final $core.Map<$core.int, BluetoothState_State> _byValue = $pb.ProtobufEnum.initByValue(values); + static BluetoothState_State? valueOf($core.int value) => _byValue[value]; + + const BluetoothState_State._($core.int v, $core.String n) : super(v, n); +} + +class BluetoothDevice_Type extends $pb.ProtobufEnum { + static const BluetoothDevice_Type UNKNOWN = BluetoothDevice_Type._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNKNOWN'); + static const BluetoothDevice_Type CLASSIC = BluetoothDevice_Type._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CLASSIC'); + static const BluetoothDevice_Type LE = BluetoothDevice_Type._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'LE'); + static const BluetoothDevice_Type DUAL = BluetoothDevice_Type._(3, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DUAL'); + + static const $core.List values = [ + UNKNOWN, + CLASSIC, + LE, + DUAL, + ]; + + static final $core.Map<$core.int, BluetoothDevice_Type> _byValue = $pb.ProtobufEnum.initByValue(values); + static BluetoothDevice_Type? valueOf($core.int value) => _byValue[value]; + + const BluetoothDevice_Type._($core.int v, $core.String n) : super(v, n); +} + +class WriteCharacteristicRequest_WriteType extends $pb.ProtobufEnum { + static const WriteCharacteristicRequest_WriteType WITH_RESPONSE = WriteCharacteristicRequest_WriteType._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WITH_RESPONSE'); + static const WriteCharacteristicRequest_WriteType WITHOUT_RESPONSE = WriteCharacteristicRequest_WriteType._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WITHOUT_RESPONSE'); + + static const $core.List values = [ + WITH_RESPONSE, + WITHOUT_RESPONSE, + ]; + + static final $core.Map<$core.int, WriteCharacteristicRequest_WriteType> _byValue = $pb.ProtobufEnum.initByValue(values); + static WriteCharacteristicRequest_WriteType? valueOf($core.int value) => _byValue[value]; + + const WriteCharacteristicRequest_WriteType._($core.int v, $core.String n) : super(v, n); +} + +class DeviceStateResponse_BluetoothDeviceState extends $pb.ProtobufEnum { + static const DeviceStateResponse_BluetoothDeviceState DISCONNECTED = DeviceStateResponse_BluetoothDeviceState._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DISCONNECTED'); + static const DeviceStateResponse_BluetoothDeviceState CONNECTING = DeviceStateResponse_BluetoothDeviceState._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CONNECTING'); + static const DeviceStateResponse_BluetoothDeviceState CONNECTED = DeviceStateResponse_BluetoothDeviceState._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CONNECTED'); + static const DeviceStateResponse_BluetoothDeviceState DISCONNECTING = DeviceStateResponse_BluetoothDeviceState._(3, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DISCONNECTING'); + + static const $core.List values = [ + DISCONNECTED, + CONNECTING, + CONNECTED, + DISCONNECTING, + ]; + + static final $core.Map<$core.int, DeviceStateResponse_BluetoothDeviceState> _byValue = $pb.ProtobufEnum.initByValue(values); + static DeviceStateResponse_BluetoothDeviceState? valueOf($core.int value) => _byValue[value]; + + const DeviceStateResponse_BluetoothDeviceState._($core.int v, $core.String n) : super(v, n); +} + diff --git a/protos/flutterblue.pbjson.dart b/protos/flutterblue.pbjson.dart new file mode 100644 index 00000000..d2df57f9 --- /dev/null +++ b/protos/flutterblue.pbjson.dart @@ -0,0 +1,427 @@ +/// +// Generated code. Do not modify. +// source: flutterblue.proto +// +// @dart = 2.12 +// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package + +import 'dart:core' as $core; +import 'dart:convert' as $convert; +import 'dart:typed_data' as $typed_data; +@$core.Deprecated('Use int32ValueDescriptor instead') +const Int32Value$json = const { + '1': 'Int32Value', + '2': const [ + const {'1': 'value', '3': 1, '4': 1, '5': 5, '10': 'value'}, + ], +}; + +/// Descriptor for `Int32Value`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List int32ValueDescriptor = $convert.base64Decode('CgpJbnQzMlZhbHVlEhQKBXZhbHVlGAEgASgFUgV2YWx1ZQ=='); +@$core.Deprecated('Use bluetoothStateDescriptor instead') +const BluetoothState$json = const { + '1': 'BluetoothState', + '2': const [ + const {'1': 'state', '3': 1, '4': 1, '5': 14, '6': '.BluetoothState.State', '10': 'state'}, + ], + '4': const [BluetoothState_State$json], +}; + +@$core.Deprecated('Use bluetoothStateDescriptor instead') +const BluetoothState_State$json = const { + '1': 'State', + '2': const [ + const {'1': 'UNKNOWN', '2': 0}, + const {'1': 'UNAVAILABLE', '2': 1}, + const {'1': 'UNAUTHORIZED', '2': 2}, + const {'1': 'TURNING_ON', '2': 3}, + const {'1': 'ON', '2': 4}, + const {'1': 'TURNING_OFF', '2': 5}, + const {'1': 'OFF', '2': 6}, + ], +}; + +/// Descriptor for `BluetoothState`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List bluetoothStateDescriptor = $convert.base64Decode('Cg5CbHVldG9vdGhTdGF0ZRIrCgVzdGF0ZRgBIAEoDjIVLkJsdWV0b290aFN0YXRlLlN0YXRlUgVzdGF0ZSJpCgVTdGF0ZRILCgdVTktOT1dOEAASDwoLVU5BVkFJTEFCTEUQARIQCgxVTkFVVEhPUklaRUQQAhIOCgpUVVJOSU5HX09OEAMSBgoCT04QBBIPCgtUVVJOSU5HX09GRhAFEgcKA09GRhAG'); +@$core.Deprecated('Use advertisementDataDescriptor instead') +const AdvertisementData$json = const { + '1': 'AdvertisementData', + '2': const [ + const {'1': 'local_name', '3': 1, '4': 1, '5': 9, '10': 'localName'}, + const {'1': 'tx_power_level', '3': 2, '4': 1, '5': 11, '6': '.Int32Value', '10': 'txPowerLevel'}, + const {'1': 'connectable', '3': 3, '4': 1, '5': 8, '10': 'connectable'}, + const {'1': 'manufacturer_data', '3': 4, '4': 3, '5': 11, '6': '.AdvertisementData.ManufacturerDataEntry', '10': 'manufacturerData'}, + const {'1': 'service_data', '3': 5, '4': 3, '5': 11, '6': '.AdvertisementData.ServiceDataEntry', '10': 'serviceData'}, + const {'1': 'service_uuids', '3': 6, '4': 3, '5': 9, '10': 'serviceUuids'}, + ], + '3': const [AdvertisementData_ManufacturerDataEntry$json, AdvertisementData_ServiceDataEntry$json], +}; + +@$core.Deprecated('Use advertisementDataDescriptor instead') +const AdvertisementData_ManufacturerDataEntry$json = const { + '1': 'ManufacturerDataEntry', + '2': const [ + const {'1': 'key', '3': 1, '4': 1, '5': 5, '10': 'key'}, + const {'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'}, + ], + '7': const {'7': true}, +}; + +@$core.Deprecated('Use advertisementDataDescriptor instead') +const AdvertisementData_ServiceDataEntry$json = const { + '1': 'ServiceDataEntry', + '2': const [ + const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + const {'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'}, + ], + '7': const {'7': true}, +}; + +/// Descriptor for `AdvertisementData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List advertisementDataDescriptor = $convert.base64Decode('ChFBZHZlcnRpc2VtZW50RGF0YRIdCgpsb2NhbF9uYW1lGAEgASgJUglsb2NhbE5hbWUSMQoOdHhfcG93ZXJfbGV2ZWwYAiABKAsyCy5JbnQzMlZhbHVlUgx0eFBvd2VyTGV2ZWwSIAoLY29ubmVjdGFibGUYAyABKAhSC2Nvbm5lY3RhYmxlElUKEW1hbnVmYWN0dXJlcl9kYXRhGAQgAygLMiguQWR2ZXJ0aXNlbWVudERhdGEuTWFudWZhY3R1cmVyRGF0YUVudHJ5UhBtYW51ZmFjdHVyZXJEYXRhEkYKDHNlcnZpY2VfZGF0YRgFIAMoCzIjLkFkdmVydGlzZW1lbnREYXRhLlNlcnZpY2VEYXRhRW50cnlSC3NlcnZpY2VEYXRhEiMKDXNlcnZpY2VfdXVpZHMYBiADKAlSDHNlcnZpY2VVdWlkcxpDChVNYW51ZmFjdHVyZXJEYXRhRW50cnkSEAoDa2V5GAEgASgFUgNrZXkSFAoFdmFsdWUYAiABKAxSBXZhbHVlOgI4ARo+ChBTZXJ2aWNlRGF0YUVudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgMUgV2YWx1ZToCOAE='); +@$core.Deprecated('Use scanSettingsDescriptor instead') +const ScanSettings$json = const { + '1': 'ScanSettings', + '2': const [ + const {'1': 'android_scan_mode', '3': 1, '4': 1, '5': 5, '10': 'androidScanMode'}, + const {'1': 'service_uuids', '3': 2, '4': 3, '5': 9, '10': 'serviceUuids'}, + const {'1': 'allow_duplicates', '3': 3, '4': 1, '5': 8, '10': 'allowDuplicates'}, + ], +}; + +/// Descriptor for `ScanSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List scanSettingsDescriptor = $convert.base64Decode('CgxTY2FuU2V0dGluZ3MSKgoRYW5kcm9pZF9zY2FuX21vZGUYASABKAVSD2FuZHJvaWRTY2FuTW9kZRIjCg1zZXJ2aWNlX3V1aWRzGAIgAygJUgxzZXJ2aWNlVXVpZHMSKQoQYWxsb3dfZHVwbGljYXRlcxgDIAEoCFIPYWxsb3dEdXBsaWNhdGVz'); +@$core.Deprecated('Use scanResultDescriptor instead') +const ScanResult$json = const { + '1': 'ScanResult', + '2': const [ + const {'1': 'device', '3': 1, '4': 1, '5': 11, '6': '.BluetoothDevice', '10': 'device'}, + const {'1': 'advertisement_data', '3': 2, '4': 1, '5': 11, '6': '.AdvertisementData', '10': 'advertisementData'}, + const {'1': 'rssi', '3': 3, '4': 1, '5': 5, '10': 'rssi'}, + ], +}; + +/// Descriptor for `ScanResult`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List scanResultDescriptor = $convert.base64Decode('CgpTY2FuUmVzdWx0EigKBmRldmljZRgBIAEoCzIQLkJsdWV0b290aERldmljZVIGZGV2aWNlEkEKEmFkdmVydGlzZW1lbnRfZGF0YRgCIAEoCzISLkFkdmVydGlzZW1lbnREYXRhUhFhZHZlcnRpc2VtZW50RGF0YRISCgRyc3NpGAMgASgFUgRyc3Np'); +@$core.Deprecated('Use connectRequestDescriptor instead') +const ConnectRequest$json = const { + '1': 'ConnectRequest', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'android_auto_connect', '3': 2, '4': 1, '5': 8, '10': 'androidAutoConnect'}, + ], +}; + +/// Descriptor for `ConnectRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List connectRequestDescriptor = $convert.base64Decode('Cg5Db25uZWN0UmVxdWVzdBIbCglyZW1vdGVfaWQYASABKAlSCHJlbW90ZUlkEjAKFGFuZHJvaWRfYXV0b19jb25uZWN0GAIgASgIUhJhbmRyb2lkQXV0b0Nvbm5lY3Q='); +@$core.Deprecated('Use bluetoothDeviceDescriptor instead') +const BluetoothDevice$json = const { + '1': 'BluetoothDevice', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, + const {'1': 'type', '3': 3, '4': 1, '5': 14, '6': '.BluetoothDevice.Type', '10': 'type'}, + ], + '4': const [BluetoothDevice_Type$json], +}; + +@$core.Deprecated('Use bluetoothDeviceDescriptor instead') +const BluetoothDevice_Type$json = const { + '1': 'Type', + '2': const [ + const {'1': 'UNKNOWN', '2': 0}, + const {'1': 'CLASSIC', '2': 1}, + const {'1': 'LE', '2': 2}, + const {'1': 'DUAL', '2': 3}, + ], +}; + +/// Descriptor for `BluetoothDevice`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List bluetoothDeviceDescriptor = $convert.base64Decode('Cg9CbHVldG9vdGhEZXZpY2USGwoJcmVtb3RlX2lkGAEgASgJUghyZW1vdGVJZBISCgRuYW1lGAIgASgJUgRuYW1lEikKBHR5cGUYAyABKA4yFS5CbHVldG9vdGhEZXZpY2UuVHlwZVIEdHlwZSIyCgRUeXBlEgsKB1VOS05PV04QABILCgdDTEFTU0lDEAESBgoCTEUQAhIICgREVUFMEAM='); +@$core.Deprecated('Use bluetoothServiceDescriptor instead') +const BluetoothService$json = const { + '1': 'BluetoothService', + '2': const [ + const {'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'}, + const {'1': 'remote_id', '3': 2, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'is_primary', '3': 3, '4': 1, '5': 8, '10': 'isPrimary'}, + const {'1': 'characteristics', '3': 4, '4': 3, '5': 11, '6': '.BluetoothCharacteristic', '10': 'characteristics'}, + const {'1': 'included_services', '3': 5, '4': 3, '5': 11, '6': '.BluetoothService', '10': 'includedServices'}, + ], +}; + +/// Descriptor for `BluetoothService`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List bluetoothServiceDescriptor = $convert.base64Decode('ChBCbHVldG9vdGhTZXJ2aWNlEhIKBHV1aWQYASABKAlSBHV1aWQSGwoJcmVtb3RlX2lkGAIgASgJUghyZW1vdGVJZBIdCgppc19wcmltYXJ5GAMgASgIUglpc1ByaW1hcnkSQgoPY2hhcmFjdGVyaXN0aWNzGAQgAygLMhguQmx1ZXRvb3RoQ2hhcmFjdGVyaXN0aWNSD2NoYXJhY3RlcmlzdGljcxI+ChFpbmNsdWRlZF9zZXJ2aWNlcxgFIAMoCzIRLkJsdWV0b290aFNlcnZpY2VSEGluY2x1ZGVkU2VydmljZXM='); +@$core.Deprecated('Use bluetoothCharacteristicDescriptor instead') +const BluetoothCharacteristic$json = const { + '1': 'BluetoothCharacteristic', + '2': const [ + const {'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'}, + const {'1': 'remote_id', '3': 2, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'serviceUuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'}, + const {'1': 'secondaryServiceUuid', '3': 4, '4': 1, '5': 9, '10': 'secondaryServiceUuid'}, + const {'1': 'descriptors', '3': 5, '4': 3, '5': 11, '6': '.BluetoothDescriptor', '10': 'descriptors'}, + const {'1': 'properties', '3': 6, '4': 1, '5': 11, '6': '.CharacteristicProperties', '10': 'properties'}, + const {'1': 'value', '3': 7, '4': 1, '5': 12, '10': 'value'}, + ], +}; + +/// Descriptor for `BluetoothCharacteristic`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List bluetoothCharacteristicDescriptor = $convert.base64Decode('ChdCbHVldG9vdGhDaGFyYWN0ZXJpc3RpYxISCgR1dWlkGAEgASgJUgR1dWlkEhsKCXJlbW90ZV9pZBgCIAEoCVIIcmVtb3RlSWQSIAoLc2VydmljZVV1aWQYAyABKAlSC3NlcnZpY2VVdWlkEjIKFHNlY29uZGFyeVNlcnZpY2VVdWlkGAQgASgJUhRzZWNvbmRhcnlTZXJ2aWNlVXVpZBI2CgtkZXNjcmlwdG9ycxgFIAMoCzIULkJsdWV0b290aERlc2NyaXB0b3JSC2Rlc2NyaXB0b3JzEjkKCnByb3BlcnRpZXMYBiABKAsyGS5DaGFyYWN0ZXJpc3RpY1Byb3BlcnRpZXNSCnByb3BlcnRpZXMSFAoFdmFsdWUYByABKAxSBXZhbHVl'); +@$core.Deprecated('Use bluetoothDescriptorDescriptor instead') +const BluetoothDescriptor$json = const { + '1': 'BluetoothDescriptor', + '2': const [ + const {'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'}, + const {'1': 'remote_id', '3': 2, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'serviceUuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'}, + const {'1': 'characteristicUuid', '3': 4, '4': 1, '5': 9, '10': 'characteristicUuid'}, + const {'1': 'value', '3': 5, '4': 1, '5': 12, '10': 'value'}, + ], +}; + +/// Descriptor for `BluetoothDescriptor`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List bluetoothDescriptorDescriptor = $convert.base64Decode('ChNCbHVldG9vdGhEZXNjcmlwdG9yEhIKBHV1aWQYASABKAlSBHV1aWQSGwoJcmVtb3RlX2lkGAIgASgJUghyZW1vdGVJZBIgCgtzZXJ2aWNlVXVpZBgDIAEoCVILc2VydmljZVV1aWQSLgoSY2hhcmFjdGVyaXN0aWNVdWlkGAQgASgJUhJjaGFyYWN0ZXJpc3RpY1V1aWQSFAoFdmFsdWUYBSABKAxSBXZhbHVl'); +@$core.Deprecated('Use characteristicPropertiesDescriptor instead') +const CharacteristicProperties$json = const { + '1': 'CharacteristicProperties', + '2': const [ + const {'1': 'broadcast', '3': 1, '4': 1, '5': 8, '10': 'broadcast'}, + const {'1': 'read', '3': 2, '4': 1, '5': 8, '10': 'read'}, + const {'1': 'write_without_response', '3': 3, '4': 1, '5': 8, '10': 'writeWithoutResponse'}, + const {'1': 'write', '3': 4, '4': 1, '5': 8, '10': 'write'}, + const {'1': 'notify', '3': 5, '4': 1, '5': 8, '10': 'notify'}, + const {'1': 'indicate', '3': 6, '4': 1, '5': 8, '10': 'indicate'}, + const {'1': 'authenticated_signed_writes', '3': 7, '4': 1, '5': 8, '10': 'authenticatedSignedWrites'}, + const {'1': 'extended_properties', '3': 8, '4': 1, '5': 8, '10': 'extendedProperties'}, + const {'1': 'notify_encryption_required', '3': 9, '4': 1, '5': 8, '10': 'notifyEncryptionRequired'}, + const {'1': 'indicate_encryption_required', '3': 10, '4': 1, '5': 8, '10': 'indicateEncryptionRequired'}, + ], +}; + +/// Descriptor for `CharacteristicProperties`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List characteristicPropertiesDescriptor = $convert.base64Decode('ChhDaGFyYWN0ZXJpc3RpY1Byb3BlcnRpZXMSHAoJYnJvYWRjYXN0GAEgASgIUglicm9hZGNhc3QSEgoEcmVhZBgCIAEoCFIEcmVhZBI0ChZ3cml0ZV93aXRob3V0X3Jlc3BvbnNlGAMgASgIUhR3cml0ZVdpdGhvdXRSZXNwb25zZRIUCgV3cml0ZRgEIAEoCFIFd3JpdGUSFgoGbm90aWZ5GAUgASgIUgZub3RpZnkSGgoIaW5kaWNhdGUYBiABKAhSCGluZGljYXRlEj4KG2F1dGhlbnRpY2F0ZWRfc2lnbmVkX3dyaXRlcxgHIAEoCFIZYXV0aGVudGljYXRlZFNpZ25lZFdyaXRlcxIvChNleHRlbmRlZF9wcm9wZXJ0aWVzGAggASgIUhJleHRlbmRlZFByb3BlcnRpZXMSPAoabm90aWZ5X2VuY3J5cHRpb25fcmVxdWlyZWQYCSABKAhSGG5vdGlmeUVuY3J5cHRpb25SZXF1aXJlZBJAChxpbmRpY2F0ZV9lbmNyeXB0aW9uX3JlcXVpcmVkGAogASgIUhppbmRpY2F0ZUVuY3J5cHRpb25SZXF1aXJlZA=='); +@$core.Deprecated('Use discoverServicesResultDescriptor instead') +const DiscoverServicesResult$json = const { + '1': 'DiscoverServicesResult', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'services', '3': 2, '4': 3, '5': 11, '6': '.BluetoothService', '10': 'services'}, + ], +}; + +/// Descriptor for `DiscoverServicesResult`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List discoverServicesResultDescriptor = $convert.base64Decode('ChZEaXNjb3ZlclNlcnZpY2VzUmVzdWx0EhsKCXJlbW90ZV9pZBgBIAEoCVIIcmVtb3RlSWQSLQoIc2VydmljZXMYAiADKAsyES5CbHVldG9vdGhTZXJ2aWNlUghzZXJ2aWNlcw=='); +@$core.Deprecated('Use readCharacteristicRequestDescriptor instead') +const ReadCharacteristicRequest$json = const { + '1': 'ReadCharacteristicRequest', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'characteristic_uuid', '3': 2, '4': 1, '5': 9, '10': 'characteristicUuid'}, + const {'1': 'service_uuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'}, + const {'1': 'secondary_service_uuid', '3': 4, '4': 1, '5': 9, '10': 'secondaryServiceUuid'}, + ], +}; + +/// Descriptor for `ReadCharacteristicRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List readCharacteristicRequestDescriptor = $convert.base64Decode('ChlSZWFkQ2hhcmFjdGVyaXN0aWNSZXF1ZXN0EhsKCXJlbW90ZV9pZBgBIAEoCVIIcmVtb3RlSWQSLwoTY2hhcmFjdGVyaXN0aWNfdXVpZBgCIAEoCVISY2hhcmFjdGVyaXN0aWNVdWlkEiEKDHNlcnZpY2VfdXVpZBgDIAEoCVILc2VydmljZVV1aWQSNAoWc2Vjb25kYXJ5X3NlcnZpY2VfdXVpZBgEIAEoCVIUc2Vjb25kYXJ5U2VydmljZVV1aWQ='); +@$core.Deprecated('Use readCharacteristicResponseDescriptor instead') +const ReadCharacteristicResponse$json = const { + '1': 'ReadCharacteristicResponse', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'characteristic', '3': 2, '4': 1, '5': 11, '6': '.BluetoothCharacteristic', '10': 'characteristic'}, + ], +}; + +/// Descriptor for `ReadCharacteristicResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List readCharacteristicResponseDescriptor = $convert.base64Decode('ChpSZWFkQ2hhcmFjdGVyaXN0aWNSZXNwb25zZRIbCglyZW1vdGVfaWQYASABKAlSCHJlbW90ZUlkEkAKDmNoYXJhY3RlcmlzdGljGAIgASgLMhguQmx1ZXRvb3RoQ2hhcmFjdGVyaXN0aWNSDmNoYXJhY3RlcmlzdGlj'); +@$core.Deprecated('Use readDescriptorRequestDescriptor instead') +const ReadDescriptorRequest$json = const { + '1': 'ReadDescriptorRequest', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'descriptor_uuid', '3': 2, '4': 1, '5': 9, '10': 'descriptorUuid'}, + const {'1': 'service_uuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'}, + const {'1': 'secondary_service_uuid', '3': 4, '4': 1, '5': 9, '10': 'secondaryServiceUuid'}, + const {'1': 'characteristic_uuid', '3': 5, '4': 1, '5': 9, '10': 'characteristicUuid'}, + ], +}; + +/// Descriptor for `ReadDescriptorRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List readDescriptorRequestDescriptor = $convert.base64Decode('ChVSZWFkRGVzY3JpcHRvclJlcXVlc3QSGwoJcmVtb3RlX2lkGAEgASgJUghyZW1vdGVJZBInCg9kZXNjcmlwdG9yX3V1aWQYAiABKAlSDmRlc2NyaXB0b3JVdWlkEiEKDHNlcnZpY2VfdXVpZBgDIAEoCVILc2VydmljZVV1aWQSNAoWc2Vjb25kYXJ5X3NlcnZpY2VfdXVpZBgEIAEoCVIUc2Vjb25kYXJ5U2VydmljZVV1aWQSLwoTY2hhcmFjdGVyaXN0aWNfdXVpZBgFIAEoCVISY2hhcmFjdGVyaXN0aWNVdWlk'); +@$core.Deprecated('Use readDescriptorResponseDescriptor instead') +const ReadDescriptorResponse$json = const { + '1': 'ReadDescriptorResponse', + '2': const [ + const {'1': 'request', '3': 1, '4': 1, '5': 11, '6': '.ReadDescriptorRequest', '10': 'request'}, + const {'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'}, + ], +}; + +/// Descriptor for `ReadDescriptorResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List readDescriptorResponseDescriptor = $convert.base64Decode('ChZSZWFkRGVzY3JpcHRvclJlc3BvbnNlEjAKB3JlcXVlc3QYASABKAsyFi5SZWFkRGVzY3JpcHRvclJlcXVlc3RSB3JlcXVlc3QSFAoFdmFsdWUYAiABKAxSBXZhbHVl'); +@$core.Deprecated('Use writeCharacteristicRequestDescriptor instead') +const WriteCharacteristicRequest$json = const { + '1': 'WriteCharacteristicRequest', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'characteristic_uuid', '3': 2, '4': 1, '5': 9, '10': 'characteristicUuid'}, + const {'1': 'service_uuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'}, + const {'1': 'secondary_service_uuid', '3': 4, '4': 1, '5': 9, '10': 'secondaryServiceUuid'}, + const {'1': 'write_type', '3': 5, '4': 1, '5': 14, '6': '.WriteCharacteristicRequest.WriteType', '10': 'writeType'}, + const {'1': 'value', '3': 6, '4': 1, '5': 12, '10': 'value'}, + ], + '4': const [WriteCharacteristicRequest_WriteType$json], +}; + +@$core.Deprecated('Use writeCharacteristicRequestDescriptor instead') +const WriteCharacteristicRequest_WriteType$json = const { + '1': 'WriteType', + '2': const [ + const {'1': 'WITH_RESPONSE', '2': 0}, + const {'1': 'WITHOUT_RESPONSE', '2': 1}, + ], +}; + +/// Descriptor for `WriteCharacteristicRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List writeCharacteristicRequestDescriptor = $convert.base64Decode('ChpXcml0ZUNoYXJhY3RlcmlzdGljUmVxdWVzdBIbCglyZW1vdGVfaWQYASABKAlSCHJlbW90ZUlkEi8KE2NoYXJhY3RlcmlzdGljX3V1aWQYAiABKAlSEmNoYXJhY3RlcmlzdGljVXVpZBIhCgxzZXJ2aWNlX3V1aWQYAyABKAlSC3NlcnZpY2VVdWlkEjQKFnNlY29uZGFyeV9zZXJ2aWNlX3V1aWQYBCABKAlSFHNlY29uZGFyeVNlcnZpY2VVdWlkEkQKCndyaXRlX3R5cGUYBSABKA4yJS5Xcml0ZUNoYXJhY3RlcmlzdGljUmVxdWVzdC5Xcml0ZVR5cGVSCXdyaXRlVHlwZRIUCgV2YWx1ZRgGIAEoDFIFdmFsdWUiNAoJV3JpdGVUeXBlEhEKDVdJVEhfUkVTUE9OU0UQABIUChBXSVRIT1VUX1JFU1BPTlNFEAE='); +@$core.Deprecated('Use writeCharacteristicResponseDescriptor instead') +const WriteCharacteristicResponse$json = const { + '1': 'WriteCharacteristicResponse', + '2': const [ + const {'1': 'request', '3': 1, '4': 1, '5': 11, '6': '.WriteCharacteristicRequest', '10': 'request'}, + const {'1': 'success', '3': 2, '4': 1, '5': 8, '10': 'success'}, + ], +}; + +/// Descriptor for `WriteCharacteristicResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List writeCharacteristicResponseDescriptor = $convert.base64Decode('ChtXcml0ZUNoYXJhY3RlcmlzdGljUmVzcG9uc2USNQoHcmVxdWVzdBgBIAEoCzIbLldyaXRlQ2hhcmFjdGVyaXN0aWNSZXF1ZXN0UgdyZXF1ZXN0EhgKB3N1Y2Nlc3MYAiABKAhSB3N1Y2Nlc3M='); +@$core.Deprecated('Use writeDescriptorRequestDescriptor instead') +const WriteDescriptorRequest$json = const { + '1': 'WriteDescriptorRequest', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'descriptor_uuid', '3': 2, '4': 1, '5': 9, '10': 'descriptorUuid'}, + const {'1': 'service_uuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'}, + const {'1': 'secondary_service_uuid', '3': 4, '4': 1, '5': 9, '10': 'secondaryServiceUuid'}, + const {'1': 'characteristic_uuid', '3': 5, '4': 1, '5': 9, '10': 'characteristicUuid'}, + const {'1': 'value', '3': 6, '4': 1, '5': 12, '10': 'value'}, + ], +}; + +/// Descriptor for `WriteDescriptorRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List writeDescriptorRequestDescriptor = $convert.base64Decode('ChZXcml0ZURlc2NyaXB0b3JSZXF1ZXN0EhsKCXJlbW90ZV9pZBgBIAEoCVIIcmVtb3RlSWQSJwoPZGVzY3JpcHRvcl91dWlkGAIgASgJUg5kZXNjcmlwdG9yVXVpZBIhCgxzZXJ2aWNlX3V1aWQYAyABKAlSC3NlcnZpY2VVdWlkEjQKFnNlY29uZGFyeV9zZXJ2aWNlX3V1aWQYBCABKAlSFHNlY29uZGFyeVNlcnZpY2VVdWlkEi8KE2NoYXJhY3RlcmlzdGljX3V1aWQYBSABKAlSEmNoYXJhY3RlcmlzdGljVXVpZBIUCgV2YWx1ZRgGIAEoDFIFdmFsdWU='); +@$core.Deprecated('Use writeDescriptorResponseDescriptor instead') +const WriteDescriptorResponse$json = const { + '1': 'WriteDescriptorResponse', + '2': const [ + const {'1': 'request', '3': 1, '4': 1, '5': 11, '6': '.WriteDescriptorRequest', '10': 'request'}, + const {'1': 'success', '3': 2, '4': 1, '5': 8, '10': 'success'}, + ], +}; + +/// Descriptor for `WriteDescriptorResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List writeDescriptorResponseDescriptor = $convert.base64Decode('ChdXcml0ZURlc2NyaXB0b3JSZXNwb25zZRIxCgdyZXF1ZXN0GAEgASgLMhcuV3JpdGVEZXNjcmlwdG9yUmVxdWVzdFIHcmVxdWVzdBIYCgdzdWNjZXNzGAIgASgIUgdzdWNjZXNz'); +@$core.Deprecated('Use setNotificationRequestDescriptor instead') +const SetNotificationRequest$json = const { + '1': 'SetNotificationRequest', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'service_uuid', '3': 2, '4': 1, '5': 9, '10': 'serviceUuid'}, + const {'1': 'secondary_service_uuid', '3': 3, '4': 1, '5': 9, '10': 'secondaryServiceUuid'}, + const {'1': 'characteristic_uuid', '3': 4, '4': 1, '5': 9, '10': 'characteristicUuid'}, + const {'1': 'enable', '3': 5, '4': 1, '5': 8, '10': 'enable'}, + ], +}; + +/// Descriptor for `SetNotificationRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List setNotificationRequestDescriptor = $convert.base64Decode('ChZTZXROb3RpZmljYXRpb25SZXF1ZXN0EhsKCXJlbW90ZV9pZBgBIAEoCVIIcmVtb3RlSWQSIQoMc2VydmljZV91dWlkGAIgASgJUgtzZXJ2aWNlVXVpZBI0ChZzZWNvbmRhcnlfc2VydmljZV91dWlkGAMgASgJUhRzZWNvbmRhcnlTZXJ2aWNlVXVpZBIvChNjaGFyYWN0ZXJpc3RpY191dWlkGAQgASgJUhJjaGFyYWN0ZXJpc3RpY1V1aWQSFgoGZW5hYmxlGAUgASgIUgZlbmFibGU='); +@$core.Deprecated('Use setNotificationResponseDescriptor instead') +const SetNotificationResponse$json = const { + '1': 'SetNotificationResponse', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'characteristic', '3': 2, '4': 1, '5': 11, '6': '.BluetoothCharacteristic', '10': 'characteristic'}, + const {'1': 'success', '3': 3, '4': 1, '5': 8, '10': 'success'}, + ], +}; + +/// Descriptor for `SetNotificationResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List setNotificationResponseDescriptor = $convert.base64Decode('ChdTZXROb3RpZmljYXRpb25SZXNwb25zZRIbCglyZW1vdGVfaWQYASABKAlSCHJlbW90ZUlkEkAKDmNoYXJhY3RlcmlzdGljGAIgASgLMhguQmx1ZXRvb3RoQ2hhcmFjdGVyaXN0aWNSDmNoYXJhY3RlcmlzdGljEhgKB3N1Y2Nlc3MYAyABKAhSB3N1Y2Nlc3M='); +@$core.Deprecated('Use onCharacteristicChangedDescriptor instead') +const OnCharacteristicChanged$json = const { + '1': 'OnCharacteristicChanged', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'characteristic', '3': 2, '4': 1, '5': 11, '6': '.BluetoothCharacteristic', '10': 'characteristic'}, + ], +}; + +/// Descriptor for `OnCharacteristicChanged`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List onCharacteristicChangedDescriptor = $convert.base64Decode('ChdPbkNoYXJhY3RlcmlzdGljQ2hhbmdlZBIbCglyZW1vdGVfaWQYASABKAlSCHJlbW90ZUlkEkAKDmNoYXJhY3RlcmlzdGljGAIgASgLMhguQmx1ZXRvb3RoQ2hhcmFjdGVyaXN0aWNSDmNoYXJhY3RlcmlzdGlj'); +@$core.Deprecated('Use deviceStateResponseDescriptor instead') +const DeviceStateResponse$json = const { + '1': 'DeviceStateResponse', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'state', '3': 2, '4': 1, '5': 14, '6': '.DeviceStateResponse.BluetoothDeviceState', '10': 'state'}, + ], + '4': const [DeviceStateResponse_BluetoothDeviceState$json], +}; + +@$core.Deprecated('Use deviceStateResponseDescriptor instead') +const DeviceStateResponse_BluetoothDeviceState$json = const { + '1': 'BluetoothDeviceState', + '2': const [ + const {'1': 'DISCONNECTED', '2': 0}, + const {'1': 'CONNECTING', '2': 1}, + const {'1': 'CONNECTED', '2': 2}, + const {'1': 'DISCONNECTING', '2': 3}, + ], +}; + +/// Descriptor for `DeviceStateResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List deviceStateResponseDescriptor = $convert.base64Decode('ChNEZXZpY2VTdGF0ZVJlc3BvbnNlEhsKCXJlbW90ZV9pZBgBIAEoCVIIcmVtb3RlSWQSPwoFc3RhdGUYAiABKA4yKS5EZXZpY2VTdGF0ZVJlc3BvbnNlLkJsdWV0b290aERldmljZVN0YXRlUgVzdGF0ZSJaChRCbHVldG9vdGhEZXZpY2VTdGF0ZRIQCgxESVNDT05ORUNURUQQABIOCgpDT05ORUNUSU5HEAESDQoJQ09OTkVDVEVEEAISEQoNRElTQ09OTkVDVElORxAD'); +@$core.Deprecated('Use connectedDevicesResponseDescriptor instead') +const ConnectedDevicesResponse$json = const { + '1': 'ConnectedDevicesResponse', + '2': const [ + const {'1': 'devices', '3': 1, '4': 3, '5': 11, '6': '.BluetoothDevice', '10': 'devices'}, + ], +}; + +/// Descriptor for `ConnectedDevicesResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List connectedDevicesResponseDescriptor = $convert.base64Decode('ChhDb25uZWN0ZWREZXZpY2VzUmVzcG9uc2USKgoHZGV2aWNlcxgBIAMoCzIQLkJsdWV0b290aERldmljZVIHZGV2aWNlcw=='); +@$core.Deprecated('Use mtuSizeRequestDescriptor instead') +const MtuSizeRequest$json = const { + '1': 'MtuSizeRequest', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'mtu', '3': 2, '4': 1, '5': 13, '10': 'mtu'}, + ], +}; + +/// Descriptor for `MtuSizeRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List mtuSizeRequestDescriptor = $convert.base64Decode('Cg5NdHVTaXplUmVxdWVzdBIbCglyZW1vdGVfaWQYASABKAlSCHJlbW90ZUlkEhAKA210dRgCIAEoDVIDbXR1'); +@$core.Deprecated('Use mtuSizeResponseDescriptor instead') +const MtuSizeResponse$json = const { + '1': 'MtuSizeResponse', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + const {'1': 'mtu', '3': 2, '4': 1, '5': 13, '10': 'mtu'}, + ], +}; + +/// Descriptor for `MtuSizeResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List mtuSizeResponseDescriptor = $convert.base64Decode('Cg9NdHVTaXplUmVzcG9uc2USGwoJcmVtb3RlX2lkGAEgASgJUghyZW1vdGVJZBIQCgNtdHUYAiABKA1SA210dQ=='); +@$core.Deprecated('Use isReadyToSendWriteWithoutResponseDescriptor instead') +const IsReadyToSendWriteWithoutResponse$json = const { + '1': 'IsReadyToSendWriteWithoutResponse', + '2': const [ + const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'}, + ], +}; + +/// Descriptor for `IsReadyToSendWriteWithoutResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List isReadyToSendWriteWithoutResponseDescriptor = $convert.base64Decode('CiFJc1JlYWR5VG9TZW5kV3JpdGVXaXRob3V0UmVzcG9uc2USGwoJcmVtb3RlX2lkGAEgASgJUghyZW1vdGVJZA=='); diff --git a/protos/flutterblue.pbserver.dart b/protos/flutterblue.pbserver.dart new file mode 100644 index 00000000..263ae8fe --- /dev/null +++ b/protos/flutterblue.pbserver.dart @@ -0,0 +1,9 @@ +/// +// Generated code. Do not modify. +// source: flutterblue.proto +// +// @dart = 2.12 +// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package + +export 'flutterblue.pb.dart'; + diff --git a/protos/flutterblue.proto b/protos/flutterblue.proto index a30cb7a0..51fca55d 100644 --- a/protos/flutterblue.proto +++ b/protos/flutterblue.proto @@ -211,4 +211,8 @@ message MtuSizeRequest { message MtuSizeResponse { string remote_id = 1; uint32 mtu = 2; +} + +message IsReadyToSendWriteWithoutResponse { + string remote_id = 1; } \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 220c089d..a6fadafb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,8 +2,10 @@ name: flutter_blue description: Flutter plugin for connecting and communicating with Bluetooth Low Energy devices, on Android and iOS -version: 0.8.0 -homepage: https://github.com/pauldemarco/flutter_blue +version: 0.8.1 +author: luhaobo +publish_to: http://app-release.yeedev.com:8080 +homepage: https://yeelight.com environment: sdk: '>=2.12.0 <3.0.0'